CN106790354B - Communication method and device for preventing data congestion - Google Patents

Communication method and device for preventing data congestion Download PDF

Info

Publication number
CN106790354B
CN106790354B CN201611004877.3A CN201611004877A CN106790354B CN 106790354 B CN106790354 B CN 106790354B CN 201611004877 A CN201611004877 A CN 201611004877A CN 106790354 B CN106790354 B CN 106790354B
Authority
CN
China
Prior art keywords
queue
server cluster
cloud terminal
data
message server
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.)
Active
Application number
CN201611004877.3A
Other languages
Chinese (zh)
Other versions
CN106790354A (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.)
Shanghai Dongtu vision Industrial Technology Co. Ltd.
Original Assignee
Shanghai Kyland Yuanjing Industrial 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 Shanghai Kyland Yuanjing Industrial Technology Co ltd filed Critical Shanghai Kyland Yuanjing Industrial Technology Co ltd
Priority to CN201611004877.3A priority Critical patent/CN106790354B/en
Publication of CN106790354A publication Critical patent/CN106790354A/en
Application granted granted Critical
Publication of CN106790354B publication Critical patent/CN106790354B/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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

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

Abstract

The invention relates to the technical field of communication, in particular to a data communication method and a device for preventing data congestion, wherein the method comprises the following steps: the plurality of cloud terminal servers send the acquired data information of the field devices to the message server cluster so that the message server cluster stores the data information to the storage space; the method comprises the steps that a plurality of cloud terminal servers obtain data to be read from a storage space of a message server cluster; the storage space is distributed to the plurality of cloud terminal servers by the message server cluster according to the data information and the real-time property and the non-real-time property of the data to be read. Therefore, the message server cluster plays a role in caching by distributing a plurality of storage spaces for each cloud terminal server according to the data characteristics in the message server cluster, so that the data transmission rate between the plurality of cloud terminal servers and the message server cluster is improved, the efficient transmission of data is ensured, and the data in the message server cluster is not blocked or lost.

Description

