Transmission Optimization Method, Device, Controller, and Readable Storage Medium

The transmission optimization method addresses the inefficiencies in conventional QoS services by generating resource pools with specific weight parameters and matching network port priorities, thereby enhancing data transmission efficiency and control in industrial field-level devices.

JP2025518836AActive Publication Date: 2025-06-19ZTE CORP
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Conventional QoS services in industrial field-level devices are inadequate for accurately controlling data transmission time and transmission delay, leading to decreased data transmission efficiency due to limited priority settings for network services.

Method used

A transmission optimization method that involves obtaining a user configuration file, analyzing it to determine user requirements, generating resource pools with corresponding weight parameters, setting network port priorities, and connecting peripheral device network ports to target resource pools based on one-to-one correspondence of weight parameters and network port priorities.

Benefits of technology

This approach improves data transmission efficiency, accurately controls data transmission time and transmission delay, and enhances user experience by optimizing resource allocation and priority settings based on specific user requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025518836000001_ABST
    Figure 2025518836000001_ABST
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] The present disclosure is proposed based on a Chinese patent application with an application number of 202210841034.8 and an application date of July 18, 2022, claims the priority of this Chinese patent application, and all the contents of this Chinese patent application are incorporated herein by reference into the present disclosure.

[0002] The present disclosure relates to the field of data transmission technology, and particularly to a transmission optimization method, device, controller, and readable storage medium.

Background Art

[0003] Deterministic networking technology is the development direction of next-generation network communication systems and an important driving force for networks, industry, agriculture, and the service industry. Forming the technology and industrial layout of "Deterministic Networking +" has important significance for thousands of industries to further advance towards the high-quality development direction of digitalization, networking, and intelligentization. Especially with the rapid development of IIOT (Industrial Internet of Things), different devices are interconnected, different services are performed in parallel simultaneously, and more requirements for QoS (Quality of Service) have been proposed. The data transmission of conventional industrial field-level devices is transmitted based on QoS. Based on the traffic classification principle, traffic is divided into multiple priorities or multiple service categories. After classifying messages, other QoS characteristics can be applied to different classifications. Industrial products generally provide four or more Ethernet ports. Different networks access different industrial devices or terminals, and different terminals or industrial devices have different QoS according to different service requirements. Conventional QoS services can only set priorities for a certain network service, resulting in a decrease in data transmission efficiency and an inability to accurately control data transmission time, transmission delay, etc.

Summary of the Invention

Problems to be Solved by the Invention

[0004] The present disclosure proposes a transmission optimization method, device, controller, and readable storage medium.

Means for Solving the Problems

[0005] According to a first aspect, an embodiment of the present disclosure provides a transmission optimization method for use in a transmission device, where the transmission device includes a plurality of peripheral device network ports, and the method includes: obtaining a user configuration file, performing analysis processing on the user configuration file to obtain user configuration requirements; generating a plurality of resource pools according to the user configuration requirements, where a corresponding weight parameter is set for each resource pool; setting a network port priority corresponding to each peripheral device network port according to the user configuration requirements; 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.

[0006] According to a second aspect, embodiments of the present disclosure further provide a transmission device, which includes a network management module configured to obtain a user configuration file, perform analysis processing on the user configuration file to obtain user configuration requirements, and a network input / output management module configured to generate a plurality of resource pools according to the user configuration requirements. Each of the resource pools is set with a corresponding weight parameter. The network input / output management module is configured to set the network port priority corresponding to each of the peripheral device network ports according to the user configuration requirements, and connect each of the peripheral device network ports to a target resource pool according to the user configuration requirements, where the weight parameter of the target resource pool corresponds one-to-one to the network port priority of the peripheral device network port. The transmission device includes the network input / output management module.

[0007] According to a third aspect, embodiments of the present disclosure further provide a controller, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the transmission optimization method described in the first aspect above is realized.

[0008] According to a fourth aspect, embodiments of the present disclosure further provide a computer-readable storage medium, on which computer-executable instructions are stored. The computer-executable instructions are used to cause a computer to execute the transmission optimization method described in the first aspect above.

[0009] Other features and advantages of the present disclosure will be described in the subsequent description, and will be partially apparent from the description, or can be understood by implementing the present disclosure. The objectives and other advantages of the present disclosure can be realized and obtained by the structures specifically pointed out in the description, claims and drawings. The drawings are provided to offer a further understanding of the technical solutions of the present disclosure, and form a part of the specification. They are used to interpret the technical solutions of the present disclosure together with the embodiments of the present disclosure, and do not constitute a limitation to the technical solutions of the present disclosure.

