A distributed energy communication control method and system based on collaborative operation
By extracting the router connection relationship and device data volume, the transmission volume is estimated and the importance is calculated, which solves the problem of unreasonable network resource allocation in the existing technology and improves the network transmission efficiency.
Patent Information
- Application Number
- CN202410898729.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-05
AI Technical Summary
The existing technology cannot reasonably allocate network resources according to the transmission of specific device network data, resulting in low transmission efficiency of network resources in a fluctuating state.
By extracting the connection relationship of each router and the upload and download volume of the connected device, the transmission volume is estimated and the importance is calculated, and the total network transmission is allocated according to the importance of the connected device to achieve a reasonable allocation of network resources.
It improves the transmission efficiency under fluctuations in network resources and ensures efficient transmission of important files.
Smart Images

Figure CN118426395B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the general field of control systems, and more specifically, is a distributed energy communication control method and system based on collaborative operation. Background Art
[0002] At present, energy communication refers to the mutual integration and collaboration between the energy industry and the communication industry, including the construction of energy information infrastructure, the sharing of energy data information, the research and development and application of energy communication technology, etc. Driven by energy communication, the energy industry can make better use of information technology and communication technology, improve the efficiency of energy production and management, reduce energy costs, and promote the digital and intelligent transformation of the energy industry. At the same time, the communication industry can also expand its business areas and improve its competitiveness and service level through cooperation with the energy industry. At present, energy communication has become one of the important trends in the development of the global energy industry. Many countries and companies are actively exploring and practicing it. Usually, several routers are used for network transmission in the network area. As the demand for the network increases when users use the terminal, it is easy for multiple terminals to connect to the same signal source for network access. Due to the limited network speed of the signal source, the existing technology cannot reasonably allocate network resources according to the transmission of network data of specific devices.
[0003] For example, a Chinese patent with publication number CN106950936A discloses a centerless collaborative control system and method for multiple distributed energy stations. Each distributed energy station exchanges data through switches and optical fiber communications. The system includes one or more electromechanical equipment controllers, one or more intelligent sensors, and one or more intelligent actuators arranged in each distributed energy station. The electromechanical equipment controllers, intelligent sensors, and intelligent actuators are connected to the switches through wireless routers to form a centerless and flat peer-to-peer network. The method establishes a centerless self-organizing control network for multiple distributed energy stations of different sizes distributed within a set area, with the minimum total energy consumption, the highest total energy efficiency, and the minimum total cost as integrated optimization goals, to achieve interconnected and mutually beneficial optimized operation among the distributed energy stations. Compared with the prior art, the invention realizes the self-organizing network of control systems for multiple distributed energy stations, plug-and-play of control equipment, and global optimization control functions based on distributed computing.
[0004] At the same time, for example, a Chinese patent with publication number CN115811128A discloses a medium-low voltage flexible interconnection coordinated control system, method, equipment and medium, including: an energy router, which is used to obtain information of medium-low voltage flexible interconnected distribution networks, and upload the information and its own status information to the coordinated control layer, and execute the control instructions issued by the local control layer; the coordinated control layer is used to upload the information of medium-low voltage flexible interconnected distribution networks to the energy management layer, and formulate control instructions based on the status information of the energy router and the strategy issued by the energy management layer, and send the control instructions to the local control layer; the local control layer is used to send the received control instructions to the energy router; the energy management layer is used to generate strategies based on the information of the medium-low voltage flexible interconnected distribution network uploaded by the coordinated control layer, and send the strategies to the coordinated control layer. The invention realizes energy coordinated control between cross-voltage feeders and distributed power sources based on the coordinated control layer, and improves the operational reliability of the system.
[0005] The above patents all have the problems raised by this background technology: the existing technology cannot reasonably allocate network resources according to the transmission of specific device network data. In order to solve these problems, this application designs a distributed energy communication control method and system based on collaborative operation. Summary of the invention
[0006] In view of the deficiencies in the prior art, the present invention proposes a distributed energy communication control method and system based on collaborative operation. The present invention extracts the connection relationship of each router, and at the same time extracts the connection lines of each router connection device, the upload and download amounts of the connection devices at each moment, imports the upload and download amounts of the connection devices at each moment into the transmission amount estimation strategy to estimate the transmission amount of each connection device at the next moment, and judges whether the total transmission amount at the next moment is greater than or equal to the total network transmission amount. If so, the upload and download data amounts of each connection device at each moment are extracted and imported into the importance calculation strategy to calculate the transmission importance, the connection line data of each connection device is extracted, and imported into the connection importance calculation strategy to calculate the connection importance, the transmission importance and connection importance are imported into the connection device importance calculation strategy to calculate the connection device importance, the total network transmission amount is allocated according to the connection device importance, the network resources are reasonably allocated to the connection devices in the network resource fluctuation state, and the transmission efficiency of important files in the network fluctuation state is improved.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A distributed energy communication control method based on collaborative operation includes the following specific steps:
[0009] S1. Extract the connection relationship of each router, and at the same time extract the connection line of each router connected device, and the upload and download volume of the connected device at each time;
[0010] S2, importing the upload and download volume of the connected device at each moment into the transmission volume estimation strategy to estimate the transmission volume of each connected device at the next moment;
[0011] S3, determine whether the total amount of transmission at the next moment is greater than or equal to the total amount of network transmission, if so, execute S4; if not, allocate the total amount of network transmission according to the transmission amount at the next moment;
[0012] S4, extracting the upload and download data volume of each connected device at each time and importing it into the importance calculation strategy to calculate the transmission importance;
[0013] S5, extracting the connection line data of each connected device and importing it into the connection importance calculation strategy to calculate the connection importance;
[0014] S6. Importing the transmission importance and the connection importance into the connection device importance calculation strategy to calculate the connection device importance;
[0015] S7. Allocate the total amount of network transmission according to the importance of the connected devices.
[0016] Specifically, the specific contents of S1 include the following steps:
[0017] S11, taking a network area to be controlled, extracting the connection relationship of each router in the network area, and extracting the connection lines between the router and the device, where the connection lines are the number of connection lines between the devices;
[0018] S12, extracting the upload and download data volumes of the router-connected devices in the network area at each moment, including the upload and download data volumes at the previous moment and the upload and download data volumes at the same historical moment.
[0019] Specifically, the specific steps of the transmission volume estimation strategy of S2 are as follows:
[0020] S21, extracting the upload and download data volume of the router-connected device in the network area at each time, including the upload and download data volume at the previous time and the upload and download data volume at the same time in history;
[0021] S22, substituting the upload and download data volume of the connected device at the last moment into the calculation formula of the average data transmission speed of the connected device at the last moment to calculate the average data transmission speed at the last moment, the calculation formula of the average data transmission speed of the jth connected device at the last moment is: ,in is the total number of data packets downloaded and uploaded at the previous moment, is the size of the ith data packet, is the length of time of the previous moment;
[0022] S23, substituting the upload and download data volume of the connected device at the same time in history into the calculation formula of the average speed of the connected device at the same time in history to calculate the average data transmission speed at the same time in history. The calculation formula of the average speed of the j-th connected device at the same time in history is: ,in is the number of historical moments, is the total number of data packets downloaded and uploaded at the kth moment in history, is the size of the zth data packet at the kth moment in history;
[0023] S24, substituting the calculated average data transmission speed of the connected device at the previous moment and the average data transmission speed of the connected device at the same moment in history into the calculation formula of the average data transmission speed at the next moment to calculate the average data transmission speed of the j-th connected device at the next moment. The calculation formula of the average data transmission speed at the next moment is: ,in is the coefficient of the previous moment, is the historical moment proportion coefficient, ,at the same time ;
[0024] S25, substituting the calculated average data transmission speed at the next moment into the calculation formula of the transmission amount at the next moment to calculate the total transmission amount at the next moment, the calculation formula of the total transmission amount at the next moment is: ,in The total number of powered-on devices in the network zone.
[0025] Specifically, the specific steps of the transmission importance calculation strategy in S4 include the following:
[0026] S41, extracting the upload and download data volume of the router-connected device in the network area at each time, and extracting the calculated total transmission volume at the next time;
[0027] S42, substituting the amount of uploaded and downloaded data at each moment of the router-connected device in the network area extracted into the calculation formula of the average data transmission speed at the next moment to calculate the average data transmission speed of each connected device at the next moment;
[0028] S43, substituting the total amount of transmission at the next moment and the average data transmission speed of each connected device at the next moment into the transmission importance calculation formula to calculate the transmission importance of each connected device. The calculation formula for the transmission importance of the sth connected device is: ,in is the average data transmission speed of the sth connected device at the next moment.
[0029] Specifically, the connection importance calculation strategy in S5 includes the following specific steps:
[0030] S51, extracting connection line data of each connection device, wherein the connection line data is the total number of devices that connect the device to perform data transmission with the outside world;
[0031] S52, substituting the connection line data of each connection device into the connection importance calculation formula to calculate the connection importance. The calculation formula for the connection importance of the s-th connection device is: ,in, is the total number of devices that transmit data between the sth connected device and the outside world, is the total number of devices that transmit data between the jth connected device and the outside world.
[0032] Specifically, the connection device importance calculation strategy in S6 includes the following specific contents:
[0033] The transmission importance and connection importance of the sth connection device are extracted and substituted into the connection device importance calculation formula to calculate the connection device importance. The calculation formula for the sth connection device importance is: ,in is the transmission importance ratio, is the connection importance ratio coefficient; .
[0034] Specifically, the specific content of S7 is: substituting the calculated importance of each connection device and the total network transmission amount into the network transmission allocation calculation formula to calculate the network transmission allocation of each connection device. The network transmission allocation calculation formula for the sth connection device is: ,in is the importance of the jth connected device, The total amount of network transmission.
[0035] A distributed energy communication control system based on collaborative operation is implemented based on the above-mentioned distributed energy communication control method based on collaborative operation, and specifically includes: a control module, a data acquisition module, a transmission volume estimation module at the next moment, a transmission volume comparison module, a transmission importance calculation module, a connection importance calculation module, a connection device importance calculation module and a network allocation module. The control module is used to control the operation of the data acquisition module, the transmission volume estimation module at the next moment, the transmission volume comparison module, the transmission importance calculation module, the connection importance calculation module, the connection device importance calculation module and the network allocation module. The data acquisition module is used to collect and extract the connection relationship of each router, and at the same time extract the connection line of each router connection device, and the upload and download volume of the connection device at each moment. The transmission volume estimation module at the next moment is used to import the upload and download volume of the connection device at each moment into the transmission volume estimation strategy to estimate the transmission volume of each connection device at the next moment. The transmission volume comparison module is used to determine whether the total transmission volume at the next moment is greater than or equal to the total network transmission volume. If it is determined to be otherwise, the total network transmission volume is allocated according to the transmission volume at the next moment.
[0036] Specifically, the transmission importance calculation module is used to extract the upload and download data volume of each connected device at each moment and import it into the importance calculation strategy to calculate the transmission importance; the connection importance calculation module is used to extract the connection line data of each connected device and import it into the connection importance calculation strategy to calculate the connection importance; the connection device importance calculation module is used to import the transmission importance and connection importance into the connection device importance calculation strategy to calculate the connection device importance; the network allocation module is used to allocate the total network transmission amount according to the connection device importance.
[0037] Specifically, the data collection module includes a connection relationship collection unit, a connection line collection unit and a connection device transmission volume collection unit. The connection relationship collection unit is used to collect the connection relationship of each router, the connection line collection unit is used to collect the connection lines of each router connection device, and the connection device transmission volume collection unit is used to collect the upload and download volume of the connection device at each moment.
[0038] An electronic device comprises: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0039] The processor executes the above-mentioned distributed energy communication control method based on collaborative operation by calling the computer program stored in the memory.
[0040] A computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute a distributed energy communication control method based on collaborative operation as described above.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] Extract the connection relationship of each router, and at the same time extract the connection lines of each router connected device, the upload and download volume of the connected device at each moment, import the upload and download volume of the connected device at each moment into the transmission volume estimation strategy to estimate the transmission volume of each connected device at the next moment, and judge whether the total transmission volume at the next moment is greater than or equal to the total network transmission volume. If so, extract the upload and download data volume of each connected device at each moment and import it into the importance calculation strategy to calculate the transmission importance, extract the connection line data of each connected device, import it into the connection importance calculation strategy to calculate the connection importance, import the transmission importance and connection importance into the connection device importance calculation strategy to calculate the connection device importance, allocate the total network transmission volume according to the connection device importance, and reasonably allocate network resources for the connection devices in the network resource fluctuation state, thereby improving the transmission efficiency of important files in the network fluctuation state. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a flow chart of a distributed energy communication control method based on collaborative operation of the present invention;
[0044] Figure 2 This is a schematic diagram of the specific flow of step S2 of the distributed energy communication control method based on collaborative operation of the present invention;
[0045] Figure 3 It is a schematic diagram of the overall architecture of the distributed energy communication control system based on collaborative operation of the present invention;
[0046] Figure 4 It is a schematic diagram of the data acquisition module architecture of the distributed energy communication control system based on collaborative operation of the present invention. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0048] Example 1
[0049] See also Figure 1-Figure 2 The present invention provides an embodiment: a distributed energy communication control method based on coordinated operation, which includes the following specific steps:
[0050] S1. Extract the connection relationship of each router, and at the same time extract the connection line of each router connected device, and the upload and download volume of the connected device at each time;
[0051] In this embodiment, the specific contents of S1 include the following steps:
[0052] S11, taking a network area to be controlled, extracting the connection relationship of each router in the network area, and extracting the connection lines between the router and the device, where the connection lines are the number of connection lines between the devices;
[0053] S12, extracting the upload and download data volume of the router-connected device in the network area at each time, including the upload and download data volume at the previous time and the upload and download data volume at the same time in history;
[0054] It should be noted that the network speed generally refers to the time taken to request and return data when uploading and downloading data when a computer or mobile phone is surfing the Internet. Therefore, the upload and download data volume of the connected device at each moment is extracted as the parameter input of this embodiment;
[0055] Here, the code is implemented as follows: The following is a Python-based sample code for extracting the upload and download data volume of the router-connected devices in the network area at each moment, including the upload and download data volume at the previous moment and the upload and download data volume at the same moment in history;
[0056] Python
[0057] import datetime
[0058] # Assume that the upload and download data volume history of the router-connected device has been obtained
[0059] # The data format should be a list containing timestamp and upload / download data amount, each element is a dictionary, as shown below:
[0060] # history_data = [{'timestamp': '2022-01-01 08:00:00', 'upload': 10,'download': 20}, ...]
[0061] history_data = [...] #
[0062] def get_previous_data(current_timestamp):
[0063] previous_upload = 0
[0064] previous_download = 0
[0065] for data in history_data:
[0066] # Convert the timestamp of the data to a datetime object
[0067] timestamp = datetime.datetime.strptime(data['timestamp'], '%Y-%m-%d %H:%M:%S')
[0068] if timestamp < current_timestamp:
[0069] previous_upload = data['upload']
[0070] previous_download = data['download']
[0071] else:
[0072] break
[0073] return previous_upload, previous_download
[0074] def get_history_data(current_timestamp):
[0075] history_upload = []
[0076] history_download = []
[0077] for data in history_data:
[0078] # Convert the timestamp of the data to a datetime object
[0079] timestamp = datetime.datetime.strptime(data['timestamp'], '%Y-%m-%d %H:%M:%S')
[0080] if timestamp.time() == current_timestamp.time():
[0081] history_upload.append(data['upload'])
[0082] history_download.append(data['download'])
[0083] return history_upload, history_download
[0084] # Suppose you want to get the amount of data at the current time point
[0085] current_timestamp = datetime.datetime.now()
[0086] # Get the amount of data at the previous moment
[0087] previous_upload, previous_download = get_previous_data(current_timestamp - datetime.timedelta(minutes=1))
[0088] # Get the amount of data at the same time in history
[0089] history_upload, history_download = get_history_data(current_timestamp)
[0090] # Output results
[0091] print("Previous upload data:", previous_upload)
[0092] print("Previous download data:", previous_download)
[0093] print("History upload data:", history_upload)
[0094] print("History download data:", history_download)
[0095] Please note that this sample code assumes that you already have a list of historical data and get the upload and download data amounts based on timestamps.
[0096] S2, importing the upload and download volume of the connected device at each moment into the transmission volume estimation strategy to estimate the transmission volume of each connected device at the next moment;
[0097] In this embodiment, the specific steps of the transmission volume estimation strategy of S2 are as follows:
[0098] S21, extracting the upload and download data volume of the router-connected device in the network area at each time, including the upload and download data volume at the previous time and the upload and download data volume at the same time in history;
[0099] S22, substituting the upload and download data volume of the connected device at the last moment into the calculation formula of the average data transmission speed of the connected device at the last moment to calculate the average data transmission speed at the last moment, the calculation formula of the average data transmission speed of the jth connected device at the last moment is: ,in is the total number of data packets downloaded and uploaded at the previous moment, is the size of the ith data packet, is the length of time of the previous moment;
[0100] S23, substituting the upload and download data volume of the connected device at the same time in history into the calculation formula of the average speed of the connected device at the same time in history to calculate the average data transmission speed at the same time in history. The calculation formula of the average speed of the j-th connected device at the same time in history is: ,in is the number of historical moments, is the total number of data packets downloaded and uploaded at the kth moment in history, is the size of the zth data packet at the kth moment in history;
[0101] S24, substituting the calculated average data transmission speed of the connected device at the previous moment and the average data transmission speed of the connected device at the same moment in history into the calculation formula of the average data transmission speed at the next moment to calculate the average data transmission speed of the j-th connected device at the next moment. The calculation formula of the average data transmission speed at the next moment is: ,in is the coefficient of the previous moment, is the historical moment proportion coefficient, ,at the same time ;
[0102] It should be noted here that and The value of is obtained by substituting the extracted 500 sets of upload and download data volume at each moment and the average data transmission speed at the next moment into the fitting software. and The optimal solution is calculated as follows: is 0.873, is 0.127;
[0103] S25, substituting the calculated average data transmission speed at the next moment into the calculation formula of the transmission amount at the next moment to calculate the total transmission amount at the next moment, the calculation formula of the total transmission amount at the next moment is: ,in The total number of powered-on devices in the network area;
[0104] S3, determine whether the total amount of transmission at the next moment is greater than or equal to the total amount of network transmission, if so, execute S4; if not, allocate the total amount of network transmission according to the transmission amount at the next moment;
[0105] S4, extracting the upload and download data volume of each connected device at each time and importing it into the importance calculation strategy to calculate the transmission importance;
[0106] In this embodiment, the specific steps of the transmission importance calculation strategy in S4 include the following:
[0107] S41, extracting the upload and download data volume of the router-connected device in the network area at each time, and extracting the calculated total transmission volume at the next time;
[0108] S42, substituting the amount of uploaded and downloaded data at each moment of the router-connected device in the network area extracted into the calculation formula of the average data transmission speed at the next moment to calculate the average data transmission speed of each connected device at the next moment;
[0109] S43, substituting the total amount of transmission at the next moment and the average data transmission speed of each connected device at the next moment into the transmission importance calculation formula to calculate the transmission importance of each connected device. The calculation formula for the transmission importance of the sth connected device is: ,in is the average data transmission speed of the s-th connected device at the next moment;
[0110] S5, extracting the connection line data of each connected device and importing it into the connection importance calculation strategy to calculate the connection importance;
[0111] In this embodiment, the connection importance calculation strategy in S5 includes the following specific steps:
[0112] S51, extracting connection line data of each connection device, wherein the connection line data is the total number of devices that connect the device to perform data transmission with the outside world;
[0113] S52, substituting the connection line data of each connection device into the connection importance calculation formula to calculate the connection importance. The calculation formula for the connection importance of the s-th connection device is: ,in, is the total number of devices that transmit data between the sth connected device and the outside world, is the total number of devices that transmit data between the jth connected device and the outside world;
[0114] S6. Importing the transmission importance and the connection importance into the connection device importance calculation strategy to calculate the connection device importance;
[0115] In this embodiment, the connection device importance calculation strategy in S6 includes the following specific contents:
[0116] The transmission importance and connection importance of the sth connection device are extracted and substituted into the connection device importance calculation formula to calculate the connection device importance. The calculation formula for the sth connection device importance is: ,in is the transmission importance ratio, is the connection importance ratio coefficient; ;
[0117] Here, the value determination method of the transmission importance ratio coefficient and the connection importance ratio coefficient is specifically described: the connection relationship of 5000 groups of historical routers is obtained, and the connection lines of the historical router connection devices, the upload and download volume of the connection devices at each time are extracted, and the most important connection devices are manually determined. The connection relationship of the historical routers, the connection lines of the historical router connection devices, the upload and download volume of the connection devices at each time are substituted into the connection device importance calculation formula to calculate the connection device importance, and the calculated connection device importance and important connection devices are imported into the fitting software to output the transmission importance ratio coefficient and the connection importance ratio coefficient values that meet the highest judgment accuracy;
[0118] S7. Allocate the total amount of network transmission according to the importance of the connected devices;
[0119] In this embodiment, the specific content of S7 is: substituting the calculated importance of each connected device and the total network transmission amount into the network transmission allocation calculation formula to calculate the network transmission allocation of each connected device. The network transmission allocation calculation formula for the sth connected device is: ,in is the importance of the jth connected device, The total amount of network transmission.
[0120] This embodiment extracts the connection relationship of each router, and at the same time extracts the connection lines of each router connection device, the upload and download volume of the connection device at each moment, imports the upload and download volume of the connection device at each moment into the transmission volume estimation strategy to estimate the transmission volume of each connection device at the next moment, and judges whether the total transmission volume at the next moment is greater than or equal to the total network transmission volume. If so, the upload and download data volume of each connection device at each moment is extracted and imported into the importance calculation strategy to calculate the transmission importance, the connection line data of each connection device is extracted, and imported into the connection importance calculation strategy to calculate the connection importance, the transmission importance and connection importance are imported into the connection device importance calculation strategy to calculate the connection device importance, the total network transmission volume is allocated according to the connection device importance, and the network resources are reasonably allocated to the connection devices in the network resource fluctuation state, thereby improving the transmission efficiency of important files in the network fluctuation state.
[0121] Example 2
[0122] like Figure 3 As shown, a distributed energy communication control system based on collaborative operation is implemented based on the above-mentioned distributed energy communication control method based on collaborative operation, and specifically includes: a control module, a data acquisition module, a transmission volume estimation module at the next moment, a transmission volume comparison module, a transmission importance calculation module, a connection importance calculation module, a connection device importance calculation module and a network allocation module. The control module is used to control the operation of the data acquisition module, the transmission volume estimation module at the next moment, the transmission volume comparison module, the transmission importance calculation module, the connection importance calculation module, the connection device importance calculation module and the network allocation module. The data acquisition module is used to collect and extract the connection relationship of each router, and at the same time extract the connection lines of each router connecting device, and the upload and download volume of the connection device at each moment. The transmission volume estimation module at the next moment is used to connect the connection device The upload and download amounts at each moment are imported into the transmission amount estimation strategy to estimate the transmission amount of each connected device at the next moment. The transmission amount comparison module is used to determine whether the total transmission amount at the next moment is greater than or equal to the total network transmission amount. If it is determined to be otherwise, the total network transmission amount is allocated according to the transmission amount at the next moment; the transmission importance calculation module is used to extract the upload and download data amount of each connected device at each moment and import it into the importance calculation strategy to calculate the transmission importance; the connection importance calculation module is used to extract the connection line data of each connected device and import it into the connection importance calculation strategy to calculate the connection importance; the connection device importance calculation module is used to import the transmission importance and connection importance into the connection device importance calculation strategy to calculate the connection device importance; the network allocation module is used to allocate the total network transmission amount according to the connection device importance;
[0123] like Figure 4As shown, in this embodiment, the data acquisition module includes a connection relationship acquisition unit, a connection line acquisition unit and a connection device transmission volume acquisition unit. The connection relationship acquisition unit is used to collect the connection relationship of each router, the connection line acquisition unit is used to collect the connection lines of each router connection device, and the connection device transmission volume acquisition unit is used to collect the upload and download volume of the connection device at each time.
[0124] Example 3
[0125] This embodiment provides an electronic device, including: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0126] The processor executes the above-mentioned distributed energy communication control method based on collaborative operation by calling the computer program stored in the memory.
[0127] The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) and one or more memories, wherein the memory stores at least one computer program, and the computer program is loaded and executed by the processor to implement a distributed energy communication control method based on collaborative operation provided by the above method embodiment. The electronic device may also include other components for realizing the functions of the device, for example, the electronic device may also have components such as a wired or wireless network interface and an input and output interface to input and output data. This embodiment will not be described in detail here.
[0128] Example 4
[0129] This embodiment provides a computer-readable storage medium having a rewritable computer program stored thereon;
[0130] When the computer program runs on a computer device, the computer device executes the above-mentioned distributed energy communication control method based on collaborative operation.
[0131] For example, the computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0132] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0133] It should be understood that determining B based on A does not mean determining B only based on A. B can also be determined based on A and / or other information.
[0134] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When a computer instruction or computer program is loaded or executed on a computer, a process or function according to an embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center through a wired network or / and a wireless network. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0135] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0136] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0137] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only one, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0138] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0139] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0140] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0141] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A distributed energy communication control method based on collaborative operation, characterized in that: It includes the following specific steps: S1. Extract the connection relationship of each router, and at the same time extract the connection line of each router connected device, and the upload and download volume of the connected device at each time; S2, importing the upload and download volume of the connected device at each moment into the transmission volume estimation strategy to estimate the transmission volume of each connected device at the next moment; S3, determine whether the total amount of transmission at the next moment is greater than or equal to the total amount of network transmission, if so, execute S4; if not, allocate the total amount of network transmission according to the transmission amount at the next moment; S4, extracting the upload and download data volume of each connected device at each time and importing it into the importance calculation strategy to calculate the transmission importance; S5, extracting the connection line data of each connected device and importing it into the connection importance calculation strategy to calculate the connection importance; S6. Importing the transmission importance and the connection importance into the connection device importance calculation strategy to calculate the connection device importance; S7. Allocate the total amount of network transmission according to the importance of the connected devices; The specific steps of the transmission importance calculation strategy in S4 include the following: S41, extracting the upload and download data volume of the router-connected device in the network area at each time, and extracting the calculated total transmission volume at the next time; S42, substituting the amount of uploaded and downloaded data at each moment of the router-connected device in the network area extracted into the calculation formula of the average data transmission speed at the next moment to calculate the average data transmission speed of each connected device at the next moment; S43, substituting the total amount of transmission at the next moment and the average data transmission speed of each connected device at the next moment into the transmission importance calculation formula to calculate the transmission importance of each connected device. The calculation formula for the transmission importance of the sth connected device is: ,in is the average data transmission speed of the sth connected device at the next moment; the connection importance calculation strategy in S5 includes the following specific steps: S51, extracting connection line data of each connection device, wherein the connection line data is the total number of devices that connect the device to perform data transmission with the outside world; S52, substituting the connection line data of each connection device into the connection importance calculation formula to calculate the connection importance. The calculation formula for the connection importance of the s-th connection device is: ,in, is the total number of devices that transmit data between the sth connected device and the outside world, is the total number of devices that the jth connected device transmits data to the outside world; the connection device importance calculation strategy in S6 includes the following specific contents: The transmission importance and connection importance of the sth connection device are extracted and substituted into the connection device importance calculation formula to calculate the connection device importance. The calculation formula for the sth connection device importance is: ,in is the transmission importance ratio, is the connection importance ratio coefficient; The specific content of S7 is: Substitute the calculated importance of each connected device and the total amount of network transmission into the network transmission allocation calculation formula to calculate the network transmission allocation of each connected device. The network transmission allocation calculation formula for the sth connected device is: ,in is the importance of the jth connected device, The total amount of network transmission.
2. A distributed energy communication control method based on collaborative operation as claimed in claim 1, characterized in that: The specific contents of S1 include the following steps: S11, taking a network area to be controlled, extracting the connection relationship of each router in the network area, and extracting the connection line between the router and the device; S12, extracting the upload and download data volumes of the router-connected devices in the network area at each time.
3. A distributed energy communication control method based on collaborative operation as claimed in claim 2, characterized in that: The specific steps of the transmission volume estimation strategy of S2 are as follows: S21, extracting the upload and download data volume of the router-connected device in the network area at each time, including the upload and download data volume at the previous time and the upload and download data volume at the same time in history; S22, substituting the upload and download data volume of the connected device at the last moment into the calculation formula of the average data transmission speed of the connected device at the last moment to calculate the average data transmission speed at the last moment, the calculation formula of the average data transmission speed of the jth connected device at the last moment is: ,in is the total number of data packets downloaded and uploaded at the previous moment, is the size of the ith data packet, is the length of time of the previous moment; S23, substituting the upload and download data volume of the connected device at the same time in history into the calculation formula of the average speed of the connected device at the same time in history to calculate the average data transmission speed at the same time in history. The calculation formula of the average speed of the j-th connected device at the same time in history is: ,in is the number of historical moments, is the total number of data packets downloaded and uploaded at the kth moment in history, is the size of the zth data packet at the kth moment in history; S24, substituting the calculated average data transmission speed of the connected device at the previous moment and the average data transmission speed of the connected device at the same moment in history into the calculation formula of the average data transmission speed at the next moment to calculate the average data transmission speed of the j-th connected device at the next moment. The calculation formula of the average data transmission speed at the next moment is: ,in is the coefficient of the previous moment, is the historical moment proportion coefficient, ,at the same time ; S25, substituting the calculated average data transmission speed at the next moment into the calculation formula of the transmission amount at the next moment to calculate the total transmission amount at the next moment, the calculation formula of the total transmission amount at the next moment is: ,in The total number of powered-on devices in the network zone.
4. A distributed energy communication control system based on coordinated operation, which is implemented based on the distributed energy communication control method based on coordinated operation as claimed in any one of claims 1 to 3, characterized in that: It specifically includes: a control module, a data acquisition module, a transmission volume estimation module for the next moment, a transmission volume comparison module, a transmission importance calculation module, a connection importance calculation module, a connection device importance calculation module and a network allocation module. The control module is used to control the operation of the data acquisition module, the transmission volume estimation module for the next moment, the transmission volume comparison module, the transmission importance calculation module, the connection importance calculation module, the connection device importance calculation module and the network allocation module. The data acquisition module is used to collect and extract the connection relationship of each router, and at the same time extract the connection lines of each router connection device, and the upload and download volume of the connection device at each moment. The transmission volume estimation module for the next moment is used to import the upload and download volume of the connection device at each moment into the transmission volume estimation strategy to estimate the transmission volume of each connection device at the next moment. The transmission volume comparison module is used to determine whether the total transmission volume at the next moment is greater than or equal to the total network transmission volume. If it is determined to be otherwise, the total network transmission volume is allocated according to the transmission volume at the next moment.
5. A distributed energy communication control system based on collaborative operation as claimed in claim 4, characterized in that: The transmission importance calculation module is used to extract the upload and download data volume of each connected device at each time and import it into the importance calculation strategy to calculate the transmission importance. The connection importance calculation module is used to extract the connection line data of each connected device and import it into the connection importance calculation strategy to calculate the connection importance. The connection device importance calculation module is used to import the transmission importance and connection importance into the connection device importance calculation strategy to calculate the connection device importance. The network allocation module is used to allocate the total network transmission according to the connection device importance.
6. A distributed energy communication control system based on collaborative operation as claimed in claim 5, characterized in that: The data collection module includes a connection relationship collection unit, a connection line collection unit and a connection device transmission volume collection unit. The connection relationship collection unit is used to collect the connection relationship of each router, the connection line collection unit is used to collect the connection lines of each router connection device, and the connection device transmission volume collection unit is used to collect the upload and download volume of the connection device at each time.
7. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores a computer program that can be called by the processor; The processor executes a distributed energy communication control method based on collaborative operation as described in any one of claims 1 to 3 by calling a computer program stored in the memory.
8. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer executes a distributed energy communication control method based on collaborative operation as described in any one of claims 1-3.
