Transmission optimization method, device, controller and readable storage medium

The transmission optimization method addresses the inefficiencies in traditional QoS services by connecting devices to resource pools based on user configuration demands, improving data transmission efficiency and user experience through precise control of transmission time and delay.

JP7780672B2Active Publication Date: 2025-12-04ZTE CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024571197
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-07-18
Filing Date
2023-06-26
Publication Date
2025-12-04
Estimated Expiration
2043-06-26

AI Technical Summary

Technical Problem

Traditional QoS services in industrial networks fail to precisely control data transmission time and delay, leading to reduced efficiency due to prioritization of certain network services, which does not meet the diverse QoS requirements of different devices.

Method used

A transmission optimization method that involves acquiring a user configuration file, analyzing it to determine resource pool demands, setting weight parameters and network port priorities, and connecting peripheral network ports to target resource pools based on these demands, ensuring one-to-one correspondence between weight parameters and port priorities.

Benefits of technology

This method improves data transmission efficiency by accurately controlling transmission time and delay, enhancing user experience by ensuring devices with higher QoS requirements are connected to higher priority resource pools, while those with lower requirements are connected to lower priority pools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007780672000001
    Figure 0007780672000001
  • Figure 0007780672000002
    Figure 0007780672000002
  • Figure 0007780672000003
    Figure 0007780672000003
Patent Text Reader

Abstract

The present disclosure discloses a transmission optimization method, device, controller, and readable storage medium. The transmission optimization method includes: obtaining a user configuration file, performing parsing processing on the user configuration file to obtain user configuration requirements (step S200); generating a plurality of resource pools according to the user configuration requirements, and setting corresponding weight parameters for each resource pool (step S210); setting network port priorities corresponding to each peripheral device network port according to the user configuration requirements (step S220); and connecting each peripheral device network port to a target resource pool according to the user configuration requirements, where the weight parameter of the target resource pool and the network port priority of the peripheral device network port correspond one-to-one (step S230).
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This disclosure is based on and claims priority from a Chinese patent application having application number 202210841034.8 and filing date July 18, 2022, the entire contents of which are hereby incorporated by reference into this disclosure.

[0002] The present disclosure relates to the field of data transmission technology, and in particular to a transmission optimization method, an apparatus, a controller, and a readable storage medium. [Background technology]

[0003] Deterministic networking technology is the development direction of next-generation network communication systems and an important driving force for network, industry, agriculture, and service industries. The formation of "Deterministic Networking+" technology and industrial configuration is of great significance for thousands of industries to further advance in the direction of high-quality development of digitalization, networking, and smart technology. In particular, with the rapid development of the Industrial Internet of Things (IIOT), different devices are interconnected and different services are performed simultaneously and in parallel, which has put forward more requirements for Quality of Service (QoS). 。 Summary of the Invention [Problem to be solved by the invention]

[0004] The present disclosure proposes a transmission optimization method, an apparatus, a controller and a readable storage medium. [Means for solving the problem]

[0005] According to a first aspect, an embodiment of the present disclosure provides a transmission optimization method for use in a transmission device, the transmission device including a plurality of peripheral network ports, the method including: acquiring a user configuration file; performing an analysis process on the user configuration file to obtain user configuration demands; generating a plurality of resource pools according to the user configuration demands, wherein a corresponding weight parameter is set for each of the resource pools; setting a network port priority corresponding to each of the peripheral network ports according to the user configuration demands; and connecting each of the peripheral network ports to a target resource pool according to the user configuration demands, wherein the weight parameter of the target resource pool and the network port priority of the peripheral network ports correspond one-to-one.

[0006] According to a second aspect, an embodiment of the present disclosure further provides a transmission device, the transmission device including: a network management module configured to acquire a user configuration file, perform an analysis process on the user configuration file to obtain user configuration demands; and a network I / O management module configured to generate a plurality of resource pools according to the user configuration demands, where each of the resource pools has a corresponding weight parameter set, the network I / O management module is configured to set a network port priority corresponding to each of the peripheral network ports according to the user configuration demands, and connect each of the peripheral network ports to a target resource pool according to the user configuration demands, where the weight parameter of the target resource pool and the network port priority of the peripheral network port correspond one-to-one.

[0007] According to a third aspect, an embodiment of the present disclosure further provides a controller, the controller including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the transmission optimization method according to the first aspect when executing the computer program.

