Network resource configuration method and device, computer equipment and storage medium

文档序号:259960 发布日期:2021-11-16 浏览:10次 中文

阅读说明:本技术 网络资源配置方法、装置、计算机设备和存储介质 (Network resource configuration method and device, computer equipment and storage medium ) 是由 王莉 孙磊 危国恩 劳永钊 王维 黎洪光 陈文炜 周仕杰 陈永涛 张国翊 于 2021-06-28 设计创作,主要内容包括:本申请涉及一种网络资源配置方法、装置、计算机设备和存储介质,涉及配电网技术领域。所述方法包括:获取配电网中电力控制类业务的目标业务数据的属性信息,属性信息包括发送目标业务数据的时间、目标业务数据的总数据量、发送目标业务数据的总持续时间以及发送目标业务数据的平均速率中的至少一项;根据属性信息,对目标业务数据进行分类,得到目标业务数据的目标类别;根据目标类别,确定目标业务数据的优先级;根据目标业务数据的优先级,为目标业务数据配置相应的网络资源,其中,网络资源的多少与目标业务数据的优先级正相关。采用本方法能够兼顾不同业务类型的业务流的性能要求。(The application relates to a network resource configuration method, a network resource configuration device, computer equipment and a storage medium, and relates to the technical field of power distribution networks. The method comprises the following steps: acquiring attribute information of target service data of a power control service in a power distribution network, wherein the attribute information comprises at least one of time for sending the target service data, total data volume of the target service data, total duration time for sending the target service data and average rate for sending the target service data; classifying the target service data according to the attribute information to obtain a target class of the target service data; determining the priority of the target service data according to the target category; and configuring corresponding network resources for the target service data according to the priority of the target service data, wherein the quantity of the network resources is positively correlated with the priority of the target service data. The method can meet the performance requirements of the service flows of different service types.)

1. A method for configuring network resources, the method comprising:

acquiring attribute information of target service data of a power control service in a power distribution network, wherein the attribute information comprises at least one of time for sending the target service data, total data volume of the target service data, total duration for sending the target service data and average rate for sending the target service data;

classifying the target service data according to the attribute information to obtain a target class of the target service data;

determining the priority of the target service data according to the target category;

and configuring corresponding network resources for the target service data according to the priority of the target service data, wherein the number of the network resources is positively correlated with the priority of the target service data.

2. The method of claim 1, wherein the determining the priority of the target service data according to the target class comprises:

determining the weight corresponding to the target category according to a preset rule between the category and the weight of the service data;

and determining the priority of the target service data according to the weight corresponding to the target category.

3. The method of claim 1, wherein after configuring the corresponding network resource for the target service data, the method further comprises:

receiving an encryption rule sent by a power distribution terminal; the encryption rule comprises a plurality of encryption modes;

encrypting the target service data according to the encryption rule;

and sending the encrypted target service data to the power distribution terminal by using the network resources.

4. The method according to claim 3, wherein the encryption rules include a plurality of encryption manners corresponding to different security levels, and the encrypting the target service data according to the encryption rules includes:

determining the security level of the target service data according to the attribute information of the target service data;

according to the security level, determining a target encryption mode corresponding to the target service data from the encryption rule;

and encrypting the target service data according to the target encryption mode.

5. The method according to claim 4, wherein the encrypting the target service data according to the target encryption manner comprises:

splitting the target service data into a plurality of character strings;

scrambling the split character strings according to a preset scrambling rule;

and adding a preset random number into the preset position of each scrambled character string.

6. The method of claim 3, wherein the network resources comprise a plurality of digital data networks isolated from each other, and the transmitting the encrypted target service data to the power distribution terminal by using the network resources comprises:

and sending the encrypted target service data to the power distribution terminal by utilizing the plurality of digital data networks which are isolated from each other.

7. The method according to claim 1, wherein the classifying the target service data according to the attribute information to obtain a target class of the target service data comprises:

determining a target class of the target service data according to at least one of a sending time class corresponding to the target service data, a data volume class corresponding to the target service data, a duration class corresponding to the target service data and an average rate class corresponding to the target service data;

