Resource configuration method and device, electronic equipment and storage medium

By identifying and configuring unconfigured network resource packet data in intelligent manufacturing, the problem that traditional solutions cannot meet the real-time service bandwidth and delay requirements is solved, and network traffic optimization and data loss risk are achieved.

CN119865458APending Publication Date: 2025-04-22CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510019009.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-06
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

In intelligent manufacturing, traditional network static configuration solutions are difficult to meet the bandwidth and delay requirements of real-time services, resulting in network congestion and data loss during data transmission.

Method used

By obtaining unconfigured network resource message data sets, identifying valid message data based on category databases, and reasonably configuring network resources according to the transmission interval and requirements of data categories, optimizing network traffic distribution, and reducing the risk of data loss.

Benefits of technology

It effectively avoids network congestion, optimizes network traffic distribution, and reduces the risk of network congestion and data loss caused by improper resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865458A_ABST
    Figure CN119865458A_ABST
Patent Text Reader

Abstract

The invention provides a resource configuration method and device, electronic equipment and a storage medium, relates to the technical field of data processing, and can solve the problems of network congestion and data loss in a data transmission process. The method comprises the following steps: acquiring a message data group without network resource configuration, wherein the network resource comprises a transmission bandwidth and a transmission time delay; on the basis of a category database, effective message data is determined from the message data set without network resource configuration, and the category database comprises data categories of multiple message data; for each data category, according to the transmission interval of the effective message data under the data category and the transmission requirements of the effective message data, target network resources are configured for the effective message data, and the transmission requirements comprise the transmission delay, the transmission bandwidth and the transmission priority. According to the invention, network congestion and data loss in the data transmission process can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a resource configuration method, device, electronic device and storage medium. Background Art

[0002] With the development of intelligent manufacturing technology, remote control of production equipment through controllers has become the current mainstream production method in the manufacturing industry. This remote control method needs to ensure the stability and reliability of control instructions or data during transmission.

[0003] In related technologies, traditional production services have a fixed periodicity in time. The controller can send instructions or data to the production equipment repeatedly at certain time intervals through the network static configuration scheme to meet the production needs of the production equipment. However, when facing services with high real-time requirements, this network static configuration scheme may not meet the bandwidth or delay requirements during data transmission, resulting in network congestion and data loss during data transmission.

[0004] Therefore, how to avoid network congestion and data loss during data transmission is an urgent problem to be solved. Summary of the invention

[0005] The present application provides a resource configuration method, device, electronic device and storage medium, which can solve the problems of network congestion and data loss during data transmission.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, the present application provides a resource configuration method, the method comprising: obtaining a message data group for which network resources are not configured, the network resources comprising a transmission delay and a transmission bandwidth; determining valid message data from the message data group for which network resources are not configured based on a category database, the category database comprising data categories of a plurality of message data; for each data category, configuring a target network resource for the valid message data according to a transmission interval of the valid message data under the data category, and a transmission requirement of the valid message data, the transmission requirement comprising a delay requirement, a bandwidth requirement, and a transmission priority.

[0008] The resource configuration method provided in the embodiment of the present application screens the message data groups that are not configured with transmission delay and transmission bandwidth, so as to accurately identify the valid message data therein according to the data category of each message data, so as to avoid resource configuration for all message data, thereby reducing the probability of network congestion; at the same time, for valid message data of different data categories, the target network resources are reasonably configured according to their transmission intervals and specific transmission requirements (such as delay requirements, bandwidth requirements, and transmission priority), which helps to optimize the distribution of network traffic and further reduce network congestion caused by improper resource allocation, and sequential transmission based on transmission priority can reduce the risk of data loss.

[0009] In combination with the above-mentioned first aspect, in a possible implementation method, the above-mentioned acquisition of the message data group for unconfigured network resources includes: receiving initial message data and parsing the sender and receiver information of the initial message; determining the initial message data in the initial message data that does not match the known sender and receiver information as the message data group for unconfigured network resources.

[0010] In combination with the above-mentioned first aspect, in a possible implementation method, the resource configuration method provided by the embodiment of the present application may also include: determining the initial message data in the initial message data that matches the known transceiver information as a message data group of configured network resources; for the message data group of configured network resources, configuring the network resources according to a preset configuration strategy, and setting a target tag, the target tag is used to indicate to stop resource configuration for the message data group of configured network resources.

[0011] In combination with the above-mentioned first aspect, in a possible implementation method, the above-mentioned determination of valid message data from the message data group of unconfigured network resources based on the category database includes: parsing the message data group of unconfigured network resources to obtain the data category of each message data of the unconfigured network resource; and determining the message data in the message data group of unconfigured network resources that matches the data category in the category database as valid message data.

[0012] In combination with the above-mentioned first aspect, in a possible implementation method, the resource configuration method provided by the embodiment of the present application may also include: according to the data category of each valid message data, dividing all valid message data into valid message data corresponding to each data category; obtaining the timestamp of each valid message data under the same data category from the time database, the time database including the timestamp of each message data in the message data group for which network resources are not configured, and the timestamp is the starting sending time point of the message data; for each data category, determining the transmission interval of the valid message data under the data category according to the timestamp of each valid message data under the data category.