Brief Description of the Drawings

[0010]

Figure 1

Figure 2

Figure 3

Figure 4

Figure 5

Figure 6

Figure 7

Figure 8

Figure 9

Figure 10

Modes for Carrying Out the Invention

[0011] Hereinafter, embodiments of the present disclosure will be described in detail. 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. Hereinafter, the embodiments described in the drawings are exemplary and are only used for interpreting the present disclosure and should not be understood as a limitation to the present disclosure.

[0012] In the description of the present disclosure, regarding the description of directions, for example, the directions or positional relationships indicated by up, down, front, rear, left, right, etc. are the directions or positional relationships shown based on the drawings, and are only for facilitating the description and simplification of the present disclosure, and do not indicate or imply that the device or element mentioned must have a specific direction and be configured and operated in a specific direction, and should not be understood as a limitation to the present disclosure.

[0013] In the description of the present disclosure, some meanings are one or more, and multiple meanings are two or more. "Larger than", "smaller than", "exceeding", etc. are understood not to include the number, and "above", "below", "within", etc. are understood to include the number. The descriptions of "first" and "second" are only for the purpose of distinguishing technical features and should not be understood as indicating or implying relative importance, or implicitly indicating the number of the indicated technical features, or implicitly indicating the precedence relationship of the indicated technical features.

[0014] In the description of the present disclosure, unless specifically and clearly limited, terms such as "installation", "attachment", "connection", etc. should be understood in a broad sense, and those 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] Now, with the rapid development of IIoT (Industrial Internet of Things, the industrial Internet field), different devices are interconnected, different services are carried out in parallel at the same time, and more requirements for QoS (Quality of Service) are being proposed. The data transmission of traditional industrial field-level devices is transmitted based on QoS. Based on the traffic classification principle, the traffic is divided into multiple priorities or multiple service classes. After classifying the messages, other QoS characteristics can be applied to different classifications. Industrial products generally provide four or more Ethernet ports. Different networks access different industrial devices or terminals, and different terminals or industrial devices have different QoS according to different service requirements. The conventional QoS service can only set priorities for a certain network service, resulting in a decrease in data transmission efficiency and an inability to accurately control data transmission time, transmission delay, etc.

[0016] Based on the above situation, embodiments of the present disclosure propose a transmission optimization method, device, controller, and readable storage medium. The transmission device includes a plurality of peripheral device network ports. The transmission device obtains a user configuration file, performs analysis processing on the user configuration file to obtain user configuration requirements, generates a plurality of resource pools according to the user configuration requirements. Here, corresponding weight parameters are set for each resource pool, and network port priorities corresponding to each peripheral device network port are 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 and the network port priority of the peripheral device network port correspond one-to-one. Different devices are connected to the transmission device through different peripheral device network ports. Data transmission of a device through a certain network port requires more transmission time and lower transmission delay, while data transmission of a device through a certain network port does not have high requirements for transmission time, transmission delay, etc. By generating a user configuration file according to the user's needs, obtaining the user configuration file, and analyzing the user configuration file to obtain the user configuration requirements, a plurality of resource pools are generated according to the user configuration requirements, and corresponding weight parameters are set for each resource pool, that is, each resource pool has a corresponding transmission priority. A resource pool with a relatively high priority has more transmission time and lower transmission delay. Also, network port priorities corresponding to each peripheral device network port are set according to the user configuration requirements, and for each peripheral device network port, the peripheral device network port is connected to a target resource pool according to the user configuration requirements. The weight parameter of the target resource pool and the network port priority correspond one-to-one. In this way, the peripheral device network port corresponding to a device that requires more transmission time and lower transmission delay is connected to a resource pool with a relatively high priority, and the peripheral device network port corresponding to a device that does not have high requirements for transmission time, transmission delay, etc. is connected to a resource pool with a relatively low priority, thereby improving the transmission efficiency, accurately controlling the data transmission time and transmission delay, and improving the user's usage experience.

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

[0018] As shown in FIG. 1, FIG. 1 is a schematic diagram of a system architecture platform for executing a transmission optimization method according to an 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 a memory 120, and one processor 110 and one memory 120 in FIG. 1 are taken as examples.

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