the sending time category corresponding to the target service data is determined according to the time for sending the target service data; the data volume type corresponding to the target business data is determined according to the total data volume of the target business data; the duration type corresponding to the target service data is determined according to the total duration for sending the target service data; the average rate class corresponding to the target service data is determined according to the average rate for sending the target service data.

8. An apparatus for configuring network resources, the apparatus comprising:

the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring attribute information of target service data of a power control service in a power distribution network, and the attribute information comprises at least one of time for sending the target service data, total data volume of the target service data, total duration for sending the target service data and average rate for sending the target service data;

the classification module is used for classifying the target service data according to the attribute information to obtain a target class of the target service data;

the determining module is used for determining the priority of the target service data according to the target category;

and the configuration module is used for configuring corresponding network resources for the target service data according to the priority of the target service data, wherein the amount of the network resources is positively correlated with the priority of the target service data.

9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.

Technical Field

The present application relates to the field of power distribution network technologies, and in particular, to a network resource configuration method and apparatus, a computer device, and a storage medium.

Background

In order to ensure the smooth development of power services, the requirements of each power service on the time delay, capacity, safety and reliability of a power communication network are higher and higher. In a power distribution network, a power distribution network server generally transmits service data corresponding to different power services to each power distribution terminal by using a network. However, because the types of the power services are many, the service data sent by the power distribution network server to each power distribution terminal is different, and the demands of the service data corresponding to different types of power services on the network are changed. Therefore, how to transmit service data to each power distribution terminal by using network resources is a problem to be solved currently.

In the conventional technology, a power distribution network server generally transmits service data corresponding to different control services to each power distribution terminal in a fixed bandwidth manner, that is, the same network resources are configured for different service data.

However, in the above conventional techniques, network resources corresponding to different service data are not allocated differently. Therefore, the method cannot meet the performance requirements of the service flows of different service types in the power distribution network with various power services coexisting.

Disclosure of Invention

In view of the foregoing, it is necessary to provide a network resource allocation method, apparatus, computer device and storage medium, which can meet the performance requirements of service flows of different service types.

In a first aspect, a method for configuring network resources is provided, where the method includes: acquiring attribute information of target service data of a power control service in a power distribution network, wherein the attribute information comprises at least one of time for sending the target service data, total data volume of the target service data, total duration time for sending the target service data and average rate for sending the target service data; classifying the target service data according to the attribute information to obtain a target class of the target service data; determining the priority of the target service data according to the target category; and configuring corresponding network resources for the target service data according to the priority of the target service data, wherein the quantity of the network resources is positively correlated with the priority of the target service data.

In one embodiment, determining the priority of the target service data according to the target class includes: determining the weight corresponding to the target category according to a preset rule between the category and the weight of the service data; and determining the priority of the target service data according to the weight corresponding to the target class.

In one embodiment, after configuring the corresponding network resource for the target service data, the method further includes: receiving an encryption rule sent by a power distribution terminal; the encryption rule comprises a plurality of encryption modes; encrypting the target service data according to an encryption rule; and sending the encrypted target service data to the power distribution terminal by using network resources.

In one embodiment, the encryption rule includes a plurality of encryption modes corresponding to different security levels, and the encrypting the target service data according to the encryption rule includes: determining the security level of the target service data according to the attribute information of the target service data; determining a target encryption mode corresponding to the target service data from the encryption rule according to the security level; and encrypting the target service data according to the target encryption mode.

In one embodiment, encrypting the target service data according to a target encryption manner includes: splitting target service data into a plurality of character strings; scrambling the split character strings according to a preset scrambling rule; and adding a preset random number into the preset position of each scrambled character string.

In one embodiment, the network resource includes a plurality of digital data networks isolated from each other, and the sending of the encrypted target service data to the power distribution terminal by using the network resource includes: and sending the encrypted target service data to a power distribution terminal by utilizing a plurality of mutually isolated digital data networks.

In one embodiment, classifying the target service data according to the attribute information to obtain a target class of the target service data includes: determining a target class of the target service data according to at least one of a sending time class corresponding to the target service data, a data volume class corresponding to the target service data, a duration class corresponding to the target service data and an average rate class corresponding to the target service data; the sending time category corresponding to the target service data is determined according to the time for sending the target service data; the data volume category corresponding to the target service data is determined according to the total data volume of the target service data; the corresponding duration category of the target service data is determined according to the total duration of the target service data; the average rate class corresponding to the target service data is determined according to the average rate of sending the target service data.

