CN117579694A - Ubiquitous power internet of things-based data sharing management method and system - Google Patents

Ubiquitous power internet of things-based data sharing management method and system Download PDF

Info

Publication number
CN117579694A
CN117579694A CN202410050272.6A CN202410050272A CN117579694A CN 117579694 A CN117579694 A CN 117579694A CN 202410050272 A CN202410050272 A CN 202410050272A CN 117579694 A CN117579694 A CN 117579694A
Authority
CN
China
Prior art keywords
data
server
storage
sending
time delay
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
CN202410050272.6A
Other languages
Chinese (zh)
Other versions
CN117579694B (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.)
Ningbo Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
Ningbo Power Supply Co of State Grid Zhejiang Electric Power 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 Ningbo Power Supply Co of State Grid Zhejiang Electric Power Co Ltd filed Critical Ningbo Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Priority to CN202410050272.6A priority Critical patent/CN117579694B/en
Publication of CN117579694A publication Critical patent/CN117579694A/en
Application granted granted Critical
Publication of CN117579694B publication Critical patent/CN117579694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • 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
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/35Utilities, e.g. electricity, gas or water

Abstract

The invention belongs to the technical field of data processing, and particularly relates to a data sharing management method and system based on ubiquitous power Internet of things. The invention can improve the efficiency of collecting data.

Description