[0021] The memory 120 may be used as a non-transitory computer-readable storage medium to store a non-transitory software program and a non-transitory computer-executable program. Note that the memory 120 may include a high-speed random access memory, and may further include a non-transitory memory, for example, at least one magnetic disk memory device, a flash memory device, or other non-transitory solid-state memory devices. In some embodiments, the memory 120 may include a memory 120 installed remotely with respect to the processor 110, and these remote memories may be connected to this system architecture platform 100 via a network. Examples of the above network 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 the system architecture platform 100, and may include more or fewer members than the number of members shown in the figure, or a combination of some members, or an arrangement of different members.

[0023] As shown in FIG. 2, FIG. 2 is a flowchart of a transmission optimization method according to an embodiment of the present disclosure. 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: Obtain a user configuration file, perform analysis processing on the user configuration file, and obtain user configuration requirements. Step S210: Generate a plurality of resource pools according to the user configuration requirements. Here, a corresponding weight parameter is set for each resource pool. Step S220: Set the network port priority corresponding to each peripheral device network port according to the user configuration requirements. Step S230: Connect each peripheral device network port to a target resource pool according to the user configuration requirements. The weight parameter of the target resource pool and the network port priority of the peripheral device network port correspond one-to-one.

[0025] In an embodiment of the present disclosure, the transmission optimization method is used for a transmission device, which includes a plurality of peripheral device network ports, and a plurality of devices are connected to each peripheral device network port. The transmission device obtains a user configuration file, performs parsing processing on the user configuration file, and obtains user configuration requirements. Here, the transmission device includes a network configuration interface in the form of WebUI (Website User Interface, network product interface design). The network configuration is completed on the network configuration interface, and a user configuration file is generated. When the user configuration file is parsed, user configuration requirements are obtained. The user configuration requirements include the target number of resource pools. The transmission device generates a plurality of resource pools according to the target number. A corresponding weight parameter is set for each resource pool, that is, each resource pool has a corresponding transmission priority, and one weight parameter corresponds to one transmission priority. The transmission device sets the network port priority corresponding to each peripheral device network port according to the user configuration requirements, and connects each peripheral device network port to the target resource pool according to the user configuration requirements. Here, the weight parameter of the target resource pool and the network port priority correspond one-to-one. The peripheral device network port with a relatively high priority is connected to the resource pool with a relatively high priority, and the data of this peripheral device network port is stored in this resource pool. Since the resource pool has a relatively high priority, when data transmission is performed, it has more data transmission time and lower transmission delay. Each peripheral device network port is connected to the target resource pool according to the network port priority. The target resource pool has a corresponding transmission priority, and devices that require more data transmission time and / or lower transmission delay are connected to the peripheral device network port with a relatively high priority. Thereby, when data transmission is performed, the data transmission efficiency is improved, the data transmission time and transmission delay are accurately controlled, and the situation where data with a relatively low priority still uses a channel with a relatively high priority is reduced, so as to reduce the occurrence of the situation where data with a relatively high priority is waiting to be transmitted and improve the user experience.

[0026] In one embodiment, the transmission device obtains a user configuration file, performs analysis processing on the user configuration file to obtain user configuration requirements, and it is specified in the user configuration requirements that five resource pools need to be generated. Here, the first resource pool corresponds to the first weight parameter, that is, the first transmission priority, which is the highest transmission priority; the second resource pool corresponds to the second weight parameter, that is, the second transmission priority; the third resource pool corresponds to the third weight parameter, that is, the third transmission priority; the fourth resource pool corresponds to the fourth weight parameter, that is, the fourth transmission priority; the fifth resource pool corresponds to the fifth weight parameter, that is, the fifth transmission priority, which is the lowest transmission priority. And in the user configuration requirements, the network port priorities of five peripheral device network ports are specified. The first peripheral device network port corresponds to the first network port priority, the second peripheral device network port corresponds to the second network port priority, the third peripheral device network port corresponds to the third network port priority, the fourth peripheral device network port corresponds to the fourth network port priority, and the fifth peripheral device network port corresponds to the fifth network port priority. The transmission device connects the first peripheral device network port to the first resource pool, the second peripheral device network port to the second resource pool, the third peripheral device network port to the third resource pool, the fourth peripheral device network port to the fourth resource pool, and the fifth peripheral device network port to the fifth resource pool according to the user configuration requirements. In this way, a device having a relatively high demand for transmission time and / or transmission delay can be connected to the first peripheral device network port, and a device connected to the first peripheral device network port can perform data transmission with more transmission time and / or lower transmission delay. A device having a relatively low demand for transmission time and / or transmission delay can be connected to the fifth peripheral device network port.

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