[0013] In combination with the above-mentioned first aspect, in a possible implementation method, the above-mentioned, for each data category, determines the transmission interval of the valid message data under the data category according to the timestamp of each valid message data under the data category, including: determining the time interval between each two adjacent valid message data according to the timestamp of each valid message data; determining the average time interval of the valid message data according to the time interval between each two adjacent valid message data; when the difference between the time interval between all two adjacent valid message data and the average time interval is less than or equal to the preset difference, determining the average time interval as the transmission interval of the valid message data.

[0014] In combination with the above-mentioned first aspect, in a possible implementation method, the above-mentioned average time interval of valid message data is determined based on the time interval between each two adjacent valid message data, including: deleting and filling the valid message data with abnormal time intervals in the time intervals between all two adjacent valid message data to obtain processed valid message data; averaging the time intervals between all two adjacent valid message data in the processed valid message data to obtain the average time interval.

[0015] In a second aspect, the present application provides a resource configuration device, which includes: an acquisition unit, a determination unit and a processing unit, wherein: the acquisition unit is used to acquire a message data group for which network resources are not configured, and the network resources include transmission delay and transmission bandwidth; the determination unit is used to determine valid message data from the message data group for which network resources are not configured based on a category database, and the category database includes data categories of multiple message data; the processing unit is used to configure target network resources for the valid message data for each data category according to the transmission interval of the valid message data under the data category, and the transmission requirements of the valid message data, and the transmission requirements include delay requirements, bandwidth requirements, and transmission priority.

[0016] In combination with the above-mentioned second aspect, in a possible implementation method, the acquisition unit is specifically used to: receive initial message data and parse the sender and receiver information of the initial message; and determine the initial message data in the initial message data that does not match the known sender and receiver information as a message data group for which network resources are not configured.

[0017] In combination with the above-mentioned second aspect, in a possible implementation method, the determination unit is also used to determine the initial message data in the initial message data that matches the known transceiver information as a message data group of configured network resources; the processing unit is also used to configure the network resources for the message data group of configured network resources according to a preset configuration strategy, and set a target tag, and the target tag is used to indicate to stop resource configuration for the message data group of configured network resources.

[0018] In combination with the above-mentioned second aspect, in a possible implementation method, the determination unit is specifically used to: parse the message data group of the unconfigured network resources to obtain the data category of each message data of the unconfigured network resources; and determine the message data in the message data group of the unconfigured network resources that matches the data category in the category database as valid message data.

[0019] In combination with the above-mentioned second aspect, in a possible implementation method, the processing unit is also used to divide all valid message data into valid message data corresponding to each data category according to the data category of each valid message data; the acquisition unit is also used to obtain the timestamp of each valid message data under the same data category from the time database, the time database includes the timestamp of each message data in the message data group for which network resources are not configured, and the timestamp is the starting sending time point of the message data; the determination unit is also used to determine, for each data category, the transmission interval of the valid message data under the data category according to the timestamp of each valid message data under the data category.

[0020] In combination with the above-mentioned second aspect, in a possible implementation method, the determination unit is specifically used to: determine the time interval between each two adjacent valid message data according to the timestamp of each valid message data under the data category; determine the average time interval of the valid message data according to the time interval between each two adjacent valid message data; when the difference between the time interval between all two adjacent valid message data and the average time interval is less than or equal to the preset difference, determine the average time interval as the transmission interval of the valid message data.

[0021] In combination with the above-mentioned second aspect, in a possible implementation method, the determination unit is specifically used to: delete and fill the valid message data with abnormal time intervals in the time intervals between all two adjacent valid message data to obtain processed valid message data; average the time intervals between all two adjacent valid message data in the processed valid message data to obtain the average time interval.

[0022] In a third aspect, the present application provides an electronic device comprising: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the resource configuration method described in the first aspect and any possible implementation method of the first aspect.

[0023] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program or instructions. When the computer program or instructions are run on an electronic device, the electronic device executes the resource configuration method described in the first aspect and any possible implementation of the first aspect.

[0024] In a fifth aspect, the present application provides a computer program product comprising a computer program or instructions. When the computer program product runs on an electronic device, the electronic device executes the resource configuration method described in the first aspect and any possible implementation manner of the first aspect.

[0025] In a sixth aspect, the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the resource configuration method described in the first aspect and any possible implementation method of the first aspect.

[0026] Specifically, the chip provided in the present application also includes a memory for storing computer programs or instructions.

[0027] It should be noted that the above-mentioned computer program or instruction may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the device, or may be packaged separately from the processor of the device, which is not limited in this application.

[0028] In a seventh aspect, the present application provides a resource configuration system, comprising: a resource configuration device and a data server, wherein the resource configuration device is used to execute the resource configuration method described in the first aspect and any possible implementation manner of the first aspect.

[0029] The descriptions of the second to seventh aspects of the present application can refer to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second to seventh aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.

[0030] In this application, the name of the resource configuration device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalent technologies.

[0031] These and other aspects of the present application will become more apparent from the following description.

[0032] The above scheme brings at least the following beneficial effects: Based on the above technical scheme, the resource configuration method provided by the present application screens the message data groups that are not configured with processing nodes and transmission paths, so as to accurately identify the valid message data therein according to the data category of each message data, so as to avoid resource configuration for all message data, thereby reducing the probability of network congestion; at the same time, for valid message data of different data categories, the target network resources are reasonably configured according to their transmission intervals and specific transmission requirements (such as transmission delay, transmission bandwidth, transmission priority), which helps to optimize the distribution of network traffic and further reduce network congestion caused by improper resource allocation, and sequential transmission based on transmission priority can reduce the risk of data loss. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of the architecture of a resource configuration system provided in an embodiment of the present application;