Ubiquitous power internet of things-based data sharing management method and system
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a ubiquitous electric power internet of things-based data sharing management method and system.
Background
Along with the development of the modern society, the demand of electric power is more vigorous, and simultaneously, higher requirements are also put forward on an electric power system, and the modern electric power system needs a faster response speed, and various electric power data are collected and shared in real time and rapidly, so that the purposes of real-time fault detection and rapid response are achieved. Similar prior art publication number CN 108366051B's chinese invention patent, this invention patent provides a thing networking perception data sharing system, including collection device, shared storage device and server, wherein: the acquisition equipment is used for acquiring the sensing data and transmitting the sensing data to the shared storage equipment in the form of a communication protocol and a data protocol of the acquisition equipment; the shared storage device is used for receiving the sensing data sent by the acquisition device, carrying out standardization processing on the sensing data to obtain unified data, storing the unified data to the local of the shared storage device and sending the unified data to the server; the server is used for receiving the unified data and managing the perception data and the shared storage device. Similar prior art also discloses a Chinese patent with publication number of CN115145989B, and discloses a data sharing method and device based on an Internet of things data model, wherein the method comprises the following steps: heterogeneous data information is obtained; carrying out structural integration processing on heterogeneous data information by using a preset data model of the Internet of things to obtain identification data information; and responding to the user sharing requirement, and carrying out data sharing on the identification data information. However, the above two methods do not consider the problem of improving the data collection efficiency when collecting data, and the invention provides a ubiquitous data sharing management method and system for the electric power internet of things.
Disclosure of Invention
According to the invention, a plurality of intermediate servers are arranged between the intelligent sensor and the remote server, the round trip time of sending data between the intelligent sensor and each intermediate server is obtained, the intermediate server with the smallest sending time delay is inquired as a target server, the intelligent sensor adds operation identification to the data to be sent and then sends the data to the target server, the target server judges whether to execute storage operation or sending operation according to the operation identification to each received data, a data access interface is arranged after the remote server receives and stores the data, the user intelligent terminal accesses the data through the data access interface, the remote server also sets corresponding access authority to the user intelligent terminal, and after receiving an access request of the user intelligent terminal, the corresponding data is sent to the user intelligent terminal according to the access authority. The invention can improve the efficiency of collecting data.
In order to achieve the above-mentioned purpose, the present invention provides a ubiquitous power internet of things data sharing management method, which is implemented mainly by executing the following steps:
step S1, setting a plurality of intermediate servers between an intelligent sensor and a remote server, wherein the intelligent sensor sends test data to each intermediate server, acquiring round trip time length of the data sent by the intelligent sensor and each intermediate server, wherein the round trip time length is time starting when the intelligent sensor sends the test data to the intermediate server, the intermediate server sends acknowledgement information to the intelligent sensor after receiving the test data, the time length elapsed after finishing the time counting after the intelligent sensor receives the acknowledgement information, the round trip time length is called sending time delay, acquiring a server ID (identity) of the intermediate server corresponding to the minimum sending time delay and the minimum sending time delay, and sending the sensor ID of the intelligent sensor, the minimum sending time delay and the server ID to a first storage module, and storing the first storage module in an associated manner;
Step S2, inquiring an intermediate server with the minimum transmission time delay from the first storage module before the intelligent sensor transmits data as a target server, if a plurality of intermediate servers with the minimum transmission time delay exist, arbitrarily selecting one intermediate server from the plurality of intermediate servers with the minimum transmission time delay as the target server, adding an operation identifier to the data to be transmitted by the intelligent sensor, wherein the operation identifier comprises a storage operation and a transmission operation, and continuously transmitting the data to the target server;
step S3, after the target server receives the data sent by the intelligent sensor, judging whether to execute a storage operation or a sending operation according to the operation identification for each received data, wherein the storage operation is to store the data in a storage area of the target server, and the sending operation is to send the data to the remote server;
and S4, the remote server receives and stores the data, a data access interface is set, the user intelligent terminal accesses the data through the data access interface, the remote server also sets corresponding access rights for the user intelligent terminal, and after receiving an access request of the user intelligent terminal, the remote server sends corresponding data to the user intelligent terminal according to the access rights.
As a preferred embodiment of the present invention, in the step S2, during the continuous transmission of data to the target server, the following steps are further performed:
and if the transmission time delay is longer than a preset first time length, the intelligent sensor transmits test data to each intermediate server again, acquires new transmission time delay of the intelligent sensor and each intermediate server, acquires new minimum transmission time delay and a new server ID of the intermediate server corresponding to the minimum transmission time delay, updates the new minimum transmission time delay and the new server ID into the first storage module, and selects the intermediate server with the minimum transmission time delay from the first storage module as a new target server when transmitting data next time, and then transmits data to the new target server.
As a preferred embodiment of the present invention, in the step S3, after determining whether to perform the storing operation or the transmitting operation, the following steps are performed:
and if the judging result is that the storage operation is executed, firstly storing the data in a cache area of the target server, judging the size of the residual storage space of the storage area, if the residual storage space is larger than or equal to a preset threshold value, storing the data in the storage area of the target server, then emptying the cache area, further acquiring the storage information of the data, wherein the storage information comprises a data ID, a data generation time, a sensor ID and a server ID, storing the storage information in a second storage module, if the residual storage space is smaller than the preset threshold value, transmitting all storage area data in the storage area of the target server to the remote server, deleting the storage area data, notifying the second storage module, deleting the storage information corresponding to the storage area data, storing the data stored in the cache area into the storage area, and then emptying the cache area, and if the judging result is that the transmission operation is executed, transmitting the data to the remote server.
As a preferred embodiment of the present invention, the process of transmitting the data to the remote server includes the steps of:
and grouping all the intermediate servers in advance, selecting one of all the intermediate servers which are divided into the same group as a proxy server at will, acquiring the proxy servers of the group where the proxy servers are located when other intermediate servers in the same group execute transmitting operation, transmitting data to be transmitted to the proxy servers, and transmitting the data to be transmitted to the remote servers by the proxy servers.
As a preferred embodiment of the present invention, the process of selecting one more proxy server from all the intermediate servers divided into the same group includes the steps of:
And after the last proxy server starts to work, counting the data quantity collected by other intermediate servers which are divided into the same group every preset period, generating a histogram of the data quantity collected by the statistics of a plurality of intermediate servers after the last proxy server finishes working, wherein the histogram takes time as an abscissa and the data quantity as an ordinate, takes the preset period as a statistic unit, fitting the histogram of each intermediate server into a curve, calculating the area of an area between the curve, the abscissa and the ordinate to obtain the evaluation value of each intermediate server in the working period of the last proxy server, comparing the evaluation values of all the intermediate servers, finding the intermediate server corresponding to the minimum evaluation value, and taking the intermediate server corresponding to the minimum evaluation value as the next proxy server.
As a preferred technical solution of the present invention, in the step S4, a process of sending corresponding data to the user intelligent terminal includes the following steps:
and the remote server judges whether the data of the access request are stored in a storage area of the remote server according to the access request, if yes, the data of the access request are sent to the user intelligent terminal, and if not, the remote server inquires a server ID corresponding to the data of the access request from a second storage module, acquires a corresponding intermediate server according to the server ID, then sends a data request to the intermediate server, and the intermediate server sends the corresponding data to the remote server according to the data request.
As a preferred technical solution of the present invention, the intermediate server sends corresponding data to the remote server according to the data request, and then performs the following steps:
the intermediate server deletes the data transmitted to the remote server from the corresponding storage area, and the intermediate server also notifies the second storage module to delete the storage information of the data.
The invention also provides a data sharing management system of the ubiquitous electric power Internet of things, which comprises the following modules:
the intelligent sensor is used for sending test data to each intermediate server, acquiring round trip time length of the intelligent sensor and the data sent by each intermediate server, wherein the round trip time length is time starting when the intelligent sensor sends the test data to the intermediate server, the intermediate server sends acknowledgement information to the intelligent sensor after receiving the test data, the round trip time length is time length after finishing timing after the intelligent sensor receives the acknowledgement information, the round trip time length is called as sending time delay, acquiring a server ID of the intermediate server corresponding to the minimum sending time delay and the minimum sending time delay, sending the sensor ID of the intelligent sensor, the minimum sending time delay and the server ID to the first storage module, and storing the information by the first storage module; the intelligent sensor is further used for inquiring an intermediate server with the minimum transmission time delay from the first storage module before transmitting data as a target server, if a plurality of intermediate servers with the minimum transmission time delay exist, selecting one intermediate server from the plurality of intermediate servers with the minimum transmission time delay as the target server, adding an operation identifier to the data to be transmitted, wherein the operation identifier comprises a storage operation and a transmission operation, and continuously transmitting the data to the target server;
The target server is used for receiving the data sent by the intelligent sensor, judging whether to execute a storage operation or a sending operation according to the operation identification for each received data, wherein the storage operation is to store the data in a storage area of the target server, and the sending operation is to send the data to the remote server;
the remote server is used for receiving and storing the data, setting a data access interface, enabling the user intelligent terminal to access the data through the data access interface, setting corresponding access rights for the user intelligent terminal, and sending the corresponding data to the user intelligent terminal according to the access rights after receiving the access request of the user intelligent terminal.
Compared with the prior art, the invention has the following beneficial effects:
in the invention, a plurality of intermediate servers are arranged between an intelligent sensor and a remote server, the round trip time of data transmission between the intelligent sensor and each intermediate server is obtained, the intermediate server with the smallest transmission time delay is inquired as a target server, the intelligent sensor adds an operation identifier to the data to be transmitted and then transmits the data to the target server, the target server judges whether to execute a storage operation or a transmission operation according to the operation identifier to each received data, a data access interface is arranged after the remote server receives and stores the data, a user intelligent terminal accesses the data through the data access interface, the remote server also sets corresponding access rights for the user intelligent terminal, and after receiving an access request of the user intelligent terminal, the corresponding data is transmitted to the user intelligent terminal according to the access rights. The invention can improve the efficiency of collecting data.
Drawings
For a clearer description of the technical solutions of the present invention, the drawings that are needed in the description will be briefly introduced below, it being obvious that the drawings in the description below are only some of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art;
FIG. 1 is a flow chart of steps of a ubiquitous electric power Internet of things-based data sharing management method according to the present invention;
FIG. 2 is a block diagram of a ubiquitous electric power Internet of things-based data sharing management system;
shown in fig. 2: 101. an intelligent sensor; 102. a target server; 103. and a remote server.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of the present application.
The invention provides a ubiquitous power internet of things-based data sharing management method which is mainly realized by executing the following steps:
step S1, setting a plurality of intermediate servers between an intelligent sensor and a remote server, enabling the intelligent sensor to send test data to each intermediate server, obtaining round trip time length of the intelligent sensor and the data sent by each intermediate server, wherein the round trip time length is time starting when the intelligent sensor sends the test data to the intermediate server, sending confirmation information to the intelligent sensor after receiving the test data, ending time length after the intelligent sensor receives the confirmation information, calling the round trip time length as sending time delay, obtaining server IDs of the intermediate servers corresponding to the minimum sending time delay and the minimum sending time delay, sending the sensor IDs of the intelligent sensor, the minimum sending time delay and the server IDs to a first storage module, and storing the sensor IDs, the minimum sending time delay and the server IDs in an associated mode by the first storage module.
Specifically, the intelligent sensor 101 and the remote server 103 are directly connected to collect data of the intelligent sensor 101, because the number of the intelligent sensors 101 is very large, the remote server 103 and the intelligent sensor 101 can directly communicate to greatly increase communication pressure of the remote server 103, so that a plurality of intermediate servers are arranged between the intelligent sensor 101 and the remote server 103, the intermediate servers collect data of the intelligent sensor 101, then the intermediate servers send the data to the remote server 103, the communication pressure of the remote server 103 is relieved, the intelligent sensor 101 sends test data to each intermediate server before transmitting the data to the intermediate servers, round trip time is used for acquiring round trip time length for communication with each intermediate server, the intermediate server with the shortest communication time is selected according to the round trip time length, the round trip time length is the time length from when the intelligent sensor 101 sends the test data to the intermediate server, after receiving the test data, acknowledgement information is sent to the intelligent sensor 101, the round trip time length is the time length after the intelligent sensor 101 receives the acknowledgement information, the round trip time is finished, the round trip time is the time length after the intelligent sensor 101 receives the acknowledgement information, the round trip time is finished, the round trip time is the time, the time delay, the minimum delay is the time delay, and the minimum delay is the minimum, the round trip time delay is the acknowledgement time is the time delay, and the first and the round trip time delay is the time delay, the first and the intermediate server 101 and the last the time, the round trip time and the acknowledgement time and the last time, the acknowledgement time.
Step S2, inquiring an intermediate server with the minimum transmission time delay from a first storage module before the intelligent sensor transmits data as a target server, if a plurality of intermediate servers with the minimum transmission time delay exist, arbitrarily selecting one intermediate server from the plurality of intermediate servers with the minimum transmission time delay as the target server, adding an operation identifier to the data to be transmitted by the intelligent sensor, wherein the operation identifier comprises a storage operation and a transmission operation, and continuously transmitting the data to the target server.
Specifically, in order to send data to the intermediate server more quickly, the intelligent sensor 101 queries the intermediate server with the minimum sending delay from the first storage module as the target server 102, if there are a plurality of intermediate servers with the minimum sending delay, one intermediate server is selected as the target server 102 from the plurality, because some data may need to be timely sent to the remote server 103 and be called in real time, some data does not need to be called in real time and is not sent to the remote server 103, some data need to be forwarded to the remote server 103 by the target server 102 immediately after being sent to the target server 102, and some data may be temporarily stored in the target server 102 and then sent to the remote server 103 as required, so that an operation identifier is added to the data to be sent, the operation identifier includes a storing operation and a sending operation, and then the data is continuously sent to the selected target server 102.
And S3, after the target server receives the data sent by the intelligent sensor, judging whether to execute a storage operation or a sending operation according to the operation identification for each received data, wherein the storage operation is to store the data in a storage area of the target server, and the sending operation is to send the data to a remote server.
Specifically, although an intermediate server is disposed between the intelligent sensor 101 and the remote server 103, since there are a lot of intelligent sensors 101, the same target server 102 may need to communicate with a lot of intelligent sensors 101, and the intelligent sensor 101 may collect data continuously, the amount of data is very large, if the intermediate server receives data and then sends the data to the remote server 103 in the order of receiving, it becomes slower to transmit some data that needs to be sent to the remote server 103 in real time, in order to increase the efficiency of data transmission, an operation identifier is added to the data, after the target server 102 receives the data sent by the intelligent sensor 101, it determines whether to perform a storage operation or a sending operation according to an operation identifier corresponding to the data, if the determination result is a storage operation, it indicates that the data does not need to be sent to the remote server 103 in real time, then the data is stored in a storage area of the target server 102, if the determination result is a sending operation, it indicates that the data needs to be sent to the remote server 103 in real time, and the target server 102 sends the data that is identified as a sending operation to the remote server 103 in real time, so that the data that needs to be transmitted to the remote server 103 in real time can be transmitted in real time.
And S4, the remote server receives and stores the data, a data access interface is set, the user intelligent terminal accesses the data through the data access interface, the remote server also sets corresponding access rights for the user intelligent terminal, and after receiving an access request of the user intelligent terminal, the remote server sends the corresponding data to the user intelligent terminal according to the access rights.
Specifically, the remote server 103 receives the data and stores the data, then analyzes and sorts the data, the remote server 103 sets a data access interface to provide data sharing service for other users, if the user wants to access the data, the user needs to send an access request to the remote server 103, the access request needs to include own identity information, the remote server 103 obtains the identity information of the user after receiving the access request, the legitimacy of the user is verified, if the user is legal, a corresponding access authority is set, for example, a certain statistics department wants to access the power use data of urban residents a, the statistics department sends own identity information to prove that the user is the statistics department, the remote server 103 verifies the identity information of the statistics department through a department query website, if the user is really a legal user, the statistics department knows that the power use data of urban residents a need to be obtained according to the requirement, and the statistics department only sets the authority of the power use data of the city a, and the data can be safely shared by effectively associating the shared data.
Further, in step S2, during the continuous process of sending data to the target server 102, the following steps are further performed:
and when the data is transmitted next time, selecting the intermediate server with the minimum transmission delay from the first storage module as a new target server 102, and then transmitting the data to the new target server 102.
Specifically, in order to keep the transmission of data at a high efficiency, the intelligent sensor 101 acquires the transmission delay of the transmission data every time the data is transmitted, and if the transmission delay is longer than the preset first duration, it is indicated that the communication speed between the intelligent sensor 101 and the target server 102 is low, and if the number of intelligent sensors 101 communicating with the same target server 102 is increased, the communication pressure of the target server 102 is possibly increased, so that the communication speed is reduced, so that at this time, the intelligent sensor 101 transmits the test data to each intermediate server again, acquires the latest transmission delay of the intelligent sensor 101 and each intermediate server, and updates the latest minimum transmission delay and the corresponding server ID stored in the first storage module, and when the data is transmitted next, the intermediate server with the smallest transmission delay is selected as the new target server 102 according to the new transmission delay, and then the data is transmitted to the new target server 102, so that the communication state between the intelligent sensor 101 and the target server 102 is kept at the optimum state all the time.
Further, in step S3, after determining whether to perform the storing operation or the transmitting operation, the following steps are performed:
if the judgment result is that the storage operation is executed, firstly storing the data in the cache area of the target server 102, judging the size of the residual storage space of the storage area, if the residual storage space is larger than or equal to a preset threshold value, storing the data in the storage area of the target server 102, then emptying the cache area, further acquiring the storage information of the data, wherein the storage information comprises a data ID, a data generation time, a sensor ID and a server ID, storing the storage information in the second storage module, if the residual storage space is smaller than the preset threshold value, transmitting all storage area data in the storage area of the target server 102 to the remote server 103, then deleting the storage area data, notifying the second storage module, deleting the storage information corresponding to the storage area data, storing the data in the cache area to the storage area, and then emptying the cache area, and if the judgment result is that the transmission operation is executed, transmitting the data to the remote server 103.
Specifically, the storage area of the intermediate server is generally not very large, after some data is continuously stored, the situation that the storage area is insufficient can occur, in order to enable the intermediate server to continuously and stably work, when the result is judged to be storage operation according to the operation identifier, the data is temporarily stored in the cache area, the cache area is used for temporarily storing the data just received, the data needs to be stored in the storage area, the size of the remaining storage space of the storage area of the target server 102 is acquired before the data is stored, if the remaining storage space is greater than or equal to a preset threshold value, the data in the cache area is stored in the storage area, the cache area is emptied, the storage information of the data is acquired, the storage information is stored in the second storage module, wherein the storage information comprises a data ID, a data generation time, a sensor ID and a server ID, the data generation time is used for recording the generation time of the data, the sensor ID is used for recording who generates the data, the server ID is used for recording which intermediate server is used for recording the data, the data is convenient to acquire the data when the data is required to be acquired later, for a company, for acquiring the data when the data is required to be acquired later, for a month or a certain electricity use condition, the sensor a is required for acquiring the data, the data is required to be acquired later, the data is stored in the corresponding to the storage area, the storage area is further is stored in the second storage area, when the storage area is required to be stored in the second storage area, and the storage area is required to be correspondingly and the storage time is required to be deleted, when the data is stored in the second storage module, and the storage module is stored, when the storage time is required to be stored, and the storage time and when the data is required to be stored, and the storage time and can be stored, and stable when the data is stored, and the data and can be stored, and when the data and, the server will not malfunction or lose data because the storage area stores too much data.
Further, the process of transmitting data to the remote server 103 includes the following steps:
and grouping all the intermediate servers in advance, selecting one intermediate server from all the intermediate servers which are divided into the same group as a proxy server, acquiring the proxy server of the group of the other intermediate servers in the same group when the other intermediate servers execute the transmitting operation, transmitting data to be transmitted to the proxy server, forwarding the data to be transmitted to the remote server 103 by the proxy server, judging whether a preset condition is met after the proxy server is selected for each data forwarding, and selecting one intermediate server from all the intermediate servers which are divided into the same group as the proxy server if the preset condition is met, and continuing to forward the data for the other intermediate servers which are divided into the same group by the current proxy server if the preset condition is not met.
Specifically, because the number of the intelligent sensors 101 is relatively large, the number of the intermediate servers needed by the same is relatively large, the plurality of intermediate servers are simultaneously and directly communicated with the remote server 103, the communication pressure of the remote server 103 is increased, so that the plurality of intermediate servers are grouped, one intermediate server is arbitrarily selected from all the intermediate servers divided into the same group to serve as a proxy server, the proxy server is used as a transfer station to connect other intermediate servers in the same group with the remote server 103, when the intermediate servers need to send data to the remote server 103, the proxy server obtains the proxy server in the group, the data to be sent is sent to the proxy server, and after the proxy server receives the data, the data is sent to the remote server 103, so that the communication load of the proxy server is relatively large, if the communication load is always in a state with high pressure, the proxy server is easy to fail, so that preset conditions, such as preset a time length is 1 hour, after the proxy server is selected, whether the data is forwarded reaches preset conditions or not is judged, if the preset conditions are reached, for example, if the preset conditions have been already passed through 1 hour, the preset conditions are switched to the other intermediate servers in the same group, if the preset conditions are not reached, the other data can be continuously transmitted through the other intermediate servers, and the communication conditions can be further relieved, and the communication can be continued through the other conditions.
Further, a process of selecting one from all the intermediate servers divided into the same group as a proxy server, includes the steps of:
after a previous proxy server starts to work, counting the data quantity collected by other intermediate servers which are divided into the same group every preset period, generating a histogram of the data quantity collected by the statistics of a plurality of intermediate servers after the previous proxy server finishes working, wherein the histogram takes time as an abscissa, takes the data quantity as an ordinate, takes the preset period as a statistic unit, fitting the histogram of each intermediate server into a curve, calculating the area of a region between the curve, the abscissa and the ordinate to obtain the evaluation value of each intermediate server in the working period of the previous proxy server, comparing the evaluation values of all the intermediate servers, finding the intermediate server corresponding to the minimum evaluation value, and taking the intermediate server corresponding to the minimum evaluation value as the next proxy server.
Specifically, in order to select a proxy server capable of forwarding data more efficiently, after the proxy server is selected for the first time, every preset period may be set along with the time of switching the proxy server, and assuming that the proxy server is switched every 1 hour, the preset period may be set to 1 minute, 3 minutes or 5 minutes, and the data volume collected by other intermediate servers that are classified into the same group is counted, after the last proxy server finishes working, that is, after reaching the preset condition of switching the proxy server, a histogram of the data volume collected by the plurality of intermediate servers is generated, the abscissa of the histogram is time, the statistical unit is the preset period, the ordinate is the data volume collected by the intermediate servers in the preset period, and by fitting the histogram to a curve, the area of an area formed between the curve and the abscissa and the ordinate is calculated and used as an evaluation value of each intermediate server, wherein the area of the area and the data volume of the intermediate server are in proportion, the smaller the communication pressure of the corresponding intermediate server is smaller, so that after the evaluation value of each intermediate server is compared, the minimum value is obtained, the corresponding intermediate server can be evaluated as the intermediate server with higher evaluation value, and the next intermediate server can forward data more efficiently.
Note that, since the intermediate servers that are divided into the same group are alternately used as proxy servers, when the evaluation values of the other intermediate servers that are divided into the same group are counted, if the intermediate servers have already been used as proxy servers in the current round, the corresponding evaluation values are not counted, and thus the purpose of alternately using the intermediate servers that are divided into the same group as proxy servers is achieved.
Further, the method is characterized in that in step S4, the process of sending corresponding data to the user intelligent terminal includes the following steps:
the remote server 103 determines, according to the access request, whether the data of the access request is stored in the storage area of the remote server 103, and if yes, sends the data of the access request to the user intelligent terminal, and if not, the remote server 103 queries a server ID corresponding to the data of the access request from the second storage module, obtains a corresponding intermediate server according to the server ID, and then sends the data request to the intermediate server, and the intermediate server sends the corresponding data to the remote server 103 according to the data request.
Specifically, since the remote server 103 does not store all data, after the remote server 103 receives the access request, it is determined whether the data of the access request exists in the storage area of the remote server 103 according to the access request, if yes, the data of the access request is sent to the user intelligent terminal, if not, the data of the access request is described to be stored in the storage area of the intermediate server, at this time, the server ID stored in the data is queried from the second storage module, the corresponding intermediate server is obtained according to the server ID, then the data request is sent to the intermediate server, the corresponding data is sent to the remote server 103 after the intermediate server receives the data request, and the data required by the user is quickly obtained by the remote server 103 through the above scheme, thereby being quickly sent to the user.
Further, after the intermediate server sends the corresponding data to the remote server 103 according to the data request, the following steps are further performed:
the intermediate server deletes the data transmitted to the remote server 103 from the corresponding storage area, and the intermediate server also notifies the second storage module to delete the storage information of the data.
Specifically, after the intermediate server sends the data to the remote server 103, the remote server 103 stores the data in the storage area of the remote server 103, and in order to reduce the repeated storage of the data, the intermediate server deletes the corresponding data in the storage area of the intermediate server, and also notifies the second storage module to delete the storage information corresponding to the data.
According to another aspect of the embodiment of the present invention, referring to fig. 2, there is further provided a ubiquitous power internet of things-based data sharing management system, including an intelligent sensor 101, a target server 102 and a remote server 103, for implementing a ubiquitous power internet of things-based data sharing management method as described above, where specific functions of each module are as follows:
the intelligent sensor 101 is configured to send test data to each intermediate server, obtain round trip time length of the data sent by the intelligent sensor 101 and each intermediate server, where the round trip time length is a time length from when the intelligent sensor 101 sends the test data to the intermediate server, send acknowledgement information to the intelligent sensor 101 after receiving the test data, end a time length elapsed after the intelligent sensor 101 receives the acknowledgement information, refer to the round trip time length as a sending time delay, obtain a server ID of the intermediate server corresponding to the minimum sending time delay and the minimum sending time delay, send the sensor ID, the minimum sending time delay and the server ID of the intelligent sensor 101 to the first storage module, and store the information associated by the first storage module; the intelligent sensor 101 is further configured to query, before sending data, from the first storage module, an intermediate server with a minimum sending delay as a target server 102, if there are multiple intermediate servers with a minimum sending delay, arbitrarily select one intermediate server from the multiple intermediate servers with a minimum sending delay as the target server 102, add an operation identifier to the data to be sent, where the operation identifier includes a storage operation and a sending operation, and then continuously send the data to the target server 102;
A target server 102, configured to receive the data sent by the intelligent sensor 101, and then determine, for each received data, whether to perform a storage operation or a sending operation according to the operation identifier, where the storage operation is to store the data in a storage area of the target server 102, and the sending operation is to send the data to the remote server 103;
the remote server 103 is configured to receive and store data, set a data access interface, access the data through the data access interface by the user intelligent terminal, set a corresponding access right for the user intelligent terminal by the remote server 103, and send the corresponding data to the user intelligent terminal according to the access right after receiving the access request of the user intelligent terminal.
In summary, the method for managing data sharing based on ubiquitous power internet of things includes setting a plurality of intermediate servers between the intelligent sensor 101 and the remote server 103, obtaining round trip time of sending data by the intelligent sensor 101 and each intermediate server, querying the intermediate server with the smallest sending time delay as the target server 102, adding an operation identifier to the data to be sent by the intelligent sensor 101, sending the data to the target server 102, judging whether to execute a storage operation or a sending operation by the target server 102 according to the operation identifier, setting a data access interface after receiving and storing the data by the remote server 103, accessing the data by the user intelligent terminal through the data access interface, setting corresponding access rights by the remote server 103, and sending the corresponding data to the user intelligent terminal according to the access rights after receiving an access request of the user intelligent terminal. The invention can improve the efficiency of collecting data.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of computer programs, which may be stored on a non-transitory computer readable storage medium, and which, when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and for brevity, all of the possible combinations of the technical features of the above embodiments are not described, however, they should be considered as the scope of the description of the present specification as long as there is no contradiction between the combinations of the technical features.
The foregoing examples have been presented to illustrate only a few embodiments of the invention and are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (8)