Communication method and device for preventing data congestion
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a communication method and a communication device for preventing data congestion.
Background
Most of existing energy service systems manage energy equipment based on a local area network, and communication inside the existing energy service systems adopts an instant receiving and instant sending mechanism, and with the application of a cloud service system in the field of energy technology, the data volume in the energy cloud service system based on cloud service increases in a geometric level, and if the instant receiving and instant sending mechanism is continuously adopted in the energy cloud service system based on cloud service, congestion, untimely time, easy data loss and the like of transmitted data can be caused.
Disclosure of Invention
The embodiment of the invention provides a communication method and device for preventing data congestion, which are suitable for an energy cloud service system and used for solving the technical problems that data transmitted inside the energy cloud service system is congested and untimely and is easy to lose in the prior art.
The embodiment of the invention provides a communication method for preventing data congestion, which is suitable for an energy cloud service system, wherein the energy cloud service system comprises the following steps: the method comprises the following steps of: the plurality of cloud terminal servers send the acquired data information of the field equipment to the message server cluster so that the message server cluster stores the data information to a storage space; the plurality of cloud terminal servers acquire data to be read from a storage space of the message server cluster, wherein the data to be read is sent by the cloud platform server cluster aiming at each cloud terminal server, and the storage space is distributed to the plurality of cloud terminal servers by the message server cluster according to the data information and the real-time property and the non-real-time property of the data to be read.
The embodiment of the invention also provides a communication device for preventing data congestion, which is suitable for an energy cloud service system, wherein the energy cloud service system comprises: the communication device comprises a plurality of cloud terminal servers, a message server cluster connected with the cloud terminal servers through a network, and a cloud platform server cluster connected with the message server cluster through a network, wherein the communication device exists in the cloud terminal servers and comprises:
the sending module is used for sending the acquired data information of the field equipment to the message server cluster so that the message server cluster stores the data information to a storage space;
the acquisition module is used for acquiring data to be read from a storage space of the message server cluster, wherein the data to be read is sent by the cloud platform server cluster aiming at each cloud terminal server;
the storage space is allocated to the plurality of cloud terminal servers by the message server cluster according to the data information and the real-time property and the non-real-time property of the data to be read.
The communication method and device for preventing data congestion provided by the embodiment are suitable for an energy cloud service system, and the energy cloud service system comprises: the method comprises the following steps of: the plurality of cloud terminal servers send the acquired data information of the field equipment to the message server cluster so that the message server cluster stores the data information to a storage space; the plurality of cloud terminal servers acquire data to be read from a storage space of the message server cluster, wherein the data to be read is sent by the cloud platform server cluster aiming at each cloud terminal server; the storage space is allocated to the plurality of cloud terminal servers by the message server cluster according to the data information and the real-time property and the non-real-time property of the data to be read. It can be seen that, firstly, the message server cluster stores the data information into the storage space by allocating the storage space to the plurality of cloud terminal servers in the message server cluster according to the data information and the real-time property and the non-real-time property of the data to be read, and then after the plurality of cloud terminal servers send the acquired data information of the field device to the message server cluster, the plurality of cloud terminal servers can acquire the data to be read from the storage space of the message server cluster, and the data to be read is sent by the cloud platform server cluster aiming at each cloud terminal server, therefore, the message server cluster can play a role of caching by allocating a plurality of storage spaces to each cloud terminal server according to the real-time property and the non-real-time property of the data in the message server cluster, that is, the message server cluster can timely receive the data sent by the plurality of cloud terminal servers, the data transmission rate between the plurality of cloud terminal servers and the message server cluster can be improved, the efficient transmission of data is guaranteed, and the data in the message server cluster are not blocked, lost and the like.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that are required to be used in the description of the embodiments will be briefly described below.
Fig. 1 is a schematic structural diagram of an energy cloud service system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a communication method for preventing data congestion according to an embodiment of the present invention;
fig. 3 is a schematic view of an interaction flow between a cloud terminal server and a message server cluster according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a method for a cloud terminal server to obtain a downlink control instruction from a message server cluster according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a message server cluster according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a communication device for preventing data congestion according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that the communication method and apparatus for preventing data congestion provided by the embodiment of the present invention are applied to an energy cloud service system, where a schematic structural diagram of the energy cloud service system may be shown in fig. 1, and as shown in fig. 1, the energy cloud service system may include:
the message server system includes a plurality of cloud terminal servers 10, a message server cluster 20 network-connected to the plurality of cloud terminal servers 10, and a cloud platform server cluster 30 network-connected to the message server cluster 20. Wherein:
the plurality of cloud terminal servers 10 are configured to acquire data information of each field device, convert the acquired data information of each field device into a uniform format, and send the uniform format to the message server cluster.
The plurality of cloud terminal servers 10 are further configured to obtain control information of each field device from the storage space of the message server cluster and send the control information to each field device.
And the message server cluster 20 is configured to receive data information of each field device sent by the plurality of cloud terminal servers, and store the data information in a storage space corresponding to the cloud terminal server to which each field device belongs.
The message server cluster 20 is further configured to receive control information of each field device from the cloud platform server cluster, and store the control information of each field device in a storage space corresponding to the cloud terminal server to which each field device belongs.
And the cloud platform server cluster 30 is configured to obtain data information of each field device from a storage space of the message server cluster.
The cloud platform server cluster 30 is further configured to obtain control information for each field device, and send the control information of each field device to the message server cluster.
When the cloud terminal server 10 is used to obtain data information of each field device, the data information of each field device may be obtained through the acquisition device, that is, after the acquisition device acquires the data information of each field device, the acquired data information of each field device is sent to the cloud terminal server 10.
Based on the structure of the energy cloud service system shown in fig. 1, an embodiment of the invention further provides a communication method for preventing data congestion.
Fig. 2 is a schematic flowchart illustrating a data congestion prevention communication method based on the energy cloud service system shown in fig. 1 according to an embodiment of the present invention, and as shown in fig. 2, the method may include:
s201, the plurality of cloud terminal servers send the acquired data information of the field device to the message server cluster, so that the message server cluster stores the data information to a storage space.
S202, the plurality of cloud terminal servers acquire data to be read from a storage space of the message server cluster, wherein the data to be read is sent by the cloud platform server cluster aiming at each cloud terminal service. The storage space is distributed to the plurality of cloud terminal servers by the message server cluster according to the data information and the real-time property and the non-real-time property of the data to be read.
The storage space may be a storage queue, or may be in other types of storage forms, and the form of the storage space is not limited in any way in the embodiment of the present invention.
When the storage space is a storage queue, the storage queue may include a first public queue, a second public queue, a plurality of first private queues, and a plurality of second private queues. The first public queue and the second public queue are used for storing data with low real-time performance, and the first private queue and the second private queue are used for storing data with high real-time performance.
The first public queue and the second public queue are public storage queues distributed by the message server cluster for all the cloud terminal servers, the first public queue is used for storing data which are sent by the plurality of cloud terminal servers and are related to the working states of the plurality of cloud terminal servers, and the second public queue is used for storing event data which are sent by the plurality of cloud terminal servers and are obtained based on data information of field devices.
The plurality of first private queues and the plurality of second private queues are private storage queues allocated to each cloud terminal server by the message server cluster, the first private queues are used for storing response data obtained by executing the received downlink control instruction sent by each cloud terminal server, and the second private queues are used for storing the downlink control instruction sent by the cloud platform server cluster for each cloud terminal server.
Optionally, after the cloud terminal server obtains the data information of the field device, an interaction flow between the cloud terminal server and the message server cluster may be as shown in fig. 3.
S301, the cloud terminal server acquires data information of the field device.
S302, the cloud terminal server determines a storage queue of the data information according to the acquired data information of the field device.
And S303, the cloud terminal server sends a storage request to the message server cluster, wherein the storage request carries the queue identification of the storage queue and the data information.
S304, the message server cluster determines the storage queue of the data information according to the queue identification of the storage queue carried in the storage request, and stores the data information to the storage queue.
The method flow shown in fig. 3 is explained in detail below by way of a specific example.
First, it is assumed that one cloud terminal server is a cloud terminal server a, and it is assumed that a queue identifier of a first public queue allocated to the cloud terminal server a by a message server cluster is 001, and a queue identifier of a second public queue is 002, where the first public queue with the queue identifier of 001 is used to store data related to the working state of the cloud terminal server a, and the second public queue with the queue identifier of 002 is used to store event data obtained by the cloud terminal server a based on data information of field devices.
Further, it is assumed that the identification information obtained after the access authentication of the cloud terminal server a is "123", and it is assumed that queue identifications of a first private queue and a second private queue allocated to the cloud terminal server a by the message server cluster are up _123 and down _123, respectively, where the queue identification is up _123 and is used for storing response data obtained when the cloud terminal server a executes a received downlink control instruction, and the storage queue identification is down _123 and is used for storing a downlink control instruction sent by the cloud platform server cluster to the cloud terminal server a.
Then, after the cloud terminal server a acquires the data information 1 of the field device, if the data information 1 is data related to the working state of the cloud terminal server a, the cloud terminal server a determines that the storage queue of the data information 1 is a storage queue with a queue identifier 001, the cloud terminal server a sends a storage request to the message server cluster, and carries the queue identifier "001" and the data information 1 in the storage request, after receiving the storage request, the message server cluster determines that the storage queue of the data information 1 is the storage queue with the queue identifier 001 according to the queue identifier "001" carried in the storage request, and then stores the data information into the storage queue with the queue identifier 001.
If the data information 1 is event data obtained by the cloud terminal server a based on the acquired data information of the field device, the cloud terminal server a determines that a storage queue of the data information 1 is a storage queue with a queue identifier of 002, the cloud terminal server a sends a storage request to the message server cluster, and carries the queue identifier of "002" and the data information 1 in the storage request, after receiving the storage request, the message server cluster determines that the storage queue of the data information 1 is the storage queue with the queue identifier of 002 according to the queue identifier of "002" carried in the storage request, and then stores the data information into the storage queue with the queue identifier of 002.
If the data information 1 is response data obtained by the cloud terminal server a based on executing the received downlink control instruction, the cloud terminal server a determines that a storage queue of the data information 1 is a storage queue with a queue identifier up _123, the cloud terminal server a sends a storage request to the message server cluster, and carries the queue identifier "up _ 123" and the data information 1 in the storage request, after receiving the storage request, the message server cluster determines that the storage queue of the data information 1 is the storage queue with the queue identifier up _123 according to the queue identifier "up _ 123" carried in the storage request, and then the message server cluster stores the data information into the storage queue with the queue identifier up _ 123.
It should be noted that the queue identifier may be determined based on the identification information of the cloud terminal server, or may be defined by itself.
Optionally, in order to ensure that the cloud platform server cluster can know the working state of the cloud terminal server in time, when the cloud terminal server fails, the cloud terminal server can check the failed cloud terminal server in time, the cloud terminal server can also generate a heartbeat message, periodically send the heartbeat message and the queue identifier of the first public queue to the message server cluster, after receiving the heartbeat message and the queue identifier of the first public queue, the message server cluster determines the stored first public queue of the heartbeat message according to the queue identifier of the first public queue, stores the heartbeat message into the first public queue, and then periodically reads the heartbeat message from the first public queue of the message server cluster.
Optionally, the cloud platform server cluster may further send a downlink control instruction for each cloud terminal server, and send the downlink control instruction sent for each cloud terminal server to the message server cluster, and after receiving that the cloud platform server cluster sends the downlink control instruction for each cloud terminal server, the message server cluster may store the downlink control instruction in a private queue of each cloud terminal server in the message server cluster.
After the message server cluster stores the downlink control instruction in the private queue of each cloud terminal server in the message server cluster, the cloud terminal servers obtain a specific flow of the downlink control instruction from the message server cluster, which may be referred to in fig. 4.
S401, the cloud terminal server sends a reading request to the message server cluster, wherein the reading request carries identification information of the second private queue.
S402, the message server cluster determines a storage queue of the data to be read according to the identification information of the second private queue carried in the reading request, acquires the data to be read from the storage queue and sends the data to be read to the cloud terminal server.
And S403, the cloud terminal server receives the data to be read fed back by the message server cluster.
S404, the cloud terminal server converts the data to be read into a protocol format which can be identified by the corresponding field device according to the data to be read, and sends the data to be read to the field device for which the data to be read aims.
In step S401, the cloud terminal server may periodically send an inquiry request to the message server cluster, so that the message server cluster inquires the second private queue to which the cloud terminal server belongs after receiving the inquiry request, and searches for an instruction sent to the cloud terminal server from the second private queue to which the cloud terminal server belongs.
In specific implementation, the time length of the period may be set to different time lengths according to different application scenarios of the cloud terminal server, for example, when each field device under the cloud terminal server has a high control requirement, the time length of the period may be set to be as small as possible in order to improve the control degree of each field device, and when each field device under the cloud terminal server has no particularly high control requirement, the time length of the period may be set to be as long as possible in order to reduce signaling transmission between the cloud terminal server and the message server to save network resources.
The method flow shown in fig. 4 is explained in detail below by a specific example.
First, it is assumed that one cloud terminal server is a cloud terminal server B, and it is assumed that a queue identifier of a first public queue allocated to the cloud terminal server B by the message server cluster is 001, and a queue identifier of a second public queue is 002, where the first public queue with the queue identifier of 001 is used to store data related to the working state of the cloud terminal server B, and the second public queue with the queue identifier of 002 is used to store event data obtained by the cloud terminal server B based on data information of the field device.
Further, it is assumed that the identification information obtained by the cloud terminal server B after performing access authentication is "456", and it is assumed that queue identifications of a first private queue and a second private queue allocated by the message server cluster to the cloud terminal server B are up _456 and down _456, respectively, where the queue identification is up _456 used for storing response data obtained when the cloud terminal server B executes a received downlink control instruction, and the storage queue with the queue identification is down _456 used for storing a downlink control instruction sent by the cloud platform server cluster to the cloud terminal server B.
Then, further assuming that a storage queue with a queue identifier of down _456 in the message server cluster stores the downlink control instruction 1 sent by the cloud platform server cluster for the cloud terminal server B, and the downlink control instruction 1 is not read, the cloud terminal server may periodically send a read request to the message server, the read request carries a queue identifier "down _ 456", and after the message server cluster receives the queue request, inquiring the storage queue with the queue identification of down _456, finding that the unread downlink control instruction 1 exists in the storage queue, the downlink control instruction 1 may be sent to the cloud terminal server B, and the cloud terminal server B, upon receiving the downlink control instruction 1, executes the downlink control instruction 1, namely, the cloud terminal server B controls the field device to which the downlink control instruction 1 is directed according to the downlink control instruction 1.
In order to ensure high availability of the message server cluster, the message server cluster 20 may include a registration server 501 and a plurality of message processing nodes 502, and a specific structural diagram of the message server cluster 20 may be shown in fig. 5. The registry server 501 is configured to record usage of storage spaces of a plurality of message processing nodes, and select a message processing node with the smallest usage of the storage space as a leader of the message server cluster 20 according to the recorded usage of the storage spaces of the plurality of message processing nodes, and when the leader of the selected message server cluster 20 fails, the registry server selects a leader of the message server cluster 20 from the remaining message processing nodes according to usage of storage spaces of the remaining message processing nodes, thereby ensuring high availability of the system. In addition, under the same hardware resource condition, the message server cluster can also provide higher data load capacity, and because the message server cluster comprises a registration server and a plurality of message processing nodes and the number N of the message processing nodes is configurable, the message server cluster can also support the data communication fault tolerance capacity of N + 1.
In order to avoid failure of the message server cluster 20 due to a problem with a network device, the registration server 501 and the plurality of message processing nodes 502 in the message server cluster 20 may be located in different geographical areas.
It should be noted that when the cloud terminal server sends the acquired data information of the field device to the message server cluster, the cloud terminal server needs to convert the acquired data information of the field device into a uniform format and send the uniform format to the message server cluster, and send the data information and the identification information of the storage queue to the message server cluster together, and after the message server cluster receives the data information and the identification information of the storage queue sent by the cloud terminal server, the data information is stored in the storage queue corresponding to the message server cluster according to the identification information of the storage queue.
According to the above, it can be seen that, firstly, the message server cluster allocates the storage space to the plurality of cloud terminal servers according to the data information and the real-time property and non-real-time property of the data to be read in the message server cluster, and then after the plurality of cloud terminal servers send the acquired data information of the field device to the message server cluster, the message server cluster can store the data information into the storage space, and the plurality of cloud terminal servers can also acquire the data to be read from the storage space of the message server cluster, wherein the data to be read is sent by the cloud platform server cluster for each cloud terminal server, therefore, the message server cluster can play a role of caching by allocating a plurality of storage spaces to each cloud terminal server according to the real-time property and non-real-time property of the data in the message server cluster, that is, the message server cluster can timely receive the data sent by the plurality of cloud terminal servers, the data transmission rate between the plurality of cloud terminal servers and the message server cluster can be improved, the efficient transmission of data is guaranteed, and the data in the message server cluster are not blocked, lost and the like.
Based on the same technical concept, an embodiment of the present invention provides a communication device for preventing data congestion, which is suitable for an energy cloud service system, where the energy cloud service system includes: as shown in fig. 6, the communication device includes:
a sending module 601, configured to send the acquired data information of the field device to the message server cluster, so that the message server cluster stores the data information in a storage space;
an obtaining module 602, configured to obtain data to be read from a storage space of the message server cluster, where the data to be read is sent by the cloud platform server cluster for each cloud terminal server;
the storage space is allocated to the plurality of cloud terminal servers by the message server cluster according to the data information and the real-time property and the non-real-time property of the data to be read.
Preferably, the storage space is a storage queue, the storage queue includes a first public queue, a second public queue, a plurality of first private queues and a plurality of second private queues, the first public queue and the second public queue are public storage queues allocated to all cloud terminal servers by the message server cluster, the first public queue is used for storing data related to the working state of the cloud terminal servers, which are sent by the cloud terminal servers, and the second public queue is used for storing event data, which are sent by the cloud terminal servers and are obtained based on data information of field devices; the plurality of first private queues and the plurality of second private queues are private storage queues allocated to each cloud terminal server by the message server cluster, the first private queues are used for storing response data obtained by executing the received downlink control instruction sent by each cloud terminal server, and the second private queues are used for storing the downlink control instruction sent by the cloud platform server cluster for each cloud terminal server.
Preferably, the sending module 601 is further configured to:
after the acquired data information of the field device is obtained, determining a storage queue of the data information according to the data information;
and sending a storage request to the message server cluster, wherein the storage request carries the queue identification of the storage queue and the data information, so that the message server cluster stores the data information to the storage queue after determining the storage queue of the data information according to the queue identification of the storage queue.
Preferably, the sending module 601 is further configured to:
generating a heartbeat message, and sending the heartbeat message and the queue identifier of the first public queue to a message server cluster, so that the cloud platform server cluster reads the heartbeat message from the message server cluster according to the queue identifier of the first public queue.
Preferably, the sending module 601 is further configured to: and sending a reading request to the message server cluster before the cloud terminal servers acquire the data to be read from the storage space of the message server cluster, wherein the reading request carries the identification information of the second private queue, so that the message server cluster reads the data to be read from the second private queue according to the identification information of the second private queue.
Preferably, the message server cluster includes a registration server and a plurality of message processing nodes, the registration server is connected to the plurality of message processing nodes through a network, the plurality of message processing nodes include a first-level message processing node, and the first-level message processing node is connected to the plurality of cloud terminal servers through a network;
and after the registration server detects that the plurality of message processing nodes are in failure, selecting the message processing node with the minimum load from the rest message processing nodes so as to upgrade the message processing node with the minimum load to a first-stage message processing node.
To sum up, the communication method and the device for preventing data congestion provided by the embodiment of the invention are suitable for an energy cloud service system, and the energy cloud service system comprises: the method comprises the following steps of: the plurality of cloud terminal servers send the acquired data information of the field equipment to the message server cluster so that the message server cluster stores the data information to a storage space; the plurality of cloud terminal servers acquire data to be read from a storage space of the message server cluster, wherein the data to be read is sent by the cloud platform server cluster aiming at each cloud terminal server; the storage space is allocated to the plurality of cloud terminal servers by the message server cluster according to the data information and the real-time property and the non-real-time property of the data to be read. It can be seen that, firstly, the message server cluster can store the data information into the storage space by allocating the storage space to the plurality of cloud terminal servers in the message server cluster according to the data information and the real-time property and the non-real-time property of the data to be read, and then after the plurality of cloud terminal servers send the acquired data information of the field device to the message server cluster, the plurality of cloud terminal servers can also acquire the data to be read from the storage space of the message server cluster, wherein the data to be read is sent by the cloud platform server cluster aiming at each cloud terminal server, therefore, the message server cluster can play a role of caching by allocating a plurality of storage spaces to each cloud terminal server according to the real-time property and the non-real-time property of the data in the message server cluster, namely, the message server cluster can timely receive the data sent by the plurality of cloud terminal servers, the data transmission rate between the plurality of cloud terminal servers and the message server cluster can be improved, the efficient transmission of data is guaranteed, and the data in the message server cluster are not blocked, lost and the like.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A data congestion prevention communication method is applicable to an energy cloud service system, and is characterized in that the energy cloud service system comprises: the method comprises the following steps of:
the method comprises the steps that the cloud terminal servers acquire data information of field equipment and classify the data information according to a preset type, wherein the type comprises the following steps: data related to the working state of the cloud terminal server, event data obtained based on the data information, and response data obtained by executing a received downlink control instruction and sent by the cloud terminal server; determining the storage queue of the data information and a queue identifier of the storage queue according to a preset corresponding relation between the type and the storage queue;
the cloud terminal servers send storage requests to the message server cluster, wherein the storage requests carry queue identifications and data information of the storage queues, so that the message server cluster stores the data information to the storage queues after determining the storage queues of the data information according to the queue identifications of the storage queues;
the plurality of cloud terminal servers acquire data to be read from a storage queue of the message server cluster, wherein the data to be read is sent by the cloud platform server cluster aiming at each cloud terminal server;
the storage queue is distributed to the plurality of cloud terminal servers by the message server cluster according to the data information and the real-time property and the non-real-time property of the data to be read.
2. The method of claim 1, wherein the storage queue comprises a first public queue, a second public queue, a plurality of first private queues and a plurality of second private queues, the first public queue and the second public queue are public storage queues allocated to all cloud terminal servers by the message server cluster, the first public queue is used for storing data which are sent by the plurality of cloud terminal servers and are related to the working states of the cloud terminal servers, and the second public queue is used for storing event data which are sent by the plurality of cloud terminal servers and are obtained based on the obtained data information of the field devices; the plurality of first private queues and the plurality of second private queues are private storage queues allocated to each cloud terminal server by the message server cluster, the first private queues are used for storing response data obtained by executing the received downlink control instruction sent by each cloud terminal server, and the second private queues are used for storing the downlink control instruction sent by the cloud platform server cluster for each cloud terminal server.
3. The method of claim 2, further comprising:
the plurality of cloud terminal servers generate heartbeat messages;
and the plurality of cloud terminal servers send the heartbeat messages and the queue identification of the first public queue to a message server cluster, so that the cloud platform server cluster reads the heartbeat messages from the message server cluster according to the queue identification of the first public queue.
4. The method of claim 2, before the plurality of cloud end servers obtain the data to be read from the storage queue of the message server cluster, further comprising:
the plurality of cloud terminal servers send reading requests to the message server cluster;
the reading request carries the identification information of the second private queue, so that the message server cluster reads data to be read from the second private queue according to the identification information of the second private queue.
5. A data congestion prevention communication device is suitable for an energy cloud service system, and the energy cloud service system comprises: the communication device comprises a plurality of cloud terminal servers, a message server cluster connected with the cloud terminal servers through a network, and a cloud platform server cluster connected with the message server cluster through a network, wherein the communication device exists in the cloud terminal servers and comprises:
the sending module is used for sending the acquired data information of the field equipment to the message server cluster;
the sending module is further configured to send a storage request to the message server cluster, where the storage request carries a queue identifier of a storage queue and the data information, so that the message server cluster stores the data information to the storage queue after determining the storage queue of the data information according to the queue identifier;
the acquisition module is used for acquiring data to be read from a storage queue of the message server cluster, wherein the data to be read is sent by the cloud platform server cluster aiming at each cloud terminal server;
the data information is classified by the cloud terminal servers according to a preset type, wherein the type comprises: data related to the working state of the cloud terminal server, event data obtained based on the data information, and response data obtained by executing a received downlink control instruction and sent by the cloud terminal server; determining the storage queue of the data information and a queue identifier of the storage queue according to a preset corresponding relation between the type and the storage queue;
the storage queue is distributed to the plurality of cloud terminal servers by the message server cluster according to the data information and the real-time property and the non-real-time property of the data to be read.
6. The apparatus of claim 5, wherein the storage queue comprises a first public queue, a second public queue, a plurality of first private queues and a plurality of second private queues, the first public queue and the second public queue are public storage queues allocated by the message server cluster for all cloud terminal servers, the first public queue is used for storing data sent by the plurality of cloud terminal servers and related to the working states of the cloud terminal servers, and the second public queue is used for storing event data sent by the plurality of cloud terminal servers and obtained based on the acquired data information of the field devices; the plurality of first private queues and the plurality of second private queues are private storage queues allocated to each cloud terminal server by the message server cluster, the first private queues are used for storing response data obtained by executing the received downlink control instruction sent by each cloud terminal server, and the second private queues are used for storing the downlink control instruction sent by the cloud platform server cluster for each cloud terminal server.
7. The apparatus of claim 6, wherein the sending module is further configured to:
generating a heartbeat message, and sending the heartbeat message and the queue identifier of the first public queue to a message server cluster, so that the cloud platform server cluster reads the heartbeat message from the message server cluster according to the queue identifier of the first public queue.
8. The apparatus of claim 6, wherein the sending module is further configured to: and sending a reading request to the message server cluster before the cloud terminal servers acquire the data to be read from the storage queue of the message server cluster, wherein the reading request carries the identification information of the second private queue, so that the message server cluster reads the data to be read from the second private queue according to the identification information of the second private queue.
CN201611004877.3A 2016-11-15 2016-11-15 Communication method and device for preventing data congestion Active CN106790354B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611004877.3A CN106790354B (en) 2016-11-15 2016-11-15 Communication method and device for preventing data congestion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611004877.3A CN106790354B (en) 2016-11-15 2016-11-15 Communication method and device for preventing data congestion