[0034] Figure 2 A schematic diagram of the structure of a TSN switch provided in an embodiment of the present application;

[0035] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0036] Figure 4 A flowchart of a resource configuration method provided in an embodiment of the present application;

[0037] Figure 5 A flowchart of another resource configuration method provided in an embodiment of the present application;

[0038] Figure 6 A flowchart of another resource configuration method provided in an embodiment of the present application;

[0039] Figure 7 A flow chart of traffic identification provided in an embodiment of the present application;

[0040] Figure 8 An interactive flow chart of a resource configuration method provided in an embodiment of the present application;

[0041] Fig. 9 A schematic diagram of the structure of a resource configuration device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0044] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0045] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0046] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0047] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0048] With the development of intelligent manufacturing technology, the intelligence in the field of production and manufacturing is becoming more and more popular. At present, the fifth generation mobile communication technology (5G) and other new generation mobile communication technologies are used to realize the communication between industrial controllers (such as programmable logic controller (PLC)) and industrial field input / output (I / O) devices (referred to as "controller-device (C2D)" communication).

[0049] Specifically, the PLC works in a cyclic scanning mode, and in each scanning cycle, the PLC needs to send the output data to the I / O device. In the current 5G-based cloud PLC industrial control system, the I / O data transmission scheme is: the PLC encapsulates the output I / O data into multiple Internet protocol (IP) data packets and sends them to each I / O device through the 5G network. However, during the operation of the PLC, the above operations need to be repeated continuously, resulting in the 5G network needing to carry a large number of IP data packets that encapsulate I / O data.

[0050] In the related art, for PLC control services, data is usually sent repeatedly at a certain time interval, with a fixed periodicity in time. For example, in the industrial field, vehicle network, and airborne network where time-sensitive networking (TSN) is currently applied, key services are known and rarely change suddenly. Therefore, the traffic characteristics of service data are known, so when configuring resources for service data, a network static configuration solution is usually used for configuration.

[0051] However, there are also businesses in TSN that have high requirements for real-time communication. When dealing with such businesses, static network configuration will not be able to perform adaptive configuration, which may cause network congestion and data loss during data transmission.

[0052] In view of this, the embodiment of the present application provides a resource configuration method that can be applied to the TSN resource configuration scenario. Among them, the method screens the message data group that is not configured with transmission delay and transmission bandwidth to accurately identify the valid message data according to the data category of each message data, so as to avoid resource configuration for all message data, reducing the probability of network congestion; at the same time, for valid message data of different data categories, according to its transmission interval and specific transmission requirements (such as delay requirements, bandwidth requirements, transmission priority) to reasonably configure the target network resources, which helps to optimize the distribution of network traffic, further reduce the network congestion caused by improper resource allocation, and sequential transmission based on transmission priority can reduce the risk of data loss.

[0053] The implementation of the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

[0054] Figure 1 This is a schematic diagram of the architecture of a resource configuration system provided in an embodiment of the present application. Figure 1 As shown, the resource configuration system 100 includes: a resource configuration device 110 and a data server 120 .

[0055] The resource configuration device 110 and the data server 120 may be one or more. For ease of understanding, Figure 1 Only one resource configuration device and one data server are shown.

[0056] The resource configuration device 110 and the data server 120 are connected via a communication link. The communication link may be a wired communication link or a wireless communication link, which is not limited in the present application.

[0057] In some embodiments, the resource configuration device 110 can obtain a message data group for which transmission delay and transmission bandwidth are not configured, and then determine valid message data from the message data group for which network resources are not configured based on a category database, and finally, for each data category, configure target network resources for the valid message data based on the transmission interval of the valid message data under the data category, and the transmission requirements of the valid message data (such as delay requirements, bandwidth requirements, and transmission priority).

[0058] In some embodiments, the data server 120 is used for data categories of all message data in the category database, and provides the resource configuration device 110 with the category database for screening valid message data.

[0059] The following takes the resource configuration device 110 as a TSN switch as an example. Figure 2 The structure of the resource allocation device 110 will be described.

[0060] like Figure 2 , which is a schematic diagram of the structure of a TSN switch provided by an embodiment of the present application. The TSN switch 200 may include a traffic parameter collection module 210, a traffic matching and data preprocessing module 220, a periodic calculation module 230, and a network scheduling module 240. The traffic parameter collection module 210, the traffic matching and data preprocessing module 220, the periodic calculation module 230, and the network scheduling module 240 are connected in sequence.

[0061] The traffic parameter collection module 210 is used to implement the functions of receiving message data, collecting parameters, and transmitting parameters for periodically arriving message data.

[0062] The traffic matching and data preprocessing module 220 is used to implement the functions of traffic identification, data sampling processing, and data preprocessing on the message data transmitted by the traffic parameter collection module 210 .

[0063] The periodic calculation module 230 is used to implement the function of periodic calculation and data transmission of the message data processed by the traffic matching and data preprocessing module 220 .

[0064] The network scheduling module 240 is used to arrange network resources for the message data transmitted by the periodic calculation module 230 and issue network resource configuration.

[0065] In this way, through the collaboration between multiple modules, adaptive configuration of network resources is achieved, and the performance requirements for network equipment are reduced, avoiding network congestion and data loss.

[0066] When implemented by hardware, each module in the resource configuration device 110 can be integrated into Figure 3 The hardware structure of the electronic device shown is implemented. Specifically, Figure 3 As shown, the basic hardware structure of electronic equipment is introduced.