[0028] In addition, in the embodiment of the present disclosure, the above user configuration requirements include, but are not limited to, the target number of the resource pool, that is, the number information of the resource pool, the weight parameter corresponding to each resource pool, that is, the weight parameter information of the resource pool, and the correspondence between the resource pool and the peripheral device network port. The correspondence includes, but is not limited to, the network port priority of each peripheral device network port and the connection policy between the network port and the resource pool. On the other hand, in the embodiment of the present disclosure, the connection policy between the network port and the resource pool is to connect the network port with a relatively high network port priority to the resource pool with a relatively high transmission priority, that is, to the resource pool with a relatively high weight parameter, and to connect the network port with a relatively low network port priority to the resource pool with a relatively low transmission priority, that is, to the resource pool with a relatively low weight parameter.

[0029] In addition, the resource pool includes, but is not limited to, a first-in-first-out (FIFO) resource pool.

[0030] In addition, relatively high-priority resource pools include, but are not limited to, those having more transmission time and lower transmission delay, and may further include lower transmission packet loss, higher transmission reliability, etc. 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. The transmission optimization method according to the embodiment of the present disclosure includes, but is not limited to, step S300.

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

[0033] In the embodiments of the present disclosure, the transmission optimization method is used for a transmission device. The transmission device includes a plurality of peripheral device network ports, and a plurality of devices are connected to each peripheral device network port. When the user configuration requirement is not a pre-set configuration requirement, obtain the target number of resource pools and the weight parameter corresponding to each resource pool according to the user configuration requirement. Each weight parameter corresponds to a transmission priority. Generate a plurality of resource pools according to the obtained target number, and configure each resource pool based on the weight parameter corresponding to each obtained resource pool. The transmission device identifies the obtained user configuration requirement. If the user configuration requirement is not a pre-set configuration requirement, analyze the user configuration file. When the analysis is successful, generate a resource pool according to the user configuration requirement.

[0034] In one embodiment, if the preset configuration requirement is to generate three resource pools, the weight parameter of each resource pool is one, and the transmission priority of each resource pool is the first transmission priority. When the user configuration requirement obtained by the transmission device is different from the preset configuration requirement, the user configuration file is analyzed. If the analysis is successful, the user configuration requirement is to generate four resource pools. The first resource pool corresponds to the first weight parameter, that is, the first transmission priority, and has the highest transmission priority. The second resource pool corresponds to the second weight parameter, that is, the second transmission priority. The third resource pool corresponds to the third weight parameter, that is, the third transmission priority. The fourth resource pool corresponds to the fourth weight parameter, that is, the fourth transmission priority, and has the lowest transmission priority. Assume that the first weight parameter is 4, the second weight parameter is 3, the third weight parameter is 2, and the fourth weight parameter is 1. In that case, four resource pools are generated according to the user configuration requirement, and each resource pool is configured based on the weight parameter corresponding to each resource pool.