In a second aspect, an apparatus for configuring network resources is provided, the apparatus including:

the acquisition module is used for acquiring attribute information of target service data of the power control service in the power distribution network, wherein the attribute information comprises at least one of time for sending the target service data, total data volume of the target service data, total duration time for sending the target service data and average rate for sending the target service data;

the classification module is used for classifying the target service data according to the attribute information to obtain a target class of the target service data;

the determining module is used for determining the priority of the target service data according to the target category;

and the configuration module is used for configuring corresponding network resources for the target service data according to the priority of the target service data, wherein the quantity of the network resources is positively correlated with the priority of the target service data.

In a third aspect, there is provided a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the method according to any one of the first aspect when executing the computer program.

In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method of any of the first aspects described above.

According to the network resource allocation method, the network resource allocation device, the computer equipment and the storage medium, the attribute information of the target service data of the power control service in the power distribution network is obtained, and the target service data is classified according to the attribute information to obtain the target category of the target service data. Determining the priority of the target service data according to the target category; and configuring corresponding network resources for the target service data according to the priority of the target service data. In the method, the attribute information of the target service data is acquired, and the target class of the target service data is determined according to the attribute information of the target service data, so that the target service data can be accurately classified. And determining the priority of the target service data according to the target category of the target service data, so that corresponding network resources can be configured for the target service data according to the priority of the target service data, and the network resources configured for the target service data are matched with the target service data. Therefore, the dynamic operation condition of the power grid can be quickly acquired according to the distributed network resources, the control level of the power distribution network is effectively improved, and the performance requirements of service flows of different service types are met.

Drawings

FIG. 1 is a flow diagram illustrating a method for configuring network resources according to an embodiment;

FIG. 2 is a flow diagram illustrating a method for network resource allocation in one embodiment;

FIG. 3 is a flow diagram illustrating the network resource allocation step in one embodiment;

FIG. 4 is a flowchart illustrating a method for configuring network resources according to another embodiment;

FIG. 5 is a flowchart illustrating a method for configuring network resources according to another embodiment;

FIG. 6 is a flowchart illustrating a method for configuring network resources according to another embodiment;

FIG. 7 is a block diagram of a network resource allocation apparatus in one embodiment;

FIG. 8 is a block diagram of a network resource allocation apparatus in one embodiment;

FIG. 9 is a block diagram of a network resource allocation apparatus in one embodiment;

FIG. 10 is a block diagram of a network resource allocation apparatus in one embodiment;

FIG. 11 is an internal block diagram illustrating a computer device in the form of a server in one embodiment;

fig. 12 is an internal configuration diagram of a case where the computer device is a terminal in one embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application 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 present application and are not intended to limit the present application.

The network resource configuration method can be applied to computer equipment. The type and configuration of the computer device and the like are not intended to be limiting. The computer device may be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The computer device comprises a memory and a processor, wherein the memory can store data and computer programs, and the processor can execute the computer programs to realize the network resource configuration method provided by the embodiment of the application. The following embodiments are described by taking an example that the network resource allocation method is applied to a computer device.

In an embodiment of the present application, as shown in fig. 1, a network resource configuration method is provided, which is described by taking the method as an example applied to the computer device in fig. 1, and includes the following steps:

step 101, a computer device obtains attribute information of target service data of a power control service in a power distribution network.

The attribute information includes at least one of time for transmitting the target service data, total data amount of the target service data, total duration for transmitting the target service data, and average rate for transmitting the target service data.

The power control service may include control services including power distribution automation, distribution network differential protection, distribution network PMU, and the like.

Specifically, the computer device obtains target service data corresponding to the power control service according to the attribute information of the power control service. The computer equipment can determine the attribute information of the target business data by identifying the target business data.

And 102, classifying the target service data by the computer equipment according to the attribute information to obtain the target class of the target service data.

Specifically, the computer device determines a target class corresponding to the attribute information of the target service data according to a preset relationship between the attribute information of the service data and the class of the service data.

Optionally, the computer device may also determine a target category corresponding to the target service data service according to at least one item of attribute information of the target service data.