[0067] Figure 3 The hardware structure diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the electronic device includes at least one processor 301, a communication line 302, and at least one communication interface 304, and may also include a memory 303. The processor 301, the memory 303 and the communication interface 304 may be connected via the communication line 302.

[0068] The processor 301 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA).

[0069] The communication link 302 may include a pathway for transmitting information between the above-mentioned components.

[0070] The communication interface 304 is used to communicate with other devices or communication networks, and can use any transceiver-like device, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0071] The memory 303 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to include or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0072] In one possible design, the memory 303 can exist independently of the processor 301, that is, the memory 303 can be a memory outside the processor 301. In this case, the memory 303 can be connected to the processor 301 through the communication line 302, and is used to store execution instructions or application code, and the processor 301 controls the execution to implement the resource configuration method provided in the following embodiment of the present application. In another possible design, the memory 303 can also be integrated with the processor 301, that is, the memory 303 can be the internal memory of the processor 301, for example, the memory 303 is a high-speed cache, which can be used to temporarily store some data and instruction information.

[0073] As a possible implementation, the processor 301 may include one or more CPUs, for example Figure 3 As another possible implementation, the electronic device may include multiple processors, such as Figure 3 As another possible implementation, the electronic device may further include an output device 305 and an input device 306.

[0074] It should be pointed out that the various embodiments of the present application can learn from or refer to each other. For example, the same or similar steps, method embodiments, system embodiments and device embodiments can all refer to each other without limitation.

[0075] Figure 4 A flowchart of a resource configuration method provided in an embodiment of the present application, the subject executing the method may be as follows Figure 1 The resource allocation device 110 shown in FIG. Figure 2The TSN switch 200 shown may also be various units / modules in the resource configuration device 110 or the TSN switch 200, such as an integrated circuit or a chip, which is not specifically limited in the embodiment of the present application.

[0076] For example, Figure 4 As shown, the resource configuration method provided in the embodiment of the present application includes the following steps:

[0077] S401: Acquire a message data group for which no network resources are configured.

[0078] Among them, network resources include transmission delay and transmission bandwidth.

[0079] In some embodiments, different data processing nodes and data transmission paths support different transmission delays and transmission bandwidths. The data processing node can be a cloud node or an edge computing node; the data transmission path refers to the communication link between cloud nodes, or between a cloud node and an edge computing node, or between edge computing nodes.

[0080] In other words, the data processing nodes and data transmission paths refer to the forwarding nodes, computing nodes, and communication links between nodes from the initial sending node to the final receiving node of the message data.

[0081] Optionally, the above-mentioned acquisition of the message data group for unconfigured network resources may first receive initial message data, then parse the transceiver information of the initial message data, and determine all message data for unconfigured network resources in the initial message data according to the transceiver information.

[0082] The information of the transmitting and receiving end may include information such as IP address, media access control (MAC) address, port number, etc. The IP address includes the IP address of the source device and the IP address of the destination device of the initial message data; the port number includes the port number of the source device and the port number of the destination device of the initial message data.

[0083] In an optional implementation, the initial message data in the initial message data that does not match the known transmitting and receiving end information can be determined as a message data group for which network resources are not configured.

[0084] In the embodiment of the present application, the above-mentioned known transceiver information is obtained through known message data previously sent by a network control center (such as a centralized network configuration (CNC)). The known message data is message data of the network resources that have been configured.

[0085] In some embodiments, the IP address, MAC address, port number and other information of each initial message data can be compared with the IP address, MAC address, port number and other information of the known message data sent by the CNC, and all initial message data that are inconsistent with the comparison can be determined as a message data group for which network resources are not configured.

[0086] Furthermore, a timestamp may be added to the message data for which no network resources are configured, and the timestamp is the start sending time point of the message data.

[0087] In another optional implementation, the initial message data in the initial message data that matches the known transceiver information can be determined as the message data group for which the network resources have been configured.

[0088] In some embodiments, the IP address, MAC address, port number and other information of each initial message data can be compared with the IP address, MAC address, port number and other information of the known message data sent by the CNC, and all initial message data that are consistent with the comparison can be determined as a message data group for the configured network resources.

[0089] Furthermore, for the message data group for which the network resources have been configured, the network resources may be configured according to a preset configuration policy, and a target tag may be set.

[0090] The target tag is used to instruct to stop resource configuration for the message data group for which network resources have been configured.

[0091] In the embodiment of the present application, the preset configuration policy may be a default configuration policy issued by the CNC.

[0092] In some embodiments, if it is determined that the message data has been configured with network resources, the new network resource configuration for the message data is stopped, and data transmission is performed according to the network resources that have been configured for the message data itself.

[0093] In this way, by screening out a portion of message data for which network resources have been configured and only performing subsequent processing on message data for which network resources have not been configured, the load of the resource configuration device can be reduced, and the resource configuration efficiency can be indirectly improved.

[0094] S402: Determine valid message data from a message data group of unconfigured network resources based on a category database.

[0095] The category database may be a pre-set database, which may include data categories of multiple message data.

[0096] Optionally, the message data group for which the network resources are not configured may be parsed first to obtain the data category of each message data for which the network resources are not configured.

[0097] In some embodiments, the message data of all unconfigured network resources can be parsed through an N deep packet inspection (NDPI) library to extract traffic characteristics, and the traffic characteristics are matched with a preset template file to obtain the data category of the message data of each unconfigured network resource.