[0008] According to a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium having computer-executable instructions stored thereon, the computer-executable instructions being used to cause a computer to perform the transmission optimization method described in the first aspect above.

[0009] Other features and advantages of the present disclosure will be set forth in the following specification, and in part will be obvious from the specification, or may be learned by the practice of the present disclosure. The objectives and other advantages of the present disclosure may be realized and obtained by the structure particularly pointed out in the description, claims and drawings. The drawings are intended to provide a further understanding of the technical solution of the present disclosure, constitute a part of the specification, and are used to interpret the technical solution of the present disclosure together with the embodiments of the present disclosure, and are not intended to limit the technical solution of the present disclosure. [Brief explanation of the drawings]

[0010] [Figure 1] 1 is a schematic diagram of a system architecture platform for implementing a transmission optimization method according to one embodiment of the present disclosure. [Figure 2] 1 is a flowchart of a transmission optimization method according to one embodiment of the present disclosure. [Figure 3] 10 is a sub-step flowchart of a transmission optimization method according to another embodiment of the present disclosure. [Figure 4] 10 is a sub-step flowchart of a transmission optimization method according to another embodiment of the present disclosure. [Figure 5] 10 is a sub-step flowchart of a transmission optimization method according to another embodiment of the present disclosure. [Figure 6] 10 is a sub-step flowchart of a transmission optimization method according to another embodiment of the present disclosure. [Figure 7] FIG. 10 is a structural schematic diagram of a transmission device according to another embodiment of the present disclosure. [Figure 8] FIG. 10 is a structural schematic diagram of a transmission device according to another embodiment of the present disclosure. [Figure 9] FIG. 2 is a structural schematic diagram of a network IO management module according to one embodiment of the present disclosure; [Figure 10] 4 is a general flowchart of a transmission optimization method according to another embodiment of the present disclosure. DETAILED DESCRIPTION OF THE INVENTION

[0011] Hereinafter, the embodiments of the present disclosure will be described in detail, and examples of the embodiments are shown in the drawings, where the same or similar reference numerals always represent the same or similar elements or elements having the same or similar functions. The embodiments described in the drawings below are illustrative and are only used to interpret the present disclosure, and should not be understood as limitations on the present disclosure.

[0012] In describing the present disclosure, with regard to orientation descriptions, orientations or positional relationships indicated, for example, by up, down, front, back, left, right, etc., are orientations or positional relationships shown based on the drawings, and are merely for facilitating the description and simplification of the present disclosure, and do not indicate or imply that the referenced devices or elements have a particular orientation or must be configured and operated in a particular orientation, and should not be understood as limitations on the present disclosure.

[0013] In the description of this disclosure, some means one or more, plural means two or more, greater than, less than, more than, etc. are understood to be exclusive of the number, and greater than or equal to, less than or equal to, within, etc. are understood to be inclusive of the number. The descriptions of first and second are only for the purpose of distinguishing technical features and should not be understood to indicate or imply relative importance, or to imply the number of the indicated technical features, or to imply the context of the indicated technical features.

[0014] In the description of the present disclosure, unless otherwise expressly limited, terms such as installation, mounting, connection, etc. should be understood in a broad sense, and a person skilled in the art may reasonably determine the meaning of the above terms in the present disclosure in combination with the content of the technical solution.

[0015] With the rapid development of the Industrial Internet of Things (IIOT), various devices are interconnected and various services are running simultaneously, placing greater demands on Quality of Service (QoS). Traditionally, data transmission through industrial field-level devices is based on QoS, which divides traffic into multiple priorities or service categories based on traffic classification principles. After message classification, other QoS characteristics can be applied to different categories. Industrial products typically provide four or more Ethernet ports, with different networks accessing different industrial devices or terminals. Different terminals or industrial devices have different QoS requirements for different services. Traditional QoS services can only prioritize certain network services, resulting in reduced data transmission efficiency and no precise control over data transmission time and delay.