And 103, the computer equipment determines the priority of the target service data according to the target class.

Specifically, after the computer device determines the target class of the target service data, the computer device may input the target class of the target service data into a preset priority model, and output the priority of the target service data. The preset priority model may be a neural network model or other algorithm models, and the preset priority model is not specifically limited in the embodiments of the present application.

And 104, configuring corresponding network resources for the target service data by the computer equipment according to the priority of the target service data.

Wherein, the amount of the network resources is positively correlated with the priority of the target service data.

Specifically, after determining the priority of the target service data, the computer device may determine a network slice weight corresponding to the target service data according to the priority of the target service data, so as to configure a corresponding network resource for the target service data according to the network slice weight.

In the network resource allocation method, the computer equipment acquires attribute information of target service data of the power control service in the power distribution network, and classifies the target service data according to the attribute information to obtain the target class of the target service data. The computer equipment determines the priority of the target service data according to the target category; and configuring corresponding network resources for the target service data according to the priority of the target service data. In the method, the computer equipment acquires the attribute information of the target service data and determines the target class of the target service data according to the attribute information of the target service data, thereby being beneficial to accurately classifying the target service data. The computer equipment determines the priority of the target service data according to the target category of the target service data, so that corresponding network resources can be configured for the target service data according to the priority of the target service data, and the network resources configured for the target service data are matched with the target service data. Therefore, the dynamic operation condition of the power grid can be quickly acquired according to the distributed network resources, the control level of the power distribution network is effectively improved, and the performance requirements of service flows of different service types are met.

In an embodiment of the present application, as shown in fig. 2, the "determining the priority of the target service data according to the target class" in the step 103 may include the following steps:

step 201, the computer device determines the weight corresponding to the target category according to a preset rule between the category and the weight of the service data.

Specifically, the computer device finds the weight corresponding to the target category from the preset relationship according to the preset relationship between the category and the weight of the service data.

Illustratively, the weight corresponding to the class a of the service data is 0.2; the weight corresponding to the class B of the service data is 0.3; the weight corresponding to the class C of the service data is 0.4. And if the target class corresponding to the target service data is B, the weight corresponding to the target service data is 0.3.

Step 202, the computer device determines the priority of the target service data according to the weight corresponding to the target category.

Optionally, the computer device may determine the priority of the target service data according to a preset relationship between the weight and the priority and through the weight corresponding to the target service data.

Optionally, the computer device may further input the weight corresponding to the target type into a preset weight model, and the preset weight model performs feature analysis on the input weight and outputs the priority of the target service data.

The preset weight model may be a neural network model or other algorithm models, and the preset weight model is not specifically limited in the embodiments of the present application.

In the embodiment of the application, the computer equipment determines the weight corresponding to the target class according to a preset rule between the class and the weight of the service data; and determining the priority of the target service data according to the weight corresponding to the target category, thereby ensuring the accuracy of the determined priority of the target service data and further ensuring the accuracy of network resources configured for the target service data.

In an embodiment of the present application, as shown in fig. 3, after "configuring corresponding network resources for target service data" in step 104, "the method for configuring network resources may further include the following steps:

step 301, the computer device receives an encryption rule sent by the power distribution terminal.

The encryption rule includes a plurality of encryption modes.

Specifically, in order to ensure the security of the target service data sent by the computer device to the power distribution terminal, the computer device needs to encrypt the target service data. In order to ensure that the power distribution terminal receiving the target service data can decrypt the encrypted target service data, the power distribution terminal device needs to transmit an encryption rule for encrypting the target service data to the computer device through network communication with the computer device.

The computer equipment receives the encryption rule sent by the power distribution terminal through network communication with the power distribution terminal.

Step 302, the computer device encrypts the target service data according to the encryption rule.

Optionally, the computer device may randomly select an encryption mode from the encryption rules, and encrypt the target service data according to the selected encryption mode.

Optionally, the computer device may further determine a rule according to a preset encryption method, select one encryption method from multiple encryption methods included in the encryption rule, and encrypt the target service data according to the selected encryption method.

And step 303, the computer equipment sends the encrypted target service data to the power distribution terminal by using the network resource.