[0098] Exemplarily, the NDPI library can be used to extract traffic features from each message data that has no network resources configured to obtain the IP address, MAC address, port number, protocol type, etc. of the message data, and then match the IP address, MAC address, port number, protocol type, etc. with the preset template file to determine the data category of each message data.

[0099] Further optionally, after determining the data category of each message data of the unconfigured network resource, it is also possible to determine whether the message data of the unconfigured network resource is valid message data according to the data category of each message data of the unconfigured network resource and the category database.

[0100] In an optional implementation, the message data in the message data group for which no network resources are configured and which matches the data category in the category database may be determined as valid message data.

[0101] In some embodiments, the IP address, MAC address, port number and other information of each message data that has not been configured with network resources can be compared with the IP address, MAC address, port number and other information of the message data in the category database, and the message data that matches the comparison can be determined as valid message data.

[0102] In another optional implementation, the message data in the message data group for which no network resources are configured and which does not match the data category in the category database may be determined as invalid message data.

[0103] In some embodiments, the IP address, MAC address, port number and other information of each message data that has not been configured with network resources can be compared with the IP address, MAC address, port number and other information of the message data in the category database, and the message data that is inconsistent with the comparison can be determined as invalid message data.

[0104] Furthermore, the determined invalid message data may be eliminated.

[0105] In this way, invalid message data is screened and eliminated through the category database, which further reduces the data that the resource configuration device needs to process, reduces the load, and improves the performance of the resource configuration device.

[0106] S403: For each data category, according to the transmission interval of the valid message data under the data category and the transmission requirement of the valid message data, configure target network resources for the valid message data.

[0107] Among them, transmission requirements include latency requirements, bandwidth requirements, and transmission priority.

[0108] As described in S402 above, the protocol type of the message data and the data category of the message data may be obtained through the NDPI library analysis.

[0109] In some embodiments, priority may also be assigned to the message data according to the protocol type of each message data to obtain the transmission priority of each message data for which network resources are not configured.

[0110] In other embodiments, the transmission bandwidth and transmission delay required for each message data may also be identified according to the data category of each message data.

[0111] In this way, by accurately identifying the transmission priority, bandwidth requirements, and latency requirements of different message data, it is ensured that when network resources are subsequently configured, the configured network resources can meet the transmission requirements of the message data, thereby ensuring successful message data transmission.

[0112] In some embodiments, the transmission interval of valid message data refers to the periodic time interval between two adjacent valid message data, that is, after a valid message data is sent, the next valid message data is sent after the time interval.

[0113] In some embodiments, the window duration for sending message data can be configured according to the interval duration of valid message data, and the transmission order of valid message data can be configured according to the transmission priority of the valid message data. Further, according to the delay requirements and bandwidth requirements of the valid message data, data processing nodes and data transmission paths that can support the delay requirements and bandwidth requirements can be configured to provide transmission delay and transmission bandwidth for transmitting the valid message data.

[0114] For example, take three valid message data (A, B, C) under the same data category with a transmission interval of 5 milliseconds, a delay requirement of 0.5 milliseconds, a bandwidth requirement of 1 Gbps, a transmission priority of 3 for A, a transmission priority of 5 for B, and a transmission priority of 1 for C. B, A, and C can be sent in order of transmission priority from high to low, with an interval of 5 milliseconds, and the transmission delay of the network is set to be less than or equal to 0.5 milliseconds, and the transmission bandwidth of the network is set to be greater than or equal to 1 Gbps.

[0115] In the resource configuration method provided in the embodiment of the present application, by screening the message data groups that are not configured with transmission delay and transmission bandwidth, the valid message data therein can be accurately identified according to the data category of each message data, so as to avoid resource configuration for all message data, thereby reducing the probability of network congestion; at the same time, for valid message data of different data categories, the target network resources are reasonably configured according to their transmission intervals and specific transmission requirements (such as delay requirements, bandwidth requirements, and transmission priority), which helps to optimize the distribution of network traffic and further reduce network congestion caused by improper resource allocation. In addition, sequential transmission based on transmission priority can reduce the risk of data loss.

[0116] As described in S403, in some embodiments, the transmission interval of valid message data refers to the periodic transmission time interval between two adjacent valid message data. Figure 5 Describe in detail the transmission interval for determining valid message data.

[0117] For example, Figure 5 As shown, the transmission interval of valid message data can be determined by the following steps:

[0118] S501. According to the data category of each valid message data, all valid message data are divided into valid message data corresponding to each of the multiple data categories.

[0119] In the embodiment of the present application, since the transmission intervals of message data of different data categories are different, it is necessary to classify the message data to obtain message data under different data categories.

[0120] Exemplarily, valid message data with the same IP address, MAC address, port number, and protocol type can be divided into valid message data under the same data category according to the IP address, MAC address, port number, and protocol type of each valid message data.

[0121] S502: Obtain the timestamp of each valid message data under the same data category from the time database.

[0122] The time database includes the timestamp of each message data in the message data group for which no network resources are configured.

[0123] Optionally, the timestamp of the message data for which no network resources are configured in S401 may be stored in the time database in advance.

[0124] In some embodiments, consistent message data may be screened out from a time database according to the data category of each valid message data, and then the timestamp of the message data may be read as the timestamp of each valid message data.

[0125] S503: For each data category, determine the transmission interval of the valid message data under the data category according to the timestamp of each valid message data under the data category.