1. The data sharing management method based on the ubiquitous power internet of things is characterized by comprising the following steps of:
Step S1, setting a plurality of intermediate servers between an intelligent sensor and a remote server, wherein the intelligent sensor sends test data to each intermediate server, acquiring round trip time length of the data sent by the intelligent sensor and each intermediate server, wherein the round trip time length is time starting when the intelligent sensor sends the test data to the intermediate server, the intermediate server sends acknowledgement information to the intelligent sensor after receiving the test data, the time length elapsed after finishing the time counting after the intelligent sensor receives the acknowledgement information, the round trip time length is called sending time delay, acquiring a server ID (identity) of the intermediate server corresponding to the minimum sending time delay and the minimum sending time delay, and sending the sensor ID of the intelligent sensor, the minimum sending time delay and the server ID to a first storage module, and storing the first storage module in an associated manner;
step S2, inquiring an intermediate server with the minimum transmission time delay from the first storage module before the intelligent sensor transmits data as a target server, if a plurality of intermediate servers with the minimum transmission time delay exist, arbitrarily selecting one intermediate server from the plurality of intermediate servers with the minimum transmission time delay as the target server, adding an operation identifier to the data to be transmitted by the intelligent sensor, wherein the operation identifier comprises a storage operation and a transmission operation, and continuously transmitting the data to the target server;
Step S3, after the target server receives the data sent by the intelligent sensor, judging whether to execute a storage operation or a sending operation according to the operation identification for each received data, wherein the storage operation is to store the data in a storage area of the target server, and the sending operation is to send the data to the remote server;
and S4, the remote server receives and stores the data, a data access interface is set, the user intelligent terminal accesses the data through the data access interface, the remote server also sets corresponding access rights for the user intelligent terminal, and after receiving an access request of the user intelligent terminal, the remote server sends corresponding data to the user intelligent terminal according to the access rights.
2. The method for managing data sharing based on ubiquitous power internet of things according to claim 1, wherein in the step S2, in the process of continuously transmitting data to the target server, the following steps are further performed:
and if the transmission time delay is longer than a preset first time length, the intelligent sensor transmits test data to each intermediate server again, acquires new transmission time delay of the intelligent sensor and each intermediate server, acquires new minimum transmission time delay and a new server ID of the intermediate server corresponding to the minimum transmission time delay, updates the new minimum transmission time delay and the new server ID into the first storage module, and selects the intermediate server with the minimum transmission time delay from the first storage module as a new target server when transmitting data next time, and then transmits data to the new target server.
3. The method for managing data sharing based on ubiquitous power internet of things according to claim 1, wherein in the step S3, after judging whether to perform the storing operation or the transmitting operation, the following steps are performed:
and if the judging result is that the storage operation is executed, firstly storing the data in a cache area of the target server, judging the size of the residual storage space of the storage area, if the residual storage space is larger than or equal to a preset threshold value, storing the data in the storage area of the target server, then emptying the cache area, further acquiring the storage information of the data, wherein the storage information comprises a data ID, a data generation time, a sensor ID and a server ID, storing the storage information in a second storage module, if the residual storage space is smaller than the preset threshold value, transmitting all storage area data in the storage area of the target server to the remote server, deleting the storage area data, notifying the second storage module, deleting the storage information corresponding to the storage area data, storing the data stored in the cache area into the storage area, and then emptying the cache area, and if the judging result is that the transmission operation is executed, transmitting the data to the remote server.
4. The data sharing management method based on ubiquitous power internet of things according to claim 3, wherein the process of transmitting the data to the remote server comprises the steps of:
and grouping all the intermediate servers in advance, selecting one of the intermediate servers which are divided into the same group as a proxy server at will, acquiring the proxy servers of the group where the proxy servers are located when other intermediate servers in the same group execute transmitting operation, transmitting data to be transmitted to the proxy servers, and forwarding the data to be transmitted to the remote servers by the proxy servers.
5. The data sharing management method based on ubiquitous power internet of things according to claim 4, wherein a process of selecting one more as a proxy server from all the intermediate servers divided into the same group comprises the steps of:
And after the last proxy server starts to work, counting the data quantity collected by other intermediate servers which are divided into the same group every preset period, generating a histogram of the data quantity collected by the statistics of a plurality of intermediate servers after the last proxy server finishes working, wherein the histogram takes time as an abscissa and the data quantity as an ordinate, takes the preset period as a statistic unit, fitting the histogram of each intermediate server into a curve, calculating the area of an area between the curve, the abscissa and the ordinate to obtain the evaluation value of each intermediate server in the working period of the last proxy server, comparing the evaluation values of all the intermediate servers, finding the intermediate server corresponding to the minimum evaluation value, and taking the intermediate server corresponding to the minimum evaluation value as the next proxy server.
6. The method for managing data sharing based on ubiquitous power internet of things according to claim 3, wherein in the step S4, the process of sending corresponding data to the user intelligent terminal comprises the following steps:
And the remote server judges whether the data of the access request are stored in a storage area of the remote server according to the access request, if yes, the data of the access request are sent to the user intelligent terminal, and if not, the remote server inquires a server ID corresponding to the data of the access request from a second storage module, acquires a corresponding intermediate server according to the server ID, then sends a data request to the intermediate server, and the intermediate server sends the corresponding data to the remote server according to the data request.
7. The method for managing data sharing based on ubiquitous power internet of things according to claim 6, wherein after the intermediate server sends the corresponding data to the remote server according to the data request, the method further comprises the following steps:
the intermediate server deletes the data transmitted to the remote server from the corresponding storage area, and the intermediate server also notifies the second storage module to delete the storage information of the data.
8. A ubiquitous power internet of things-based data sharing management system for implementing the method as claimed in any one of claims 1-7, comprising the following modules:
The intelligent sensor is used for sending test data to each intermediate server, acquiring round trip time length of sending data of the intelligent sensor and each intermediate server, wherein the round trip time length is counted when the intelligent sensor sends the test data to the intermediate server, the intermediate server sends acknowledgement information to the intelligent sensor after receiving the test data, the round trip time length is called as sending time delay after the intelligent sensor receives the acknowledgement information, the server ID of the intermediate server corresponding to the minimum sending time delay is acquired, the sensor ID of the intelligent sensor, the minimum sending time delay and the server ID are sent to a first storage module, the first storage module is used for storing the data in an associated mode, the intermediate server with the minimum sending time delay is used as a target server before sending the data, if a plurality of intermediate servers with the minimum sending time delay are used, one intermediate server is selected from a plurality of intermediate servers with the minimum sending time delay as the target server, the intelligent sensor is selected as the target server, the operation is carried out after the operation of sending the data is carried out, and the operation is carried out, and the operation is carried out;
The target server is used for receiving the data sent by the intelligent sensor, judging whether to execute a storage operation or a sending operation according to the operation identification for each received data, wherein the storage operation is to store the data in a storage area of the target server, and the sending operation is to send the data to the remote server;
the remote server is used for receiving and storing the data, setting a data access interface, enabling the user intelligent terminal to access the data through the data access interface, setting corresponding access rights for the user intelligent terminal, and sending the corresponding data to the user intelligent terminal according to the access rights after receiving the access request of the user intelligent terminal.
CN202410050272.6A 2024-01-15 2024-01-15 Ubiquitous power internet of things-based data sharing management method and system Active CN117579694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410050272.6A CN117579694B (en) 2024-01-15 2024-01-15 Ubiquitous power internet of things-based data sharing management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410050272.6A CN117579694B (en) 2024-01-15 2024-01-15 Ubiquitous power internet of things-based data sharing management method and system