[0016] Based on the above situation, the embodiments of the present disclosure propose a transmission optimization method, device, controller, and readable storage medium. A transmission device includes multiple peripheral device network ports. The transmission device acquires a user configuration file, performs an analysis process on the user configuration file to obtain user configuration requirements, and generates multiple resource pools according to the user configuration requirements. A corresponding weight parameter is set for each resource pool. A network port priority corresponding to each peripheral device network port is set according to the user configuration requirements. Each peripheral device network port is connected to a target resource pool according to the user configuration requirements, and the weight parameter of the target resource pool corresponds one-to-one to the network port priority of the peripheral device network port. Different devices are connected to the transmission device through different peripheral device network ports. Data transmission by a device through one network port requires more transmission time and lower transmission delay, while data transmission by a device through another network port does not have high requirements for transmission time, transmission delay, etc. A user configuration file is generated according to user demand, the user configuration file is acquired, and the user configuration demand is obtained by analyzing the user configuration file. A plurality of resource pools are generated according to the user configuration demand, and a corresponding weight parameter is set for each resource pool, i.e., each resource pool has a corresponding transmission priority, with a higher priority resource pool having a longer transmission time and a shorter transmission delay. A network port priority corresponding to each peripheral network port is set according to the user configuration demand, and for each peripheral network port, the peripheral network port is connected to a target resource pool according to the user configuration demand, with the weight parameter of the target resource pool and the network port priority corresponding one-to-one. In this way, a peripheral network port corresponding to a device requiring a longer transmission time and a shorter transmission delay is connected to a higher priority resource pool, and a peripheral network port corresponding to a device with lower requirements for transmission time and transmission delay is connected to a lower priority resource pool, thereby improving transmission efficiency, accurately controlling data transmission time and transmission delay, and improving the user experience.

[0017] In the following, embodiments of the present disclosure will be further described with reference to the drawings.

[0018] As shown in FIG. 1, FIG. 1 is a schematic diagram of a system architecture platform for implementing a transmission optimization method according to one embodiment of the present disclosure.

[0019] The system architecture platform 100 of the embodiment of the present disclosure includes one or more processors 110 and memories 120, with one processor 110 and one memory 120 being shown as an example in FIG.

[0020] The processor 110 and the memory 120 may be connected via a bus or other methods, and FIG. 1 illustrates the connection via a bus as an example.

[0021] Memory 120 may be used as a non-transitory computer-readable storage medium to store non-transitory software programs and non-transitory computer-executable programs. Memory 120 may include high-speed random access memory and may further include non-transitory memory, such as at least one magnetic disk memory device, flash memory device, or other non-transitory solid-state memory device. In some embodiments, memory 120 may include memory 120 located remotely from processor 110, and these remote memories may be connected to system architecture platform 100 via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0022] The device structure shown in FIG. 1 does not constitute a limitation of system architecture platform 100, which may include more or fewer components than those shown, or a combination of components, or a different arrangement of components.

[0023] As shown in FIG. 2, FIG. 2 is a flowchart of a transmission optimization method according to one embodiment of the present disclosure, and the transmission optimization method according to the embodiment of the present disclosure includes, but is not limited to, step S200, step S210, step S220 and step S230.

[0024] Step S200: A user configuration file is obtained, and an analysis process is performed on the user configuration file to obtain user configuration requirements. Step S210: Generate a plurality of resource pools according to user configuration demands, where each resource pool is set with a corresponding weight parameter. Step S220: Set a network port priority corresponding to each peripheral network port according to user configuration needs. Step S230: Connect each peripheral network port to a target resource pool according to user configuration demand, and the weight parameter of the target resource pool and the network port priority of the peripheral network port have one-to-one correspondence.

[0025] In an embodiment of the present disclosure, a transmission optimization method is used in a transmission device, the transmission device including multiple peripheral network ports, each of which is connected to multiple devices. The transmission device acquires a user configuration file and analyzes the user configuration file to obtain user configuration requirements. The transmission device includes a network configuration interface in the form of a WebUI (Website User Interface, network product interface design), and completes network configuration on the network configuration interface to generate a user configuration file. The user configuration requirements are obtained by analyzing the user configuration file, and the user configuration requirements include a target number of resource pools. The transmission device generates multiple resource pools according to the target number, and a corresponding weight parameter is set for each resource pool, i.e., each resource pool has a corresponding transmission priority, and one weight parameter corresponds to one transmission priority. The transmission device sets a network port priority for each peripheral network port according to the user configuration requirements, and connects each peripheral network port to a target resource pool according to the user configuration requirements, where the weight parameter of the target resource pool and the network port priority correspond one-to-one. A peripheral network port with a relatively high priority is connected to a relatively high-priority resource pool, and data from the peripheral network port is stored in the resource pool, and since the resource pool has a relatively high priority, data transmission takes longer and has a shorter transmission delay. Each peripheral network port is connected to a target resource pool according to its network port priority, and the target resource pool has a corresponding transmission priority. Devices requiring longer data transmission time and / or shorter transmission delays are connected to the relatively high-priority peripheral network port, thereby improving data transmission efficiency, accurately controlling data transmission time and transmission delays, and reducing the occurrence of high-priority data waiting to be transmitted due to low-priority data still using a relatively high-priority channel, thereby improving the user experience.