[0126] In an optional implementation, the time difference between two adjacent start sending time points of valid message data can be directly calculated based on the start sending time point of each valid message data, and the time difference can be used as the transmission interval of the valid message data.

[0127] In another optional implementation method, the time interval between each two adjacent valid message data can be determined based on the timestamp of each valid message data under the data category, and then the average time interval of the valid message data can be determined based on the time interval between each two adjacent valid message data, and the average time interval can be used as the transmission interval of the valid message data.

[0128] In some embodiments, before determining the average time interval, it is also necessary to delete and fill the valid message data with abnormal time intervals in the time intervals between all two adjacent valid message data to obtain processed valid message data.

[0129] Exemplarily, the valid message data under each data category screened out in the time database can be combined into set A, and then the time interval between each two adjacent valid message data is calculated, and the valid message data with abnormal time intervals (such as the time interval is greater than or less than the interval range) is deleted, and the missing valid message data is filled in to obtain set B (i.e., the processed valid message data).

[0130] Furthermore, the time intervals between all two adjacent valid message data in the processed valid message data are averaged to obtain an average time interval.

[0131] In this way, by deleting erroneous data and filling in missing data, the continuity and rationality of the data are ensured, thereby indirectly improving the accuracy of the subsequent determination of the transmission interval of valid message data.

[0132] Optionally, after the average time interval is determined, the transmission interval of the valid message data may be determined according to the average time interval.

[0133] In an optional implementation, the average time interval may be directly determined as the transmission interval of valid message data.

[0134] In another optional implementation, when the difference between the time interval between all two adjacent valid message data and the average time interval is less than or equal to a preset difference, the average time interval may be determined as the transmission interval of the valid message data.

[0135] In one example, the preset difference value may be determined according to the allowed delay and allowed jitter, wherein the allowed delay and allowed jitter may be set according to the data category of the valid message data, and different data categories correspond to different allowed delays and allowed jitters.

[0136] In another example, the preset difference value may be a manually set value, which may be flexibly adjusted according to actual scenarios. For example, the preset difference value may be 1 millisecond.

[0137] For example, the preset difference is 1 millisecond, and the number of valid message data is 6 (A, B, C, D, E, F). If the time interval between A and B is 5 milliseconds, the time interval between B and C is 5.3 milliseconds, the time interval between C and D is 5.8 milliseconds, the time interval between D and E is 4.7 milliseconds, and the time interval between E and F is 4.2 milliseconds, the average time interval is 5 milliseconds, and the 5 time differences are 0 milliseconds, 0.3 milliseconds, 0.8 milliseconds, 0.3 milliseconds, and 0.8 milliseconds, respectively, indicating that the 6 valid message data are periodic, that is, the average time interval of 5 milliseconds can be used as the transmission interval of the valid message data.

[0138] In this way, the final transmission interval is determined only after ensuring that the time interval of all valid message data is within the allowable error range, which further ensures the accuracy of the determined transmission interval.

[0139] The following combination Figure 2 , refer to Figure 6 , the complete process of the resource configuration method provided in the embodiment of the present application is exemplified.

[0140] For example, Figure 6 As shown, the complete process of the resource configuration method provided in the embodiment of the present application may include the following steps:

[0141] S601 , the traffic parameter collection module 210 receives initial message data, collects parameters for the initial message data, and sends the collected message data to the traffic matching and data preprocessing module 220 .

[0142] In some embodiments, receiving the initial message data includes: after receiving the initial message data, judging the message data of configured network resources and the message data of unconfigured network resources in the initial message data according to the rules issued by the CNC and based on information such as IP address, MAC address, port number, etc.

[0143] Furthermore, an access control list (ACL) rule is issued to the message data of the configured network resources, and resource configuration for the message data of the configured network resources is stopped.

[0144] In some embodiments, collecting parameters of initial message data includes: timestamping message data that is not configured with network resources, identifying specific message features (such as MAC address) through ACL, performing corresponding operations (such as allowing passage), and reading key data such as virtual local area network (VLAN), MAC address, port number, etc.

[0145] In some embodiments, after the above-mentioned key data is collected, the collected key data can be encapsulated into a message format (Ethernet type) and sent to the traffic matching and data preprocessing module 220 through a specific protocol (such as OpenFlow protocol).

[0146] S602, the traffic matching and data preprocessing module 220 performs traffic identification, data sampling and data preprocessing on the message data for which network resources are not configured.

[0147] In some embodiments, Figure 7 As shown, traffic identification includes:

[0148] S701. Call the NDPI library to extract traffic features.

[0149] Exemplarily, the NDPI library may be used to parse the message data and extract traffic features.

[0150] S702: Match template files and identify data categories.

[0151] Exemplarily, the traffic characteristics may be matched with a preset template file to complete the classification of data categories.

[0152] S702: Data category storage.

[0153] Exemplarily, data categories may be stored in a category database, and parameters such as jitter and delay may be preset.

[0154] In some embodiments, data sampling processing means that since message data has periodic characteristics, a sampling technique can be used to select part of the message data for monitoring based on information such as message data size and IP address.

[0155] In this way, based on the periodicity of message data, part of the message data is selected as representative data for processing, which can alleviate the data processing pressure of the TSN switch and improve performance.

[0156] In some embodiments, data preprocessing refers to matching the selected message data with the data categories recorded in the category database, treating the successfully matched message data as valid message data and saving it in the database; treating the unsuccessfully matched message data as invalid message data and eliminating it.

