CN111147591A - Optimization method for dynamic allocation equipment server of Internet of things - Google Patents

Optimization method for dynamic allocation equipment server of Internet of things Download PDF

Info

Publication number
CN111147591A
CN111147591A CN201911384851.XA CN201911384851A CN111147591A CN 111147591 A CN111147591 A CN 111147591A CN 201911384851 A CN201911384851 A CN 201911384851A CN 111147591 A CN111147591 A CN 111147591A
Authority
CN
China
Prior art keywords
equipment
server
internet
steps
following
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911384851.XA
Other languages
Chinese (zh)
Other versions
CN111147591B (en
Inventor
梁昆
何牡禄
王利强
钱伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Tpson Technology Co ltd
Original Assignee
Hangzhou Tpson 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 Hangzhou Tpson Technology Co ltd filed Critical Hangzhou Tpson Technology Co ltd
Priority to CN201911384851.XA priority Critical patent/CN111147591B/en
Publication of CN111147591A publication Critical patent/CN111147591A/en
Application granted granted Critical
Publication of CN111147591B publication Critical patent/CN111147591B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • 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
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to an optimization method for dynamically allocating equipment servers of the Internet of things, which comprises the steps of initializing a selection server and the equipment servers and constructing a connection relation, when 1 or more pieces of equipment need to be accessed into the equipment servers, receiving requests by the selection server and sequencing all the requests, processing the equipment servers which are idle or in an accessible state at present, sending processed corresponding keys to the equipment according to the sequencing sequence, trying to connect the equipment which receives the keys with the equipment servers, and separating the selection server if the connection is successful until all the equipment finishes trying to connect. The invention relates to an optimization scheme aiming at equipment connection servers, which supports the connection of tens of millions of equipment, can realize load balance of each server, solves the problem of dynamic capacity expansion of the servers to the greatest extent, has stable Internet of things and quick equipment access, ensures the application of actual application occasions of the Internet of things to be in place, and improves the access efficiency.

Description

Optimization method for dynamic allocation equipment server of Internet of things
Technical Field
The invention relates to the technical field of telecommunication technology, in particular to an optimization method for a dynamic allocation device server of the Internet of things.
Background
The Internet of Things (The Internet of Things, referred to as IOT for short) is to collect any object or process needing monitoring, connection and interaction in real time through various devices and technologies, and to realize The general connection of objects and people through various possible network accesses, and to realize The intelligent perception, identification and management of objects and processes.
The internet of things is used as an information carrier based on the internet, a traditional telecommunication network and the like, all common physical objects which can be independently addressed form an interconnected and intercommunicated network, and therefore the scale of the internet of things can be rapidly expanded and enlarged, and the problem of server allocation of the internet of things is a big problem faced by the internet of things in the foreseeable future.
In the prior art, for example, the development of a fire-fighting internet of things system is taken, equipment connected with each server is limited, and the internet of things system is rapidly raised in the face of tens of millions of equipment.
Disclosure of Invention
The invention solves the problems that in the prior art, equipment connected with each server is limited, so that a single server cannot support the connection of a large number of equipment, network blocking and mistaken sending are easily caused, and further, the breakdown of an Internet of things system is caused, and the actual potential safety hazard in the field of fire fighting is seriously influenced, and provides an optimized optimization method for dynamically distributing equipment servers of the Internet of things.
The technical scheme adopted by the invention is that the method for optimizing the dynamic allocation equipment server of the Internet of things comprises the following steps:
step 1: initializing a selection server and an equipment server;
step 2: constructing a connection relation between the selection server and the equipment server;
and step 3: when 1 or more devices need to access the device server, the next step is carried out, otherwise, the step 3 is repeated;
and 4, step 4: the selection server receives the requests of current 1 or more devices and sequences all the requests;
and 5: the selection server processes the equipment server which is idle or in an accessible state at present and sends the processed corresponding keys to the equipment according to a sequencing sequence;
step 6: and (4) the equipment receiving the key tries to connect with the equipment server, if the connection is successful, the equipment is separated from the selected server, otherwise, the equipment waits for next distribution and returns to the step 3.
Preferably, in step 1, the initialization of selecting a server includes configuring an access port and an output port.
Preferably, in step 1, the initialization of the device server includes configuring an access port and an output port, and an identification bit for identifying an accessible status is set in the device server.
Preferably, the step 4 comprises the steps of:
step 4.1: selecting a server to receive an allocation request message sent by 1 or more devices;
step 4.2: selecting a server to verify the accessibility of the equipment, if the equipment can be accessed, accessing the equipment, and sending a receiving request message to the equipment, otherwise, sending a refusing request message;
step 4.3: and the selection server sorts the equipment based on a preset sorting rule.
Preferably, the step 5 comprises the steps of:
step 5.1: selecting a server to send an identification bit identification request message to an equipment server;
step 5.2: the equipment server sends the corresponding identification bit to a selection server, and the selection server constructs a set for the equipment server which is idle at present or in an accessible state based on the information of the identification bit;
step 5.3: processing the IP of all the equipment servers in the current set to construct a secret key;
step 5.4: sending the processed corresponding keys to the equipment according to the sequencing order;
step 5.5: the selection server sends the key to the device server.
Preferably, in step 5.3, the processing is Hash calculation.
Preferably, the step 6 comprises the steps of:
step 6.1: the device receiving the key searches a corresponding device server based on the key;
step 6.2: any equipment sends a connection request to a corresponding equipment server, and the equipment server checks the key information after receiving the request;
step 6.3: if the keys are matched, connection is agreed, a connection receiving message is sent to the equipment, the next step is carried out, otherwise, next distribution is waited, and the step 3 is returned;
step 6.4: and the equipment is successfully connected with the equipment server and is separated from the selection server.
Preferably, in step 6, if the device does not receive the information returned by the device server within the preset time, the device retries, and after the device retries for three times, the device does not receive the information, fails to allocate, and waits for the next allocation.
Preferably, in step 6.4, if the connection is successful, the device server modifies the corresponding identification bit.
The invention relates to an optimized optimization method for dynamically allocating equipment servers of the Internet of things, which comprises the steps of initializing a selection server and an equipment server and constructing a connection relation, when 1 or more pieces of equipment need to be accessed into the equipment server, receiving requests by the selection server and sequencing all the requests, processing the equipment server which is idle or in an accessible state at present, sending processed corresponding keys to the equipment according to the sequencing sequence, trying to connect the equipment receiving the keys with the connection server, and separating the selection server if the connection is successful until all the equipment finishes trying to connect.
The invention relates to an optimization scheme aiming at equipment connection servers, which supports the connection of tens of millions of equipment, can realize load balance of each server, solves the problem of dynamic capacity expansion of the servers to the greatest extent, has stable Internet of things and quick equipment access, ensures the application of actual application occasions of the Internet of things to be in place, and improves the access efficiency.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a schematic diagram of the initial state association between the device, the selection server and the device server in the present invention;
FIG. 3 is a schematic diagram of the association between the device, the selection server and the device server after one processing according to the present invention;
the arrows in fig. 2 and 3 indicate the direction of information transfer.
Detailed Description
The present invention is described in further detail with reference to the following examples, but the scope of the present invention is not limited thereto.
The invention relates to an optimization method for a dynamic allocation equipment server of the Internet of things, which comprises the following steps.
Step 1: the selection server and the device server are initialized.
In step 1, the initialization of selecting a server includes configuring an access port and an output port.
In step 1, the initialization of the device server includes configuring an access port and an output port, and an identification bit for identifying an accessible status is set in the device server.
In the invention, the selection server needs to obtain information from equipment and an equipment server and needs to send a command to the equipment, so an access end and an output port need to be set simultaneously; similarly, the device server also needs to configure the access port and the output port.
In the present invention, in order to facilitate selection of communication between the server and the device server, the device server is directly identified by setting an identification bit for identifying the accessible status of the device server, and generally, 0 is accessible and 1 is inaccessible.
Step 2: and constructing a connection relation in the selection server and the equipment server.
And step 3: and (3) when 1 or more devices need to access the device server, carrying out the next step, otherwise, repeating the step (3).
In the invention, step 3 is used for acquiring the equipment needing to be accessed.
In the invention, the request of the equipment needing to be accessed can be acquired in real time, and the request of the equipment needing to be accessed can also be acquired in a time slot mode based on the actual distribution efficiency.
And 4, step 4: the selection server receives the current requests of 1 or more devices and sorts all the requests.
The step 4 comprises the following steps:
step 4.1: selecting a server to receive an allocation request message sent by 1 or more devices;
step 4.2: selecting a server to verify the accessibility of the equipment, if the equipment can be accessed, accessing the equipment, and sending a receiving request message to the equipment, otherwise, sending a refusing request message;
step 4.3: and the selection server sorts the equipment based on a preset sorting rule.
In the invention, generally speaking, the preset sequencing rule is that the messages are sequenced from early to late according to the submission of the distribution request messages; in the application occasions with priorities, such as fire-fighting application occasions, the priority of the current access request should be compared and ordered one by one, and the access requests are processed according to time sequence under the condition of the same level.
And 5: and the selection server processes the equipment server which is idle or in an accessible state at present and sends the processed corresponding keys to the equipment according to the sequencing order.
The step 5 comprises the following steps:
step 5.1: selecting a server to send an identification bit identification request message to an equipment server;
step 5.2: the equipment server sends the corresponding identification bit to a selection server, and the selection server constructs a set for the equipment server which is idle at present or in an accessible state based on the information of the identification bit;
step 5.3: processing the IP of all the equipment servers in the current set to construct a secret key;
in the step 5.3, the processing is Hash calculation.
Step 5.4: sending the processed corresponding keys to the equipment according to the sequencing order;
step 5.5: the selection server sends the key to the device server.
In the invention, the selection server dynamically encrypts the Hash value of any selection server through a Hash algorithm, and sends the key to the equipment, namely, the key is considered to be distributed with an equipment server IP.
In the invention, the step 5.4 of sending the keys to the equipment according to the sequencing sequence refers to the sequencing sequence of the equipment; in step 5.5, the selection server sends the key to the corresponding device server.
Step 6: and (4) the equipment receiving the key tries to connect with the equipment server, if the connection is successful, the equipment is separated from the selected server, otherwise, the equipment waits for next distribution and returns to the step 3.
The step 6 comprises the following steps:
step 6.1: the device receiving the key searches a corresponding device server based on the key;
step 6.2: any equipment sends a connection request to a corresponding equipment server, and the equipment server checks the key information after receiving the request;
step 6.3: if the keys are matched, connection is agreed, a connection receiving message is sent to the equipment, the next step is carried out, otherwise, next distribution is waited, and the step 3 is returned;
step 6.4: and the equipment is successfully connected with the equipment server and is separated from the selection server.
In step 6.4, if the connection is successful, the device server modifies the corresponding identification bit.
In step 6, if the device does not receive the information returned by the device server within the preset time, the device retries, and after the device retries for three times, the device does not receive the information, fails in allocation, and waits for next allocation.
In the invention, after the device receives the key, the Hash value of the corresponding device server can be obtained based on the key, so as to obtain the port or IP of the device server, and then the request can be initiated, and the key is still used as a matching tool in the request process.
In the invention, if the connection is not successful for three times, the device server is indicated to be possible to be disconnected or connected with other devices, and then the device server is redistributed.
In the present invention, an embodiment is given, as shown in fig. 2 and 3:
in an initial state, the equipment 1, the equipment 2 and the equipment 3 are all connected with the equipment server, the number of the equipment servers is two, and after distribution, the equipment 1 is expected to be connected with the equipment server A, and the equipment 2 is expected to be connected with the equipment server B;
after the first allocation, the device 1 is successfully connected to the device server a, the device 2 is lost or has already been connected to another server (both may exist), the device 3 is not yet processed, and new devices 4 and 5 are both connected to the device server, the device server includes the device server B that is not yet allocated and a device server C that is newly added, and after the allocation, it is expected that the device 3 is connected to the device server B, the device 4 is connected to the device server C, and the device 5 continues to wait for the next allocation.
In the invention, if other conditions with higher priority exist, the distribution relation between the equipment server and the equipment is not necessarily based on the preset sequence.
The invention initializes the selection server and the equipment server and constructs the connection relation, when 1 or more equipment needs to access the equipment server, the selection server receives the request and sequences all the requests, at the same time processes the equipment server which is idle or in the accessible state, sends the processed corresponding keys to the equipment according to the sequence of the sequence, the equipment which receives the keys tries to connect with the equipment server, if the connection is successful, the selection server is separated until all the equipment finishes the try to connect.
The invention relates to an optimization scheme aiming at equipment connection servers, which supports the connection of tens of millions of equipment, can realize load balance of each server, solves the problem of dynamic capacity expansion of the servers to the greatest extent, has stable Internet of things and quick equipment access, ensures the application of actual application occasions of the Internet of things to be in place, and improves the access efficiency.

Claims (9)

1. A dynamic allocation equipment server optimization method of the Internet of things is characterized by comprising the following steps: the method comprises the following steps:
step 1: initializing a selection server and an equipment server;
step 2: constructing a connection relation between the selection server and the equipment server;
and step 3: when 1 or more devices need to access the device server, the next step is carried out, otherwise, the step 3 is repeated;
and 4, step 4: the selection server receives the requests of current 1 or more devices and sequences all the requests;
and 5: the selection server processes the equipment server which is idle or in an accessible state at present and sends the processed corresponding keys to the equipment according to a sequencing sequence;
step 6: and (4) the equipment receiving the key tries to connect with the equipment server, if the connection is successful, the equipment is separated from the selected server, otherwise, the equipment waits for next distribution and returns to the step 3.
2. The method for optimizing the dynamic allocation equipment server of the internet of things according to claim 1, wherein the method comprises the following steps: in step 1, the initialization of selecting a server includes configuring an access port and an output port.
3. The method for optimizing the dynamic allocation equipment server of the internet of things according to claim 1, wherein the method comprises the following steps: in step 1, the initialization of the device server includes configuring an access port and an output port, and an identification bit for identifying an accessible status is set in the device server.
4. The method for optimizing the dynamic allocation equipment server of the internet of things according to claim 1, wherein the method comprises the following steps: the step 4 comprises the following steps:
step 4.1: selecting a server to receive an allocation request message sent by 1 or more devices;
step 4.2: selecting a server to verify the accessibility of the equipment, if the equipment can be accessed, accessing the equipment, and sending a receiving request message to the equipment, otherwise, sending a refusing request message;
step 4.3: and the selection server sorts the equipment based on a preset sorting rule.
5. The method for optimizing the dynamic allocation equipment server of the internet of things according to claim 3, wherein the method comprises the following steps: the step 5 comprises the following steps:
step 5.1: selecting a server to send an identification bit identification request message to an equipment server;
step 5.2: the equipment server sends the corresponding identification bit to a selection server, and the selection server constructs a set for the equipment server which is idle at present or in an accessible state based on the information of the identification bit;
step 5.3: processing the IP of all the equipment servers in the current set to construct a secret key;
step 5.4: sending the processed corresponding keys to the equipment according to the sequencing order;
step 5.5: the selection server sends the key to the device server.
6. The method for optimizing the dynamic allocation equipment server of the internet of things according to claim 5, wherein the method comprises the following steps: in the step 5.3, the processing is Hash calculation.
7. The method for optimizing the dynamic allocation equipment server of the internet of things according to claim 1, wherein the method comprises the following steps: the step 6 comprises the following steps:
step 6.1: the device receiving the key searches a corresponding device server based on the key;
step 6.2: any equipment sends a connection request to a corresponding equipment server, and the equipment server checks the key information after receiving the request;
step 6.3: if the keys are matched, connection is agreed, a connection receiving message is sent to the equipment, the next step is carried out, otherwise, next distribution is waited, and the step 3 is returned;
step 6.4: and the equipment is successfully connected with the equipment server and is separated from the selection server.
8. The method for optimizing the dynamic allocation equipment server of the internet of things according to claim 7, wherein the method comprises the following steps: in step 6, if the device does not receive the information returned by the device server within the preset time, the device retries, and after the device retries for three times, the device does not receive the information, fails in allocation, and waits for next allocation.
9. The method for optimizing the dynamic allocation equipment server of the internet of things according to claim 7, wherein the method comprises the following steps: in step 6.4, if the connection is successful, the device server modifies the corresponding identification bit.
CN201911384851.XA 2019-12-28 2019-12-28 Optimization method for dynamic allocation equipment server of Internet of things Active CN111147591B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911384851.XA CN111147591B (en) 2019-12-28 2019-12-28 Optimization method for dynamic allocation equipment server of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911384851.XA CN111147591B (en) 2019-12-28 2019-12-28 Optimization method for dynamic allocation equipment server of Internet of things

Publications (2)

Publication Number Publication Date
CN111147591A true CN111147591A (en) 2020-05-12
CN111147591B CN111147591B (en) 2023-04-07

Family

ID=70521318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911384851.XA Active CN111147591B (en) 2019-12-28 2019-12-28 Optimization method for dynamic allocation equipment server of Internet of things

Country Status (1)

Country Link
CN (1) CN111147591B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102395212A (en) * 2011-11-18 2012-03-28 百度在线网络技术(北京)有限公司 Gateway access control method, system and device
CN103095691A (en) * 2012-12-31 2013-05-08 清华大学 Method of controlling access to Internet of things nodes
CN103428260A (en) * 2012-05-22 2013-12-04 三星Sds株式会社 System and method for allocating server to terminal and efficiently delivering messages to the terminal
CN107659406A (en) * 2016-07-25 2018-02-02 华为技术有限公司 A kind of resource operating methods and device
CN107809342A (en) * 2017-12-13 2018-03-16 深圳市智物联网络有限公司 A kind of load-balancing method and load balancing apparatus
CN109274584A (en) * 2018-09-28 2019-01-25 乐蜜有限公司 Cut-in method, device, client device and the storage medium of access server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102395212A (en) * 2011-11-18 2012-03-28 百度在线网络技术(北京)有限公司 Gateway access control method, system and device
CN103428260A (en) * 2012-05-22 2013-12-04 三星Sds株式会社 System and method for allocating server to terminal and efficiently delivering messages to the terminal
CN103095691A (en) * 2012-12-31 2013-05-08 清华大学 Method of controlling access to Internet of things nodes
CN107659406A (en) * 2016-07-25 2018-02-02 华为技术有限公司 A kind of resource operating methods and device
CN107809342A (en) * 2017-12-13 2018-03-16 深圳市智物联网络有限公司 A kind of load-balancing method and load balancing apparatus
CN109274584A (en) * 2018-09-28 2019-01-25 乐蜜有限公司 Cut-in method, device, client device and the storage medium of access server

Also Published As

Publication number Publication date
CN111147591B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN100389392C (en) Method for realizing load uniform in clustering system, system and storage controller
CN110505319A (en) A kind of RS485 is from device address auto-allocation method and system
US5991828A (en) System for automatically connecting portable device to network using network environment information including domain name of naming device and community name of network management protocol
US7724747B2 (en) Methods and apparatus for creating addresses
US20070230477A1 (en) Method and system for managing computational resources
US20020199000A1 (en) Method and system for managing parallel data transfer through multiple sockets to provide scalability to a computer network
CN107786593A (en) Task deployment method, example deployment method, apparatus and equipment
CN103458013A (en) Streaming media server cluster load balancing system and balancing method
CN113014666B (en) Block chain protocol stack architecture method, system, equipment and storage medium
CN113014611B (en) Load balancing method and related equipment
CN106131244A (en) A kind of message transmitting method and device
CN105376347A (en) IP address allocation method and system
CN103581040A (en) Server distributing device and server distributing method
CN111314394B (en) Resource publishing method, device, equipment and storage medium of Internet of things
CN111147591B (en) Optimization method for dynamic allocation equipment server of Internet of things
CN110928687B (en) CPU resource allocation method and test equipment
CN104780120A (en) Method and device for transmitting files in local area network
CN113177179A (en) Data request connection management method, device, equipment and storage medium
CN111010425A (en) Server connection method, load balancing equipment and electronic equipment
US8549530B1 (en) System and method for distributed login with thread transfer to a dedicated processor node based on one or more identifiers
US20020181449A1 (en) Method and apparatus for determining connections in a crossbar switch
US20140351376A1 (en) Content distribution method, system and server
CN112799849A (en) Data processing method, device, equipment and storage medium
CN110650008A (en) Multi-port FC encryption method and device
CN113873036B (en) Communication method, device, server 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
GR01 Patent grant
GR01 Patent grant