[0026] In one embodiment, a transmission device obtains a user configuration file, performs an analysis process on the user configuration file to obtain user configuration demands, and specifies that five resource pools need to be generated based on the user configuration demands, where the first resource pool corresponds to a first weight parameter, i.e., a first transmission priority, and has the highest transmission priority, the second resource pool corresponds to a second weight parameter, i.e., a second transmission priority, the third resource pool corresponds to a third weight parameter, i.e., a third transmission priority, the fourth resource pool corresponds to a fourth weight parameter, i.e., a fourth transmission priority, and the fifth resource pool corresponds to a fifth weight parameter, i.e., a fifth transmission priority, and has the lowest transmission priority. The user configuration demand specifies network port priorities of the five peripheral network ports, where the first peripheral network port corresponds to the first network port priority, the second peripheral network port corresponds to the second network port priority, the third peripheral network port corresponds to the third network port priority, the fourth peripheral network port corresponds to the fourth network port priority, and the fifth peripheral network port corresponds to the fifth network port priority. The transmission device connects the first peripheral network port to the first resource pool, the second peripheral network port to the second resource pool, the third peripheral network port to the third resource pool, the fourth peripheral network port to the fourth resource pool, and the fifth peripheral network port to the fifth resource pool according to the user configuration demand. In this way, a device with a relatively high demand for transmission time and / or transmission delay can be connected to the first peripheral network port, and a device connected to the first peripheral network port can transmit data with more transmission time and / or lower transmission delay, and a device with a relatively low demand for transmission time and / or transmission delay can be connected to the fifth peripheral network port.

[0027] In another embodiment of the present disclosure, the transmission device is provided with a switch box module for connecting each peripheral network port to a target resource pool. The peripheral network ports are first connected to the switch box module. After the resource pools are generated, the resource pools are also connected to the switch box module. The switch box module switches and connects each peripheral network port to a target resource pool with a corresponding transmission priority according to the network port priority of each peripheral network port. When the network port priority of the peripheral network port and / or the transmission priority of the resource pool are changed, the switch box module can quickly complete the switching connection again, thereby greatly improving the connection efficiency.

[0028] In addition, in the embodiment of the present disclosure, the above-mentioned user configuration demands include, but are not limited to, the target number of resource pools, i.e., resource pool quantity information, weight parameters corresponding to each resource pool, i.e., resource pool weight parameter information, and the correspondence between resource pools and peripheral device network ports. The correspondence includes, but is not limited to, the network port priority of each peripheral device network port and the connection policy between network ports and resource pools. Meanwhile, in the embodiment of the present disclosure, the connection policy between network ports and resource pools is such that a network port with a relatively high network port priority is connected to a resource pool with a relatively high transmission priority, i.e., a resource pool with a relatively high weight parameter, and a network port with a relatively low network port priority is connected to a resource pool with a relatively low transmission priority, i.e., a resource pool with a relatively low weight parameter.

[0029] Additionally, resource pools include, but are not limited to, first in first out (FIFO) resource pools.

[0030] Furthermore, a relatively high priority resource pool may include, but is not limited to, one having more transmission time and lower transmission delay, and may further include lower transmission packet loss, higher transmission reliability, etc., and the embodiments of the present disclosure are not specifically limited thereto.

[0031] As shown in FIG. 3, FIG. 3 is a sub-step flowchart of a transmission optimization method according to another embodiment of the present disclosure, which includes, but is not limited to, step S300.

[0032] Step S300: Generate a plurality of resource pools according to a target number, and configure each resource pool based on a weight parameter corresponding to each resource pool.

[0033] In an embodiment of the present disclosure, a transmission optimization method is used in a transmission device, the transmission device including multiple peripheral device network ports, each of which is connected to multiple devices. If a user configuration demand is not a preset configuration demand, a target number of resource pools and weight parameters corresponding to each resource pool are obtained according to the user configuration demand, each weight parameter corresponds to a transmission priority, multiple resource pools are generated according to the obtained target number, and each resource pool is configured based on the weight parameters corresponding to each obtained resource pool. The transmission device identifies the obtained user configuration demand, and if the user configuration demand is not a preset configuration demand, analyzes a user configuration file. If the analysis is successful, a resource pool is generated according to the user configuration demand.