[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. The transmission optimization method according to the embodiment of the present disclosure 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, the transmission optimization method is used for a transmission device. The transmission device includes a plurality of peripheral device network ports, and a plurality of devices are connected to each peripheral device network port. When the user configuration requirement is a configured requirement set in advance, if the user configuration file is analyzed and the analysis fails, the transmission device generates a preset number of resource pools. The weight parameters corresponding to each resource pool are the same, that is, the transmission priorities corresponding to each resource pool are the same. In one embodiment, if the preset configured requirement is to generate three resource pools, the weight parameter of each resource pool is 1, and the transmission priorities corresponding to each resource pool are the same. When the obtained user configuration requirement is the configured requirement set in advance, the transmission device performs an analysis process on the user configuration file. If the analysis fails, three resource pools are generated. The weight parameter of each resource pool is 1, and the transmission priorities corresponding to each resource pool are the same. At this time, any one of the resource pools connected to the peripheral device network port has the same data transmission performance.

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

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

[0040] In an embodiment of the present disclosure, the transmission optimization method is used in a transmission device. The transmission device includes a plurality of peripheral device network ports, and a plurality of devices are connected to each peripheral device network port. When the user configuration requirement is a user configuration requirement set in advance, perform analysis processing on the user configuration file. If the analysis fails, set the network port priorities corresponding to each peripheral device network port to the same priority, and connect each peripheral device network port to any one of the resource pools. In one embodiment, when the user configuration requirement is a preset configuration requirement, perform analysis processing on the user configuration file. If the analysis fails, set the network port priorities corresponding to each peripheral device network port according to the preset user requirements, and the network port priorities corresponding to each peripheral device network port are the same, and connect each peripheral device network port to any 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. 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: Obtain the total data transmission time of all resource pools. 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, the transmission optimization method is used for a transmission device. The transmission device includes a plurality of peripheral device network ports, and a plurality of devices are connected to each peripheral device network port. The transmission device obtains the total data transmission time of all resource pools, and obtains a weight parameter corresponding to each resource pool according to user configuration requirements. Based on the weight parameter and the total data transmission time, the exclusive data transmission time of each resource pool is determined. A resource pool with a relatively high weight parameter has a relatively high transmission priority. When data transmission is performed, this resource pool has more exclusive data transmission time, that is, the devices corresponding to the peripheral device network ports connected to this resource pool perform data transmission with more transmission time and / or lower transmission delay. Thereby, the transmission efficiency of data can be improved, and the data transmission time and / or transmission delay can be accurately controlled.

[0044] In one embodiment, the time slice, that is, the total data transmission time, is used as the basic resource, with 1 s (1000 ms) as the basic subdivision unit. Taking four resource pools as an example, they are divided into a total of four transmission priorities. If 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. The transmission priorities corresponding to the first resource pool to the fourth resource pool are the first transmission priority to the fourth transmission priority in order. If the weights corresponding to the first transmission priority to the fourth transmission priority are 4, 3, 2, and 1 in order, within one basic time period of 1000 s, the exclusive time slice of the resource pool, that is, the exclusive data transmission time, is 1000*4 / 10 = 400 ms for the first resource pool, 1000*3 / 10 = 300 ms for the second resource pool, 1000*2 / 10 = 200 ms for the third resource pool, and 1000*1 / 10 = 100 ms for the fourth resource pool. By ensuring the time exclusive efficiency of each resource pool within the resource pool, it is necessary to ensure the realization of the timeliness of the priority scheduling of the corresponding peripheral device network port. That is, a resource pool with a relatively high priority has a relatively high exclusive data transmission time. Connect the peripheral device network port with a relatively high network port priority to the resource pool with a relatively high priority, thereby improving the data transmission efficiency and accurately controlling the data transmission time and / or transmission delay.

[0045] Also, 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 better transmission performance than the second resource pool.

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

[0047] In an embodiment of the present disclosure, the 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 parsing processing on the user configuration file, and obtain user configuration requirements. The network input / output management module 710 is configured to generate a plurality of resource pools according to the user configuration requirements. Here, corresponding weight parameters are set for each resource pool, and the network input / output management module 710 is configured to set the network port priority corresponding to each peripheral device network port according to the user configuration requirements, and connect each peripheral device network port to a target resource pool according to the user configuration requirements, and the weight parameter of the target resource pool and the network port priority of the peripheral device network port correspond one-to-one.

[0048] Also, as shown in FIG. 8, FIG. 8 is a schematic structural diagram of a transmission device according to another embodiment of the present disclosure. In another embodiment of the present disclosure, the transmission device 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 driver module). Here, the NET DEV DRIVER module processes the kernel space of the operating system and is mainly each network card driver module, responsible for initializing the network card chip, establishing and starting the data structure of the read / write queue, etc. The NET IO MANAGER module mainly uniformly manages the read / write data of each network card driver, performs bandwidth reallocation, and also provides a configuration interface for response to the NET CM module above. The NET CM module operates in cooperation with the NET IO MANAGER module, provides a corresponding configuration interface for the upper layer, and configures different network card devices.