[0157] S603: The periodic calculation module 230 performs periodic calculation and data transmission on the valid message data.

[0158] In some embodiments, periodic calculations include data grouping, data cleaning, calculating time intervals, and checking periodic operations.

[0159] Data grouping refers to grouping valid message data according to parameters such as IP address, MAC address, port number, etc., and querying the timestamp corresponding to each group of valid message data from the time database and putting them into set A.

[0160] Data cleaning refers to calculating the time interval between two adjacent valid message data in set A, deleting valid message data with incorrect time interval, and supplementing the missing valid message data to generate a new set B.

[0161] Calculating the time interval refers to calculating the time interval between each valid message data in the calculation set B.

[0162] Checking the periodicity means taking the average value of the calculated time interval as a benchmark, and comparing the time interval between each valid message data with the average value. If the difference between the time interval and the average value is within the allowable range of the delay and jitter set in S602, it is determined that the valid message data has periodicity; otherwise, it is determined that the valid message data has no periodicity.

[0163] Further, when it is determined that the valid message data has periodicity, the average value is used as the transmission interval of the valid message data.

[0164] In some embodiments, data transmission refers to sending the acquired period (transmission interval of valid message data), bandwidth requirements of valid message data, VLAN, transmission priority, byte size, delay requirements and other data to the network scheduling module 240 through a specific interface (such as representational state transfer application programming interface (Restful API)).

[0165] S604: The network scheduling module 240 arranges network resources for the valid message data and issues network resource configuration.

[0166] In some embodiments, network resource scheduling refers to receiving data sent by the periodic calculation module 230 and scheduling network resources using a scheduling algorithm according to the data content.

[0167] In some embodiments, sending down the network resource configuration means sending the orchestrated network resource configuration to the switch through a southbound interface (such as OpenFlow), so that the switch schedules and optimizes the traffic according to the received network resource configuration.

[0168] The following is an exemplary description of the interaction process of the resource configuration method provided in the embodiment of the present application.

[0169] For example, in combination Figure 2 and Figure 6 ,like Figure 8 As shown, the interaction process of the resource configuration method may include:

[0170] S801. The traffic parameter collection module receives message data and collects parameters.

[0171] S802: The traffic parameter collection module transmits the message data to the traffic matching and data preprocessing module.

[0172] S803. The traffic matching and data preprocessing module records the data type of the message data and presets the delay and jitter.

[0173] S804: The traffic matching and data preprocessing module performs data sampling and data preprocessing to obtain valid message data.

[0174] S805. The traffic matching and data preprocessing module sends the valid message data to the periodic calculation module.

[0175] S806. The periodic calculation module performs periodic calculation on the valid message data to obtain a transmission interval of the valid message data.

[0176] S807. The periodic calculation module sends data such as transmission interval, bandwidth requirement, VLAN, transmission priority, byte size, and delay requirement to the network scheduling module.

[0177] S808. The network scheduling module arranges network resources for the valid message data to obtain network resource configuration.

[0178] S809. The network scheduling module sends the network resource configuration to the TSN device.

[0179] The embodiment of the present application can divide the resource configuration device into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division. There may be other division methods in actual implementation.

[0180] like Fig. 9 , which is a schematic diagram of the structure of a resource configuration device 900 provided in an embodiment of the present application, wherein the resource configuration device 900 includes: an acquisition unit 901, a determination unit 902 and a processing unit 903.

[0181] Among them, the acquisition unit 901 is used to acquire a message data group for which network resources are not configured, and the network resources include transmission delay and transmission bandwidth; the determination unit 902 is used to determine valid message data from the message data group for which network resources are not configured based on a category database, and the category database includes data categories of multiple message data; the processing unit 903 is used to configure target network resources for the valid message data for each data category, according to the transmission interval of the valid message data under the data category, and the transmission requirements of the valid message data, and the transmission requirements include delay requirements, bandwidth requirements, and transmission priority.

[0182] In a possible implementation, the acquisition unit 901 is specifically used to: receive initial message data and parse the sender / receiver information of the initial message; and determine the initial message data in the initial message data that does not match the known sender / receiver information as a message data group for which network resources are not configured.

[0183] In one possible implementation, the determination unit 902 is also used to determine the initial message data in the initial message data that matches the known transceiver information as a message data group of configured network resources; the processing unit 903 is also used to configure the network resources for the message data group of configured network resources according to a preset configuration policy, and set a target tag, where the target tag is used to indicate to stop resource configuration for the message data group of configured network resources.

[0184] In one possible implementation, the determination unit 902 is specifically used to: parse the message data group of the unconfigured network resources to obtain the data category of each message data of the unconfigured network resources; and determine the message data in the message data group of the unconfigured network resources that matches the data category in the category database as valid message data.

[0185] In one possible implementation, the processing unit 903 is further used to divide all valid message data into valid message data corresponding to each data category according to the data category of each valid message data; the acquisition unit 901 is further used to obtain the timestamp of each valid message data under the same data category from the time database, the time database includes the timestamp of each message data in the message data group for which network resources are not configured, and the timestamp is the starting sending time point of the message data; the determination unit 902 is further used to determine, for each data category, the transmission interval of the valid message data under the data category according to the timestamp of each valid message data under the data category.

[0186] In a possible implementation, the determination unit 902 is specifically used to: determine the time interval between each two adjacent valid message data according to the timestamp of each valid message data under the data category; determine the average time interval of the valid message data according to the time interval between each two adjacent valid message data; when the difference between the time interval between all two adjacent valid message data and the average time interval is less than or equal to a preset difference, determine the average time interval as the transmission interval of the valid message data.