Publications (2)

Publication Number Publication Date
CN106790354A CN106790354A (en) 2017-05-31
CN106790354B true CN106790354B (en) 2020-04-14

Family

ID=58968303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611004877.3A Active CN106790354B (en) 2016-11-15 2016-11-15 Communication method and device for preventing data congestion

Country Status (1)

Country Link
CN (1) CN106790354B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495523A (en) * 2017-09-11 2019-03-19 北京金山云网络技术有限公司 Management instruction delivery method, device, electronic equipment and storage medium
CN110445666B (en) * 2018-05-04 2022-12-06 阿里巴巴集团控股有限公司 Network quality detection method and device and server
CN111586117A (en) * 2020-04-26 2020-08-25 特瓦特能源科技有限公司 Equipment communication method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629128A (en) * 2012-04-05 2012-08-08 浪潮(山东)电子信息有限公司 Automatic frequency control (AFC) equipment power supply remote control system based on cloud technology
CN102981440B (en) * 2012-11-02 2014-10-29 武汉理工大学 Intelligent device monitoring and managing system based on software as a service (SaaS)
CN203537418U (en) * 2013-09-18 2014-04-09 广东电网公司佛山供电局 Electric-network cloud computing management system
CN103747107B (en) * 2014-01-27 2017-03-15 西安雷迪信息技术有限公司 A kind of compatible cloud operating platform and its implementation
CN104217298A (en) * 2014-09-16 2014-12-17 浪潮集团有限公司 GPS government vehicle management system based on cloud storage