[0034] In one embodiment, if the preset configuration demand is to generate three resource pools, each with a weight parameter of 1 and a transmission priority of the first transmission priority, and if the user configuration demand acquired by the transmission equipment differs from the preset configuration demand, the user configuration file is analyzed. If the analysis is successful, the user configuration demand is to generate four resource pools, with the first resource pool corresponding to the first weight parameter (i.e., the first transmission priority) and having the highest transmission priority, the second resource pool corresponding to the second weight parameter (i.e., the second transmission priority), the third resource pool corresponding to the third weight parameter (i.e., the third transmission priority), and the fourth resource pool corresponding to the fourth weight parameter (i.e., the fourth transmission priority) and having the lowest transmission priority, with the first weight parameter being 4, the second weight parameter being 3, the third weight parameter being 2, and the fourth weight parameter being 1. In this case, four resource pools are generated according to the user configuration demand, and each resource pool is configured based on its corresponding weight parameter.

[0035] As shown in FIG. 4, FIG. 4 is a sub-step flowchart of a transmission optimization method according to another embodiment of the present disclosure, which includes, but is not limited to, step S400.

[0036] Step S400: If the analysis fails, generate a preset number of resource pools, where the weight parameters corresponding to each resource pool are the same.

[0037] In an embodiment of the present disclosure, a transmission optimization method is used in a transmission device, the transmission device including multiple peripheral network ports, each of which is connected to multiple devices. If the user configuration demand is a preset configuration demand, the transmission device performs an analysis process on the user configuration file. If the analysis fails, the transmission device generates a preset number of resource pools, and the weight parameters corresponding to each resource pool are the same, i.e., the transmission priorities corresponding to each resource pool are the same. In one embodiment, if the preset configuration demand is to generate three resource pools, the weight parameters of each resource pool are all 1, and the transmission priorities corresponding to each resource pool are the same. If the acquired user configuration demand is a preset configuration demand, the transmission device performs an analysis process on the user configuration file. If the analysis fails, the transmission device generates three resource pools, and the weight parameters of each resource pool are all 1, and the transmission priorities corresponding to each resource pool are the same. In this case, each resource pool connected to a peripheral network port has the same data transmission performance.

[0038] As shown in FIG. 5, FIG. 5 is a sub-step flowchart of a transmission optimization method according to another embodiment of the present disclosure, which includes, but is not limited to, step S500.

[0039] Step S500: If the analysis fails, set the network port priorities corresponding to each peripheral network port to the same priority, and connect each peripheral network port to one of the resource pools.

[0040] In an embodiment of the present disclosure, a transmission optimization method is used in a transmission device, the transmission device including a plurality of peripheral network ports, each of which is connected to a plurality of devices. If a user configuration demand is a predetermined user configuration demand, an analysis process is performed on the user configuration file. If the analysis fails, the network port priorities corresponding to the peripheral network ports are set to the same priority, and each peripheral network port is connected to one of the resource pools. In one embodiment, if a user configuration demand is a predetermined configuration demand, an analysis process is performed on the user configuration file. If the analysis fails, the network port priorities corresponding to the peripheral network ports are set according to the predetermined user demand, and the network port priorities corresponding to the peripheral network ports are set to the same priority, and each peripheral network port is connected to one of the resource pools.

[0041] As shown in FIG. 6, FIG. 6 is a sub-step flowchart of a transmission optimization method according to another embodiment of the present disclosure, where the transmission optimization method according to the embodiment of the present disclosure includes, but is not limited to, step S600 and step S610.

[0042] Step S600: The total data transmission time of all resource pools is obtained. Step S610: Determine the exclusive data transmission time of each resource pool based on the weight parameter and the total data transmission time.

[0043] In an embodiment of the present disclosure, a transmission optimization method is used in a transmission device, the transmission device including multiple peripheral network ports, each of which is connected to multiple devices. The transmission device obtains the total data transmission times of all resource pools, obtains weight parameters corresponding to each resource pool according to user configuration needs, and determines the exclusive data transmission time of each resource pool based on the weight parameters and the total data transmission time. A resource pool with a relatively high weight parameter has a relatively high transmission priority. When transmitting data, this resource pool has more exclusive data transmission time, i.e., devices corresponding to the peripheral network ports connected to this resource pool transmit data with more transmission time and / or lower transmission delay, thereby improving data transmission efficiency and accurately controlling the data transmission time and / or transmission delay.