[0049] Also, as shown in FIG. 9, FIG. 9 is a schematic structural diagram of a network IO management module according to an embodiment of the present disclosure. The NET IO MANAGEER mainly consists of two modules: a resource pool module and a SWITCH BOX module. Module 1, the resource pool module: There may be multiple resource pools. The resource pool includes, but is not limited to, a first-in-first-out (FIFO) resource pool, representing IO (Input / Output) queues with different transmission priorities respectively. In the embodiment of the present disclosure, there are four FIFOs. Here, FIFO1 has the highest transmission priority, and the data packets located therein are preferentially scheduled to be transmitted to the TCP / IP (Transmission Control Protocol / Internet Protocol) protocol stack. The transmission priorities of FIFO2 to FIFO4 decrease in sequence. Module 2: The SWITCH BOX module is mainly used to connect the RX / TX (Receive / Transmit) queues of network cards NET1 to NET4, that is, from the first peripheral device network port to the fourth peripheral device network port, etc., to the resource pool queues with corresponding transmission priorities, and to put the read / write data of the network cards into the FIFO resource pool with the directly corresponding transmission priority.

[0050] In addition, in the embodiments of the present disclosure, the NET CM module is connected to the NET IO MANAGEER module to configure the NET IO MANAGEER module. The NET CM module is composed of two parts: the NET CM main program part and the NET CM configuration file part. The NET CM main program part has the main program as the core of NET CM, mainly reads user configuration information, obtains the number of resource pool FIFOs, weight information, etc., obtains the configuration information of the SWITCH BOX, and after obtaining the above information, converts it into special commands and is used to send them to the NET IO MANAGEER module. The NET CM configuration file part includes the number information of the resource pool FIFOs, the weight information of the resource pool FIFOs, the SWITCH BOX configuration information, and the correspondence between the network card and the FIFO resource pool.

[0051] As shown in FIG. 10, based on the structure of the transmission device 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 power is turned on, initialize the NET IO MANAGER module, mainly including the establishment of resource pool FIFOs 1 to 4, the initialization of the default SWITCH BOX module, and the resource initialization related to the network card. Step 102: Initialize the NET CM module, mainly including the establishment of its own module resources, the reading of configuration file information, and the acquisition of the user SWITCH BOX configuration information table. If the information reading fails, it indicates that there is no need to modify the default configuration. When there is no need for the scheduling priority of the network card, that is, the network port priority, the data packets of all network cards are all proposed to the resource pool FITO1. If the information reading is successful, 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: Analyze the information in the configuration file, and based on the configuration information, send the corresponding configuration commands to the NET IO MANAGER module. Step 106: The NET IO MANAGER module proposes the data packets of different network cards to the resource pools FITO1 or FIFO2 - FIFO4 respectively based on the obtained configuration. Through the above process, the cooperation among the three modules of the NET CM module, the NET IO MANAGER module, and the SWITCH BOX module is completed, realizing the priority setting and scheduling for different network cards, and meeting the different real - time requirements in the industrial field.

[0052] Based on the above - mentioned transmission optimization method, the following are the proposed embodiments of the controller and the computer - readable storage medium of the present disclosure respectively.

[0053] In addition, an embodiment of the present disclosure provides a controller, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor. The processor and the 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 the memory in the embodiment shown in FIG. 1. Since the two belong to the same concept, they have the same implementation principle and beneficial effects, and will not be described in detail here.

[0055] The non - temporary software program and instructions required for the realization of the transmission optimization method in the above - mentioned embodiment are stored in the memory and, when executed by the processor, execute the transmission optimization method in the above - mentioned embodiment.

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

[0057] In addition, an embodiment of the present disclosure further provides a computer-readable storage medium, in which computer-executable instructions are stored, and these computer-executable instructions are executed by a processor or a controller, for example, by one of the processors in the above controller embodiment, to cause the processor to execute the transmission optimization method of any one of the above embodiments, for example, steps S200 and S230 of the method in FIG. 2 described above, 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.