Specifically, after encrypting the target service data, the computer device may send the encrypted target service data to the power distribution terminal by using the network resource configured for the target service data.

In the embodiment of the application, the computer equipment receives the encryption rule sent by the power distribution terminal and encrypts the target service data according to the encryption rule. And the computer equipment transmits the encrypted target service data to the power distribution terminal by using network resources. Therefore, the safety of the target service data can be ensured, and the safety of the distribution network automation system is further greatly enhanced.

In an embodiment of the present application, the encryption rules include a plurality of encryption manners corresponding to different security levels, and as shown in fig. 4, the step 302 of "encrypting the target service data according to the encryption rules" may include the following steps:

step 401, the computer device determines the security level of the target service data according to the attribute information of the target service data.

Specifically, after acquiring the target service data, the computer device may determine the security level of the target service data according to at least one of time for sending the target service data, total data amount of the target service data, total duration for sending the target service data, and average rate for sending the target service data, which are included in attribute information in the target service data.

Step 402, the computer device determines a target encryption mode corresponding to the target service data from the encryption rule according to the security level.

Specifically, the computer device may determine, from the encryption rule, a target encryption manner that matches the security level of the target service data according to the security level of the target service data.

The higher the security level of the target service is, the higher the level of a target encryption mode corresponding to the target service data is, and the more difficult the encrypted target service data is to be decrypted.

For example, taking splitting the target service data into a plurality of character strings as an example, if the security level of the target service data is level 1, the corresponding encryption mode provides that the target service data can be split into 50 character strings; if the security level of the target service data is level 2, the corresponding encryption mode provides that the target service data can be divided into 100 character strings.

And step 403, the computer device encrypts the target service data according to the target encryption mode.

Specifically, after the computer device determines the target encryption mode corresponding to the target service data, the computer device may encrypt the target service data according to the target encryption mode.

In the embodiment of the application, the computer device determines the security level of the target service data according to the attribute information of the target service data, and determines the target encryption mode corresponding to the target service data from the encryption rule according to the security level. And the computer equipment encrypts the target service data according to the target encryption mode. The target encryption mode corresponding to the target service data is matched with the security level of the target service data, and the condition that the target service data is intercepted and decrypted due to insufficient level of the target encryption mode is avoided. Therefore, the method further ensures the safety of the target service data.

In an embodiment of the present application, as shown in fig. 5, the "encrypting the target service data according to the target encryption manner" in step 403 may include the following steps:

step 501, a computer device splits target service data into a plurality of character strings.

Specifically, the computer device may obtain the target service data, and split the target service data into a plurality of character strings according to a rule for splitting the target service data in a target encryption manner. The higher the security level of the target service data is, the more the number of the character strings split from the target service data in the corresponding target encryption mode is.

For example, if the security level of the target service data is level 2, the corresponding target encryption manner provides that the target service data can be split into 100 character strings.

For example, the splitting manner of the computer device when splitting the target service data may be segmented splitting, where, for example, the 1 st to 50 th characters are first character strings, and the 51 st to 100 th characters are second character strings; the splitting mode of the computer equipment when splitting the target service data can also be split intermittently.

Step 502, scrambling the split plurality of character strings by the computer device according to a preset scrambling rule.

Specifically, the computer device may scramble the split plurality of character strings according to a scrambling rule in the target encryption manner.

For example, it is assumed that the scrambling rule in the target encryption manner is to reverse the order between every two strings. The computer device may scramble an order of the first, second, third, fourth, fifth, and sixth character strings into the second, first, fourth, third, sixth, and fifth character strings.

Step 503, the computer device adds a preset random number to the preset position of each scrambled character string.

Specifically, the computer device may add a preset random number to a preset position of each scrambled character string according to each random number included in the target encryption scheme and a position of each random number.

Illustratively, the target encryption scheme provides that "1" is added at the beginning of the first string, "a" is added after the third character in the second string, and "d" is added at the end of the third string.

In the embodiment of the application, the computer device splits the target service data into a plurality of character strings, scrambles the split character strings according to a preset scrambling rule, and finally adds a preset random number to a preset position of each scrambled character string. The high-level encryption of the target service data is realized, the safety of the target service data is ensured, and the safety of the distribution network automation system is further greatly enhanced. In addition, because the scrambling rule and the random number are determined according to one service class or at least one classification branch, the flexibility and the safety of target service data encryption are improved.