[0044] In one embodiment, a time slice, i.e., the total data transmission time, is the basic resource, and 1 s (1000 ms) is the basic subdivision unit. Taking four resource pools as an example, there are a total of four transmission priorities, and the weight corresponding to each priority is defined as n. The time slice within 1 s can be calculated as T(ms)=1000*n / 10. If the transmission priorities corresponding to the first to fourth resource pools are, in order, first to fourth transmission priorities, and the weights corresponding to the first to fourth transmission priorities are, in order, 4, 3, 2, and 1, then within one basic time period of 1000 seconds, the exclusive time slices of the resource pools, i.e., the exclusive data transmission time, are 1000*4 / 10=400ms for the first resource pool, 1000*3 / 10=300ms for the second resource pool, 1000*2 / 10=200ms for the third resource pool, and 1000*1 / 10=100ms for the fourth resource pool. By ensuring the time monopoly efficiency of each resource pool within a resource pool, it is necessary to ensure the realization of the timeliness of the priority scheduling of the corresponding peripheral network ports, that is, a resource pool with a relatively high priority has a relatively high exclusive data transmission time, and a peripheral network port with a relatively high network port priority is connected to a resource pool with a relatively high priority, thereby improving data transmission efficiency and accurately controlling data transmission time and / or transmission delay.

[0045] Furthermore, when the first transmission priority corresponding to the first resource pool is greater than the second transmission priority corresponding to the second resource pool, the first exclusive data transmission time corresponding to the first resource pool is greater than the second exclusive data transmission time corresponding to the second resource pool, and the first resource pool has more favorable transmission performance than the second resource pool.

[0046] As shown in FIG. 7, FIG. 7 is a structural schematic diagram of a transmission device according to another embodiment of the present disclosure.

[0047] In an embodiment of the present disclosure, a transmission device includes a network management module 700 and a network input / output management module 710, and the network management module 700 is connected to the network input / output management module 710. The network management module 700 is configured to obtain a user configuration file, perform an analysis process on the user configuration file, and obtain user configuration demands. The network input / output management module 710 is configured to generate a plurality of resource pools according to the user configuration demands, where a corresponding weight parameter is set for each resource pool, the network input / output management module 710 is configured to set a network port priority corresponding to each peripheral network port according to the user configuration demands, and connect each peripheral network port to a target resource pool according to the user configuration demands, where the weight parameter of the target resource pool and the network port priority of the peripheral network port correspond one-to-one.

[0048] 8, which is a structural schematic diagram of a transmission device according to another embodiment of the present disclosure, the transmission device in this embodiment of the present disclosure is composed of three parts, including a NET CM module (network management module), a NET IO MANAGER module (network IO management module), and a NET DEV DRIVER module (network device driving module). Here, the NET DEV DRIVER module processes the kernel space of the operating system and is mainly a driver module for each network card, responsible for initializing the network card chip, establishing and starting the data structure of the read and write queue, etc. The NET IO MANAGER module is mainly responsible for unified management of read and write data driven by each network card, bandwidth reallocation, and providing a response configuration interface to the NET CM module above. The NET CM module cooperates with the NET IO MANAGER module to provide the corresponding configuration interface to the upper layer and configure different network card devices.

[0049] 9 is a structural schematic diagram of a network IO management module according to an embodiment of the present disclosure. The NET IO MANAGER is mainly composed of two modules: a resource pool module and a switch box module. Module 1, the resource pool module, may include multiple resource pools, including, but not limited to, first-in, first-out (FIFO) resource pools, each representing an IO (Input / Output) queue with a different transmission priority. In this embodiment of the present disclosure, there are four FIFOs, where FIFO1 has the highest transmission priority and prioritizes scheduling of data packets located therein for transmission to the TCP / IP (Transmission Control Protocol / Internet Protocol) protocol stack. FIFO2 to FIFO4 have decreasing transmission priorities. Module 2: The SWITCH BOX module is mainly used to connect the RX / TX (Receive / Transmit) queues of network cards NET1 to NET4, i.e., the first peripheral device network port to the fourth peripheral device network port, to the resource pool queues of the corresponding transmission priority, and directly put the read / write data of the network cards into the FIFO resource pool of the corresponding transmission priority.