[0187] In one possible implementation, the determination unit 902 is specifically used to: delete and fill the valid message data with abnormal time intervals in the time intervals between all two adjacent valid message data to obtain processed valid message data; average the time intervals between all two adjacent valid message data in the processed valid message data to obtain an average time interval.

[0188] In the resource configuration device provided in the embodiment of the present application, by screening the message data group that is not configured with processing nodes and transmission paths, the valid message data therein can be accurately identified according to the data category of each message data, so as to avoid resource configuration for all message data and reduce the probability of network congestion; at the same time, for valid message data of different data categories, the target network resources are reasonably configured according to their transmission intervals and specific transmission requirements (such as transmission delay, transmission bandwidth, transmission priority), which helps to optimize the distribution of network traffic and further reduce network congestion caused by improper resource allocation, and sequential transmission based on transmission priority can reduce the risk of data loss.

[0189] In a possible implementation, the resource configuration device 900 may further include a storage unit 904 ( Fig. 9 The storage unit 904 stores a program or instruction. When the acquisition unit 901, the determination unit 902 and the processing unit 903 execute the program or instruction, the resource configuration device 900 can execute the resource configuration method described in the above method embodiment.

[0190] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0191] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the resource configuration method in the above method embodiment.

[0192] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the resource configuration method in the method flow shown in the above method embodiment.

[0193] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0194] Since the resource configuration device, computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be repeated here.

[0195] In the several embodiments provided in the present application, 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 a logical function division. 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.

[0196] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of this disclosure can be achieved, and this application is not limited here.

[0197] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

[0198] 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.

[0199] In addition, each functional unit in each embodiment of the present application 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.

[0200] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A resource configuration method, characterized in that: The method comprises: Acquire a packet data group for which no network resources are configured, wherein the network resources include transmission bandwidth and transmission delay; Determining valid message data from the message data group for which network resources are not configured based on a category database, wherein the category database includes data categories of a plurality of message data; For each data category, target network resources are configured for the valid message data according to the transmission interval of the valid message data under the data category and the transmission requirements of the valid message data, wherein the transmission requirements include delay requirements, bandwidth requirements, and transmission priority.

2. The method according to claim 1, characterized in that The step of obtaining a packet data group for which network resources are not configured includes: Receiving initial message data and parsing the sending and receiving end information of the initial message data; The initial message data that does not match the known transmitting and receiving end information in the initial message data is determined as the message data group for which the network resources are not configured.

3. The method according to claim 2, characterized in that The method further comprises: Determine the initial message data in the initial message data that matches the known transmitting and receiving end information as a message data group for which network resources have been configured; For the message data group of the configured network resources, the network resources are configured according to a preset configuration strategy, and a target tag is set, wherein the target tag is used to indicate to stop performing resource configuration on the message data group of the configured network resources.

4. The method according to claim 1, characterized in that The determining, based on the category database, valid message data from the message data group for which network resources are not configured, comprises: Parsing the message data group of the unconfigured network resources to obtain the data category of each message data of the unconfigured network resources; The message data in the message data group for which network resources are not configured and which matches the data category in the category database are determined as the valid message data.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: According to the data category of each valid message data, all valid message data are divided into multiple data categories, each corresponding to the valid message data; Acquire a timestamp of each valid message data under the same data category from a time database, wherein the time database includes a timestamp of each message data in the message data group for which no network resources are configured, and the timestamp is a starting sending time point of the message data; For each data category, a transmission interval of valid message data under the data category is determined according to a timestamp of each valid message data under the data category.

6. The method according to claim 5, characterized in that The determining, according to the timestamp of each valid message data under the data category, a transmission interval of the valid message data under the data category comprises: Determine the time interval between two adjacent valid message data according to the timestamp of each valid message data under the data category; Determine the average time interval of the valid message data according to the time interval between each two adjacent valid message data; In the case that the difference between the time interval between all two adjacent valid message data and the average time interval is less than or equal to the preset difference, the average time interval is determined as the transmission interval of the valid message data.

7. The method according to claim 6, characterized in that Determining the average time interval of the valid message data according to the time interval between each two adjacent valid message data includes: Deleting and filling the valid message data with abnormal time intervals in the time intervals between all two adjacent valid message data to obtain processed valid message data; The time intervals between all two adjacent valid message data in the processed valid message data are averaged to obtain the average time interval.

8. A resource allocation device, characterized in that: The device comprises: An acquisition unit, used to acquire a packet data group for which no network resources are configured, wherein the network resources include transmission bandwidth and transmission delay; A determination unit, configured to determine valid message data from the message data group for which network resources are not configured based on a category database, wherein the category database includes data categories of a plurality of message data; A processing unit is used to configure target network resources for the valid message data for each data category according to the transmission interval of the valid message data under the data category and the transmission requirements of the valid message data, wherein the transmission requirements include delay requirements, bandwidth requirements, and transmission priority.

9. An electronic device, characterized in that: include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the resource configuration method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or instruction. When an electronic device executes the computer program or instruction, the electronic device executes the resource configuration method according to any one of claims 1 to 7.

11. A computer program product, characterized in that The computer program product includes a computer program or instructions, and when the computer program or instructions are executed on an electronic device, the electronic device executes the resource configuration method according to any one of claims 1 to 7.