In an embodiment of the present application, the network resource includes a plurality of digital data networks isolated from each other, and the "sending the encrypted target service data to the power distribution terminal by using the network resource" in step 303 may include the following:

and the computer equipment transmits the encrypted target service data to the power distribution terminal by utilizing a plurality of mutually isolated digital data networks.

Specifically, the computer device may transmit the encrypted target service data to the power distribution terminal using a plurality of digital data networks isolated from each other.

The computer device may send one or more encrypted character strings of the target service data by using each digital data network, where the number of the character strings sent by each digital data network may be the same or different.

In the embodiment of the application, because a plurality of digital data networks are isolated from each other, when the character string split in one or a plurality of digital data networks is intercepted, the safe transmission of other character strings is not influenced. Therefore, the computer equipment transmits the encrypted target service data to the power distribution terminal by using a plurality of digital data networks which are isolated from each other. The safety of target service data can be further ensured, and the safety of a distribution network automation system is greatly enhanced while the distribution network data transmission efficiency is improved.

In an embodiment of the present application, the "classifying the target service data according to the attribute information to obtain the target category of the target service data" in the step 102 may include the following contents:

and the computer equipment determines the target class of the target service data according to at least one of the sending time class corresponding to the target service data, the data volume class corresponding to the target service data, the duration class corresponding to the target service data and the average rate class corresponding to the target service data.

The sending time category corresponding to the target service data is determined according to the time for sending the target service data; the data volume category corresponding to the target service data is determined according to the total data volume of the target service data; the corresponding duration category of the target service data is determined according to the total duration of the target service data; the average rate class corresponding to the target service data is determined according to the average rate of sending the target service data.

Specifically, the computer device may determine the target category of the target service data according to at least one of a sending time category corresponding to the target service data, a data volume category corresponding to the target service data, a duration category corresponding to the target service data, and an average rate category corresponding to the target service data.

For example, taking the sending time category as an example, it is assumed that the sending time category is a category, and when the time for sending the target service data corresponding to the service data is 0 point to 6 points, the service data is a category a 1; when the time for sending the target service data corresponding to the service data is 6-12 points, the service data is of type A2; when the time for sending the target service data corresponding to the service data is 12 to 18 points, the service data is A3; class when the time for establishing the service flow corresponding to the service data is 18-24 points, the service data is of class a 4. When the time for sending the target service data corresponding to the target service data is between 0 point and 6 points, the target service data is classified as a class a1 service on the branch of the sending time class a.

And the computer equipment determines the target class of the target service data according to the class corresponding to the class A of the target service data at the sending time.

To better explain the network resource configuration method provided by the present application, as shown in fig. 6, an embodiment of the present application provides a flowchart of a network resource configuration method, which specifically includes the following steps:

step 601, the computer device obtains attribute information of target service data of the power control service in the power distribution network.

Step 602, the computer device determines a target category of the target service data according to at least one of a sending time category corresponding to the target service data, a data volume category corresponding to the target service data, a duration category corresponding to the target service data, and an average rate category corresponding to the target service data.

Step 603, the computer device determines the weight corresponding to the target class according to a preset rule between the class and the weight of the service data.

Step 604, the computer device determines the priority of the target service data according to the weight corresponding to the target category.

Step 605, the computer device configures corresponding network resources for the target service data according to the priority of the target service data.

Step 606, the computer device determines the security level of the target service data according to the attribute information of the target service data.

Step 607, the computer device determines the target encryption mode corresponding to the target service data from the encryption rule according to the security level.

Step 608, the computer device splits the target service data into a plurality of character strings.

And step 609, scrambling the split character strings by the computer equipment according to a preset scrambling rule.

And step 610, adding a preset random number to the preset position of each scrambled character string by the computer equipment.

Step 611, the computer device sends the encrypted target service data to the power distribution terminal by using a plurality of digital data networks isolated from each other.

It should be understood that although the various steps in the flow charts of fig. 1-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.