Publications (2)

Publication Number Publication Date
CN117579694A true CN117579694A (en) 2024-02-20
CN117579694B CN117579694B (en) 2024-04-16

Family

ID=89892046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410050272.6A Active CN117579694B (en) 2024-01-15 2024-01-15 Ubiquitous power internet of things-based data sharing management method and system

Country Status (1)

Country Link
CN (1) CN117579694B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055891A1 (en) * 2007-08-22 2009-02-26 International Business Machines Corporation Device, method, and program for relaying data communication
US20140122580A1 (en) * 2011-06-02 2014-05-01 Surfeasy Inc. Proxy based network communications
CN108566614A (en) * 2017-11-06 2018-09-21 南京大学 A kind of end-to-end communication method and system towards time delay tolerant network
CN112543212A (en) * 2019-09-23 2021-03-23 中国科学院声学研究所 System for providing request response exact communication delay guarantee for distributed service
CN112765212A (en) * 2020-12-31 2021-05-07 广州技象科技有限公司 Data processing method and device for transfer equipment
CN113342504A (en) * 2021-07-02 2021-09-03 西安邮电大学 Intelligent manufacturing edge calculation task scheduling method and system based on cache
WO2022268013A1 (en) * 2021-06-24 2022-12-29 华为技术有限公司 Data transmission method and related device
CN115604311A (en) * 2022-09-30 2023-01-13 中南大学(Cn) Cloud fusion computing system and self-adaptive routing method for service network
CN115695395A (en) * 2021-07-30 2023-02-03 西门子(中国)有限公司 Message queue telemetry transmission network access method, controller and gateway
CN115941604A (en) * 2022-11-15 2023-04-07 中国银行股份有限公司 Flow distribution method, device, equipment, storage medium and program product
WO2023147459A2 (en) * 2022-01-28 2023-08-03 Securereview, Inc. Systems and methods for monitoring the security of a computer session
CN116684476A (en) * 2023-06-13 2023-09-01 内蒙古殊征科技有限公司 Informationized remote management system and method based on big data

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055891A1 (en) * 2007-08-22 2009-02-26 International Business Machines Corporation Device, method, and program for relaying data communication
US20140122580A1 (en) * 2011-06-02 2014-05-01 Surfeasy Inc. Proxy based network communications
CN108566614A (en) * 2017-11-06 2018-09-21 南京大学 A kind of end-to-end communication method and system towards time delay tolerant network
CN112543212A (en) * 2019-09-23 2021-03-23 中国科学院声学研究所 System for providing request response exact communication delay guarantee for distributed service
CN112765212A (en) * 2020-12-31 2021-05-07 广州技象科技有限公司 Data processing method and device for transfer equipment
WO2022268013A1 (en) * 2021-06-24 2022-12-29 华为技术有限公司 Data transmission method and related device
CN113342504A (en) * 2021-07-02 2021-09-03 西安邮电大学 Intelligent manufacturing edge calculation task scheduling method and system based on cache
CN115695395A (en) * 2021-07-30 2023-02-03 西门子(中国)有限公司 Message queue telemetry transmission network access method, controller and gateway
WO2023147459A2 (en) * 2022-01-28 2023-08-03 Securereview, Inc. Systems and methods for monitoring the security of a computer session
CN115604311A (en) * 2022-09-30 2023-01-13 中南大学(Cn) Cloud fusion computing system and self-adaptive routing method for service network
CN115941604A (en) * 2022-11-15 2023-04-07 中国银行股份有限公司 Flow distribution method, device, equipment, storage medium and program product
CN116684476A (en) * 2023-06-13 2023-09-01 内蒙古殊征科技有限公司 Informationized remote management system and method based on big data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王冠雄;蔡龙腾;: "6LoWPAN无线传感网性能测试系统设计与实现", 广东通信技术, no. 03, 15 March 2016 (2016-03-15) *