[0050] In addition, in an embodiment of the present disclosure, the NET CM module is connected to the NET IO MANAGER module to configure the NET IO MANAGER module. The NET CM module is composed of two parts: a NET CM main program part and a NET CM configuration file part. The NET CM main program part is the main program, which is the core of the NET CM. It mainly reads user configuration information, obtains the number and weight information of resource pool FIFOs, obtains SWITCH BOX configuration information, and converts the obtained information into special commands to send to the NET IO MANAGER module. The NET CM configuration file part includes information on the number of resource pool FIFOs, resource pool FIFO weight information, SWITCH BOX configuration information, and the correspondence between network cards and FIFO resource pools.

[0051] As shown in FIG. 10, based on the structure of the transmission equipment and the structure of the network IO management module in the above embodiment, FIG. 10 is an overall flowchart of a transmission optimization method according to another embodiment of the present disclosure. Step 101: After the system is powered on, the NET IO MANAGER module is initialized, which mainly includes establishing resource pools FIFO1 to FIFO4, initializing the default SWITCH BOX module, and initializing resources related to the network card. Step 102: Initialize the NET CM module, mainly including establishing its own module resources, reading configuration file information, and obtaining the user SWITCH BOX configuration information table. Step 103: If the information reading fails, it indicates that there is no need to modify the default configuration, and if there is no demand for the scheduling priority of the network card, i.e., the network port priority, the data packets of all the network cards are all proposed to the resource pool FITO1. Step 104: If the information is read successfully, it indicates that the default configuration needs to be modified, and there is a need for the scheduling priority of the network card. Step 105: Parse the information in the configuration file, and send corresponding configuration commands to the NET IO MANAGER module based on the configuration information. Step 106: The NET IO MANAGER module proposes the data packets of different network cards to resource pools FITO1 or FIFO2 to FIFO4 respectively based on the resulting configuration. Through the above process, the NET CM module, NET IO MANAGER module and SWITCH BOX module complete the mutual cooperation, realize the priority setting and scheduling for different network cards, and meet the different real-time needs of the industrial field.

[0052] Based on the above transmission optimization method, the following proposes respective embodiments of a controller and a computer-readable storage medium of the present disclosure.

[0053] One embodiment of the present disclosure also provides a controller, the controller including a processor, a memory, and a computer program stored on the memory and executable on the processor. The processor and memory may be connected via a bus or other means.

[0054] It should be noted that the controller in this embodiment may include the processor and memory in the embodiment shown in FIG. 1, and since both belong to the same concept, they have the same realization principles and beneficial effects, and will not be described in detail here.

[0055] The non-transitory software programs and instructions required to implement the transmission optimization method of the above embodiment are stored in a memory and, when executed by a processor, perform the transmission optimization method of the above embodiment.

[0056] Since the controller of the embodiments of the present disclosure can execute the transmission optimization method of the above embodiments, for the embodiments and technical effects of the controller of the embodiments of the present disclosure, please refer to the embodiments and technical effects of the transmission optimization method of any one of the above embodiments.

[0057] In addition, one embodiment of the present disclosure further provides a computer-readable storage medium, which stores computer-executable instructions. The computer-executable instructions are executed by a processor or a controller, for example, by a processor in one of the above controller embodiments, to cause the processor to perform the transmission optimization method of any one of the above embodiments, for example, to perform steps S200 and S230 of the method in FIG. 2, step S300 of the method in FIG. 3, step S400 of the method in FIG. 4, step S500 of the method in FIG. 5, steps S600 to S610 of the method in FIG. 6, and steps 101 to 106 of the method in FIG. 10 described above.