In an embodiment of the present application, as shown in fig. 7, there is provided a network resource configuration apparatus 7000, including: an obtaining module 7010, a classifying module 7020, a determining module 7030, and a configuring module 7040, wherein:

the obtaining module 7010 is configured to obtain attribute information of target service data of a power control service in the power distribution network, where the attribute information includes at least one of time for sending the target service data, total data amount of the target service data, total duration for sending the target service data, and average rate for sending the target service data.

The classifying module 7020 is configured to classify the target service data according to the attribute information, so as to obtain a target class of the target service data.

A determining module 7030, configured to determine the priority of the target service data according to the target category.

A configuration module 7040, configured to configure corresponding network resources for the target service data according to the priority of the target service data, where the amount of the network resources is positively correlated to the priority of the target service data.

In an embodiment of the present application, as shown in fig. 8, the determining module 7030 includes: a first determining unit 7031 and a second determining unit 7032, wherein:

a first determining unit 7031, configured to determine, according to a preset rule between the category and the weight of the service data, a weight corresponding to the target category;

a second determining unit 7032, configured to determine the priority of the target service data according to the weight corresponding to the target category.

In an embodiment of the present application, as shown in fig. 9, the network resource configuration apparatus 7000 further includes: a receiving module 7050, an encrypting module 7060, and a sending module 7070, wherein:

the receiving module 7050 is configured to receive an encryption rule sent by the power distribution terminal; the encryption rules include a plurality of encryption schemes.

And the encryption module 7060 is configured to encrypt the target service data according to an encryption rule.

A sending module 7070, configured to send the encrypted target service data to the power distribution terminal by using a network resource.

In an embodiment of the present application, the encryption rule includes a plurality of encryption manners corresponding to different security levels, and as shown in fig. 10, the encryption module 7060 includes: third determining unit 7061, fourth determining unit 7062, and encrypting unit 7063, wherein:

a third determining unit 7061, configured to determine a security level of the target service data according to the attribute information of the target service data;

a fourth determining unit 7062, configured to determine, according to the security level, a target encryption manner corresponding to the target service data from the encryption rule;

an encrypting unit 7063, configured to encrypt the target service data according to the target encryption manner.

In an embodiment of the present application, the encrypting unit 7063 is specifically configured to split the target service data into a plurality of character strings; scrambling the split character strings according to a preset scrambling rule; and adding a preset random number into the preset position of each scrambled character string.

In an embodiment of the application, the network resource includes a plurality of digital data networks isolated from each other, and the sending module is specifically configured to send the encrypted target service data to the power distribution terminal by using the plurality of digital data networks isolated from each other.

In an embodiment of the present application, the classifying module 7020 is specifically configured to determine a target class of the target service data according to at least one of a sending time class corresponding to the target service data, a data amount class corresponding to the target service data, a duration class corresponding to the target service data, and an average rate class corresponding to the target service data;

the sending time category corresponding to the target service data is determined according to the time for sending the target service data; the data volume category corresponding to the target service data is determined according to the total data volume of the target service data; the corresponding duration category of the target service data is determined according to the total duration of the target service data; the average rate class corresponding to the target service data is determined according to the average rate of sending the target service data.

For specific limitations of the network resource configuration device, reference may be made to the above limitations of the network resource configuration method, which is not described herein again. The modules in the network resource configuration device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, the computer device may be a server, and when the computer device is a server, the internal structure thereof may be as shown in fig. 11. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing network resource configuration data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a network resource configuration method.

In one embodiment, a computer device is provided, the computer device may be a terminal, and when the computer device is a terminal, the internal structure thereof may be as shown in fig. 12. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a network resource configuration method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.

Those skilled in the art will appreciate that the configurations shown in fig. 11 and 12 are merely block diagrams of portions of configurations related to aspects of the present application, and do not constitute limitations on the computing devices to which aspects of the present application may be applied, as particular computing devices may include more or less components than shown, or combine certain components, or have a different arrangement of components.

In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: acquiring attribute information of target service data of a power control service in a power distribution network, wherein the attribute information comprises at least one of time for sending the target service data, total data volume of the target service data, total duration time for sending the target service data and average rate for sending the target service data; classifying the target service data according to the attribute information to obtain a target class of the target service data; determining the priority of the target service data according to the target category; and configuring corresponding network resources for the target service data according to the priority of the target service data, wherein the quantity of the network resources is positively correlated with the priority of the target service data.