Also Published As

Publication number Publication date
CN117579694B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN108696298B (en) Data transmission method and device, power line communication network and power system
CN103177005B (en) The processing method of a kind of data access and system
CN108256114B (en) Document online preview method and device, computer equipment and storage medium
US20210289343A1 (en) Subscription message processing method and apparatus, and computer device and storage medium
CN111768608A (en) Data transmission method and device based on double-core intelligent electric meter and computer equipment
CN111562889B (en) Data processing method, device, system and storage medium
CN109218131B (en) Network monitoring method and device, computer equipment and storage medium
JP2019515595A (en) Data transmission method, apparatus and system
CN117579694B (en) Ubiquitous power internet of things-based data sharing management method and system
CN111522836A (en) Data query method and device, electronic equipment and storage medium
CN113328927B (en) Industrial Internet of things gateway with calculation, storage and network exchange functions
CN110659272A (en) Data cleaning method and system
CN108632078B (en) Configuration acquisition method
CN109857344B (en) Heartbeat state judgment method and device based on shared memory and computer equipment
CN108255937B (en) SDN-based resource cleaning method and device, storage medium and computer equipment
CN113656178B (en) Data processing method, device, equipment and readable storage medium
CN114547214A (en) Long-link data processing method, device and equipment
CN112346880B (en) Interface calling method, device, computer readable storage medium and computer equipment
CN114143367A (en) Method and device for optimizing neighbor nodes in block chain network
CN115866619A (en) Network topology construction method, device, equipment and storage medium
CN107172667B (en) Management method, system, electronic equipment and the mobile terminal of access point cluster
US20210377197A1 (en) A mail transmission method, server and system
CN110825023A (en) Data interaction method and system between PLC remote modules
CN117896762A (en) Smart city data interaction method and system based on 5G communication technology
CN117056405B (en) Ship software monitoring data acquisition processing method, system 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