[0058] In an embodiment of the present disclosure, the transmission device includes a plurality of peripheral device network ports. The transmission device obtains a user configuration file, performs analysis processing on the user configuration file to obtain user configuration requirements, generates a plurality of resource pools according to the user configuration requirements, and sets corresponding weight parameters for each resource pool. The transmission device sets the network port priority corresponding to each peripheral device network port according to the user configuration requirements, connects each peripheral device network port to a target resource pool according to the user configuration requirements, and the weight parameter of the target resource pool and the network port priority of the peripheral device network port correspond one-to-one. Different devices are connected to the transmission device via different peripheral device network ports. The data transmission of a device through a certain network port requires more transmission time and lower transmission delay, while the data transmission of a device through a certain network port does not have high requirements for transmission time, transmission delay, etc. By generating a user configuration file according to the user's needs, obtaining the user configuration file, and analyzing the user configuration file to obtain the user configuration requirements, a plurality of resource pools are generated according to the user configuration requirements, and corresponding weight parameters are set for each resource pool. That is, each resource pool has a corresponding transmission priority. A resource pool with a relatively high priority has more transmission time and lower transmission delay. Also, the network port priority corresponding to each peripheral device network port is set according to the user configuration requirements, and for each peripheral device network port, the peripheral device network port is connected to a target resource pool according to the user configuration requirements. The weight parameter of the target resource pool and the network port priority correspond one-to-one. In this way, the peripheral device network port corresponding to a device that requires more transmission time and lower transmission delay is connected to a resource pool with a relatively high priority, and the peripheral device network port corresponding to a device that does not have high requirements for transmission time, transmission delay, etc. is connected to a resource pool with a relatively low priority, thereby improving the transmission efficiency, accurately controlling the data transmission time and transmission delay, and improving the user experience.

[0059] All or some of the steps in the method disclosed above, the system may be implemented as software, firmware, hardware and suitable combinations thereof. Some physical assemblies or all physical assemblies may be implemented as software executed by a processor, such as a central processor, a digital signal processor or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is known to those skilled in the art, the term computer storage medium 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). The computer storage medium includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. As is known to those skilled in the art, the communication medium generally includes computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier or other transmission mechanism, and may include any information transmission medium.

[0060] The above describes some embodiments of the present disclosure. However, the present disclosure is not limited to the above embodiments. Those skilled in the art may make various equivalent modifications or replacements under the condition that they do not violate the scope of the present disclosure. All of these equivalent modifications or replacements are included within the scope defined by the claims of the present disclosure.

Claims

1. A transmission optimization method used for a transmission device including a plurality of peripheral device network ports, obtaining a user configuration file, performing analysis processing on the user configuration file to obtain user configuration requirements, generating a plurality of resource pools according to the user configuration requirements, wherein corresponding weight parameters are set for each of the resource pools, setting a network port priority corresponding to each of the peripheral device network ports according to the user configuration requirements, connecting each of the peripheral device network ports to a target resource pool according to the user configuration requirements, wherein the weight parameter of the target resource pool and the network port priority of the peripheral device network port correspond one-to-one, the transmission optimization method comprising.

2. The user configuration requirements include the target number of the resource pools, the weight parameters corresponding to each of the resource pools, and the correspondence between the resource pools and the peripheral device network ports, wherein the correspondence includes the network port priority of each of the peripheral device network ports, the transmission optimization method according to claim 1.

3. Generating a plurality of resource pools according to the user configuration requirements is generating a plurality of the resource pools according to the target number, and configuring each of the resource pools according to the weight parameter corresponding to each of the resource pools, the transmission optimization method according to claim 2.

4. After obtaining a user configuration file and performing analysis processing on the user configuration file, further comprising generating a preset number of the resource pools when the analysis fails, wherein the weight parameters corresponding to each of the resource pools are the same, the transmission optimization method according to claim 1.

5. When the parsing fails, the method further includes setting the network port priorities corresponding to the peripheral device network ports to the same priority and connecting each of the peripheral device network ports to any one of the resource pools. The transmission optimization method according to claim 4.

6. Obtaining the total data transmission time of all the resource pools, The method further includes determining the exclusive data transmission time of each resource pool based on the weight parameter and the total data transmission time. The transmission optimization method according to claim 3 or 4.

7. The resource pool is a first-in-first-out queue resource pool. The transmission optimization method according to claim 1, characterized in that.

8. A transmission device, A network management module configured to obtain a user configuration file, perform parsing processing on the user configuration file, and obtain user configuration requirements; A network input / output management module configured to generate a plurality of resource pools according to the user configuration requirements, wherein a corresponding weight parameter is set for each resource pool, and the network input / output management module is configured to set the network port priorities corresponding to the peripheral device network ports according to the user configuration requirements, and connect each of the peripheral device network ports to a target resource pool according to the user configuration requirements, and the weight parameter of the target resource pool and the network port priority of the peripheral device network port correspond one-to-one. The transmission device includes the network input / output management module.

9. A controller, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the transmission optimization method according to any one of claims 1 to 7 is realized. The controller.

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

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