In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the weight corresponding to the target category according to a preset rule between the category and the weight of the service data; and determining the priority of the target service data according to the weight corresponding to the target class.

In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving an encryption rule sent by a power distribution terminal; the encryption rule comprises a plurality of encryption modes; encrypting the target service data according to an encryption rule; and sending the encrypted target service data to the power distribution terminal by using network resources.

In one embodiment, the encryption rules include a plurality of encryption schemes corresponding to different security levels, and the processor executes the computer program to perform the following steps: determining the security level of the target service data according to the attribute information of the target service data; determining a target encryption mode corresponding to the target service data from the encryption rule according to the security level; and encrypting the target service data according to the target encryption mode.

In one embodiment, the processor, when executing the computer program, further performs the steps of: splitting target service data into a plurality of character strings; scrambling the split character strings according to a preset scrambling rule; and adding a preset random number into the preset position of each scrambled character string.

In one embodiment, the network resource comprises a plurality of digital data networks isolated from each other, and the processor when executing the computer program further performs the steps of: and sending the encrypted target service data to a power distribution terminal by utilizing a plurality of mutually isolated digital data networks.

In one embodiment, the processor, when executing the computer program, further performs the steps of: the method comprises the following steps: determining a target class of the target service data according to at least one of a sending time class corresponding to the target service data, a data volume class corresponding to the target service data, a duration class corresponding to the target service data and an average rate class corresponding to the target service data; the sending time category corresponding to the target service data is determined according to the time for sending the target service data; the data volume category corresponding to the target service data is determined according to the total data volume of the target service data; the corresponding duration category of the target service data is determined according to the total duration of the target service data; the average rate class corresponding to the target service data is determined according to the average rate of sending the target service data.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring attribute information of target service data of a power control service in a power distribution network, wherein the attribute information comprises at least one of time for sending the target service data, total data volume of the target service data, total duration time for sending the target service data and average rate for sending the target service data; classifying the target service data according to the attribute information to obtain a target class of the target service data; determining the priority of the target service data according to the target category; and configuring corresponding network resources for the target service data according to the priority of the target service data, wherein the quantity of the network resources is positively correlated with the priority of the target service data.

In one embodiment, the computer program when executed by the processor further performs the steps of: determining the weight corresponding to the target category according to a preset rule between the category and the weight of the service data; and determining the priority of the target service data according to the weight corresponding to the target class.

In one embodiment, the computer program when executed by the processor further performs the steps of: receiving an encryption rule sent by a power distribution terminal; the encryption rule comprises a plurality of encryption modes; encrypting the target service data according to an encryption rule; and sending the encrypted target service data to the power distribution terminal by using network resources.

In one embodiment, the encryption rules include a plurality of encryption schemes corresponding to different security levels, and the computer program when executed by the processor further performs the steps of: determining the security level of the target service data according to the attribute information of the target service data; determining a target encryption mode corresponding to the target service data from the encryption rule according to the security level; and encrypting the target service data according to the target encryption mode.

In one embodiment, the computer program when executed by the processor further performs the steps of: splitting target service data into a plurality of character strings; scrambling the split character strings according to a preset scrambling rule; and adding a preset random number into the preset position of each scrambled character string.

In one embodiment, the network resource comprises a plurality of mutually isolated digital data networks, and the computer program when executed by the processor further performs the steps of: and sending the encrypted target service data to a power distribution terminal by utilizing a plurality of mutually isolated digital data networks.

In one embodiment, the computer program when executed by the processor further performs the steps of: the method comprises the following steps: determining a target class of the target service data according to at least one of a sending time class corresponding to the target service data, a data volume class corresponding to the target service data, a duration class corresponding to the target service data and an average rate class corresponding to the target service data; the sending time category corresponding to the target service data is determined according to the time for sending the target service data; the data volume category corresponding to the target service data is determined according to the total data volume of the target service data; the corresponding duration category of the target service data is determined according to the total duration of the target service data; the average rate class corresponding to the target service data is determined according to the average rate of sending the target service data.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:流量镜像的数据处理方法及其系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!