[0058] In an embodiment of the present disclosure, a transmission device includes multiple peripheral device network ports. The transmission device acquires a user configuration file, performs an analysis process on the user configuration file to obtain user configuration needs, and generates multiple resource pools according to the user configuration needs. A corresponding weight parameter is set for each resource pool. The transmission device assigns a network port priority to each peripheral device network port according to the user configuration needs, and connects each peripheral device network port to a target resource pool according to the user configuration needs. The weight parameter of the target resource pool corresponds one-to-one to the network port priority of the peripheral device network port. Different devices are connected to the transmission device through different peripheral device network ports. Data transmission by a device through one network port requires more transmission time and lower transmission delay, while data transmission by a device through another network port does not require high requirements for transmission time, transmission delay, etc. A user configuration file is generated according to user demand, the user configuration file is acquired, and the user configuration demand is obtained by analyzing the user configuration file. A plurality of resource pools are generated according to the user configuration demand, and a corresponding weight parameter is set for each resource pool, i.e., each resource pool has a corresponding transmission priority, with a higher priority resource pool having a longer transmission time and a shorter transmission delay. A network port priority corresponding to each peripheral network port is set according to the user configuration demand, and for each peripheral network port, the peripheral network port is connected to a target resource pool according to the user configuration demand, with the weight parameter of the target resource pool and the network port priority corresponding one-to-one. In this way, a peripheral network port corresponding to a device requiring a longer transmission time and a shorter transmission delay is connected to a higher priority resource pool, and a peripheral network port corresponding to a device with lower requirements for transmission time and transmission delay is connected to a lower priority resource pool, thereby improving transmission efficiency, accurately controlling data transmission time and transmission delay, and improving the user experience.

[0059] All or some steps in the methods and systems disclosed above may be implemented as software, firmware, hardware, or any suitable combination thereof. Some or all physical assemblies may be implemented as software executed by a processor, such as a central processor, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as a dedicated integrated circuit. Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (e.g., computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or any other medium that can be used to store desired information and that can be accessed by a computer. As known to those skilled in the art, communication media typically includes computer-readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier or other transport mechanism, and may include any information delivery media.

[0060] Although some embodiments of the present disclosure have been described above, the present disclosure is not limited to the above-described embodiments. A person skilled in the art may further make various equivalent modifications or substitutions under common conditions that do not violate the scope of the present disclosure, and all of these equivalent modifications or substitutions are included within the scope limited by the claims of the present disclosure.

Claims

1. 1. A transmission optimization method for use in a transmission device including a plurality of peripheral device network ports, comprising: Obtaining a user configuration file, and performing an analysis process on the user configuration file to obtain user configuration demands; generating a plurality of resource pools according to the user configuration demands, wherein a corresponding weight parameter is set for each of the resource pools; setting a network port priority corresponding to each of the peripheral network ports according to the user configuration needs; A transmission optimization method including: connecting each of the peripheral device network ports to a target resource pool according to the user configuration demand, wherein the weight parameter of the target resource pool and the network port priority of the peripheral device network port correspond one-to-one.

2. 2. The transmission optimization method of claim 1, wherein the user configuration demand includes a target number of the resource pool, a weight parameter corresponding to each of the resource pools, and a correspondence relationship between the resource pools and the peripheral device network ports, wherein the correspondence relationship includes the network port priority of each of the peripheral device network ports.

3. generating a plurality of resource pools in response to the user configuration demands, The transmission optimization method according to claim 2 , further comprising: generating a plurality of the resource pools according to the target number; and configuring each of the resource pools according to a weight parameter corresponding to each of the resource pools.

4. After obtaining a user configuration file and performing an analysis process on the user configuration file, 2. The transmission optimization method of claim 1, further comprising: if the analysis fails, generating a predetermined number of the resource pools, wherein the weight parameters corresponding to each of the resource pools are the same.

5. 5. The transmission optimization method of claim 4, further comprising: if the analysis fails, setting the network port priorities corresponding to each of the peripheral device network ports to the same priority, and connecting each of the peripheral device network ports to one of the resource pools.

6. Obtaining a total data transmission time of all the resource pools; The transmission optimization method of claim 1 , further comprising: determining an exclusive data transmission time for each of the resource pools based on the weight parameter and the total data transmission time.

7. 2. The method of claim 1, wherein the resource pool is a first-in, first-out queue resource pool.

8. A transmission device, 8. A transmission device comprising: a memory; a processor; and a computer program stored in the memory and executable on the processor, the computer program executing the processor implementing the transmission optimization method according to any one of claims 1 to 7.

9. 8. A controller comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the transmission optimization method of any one of claims 1 to 7 when executing the computer program.

10. 8. A computer-readable storage medium having computer-executable instructions stored thereon, the computer-executable instructions being used to cause a computer to perform the transmission optimization method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Network device, controller, queue management method, and traffic management chip

    CN107306232A

  • Flow control circuit, and flow control method

    JP2011182209A

  • Flexible queues in a network switch

    US20160373368A1

  • Network device, controller, queue management method, and traffic management chip

    US20190068516A1