Also Published As

Publication number Publication date
CN106790354A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN108062243B (en) Execution plan generation method, task execution method and device
CN104079630A (en) Business server side load balancing method, client side, server side and system
CN111966289B (en) Partition optimization method and system based on Kafka cluster
CN109995839B (en) Load balancing method, system and load balancer
CN106713378B (en) Method and system for providing service by multiple application servers
US10802896B2 (en) Rest gateway for messaging
CN106790354B (en) Communication method and device for preventing data congestion
CN111858045A (en) Multitask GPU resource scheduling method, device, equipment and readable medium
WO2024104284A1 (en) Nwdaf-based management and decision-making method for computing resources
CN111314241B (en) Task scheduling method and scheduling system
US11025490B2 (en) Method for dynamically managing a network service in a communication network
CN112512021A (en) Congestion control method, device, equipment, medium and system
EP3672203A1 (en) Distribution method for distributed data computing, device, server and storage medium
CN105656978A (en) Resource sharing method and device
US10637748B2 (en) Method and apparatus for establishing interface between VNFMS, and system
CN104750545A (en) Process scheduling method and device
CN107493308B (en) Method and device for sending message and distributed equipment cluster system
US11812310B2 (en) Migration of computational service
CN112911659B (en) NR-based information reporting method and device
CN108781215B (en) Network service implementation method, service controller and communication system
CN111309467B (en) Task distribution method and device, electronic equipment and storage medium
CN113535402A (en) Load balancing processing method and device based on 5G MEC and electronic equipment
CN113032188A (en) Method, device, server and storage medium for determining main server
CN113873052B (en) Domain name resolution method, device and equipment of Kubernetes cluster
CN114979276B (en) Dynamic scheduling method, device, equipment and storage medium for resources

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171114

Address after: 201203 room 5, building 3000, 802 East Dragon Road, Shanghai, Pudong New Area

Applicant after: Shanghai Dongtu vision Industrial Technology Co. Ltd.

Address before: 201112 No. 4, No. 301-1, union airway 1369, Shanghai, Minhang District

Applicant before: Shanghai DIGIGRID Intelligent Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant