WO2024041052A1 - 带宽划分方法、装置、设备及计算机可读存储介质 - Google Patents

带宽划分方法、装置、设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2024041052A1
WO2024041052A1 PCT/CN2023/095134 CN2023095134W WO2024041052A1 WO 2024041052 A1 WO2024041052 A1 WO 2024041052A1 CN 2023095134 W CN2023095134 W CN 2023095134W WO 2024041052 A1 WO2024041052 A1 WO 2024041052A1
Authority
WO
WIPO (PCT)
Prior art keywords
bandwidth
real
data
time
type
Prior art date
Application number
PCT/CN2023/095134
Other languages
English (en)
French (fr)
Inventor
余钢锋
严义
Original Assignee
深圳市汇川技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市汇川技术股份有限公司 filed Critical 深圳市汇川技术股份有限公司
Publication of WO2024041052A1 publication Critical patent/WO2024041052A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities

Definitions

  • the present application relates to the field of data transmission technology, and in particular to a bandwidth division method, device, equipment and computer-readable storage medium.
  • Real-time data is also called PDO data, which is process data. It is mainly used for control-related data transmission, which is periodic and deterministic.
  • Non-real-time data is used in many situations, such as parameter configuration, firmware upgrade, continuous data collection, diagnosis, etc.
  • Non-real-time data has lower requirements for real-time performance. Under normal working conditions of the network system, there will be real-time data and non-real-time data on the link. Non-real-time data cannot affect the periodicity and certainty of real-time data. The existing master station will guarantee this by itself.
  • Non-real-time data can be applied to a variety of services. Although such services do not have high requirements for real-time data, they do have certain requirements for data transmission bandwidth and business application experience.
  • non-real-time data channels will be used for some producer-consumer model services, such as fixed-period sampling data reporting, triggered parameter access, multiple node data reporting and other non-real-time services that will be performed simultaneously. It is easy to cause defects such as the loss of some business data and long business data recovery time. In other words, the non-real-time data bandwidth allocation in the existing technology is unreasonable, resulting in unreasonable business data allocation.
  • the main purpose of this application is to provide a bandwidth division method, device, equipment and computer-readable storage medium, aiming to solve the technical problem of unreasonable non-real-time data bandwidth allocation, resulting in unreasonable business data allocation.
  • this application provides a bandwidth division method, which is applied to network systems
  • the bandwidth division method includes the following steps:
  • a target bandwidth for each type of non-real-time service data is determined, and the target bandwidth is used to limit the data transmission amount of each type of non-real-time service data per unit time.
  • the network system includes a master station device, a slave station device, and a monitor; the bandwidth division method further includes:
  • the service response time is inversely proportional to the response priority.
  • the slave station device is configured to respond to various types of non-real-time service data sent by the master station device or the monitor based on the response priority.
  • the step of determining the bandwidth proportion corresponding to each type of non-real-time service data includes:
  • the bandwidth proportion corresponding to each type of non-real-time service data is determined.
  • the step of determining the bandwidth proportion corresponding to each type of non-real-time service data includes:
  • the bandwidth proportion corresponding to each type of non-real-time service data is determined.
  • the method further includes:
  • a prompt message indicating that the data volume exceeds the limit is output.
  • the step of determining the total bandwidth of the non-real-time service data in the network system includes:
  • the total bandwidth of the non-real-time service data in the network system is calculated.
  • the step of determining the target bandwidth of each type of non-real-time service data based on the total bandwidth and each bandwidth proportion includes:
  • Each product obtained by multiplying the total bandwidth by each bandwidth proportion is used as a target bandwidth for each type of non-real-time service data.
  • this application also provides a bandwidth dividing device, which includes:
  • a data acquisition module used to determine the corresponding bandwidth proportions of various types of non-real-time business data, and to determine the total bandwidth of the non-real-time business data in the network system;
  • a bandwidth allocation module configured to determine the target bandwidth of each type of non-real-time business data based on the total bandwidth and the proportion of each bandwidth, and the target bandwidth is used to limit each type of non-real-time business data per unit time. amount of data transfer.
  • the present application also provides a bandwidth division device, including a processor, a memory, and a bandwidth division program stored on the memory that can be executed by the processor, wherein the bandwidth division program When executed by the processor, the steps of the bandwidth division method as described above are implemented.
  • the present application also provides a computer-readable storage medium.
  • a bandwidth division program is stored on the computer-readable storage medium.
  • the bandwidth division program is executed by a processor, the steps of the bandwidth division method as described above are implemented.
  • the bandwidth division method in the technical solution of this application includes the steps of: determining the corresponding bandwidth proportions of various types of non-real-time business data, and determining the total bandwidth of the non-real-time business data in the network system; according to the total bandwidth and each bandwidth proportion, to determine the target bandwidth for each type of non-real-time service data, and the target bandwidth is used to limit the data transmission amount of each type of non-real-time service data per unit time.
  • This application solves the technical problem of unreasonable non-real-time data bandwidth allocation, which leads to unreasonable business data allocation, by further dividing the bandwidth in the network system according to the types of non-real-time business data.
  • protocols such as PROFINET, EtherCAT, and EtherNetIP all divide the bandwidth of the bus, but they are only divided into two major categories of bandwidth: real-time data and non-real-time data. That is, real-time data occupies a portion of the bus. Part of the bandwidth, non-real-time data occupies another part of the bus bandwidth.
  • This application mainly further divides the total bandwidth of the bus occupied by non-real-time data, specifically through the proportion of bandwidth corresponding to different types of non-real-time business data, that is, what different types of non-real-time business data require in unit time.
  • the ratio of the occupied bandwidth, and the calculated total bandwidth of the bus occupied by all non-real-time data allocate different target bandwidths to various types of non-real-time business data, and limit various types of non-real-time business data to data within the permitted bandwidth.
  • Figure 1 is a schematic diagram of the terminal structure of the hardware operating environment of the bandwidth division device involved in the embodiment of the present application;
  • Figure 2 is a schematic flow chart of the first embodiment of the bandwidth division method of the present application.
  • FIG. 3 is a detailed flowchart of step S20 in the first embodiment of the bandwidth division method of the present application.
  • Figure 4 is a schematic flow chart of the second embodiment of the bandwidth division method of the present application.
  • Figure 5 is an example diagram of the network topology of the network system involved in the bandwidth division method of this application.
  • Figure 6 is a schematic diagram of the overall application process of the bandwidth division method of this application.
  • Figure 7 is a schematic diagram of the frame structure of the bandwidth dividing device of the present application.
  • This application is mainly based on the types of non-real-time data (non-real-time business data), as well as the data volume and importance of different types of non-real-time data, to allocate different target bandwidths to non-real-time data, so that different types of non-real-time data Data is only transmitted within its corresponding target bandwidth limit and users of the network system are reminded to carefully select non-real-time data to avoid problems such as data loss caused by all non-real-time data seizing the same bandwidth at the same time.
  • Bandwidth dividing equipment may include any type of communication equipment including a network system, and is not limited here.
  • Figure 1 is a schematic structural diagram of the hardware operating environment of the bandwidth division device involved in the embodiment of the present application.
  • the bandwidth division device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is used to realize connection communication between these components.
  • the user interface 1003 may include a display (Display) and an input unit such as a control panel.
  • the user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may include a standard wired interface or a wireless interface (such as a WIFI interface).
  • the memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
  • the memory 1005, which is a computer storage medium, may include a bandwidth partitioning program.
  • Figure 1 does not constitute a limitation of the device, and may include more or fewer components than shown, or combine certain components, or arrange different components.
  • the memory 1005 as a computer-readable storage medium in FIG. 1 may include an operating system, a user interface module, a network communication module, and a bandwidth partitioning program.
  • the network communication module is mainly used to connect to the server and perform data communication with the server; and the processor 1001 can call the bandwidth division program stored in the memory 1005 and perform the steps in the following embodiments.
  • This embodiment of the present application provides a bandwidth division method.
  • Figure 2 is a schematic flow chart of the first embodiment of the bandwidth division method of the present application; in the first embodiment of the present application, the bandwidth division method is applied to a network system, and the network system includes a monitor and a master station equipment, the monitor and the master station device are communicatively connected; in addition, the network system also includes a slave station device.
  • Figure 5 is an example diagram of the network topology of the network system involved in the bandwidth division method of this application.
  • the network topology of this implemented network system includes a master station device, multiple slave station devices and a monitor.
  • the topology is not limited to bus type, including ring and star.
  • the location of the monitor also It is not limited to being connected only to the master station device, but can also be connected to the end of the slave station device, or connected to the slave station device through a switch, or integrated with the master station device to form a master station device with integrated display and control.
  • the monitor refers to the terminal that generates non-real-time business data (also called non-periodic business data).
  • non-real-time business data also called non-periodic business data.
  • This type of non-real-time business data includes the reading and writing of parameters, and the monitoring data of the producer-consumer model, such as monitoring channel data. It should be noted that no matter which of the above topologies is used, it must be ensured that the monitor, master station, and slave station can communicate with each other.
  • Label 1 refers to the slave device in the network system.
  • the slave device is the device to be monitored and debugged. It mainly collects and reports data and responds to commands according to the parameters configured by the monitor.
  • Label 2 refers to the master station device in the network system.
  • the master station device is the brain of execution and controls the execution of the slave station device. All real-time data is controlled by the master station device.
  • the master station device has the key elements to calculate the bandwidth of non-real-time data. Such as the communication cycle, the non-real-time data size of each node, the total number of nodes in the network, and the real-time data bandwidth occupancy ratio allocated by the user.
  • Number 3 refers to the monitor in the network system.
  • the monitor is the software or terminal used to debug and monitor the slave device. It is the source of initiating non-real-time data services. The user can obtain multiple slave devices by operating the monitor. various types of information.
  • Label 4 means that the monitor in the network system can communicate with the slave station device. Even if the monitor is not directly linked to the slave station, the monitor can also communicate with the master station.
  • the bandwidth division method includes the following steps:
  • Step S10 Determine the bandwidth proportions corresponding to each type of non-real-time service data, and determine the total bandwidth of the non-real-time service data in the network system;
  • Obtaining the bandwidth proportion corresponding to each type of non-real-time business data can be determined by the proportion of the data volume of various non-real-time business data to all non-real-time business data, or it can also be determined based on the data transmission of different types of non-real-time business data.
  • the preset bandwidth proportion is based on the importance of the system, that is, the preset bandwidth proportion corresponding to various types of non-real-time business data can be determined based on the experience of technical personnel.
  • the standard of the importance here can be: data loss is not allowed > allowed Losing a small part of the data > Allowing the loss of most of the data > Allowing the loss of all the data.
  • EtherCAT's SDO service is a standard service defined by the protocol. It is generally generated by the master station equipment business.
  • the self-defined continuous waveform acquisition service based on the Ethernet Over EtherCAT channel is a custom producer-consumer service. It is generally generated by the monitor and is based on the Ethernet Over EtherCAT channel.
  • Channel custom function code reading and writing belong to the parameter acquisition service and are generally generated by the monitor.
  • the corresponding bandwidth proportions are 50%, 25%, 25%. This is only an example for understanding and does not limit the bandwidth proportion corresponding to various types of non-real-time business data.
  • the step of determining the bandwidth proportions corresponding to various types of non-real-time service data in step S10 includes:
  • Step a Obtain the current target data volume of various types of non-real-time business data and the total volume of non-real-time business data;
  • Step b Determine the bandwidth proportion corresponding to each type of non-real-time service data based on each of the target data amounts and the total amount of non-real-time service data.
  • the target data amount of the current various types of non-real-time business data and the total amount of non-real-time business data can be obtained, and the target data amount of the current various types of non-real-time business data relative to the current total amount of non-real-time business data can be calculated.
  • the target data volume of various types of non-real-time business data at the same time is divided by the total amount of non-real-time business data at the same time to obtain each Ratio, which is the proportion of bandwidth corresponding to each type of non-real-time business data.
  • different target bandwidths can be allocated to different types of non-real-time business data in real time based on the real-time data volume of various types of non-real-time business data, which can meet the actual needs of various data transmissions at the same time and prevent business Loss of data.
  • step of determining the bandwidth proportions corresponding to various types of non-real-time service data in step S10 also includes:
  • Step c Obtain the historical average data volume of various types of non-real-time business data and the historical average total volume of non-real-time business data;
  • Step d Determine the bandwidth proportion corresponding to each type of non-real-time service data based on each of the historical average data amounts and the historical average total amount of non-real-time service data.
  • obtaining the historical average data volume of various types of non-real-time business data within the preset time period is the total amount of data transmission of each type of non-real-time business data within the preset time period divided by the preset time period.
  • the average value obtained by the duration is to obtain the historical average total amount of non-real-time business data within the preset duration, which is the average value obtained by dividing the total data transmission amount of all non-real-time business data by the preset duration.
  • the preset duration can be set according to actual needs, such as one week, one month, etc.
  • each of the historical average data amounts is divided by the historical average total amount of non-real-time service data to obtain each ratio, thereby determining the bandwidth proportion corresponding to each type of non-real-time service data.
  • the transmission demand of different types of non-real-time business data in the past history can be reflected to a large extent, and it can also predict the transmission demand of different types of non-real-time business data in the future.
  • the amount is used as a reference to determine different bandwidth proportions so that subsequent non-real-time business data can be transmitted according to the corresponding target bandwidth, which can ensure the stable transmission of various non-real-time business data, so that all types of non-real-time business data can be obtained from Station equipment responded promptly and efficiently.
  • step S10 the step of determining the total bandwidth of the non-real-time service data in the network system in step S10 includes:
  • Step S11 obtain the communication cycle and the cycle allowance of non-real-time data between the monitor in the network system and the master station device in the network system;
  • Step S12 Calculate the total bandwidth of the non-real-time service data in the network system based on the communication cycle and the cycle allowance.
  • the elements (parameters) for calculating the total bandwidth of non-real-time business data are obtained. It can also be directly read the total bandwidth NRT_bw that has been calculated by the master station device or the control device itself in the network system.
  • the elements for calculating the total bandwidth can be the communication period T_c, the single-cycle non-real-time data allowed transmission size N_b (the period allowance for non-real-time data), after multiplying the communication period and the period allowance, or multiplying the After multiplying the communication period by the period allowance and correction value, the total bandwidth per unit time (second) is calculated.
  • the non-real-time data bandwidth NRT_bw is proportional to the communication period T_c and the single-cycle non-real-time data size N_b. More specifically: the elements of the total bandwidth include the communication cycle, the non-real-time data size of each node, the total number of nodes in the network, and the real-time data bandwidth occupancy ratio allocated by the user.
  • the method of calculating the total bandwidth can also be: obtain first The total bandwidth of the network system bus and the real-time data bandwidth are obtained according to the real-time data bandwidth occupancy ratio allocated by the user. The total bandwidth is obtained by subtracting the real-time data bandwidth from the total bandwidth.
  • the total bandwidth of all non-real-time service data in the network system can be conveniently calculated through simple parameters.
  • Step S20 Determine the target bandwidth for each type of non-real-time service data based on the total bandwidth and the proportion of each bandwidth.
  • the target bandwidth is used to limit the data transmission of each type of non-real-time service data within a unit time. quantity.
  • step S20 includes:
  • Each product obtained by multiplying the total bandwidth by each bandwidth proportion is used as a target bandwidth for each type of non-real-time service data.
  • Multiplying the total bandwidth of non-real-time business data by the bandwidth proportion of a type of non-real-time business data can obtain the target bandwidth of this type of non-real-time business, and then the target bandwidth of each type of non-real-time business data can be obtained, for example, non-real-time
  • the total bandwidth of business data is 100Mbps, of which the bandwidth of protocol-defined standard services in non-real-time business data accounts for 50%.
  • the target bandwidth of protocol-defined standard services is 50Mbps.
  • all protocol-defined standards The data transmission of the service needs to be limited to 50Mbps and cannot occupy more bandwidth. After allocating the corresponding target bandwidth for various types of non-real-time business data, there will no longer be a situation of preemption of the total bandwidth and avoidance of preemption. Problems such as data loss caused by bandwidth.
  • This application mainly further divides the total bandwidth of the bus occupied by non-real-time data, specifically through the proportion of bandwidth corresponding to different types of non-real-time business data, that is, what different types of non-real-time business data require in unit time.
  • the ratio of the occupied bandwidth, and the calculated total bandwidth of the bus occupied by all non-real-time data allocate different target bandwidths to various types of non-real-time business data, and limit various types of non-real-time business data to data within the permitted bandwidth.
  • Figure 4 is a schematic flow chart of the second embodiment of the bandwidth division method of the present application; further, based on the first embodiment of the bandwidth division method of the present application, a second embodiment of the bandwidth division method of the present application is proposed.
  • the method further includes:
  • Step S30 Obtain the unit data volume to be transmitted of the current non-real-time business data to be transmitted;
  • Step S40 determine whether the unit amount of data to be transmitted is greater than the target bandwidth of the current non-real-time service data to be transmitted;
  • Step S50 If the unit data volume to be transmitted is greater than the target bandwidth of the current non-real-time service data to be transmitted, a prompt message indicating that the data volume exceeds the limit is output.
  • the non-real-time service data currently to be transmitted may be a portion of the non-real-time service data to be transmitted selected by the user on the monitor or the integrated host and monitor machine.
  • the unit amount of data to be transmitted is the allowed amount of data to be transmitted per second. Through the unit amount of data to be transmitted, the bandwidth that will be occupied by the current non-real-time business data to be transmitted can be determined, and then the unit amount of data to be transmitted and the current amount of data to be transmitted can be determined. The size of the target bandwidth for transmitting non-real-time business data.
  • the prompt methods are not limited to pop-up windows, voice alerts, vibrations, etc.
  • the monitor divides the target bandwidth of various types of non-real-time data, it reversely restricts users from reasonably using non-real-time services, such as continuous waveform acquisition (producer-consumer service) as the current non-real-time services to be transmitted.
  • non-real-time services such as continuous waveform acquisition (producer-consumer service)
  • the available target bandwidth is 1/4*NRT_bw
  • the producer data generated by the number of monitored nodes in the same network cannot exceed 1/4*NRT_bw, that is, the amount of data to be transmitted per unit cannot exceed 1/ 4 *NRT_bw, otherwise other business data will be affected.
  • the monitor can give prompts and restrictions when the data generated by the user-selected services exceeds its corresponding target bandwidth, thereby achieving reasonable allocation and use of non-real-time data and services in different scenarios.
  • the network system further includes a slave station device; the bandwidth division method further includes:
  • the service response time is inversely proportional to the response priority.
  • the slave station device is configured to respond to various types of non-real-time service data sent by the master station device or the monitor based on the response priority.
  • all types of non-real-time business data have their required service response time T_Rsp, that is, when the master station device or monitor sends non-real-time business data, the slave device needs to respond within the service response time, otherwise it will It will affect the subsequent data transmission, so priorities are set for various types of non-real-time business data based on the length of service response time. The higher the priority, the shorter the service response time. According to the priority of different types of non-real-time business data, The slave device responds sequentially according to priority within the target bandwidth limit corresponding to various types of non-real-time business data.
  • the priorities are assigned as: highest priority (protocol defined standard services), medium priority (producer consumer services), lowest priority (parameter acquisition services and other consumption), priority is used in slave devices, When the slave device needs to reply to non-real-time service data of different priorities at the same time, the non-real-time service data of high priority will be replied first.
  • Figure 6 is a schematic diagram of the overall application process of the bandwidth division method of the present application.
  • the overall process of the present application may be:
  • Step 1 The monitor obtains the calculated loan elements and calculates the total bandwidth of non-real-time data
  • Step 2 Divide the target bandwidth of various types of real-time data
  • Step 3 According to the target bandwidth of the divided non-real-time data, allocate the specifications of the corresponding services. When the service selected by the user exceeds the data bandwidth, a prompt is given.
  • the bandwidth dividing device includes:
  • the data acquisition module A10 is used to determine the corresponding bandwidth proportions of various types of non-real-time business data, and determine the total bandwidth of the non-real-time business data in the network system;
  • the bandwidth allocation module A20 is used to determine the target bandwidth of each type of non-real-time service data based on the total bandwidth and each bandwidth proportion, and the target bandwidth is used to limit each type of non-real-time service within a unit time. The amount of data transferred.
  • the bandwidth allocation module A20 is also used to:
  • the service response time is inversely proportional to the response priority.
  • the slave station device is configured to respond to various types of non-real-time service data sent by the master station device or the monitor based on the response priority.
  • the data acquisition module A10 is also used to:
  • the bandwidth proportion corresponding to each type of non-real-time service data is determined.
  • the data acquisition module A10 is also used to:
  • the bandwidth proportion corresponding to each type of non-real-time service data is determined.
  • the bandwidth allocation module A20 is also used to:
  • a prompt message indicating that the data volume exceeds the limit is output.
  • the data acquisition module A10 is also used to:
  • the total bandwidth of the non-real-time service data in the network system is calculated.
  • the data acquisition module A10 is also used to:
  • Each product obtained by multiplying the total bandwidth by each bandwidth proportion is used as a target bandwidth for each type of non-real-time service data.
  • bandwidth division device of the present application is basically the same as the above embodiments of the bandwidth division method, and will not be described again here.
  • this application also provides a computer-readable storage medium.
  • the computer-readable storage medium of this application stores a bandwidth division program. When the bandwidth division program is executed by the processor, the steps of the above bandwidth division method are implemented.
  • embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes in the flowchart and/or in a block or blocks in the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
  • any reference signs placed between parentheses shall not be construed as limiting the claim.
  • the word “comprising” does not exclude the presence of elements or steps other than those listed in a claim.
  • the word “a” or “an” preceding a component does not exclude the presence of a plurality of such components.
  • the application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In the element claim enumerating several means, several of these means may be embodied by the same item of hardware.
  • the use of the words first, second, third, etc. does not indicate any order. These words can be interpreted as names.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请公开了一种带宽划分方法、装置、设备及计算机可读存储介质,所述方法包括:确定各类非实时业务数据各自对应的带宽占比,以及确定所述非实时业务数据在所述网络系统中的总带宽;根据所述总带宽和各个所述带宽占比,确定各类所述非实时业务数据的目标带宽,所述目标带宽用于限制单位时间内各类所述非实时业务数据的数据传输量。

Description

带宽划分方法、装置、设备及计算机可读存储介质
本申请要求于2022年8月25日申请的、申请号为202211027894.4的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据传输技术领域,尤其涉及一种带宽划分方法、装置、设备及计算机可读存储介质。
背景技术
现有工业以太网总线中,如PROFINET、EtherCAT、EtherNetIP协议都会对总线的带宽进行划分,一般划分为实时的数据和非实时的数据两大类,实时数据也称PDO数据,也即过程数据,主要应用于控制相关的数据传输,具备周期性和确定性。而非实时数据应用于多种场合,如参数的配置、固件的升级、数据的连续采集、诊断等,非实时数据对实时性能的要求较低。在网络系统正常工作状态下,链路上会存在实时数据和非实时数据,其中非实时数据不能影响实时数据的周期性和确定性,这一点现有主站都会自行保证。对于非实时数据,可以应用于多种服务,虽然这类服务对数据的实时性没有太高的要求,但是对于数据的传输带宽,业务应用的体验会有一定的要求。
就目前主流的工业以太网协议而言,都不会去做进一步的带宽划分,导致多个从站设备在需要被同时调试和监视时,业务产生的数据与链路上允许的带宽不匹配带来使用上缺陷,如非实时数据的通道会用于一些生产者消费者模型的业务,比如固定周期采样的数据上报,触发式的参数访问,多个节点的数据上报等非实时业务同时进行会容易造成部分业务数据的丢失、业务数据回复时间长等缺陷,也就是说现有技术中非实时数据带宽分配不合理,导致业务数据分配不合理。
技术问题
本申请的主要目的在于提供一种带宽划分方法、装置、设备及计算机可读存储介质,旨在解决非实时数据带宽分配不合理,导致业务数据分配不合理的技术问题。
技术解决方案
为实现上述目的,本申请提供一种带宽划分方法,所述带宽划分方法应用于网络系统;
所述带宽划分方法包括以下步骤:
确定各类非实时业务数据各自对应的带宽占比,以及确定所述非实时业务数据在所述网络系统中的总带宽;
根据所述总带宽和各个所述带宽占比,确定各类所述非实时业务数据的目标带宽,所述目标带宽用于限制单位时间内各类所述非实时业务数据的数据传输量。
在一实施例中,所述网络系统包括主站设备、从站设备以及监视器;所述带宽划分方法,还包括:
获取各类所述非实时业务数据的服务响应时间,根据各个所述服务响应时间确定各类所述非实时业务数据的响应优先级,所述服务响应时间与所述响应优先级之间成反比;
所述从站设备用于基于所述响应优先级响应所述主站设备或者所述监视器发送的各类所述非实时业务数据。
在一实施例中,所述确定各类非实时业务数据各自对应的带宽占比的步骤,包括:
获取当前的各类非实时业务数据的目标数据量和非实时业务数据总量;
根据各个所述目标数据量和所述非实时业务数据总量,确定各类所述非实时业务数据各自对应的带宽占比。
在一实施例中,所述确定各类非实时业务数据各自对应的带宽占比的步骤,包括:
获取各类非实时业务数据的历史平均数据量和非实时业务数据历史平均总量;
根据各个所述历史平均数据量和所述非实时业务数据历史平均总量,确定各类所述非实时业务数据各自对应的带宽占比。
在一实施例中,在所述确定各类所述非实时业务数据的目标带宽的步骤之后,所述方法还包括:
获取当前待传输非实时业务数据的单位待传输数据量;
判断所述单位待传输数据量是否大于所述当前待传输非实时业务数据的目标带宽;
若所述单位待传输数据量大于所述当前待传输非实时业务数据的目标带宽,则输出数据量超限的提示信息。
在一实施例中,所述确定所述非实时业务数据在所述网络系统中的总带宽的步骤,包括:
获取所述网络系统中的监视器和所述网络系统中的主站设备之间的通信周期和非实时数据的周期允许量;
根据所述通信周期和所述周期允许量,计算得到所述非实时业务数据在所述网络系统中的总带宽。
在一实施例中,所述根据所述总带宽和各个所述带宽占比,确定各类所述非实时业务数据的目标带宽的步骤,包括:
将所述总带宽乘以各个所述带宽占比得到的各个乘积,并将各所述乘积作为各类所述非实时业务数据的目标带宽。
此外,为实现上述目的,本申请还提供一种带宽划分装置,所述带宽划分装置,包括:
数据获取模块,用于确定各类非实时业务数据各自对应的带宽占比,以及确定所述非实时业务数据在网络系统中的总带宽;
带宽分配模块,用于根据所述总带宽和各个所述带宽占比,确定各类所述非实时业务数据的目标带宽,所述目标带宽用于限制单位时间内各类所述非实时业务数据的数据传输量。
此外,为实现上述目的,本申请还提供一种带宽划分设备,包括处理器、存储器、以及存储在所述存储器上的可被所述处理器执行的带宽划分程序,其中,所述带宽划分程序被所述处理器执行时,实现如上所述的带宽划分方法的步骤。
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有带宽划分程序,其中,所述带宽划分程序被处理器执行时,实现如上所述的带宽划分方法的步骤。
有益效果
本申请技术方案中的带宽划分方法,通过步骤:确定各类非实时业务数据各自对应的带宽占比,以及确定所述非实时业务数据在所述网络系统中的总带宽;根据所述总带宽和各个所述带宽占比,确定各类所述非实时业务数据的目标带宽,所述目标带宽用于限制单位时间内各类所述非实时业务数据的数据传输量。本申请通过进一步将网络系统中的带宽根据非实时业务数据的类型进一步划分解决了非实时数据带宽分配不合理,导致业务数据分配不合理的技术问题。
在现有的工业以太网总线中,如PROFINET、EtherCAT、EtherNetIP协议都会对总线的带宽进行划分,但也仅仅划分为实时的数据和非实时的数据两大类带宽,也就是实时数据占据总线的一部分带宽,非实时数据占据总线的另一部分带宽。
本申请主要是通过对非实时数据占据的总线的总带宽进一步进行划分,具体通过各个不同种类的非实时业务数据对应的带宽占比,也就是不同种类的非实时业务数据在单位时间内所需占用的带宽的比值,以及通过计算得到的所有非实时数据占据的总线的总带宽对各类非实时业务数据分配不同的目标带宽,限制各类非实时业务数据只能在许可的带宽内进行数据传输,进而就不会使得多个不同种类的非实时业务数据同时抢占同一带宽,从而使得非实时业务数据分配更加科学合理,避免了非实时业务数据的丢失以及加快从站设备对主站设备和监视器发送的非实时业务数据响应效率。
附图说明
图1为本申请实施例方案涉及的带宽划分设备的硬件运行环境的终端结构示意图;
图2为本申请带宽划分方法第一实施例的流程示意图;
图3为本申请带宽划分方法第一实施例中步骤S20的细化流程示意图;
图4为本申请带宽划分方法第二实施例的流程示意图;
图5为本申请带宽划分方法涉及的网络系统的网络拓扑示例图;
图6为本申请带宽划分方法的整体应用流程示意图;
图7为本申请带宽划分装置的框架结构示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请技术方案中的实施例简述:
本申请主要是基于非实时数据(非实时业务数据)的种类,以及不同种类的非实时数据的数据量大小以及重要程度层面来对非实时数据分配不同的目标带宽,使得不同种类的非实时数据仅在其对应的目标带宽限制内进行数据的传输以及提醒使用网络系统的用户谨慎选择非实时数据,从而避免所有的非实时数据都在同一时间抢占同一带宽导致数据的丢失等问题。
本申请实施例提出一种带宽划分设备。带宽划分设备可以包括等任意类型的含有网络系统的通信设备,在此不做限制。
如图1所示,图1是本申请实施例方案涉及的带宽划分设备的硬件运行环境的结构示意图。
如图1所示,该带宽划分设备可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示器(Display)、输入单元比如控制面板,用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可以包括标准的有线接口、无线接口(如WIFI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005还可以是独立于前述处理器1001的存储装置。作为一种计算机存储介质的存储器1005中可以包括带宽划分程序。
本领域技术人员可以理解,图1中示出的硬件结构并不构成对设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
继续参照图1,图1中作为一种计算机可读存储介质的存储器1005可以包括操作系统、用户接口模块、网络通信模块以及带宽划分程序。
在图1中,网络通信模块主要用于连接服务器,与服务器进行数据通信;而处理器1001可以调用存储器1005中存储的带宽划分程序,并执行以下各个实施例中的步骤。
基于上述控制器的硬件结构,提出本申请带宽划分方法的各个实施例。
本申请实施例提供一种带宽划分方法。
请参照图2,图2为本申请带宽划分方法第一实施例的流程示意图;在本申请第一实施例中,所述带宽划分方法应用于网络系统,所述网络系统包括监视器和主站设备,所述监视器和所述主站设备通信连接;此外,网络系统还包括从站设备。
为了便于理解本实施例中的网络系统,请参照图5,图5为本申请带宽划分方法涉及的网络系统的网络拓扑示例图。
如图5所示,在本实施网络系统的网络拓扑中,包含了主站设备和多个从站设备以及一个监视器,拓扑结构不限于总线型,包含环形、星型,监视器的位置也不限于只连接在主站设备上,还可以连接在从站设备的末端,或者通过交换机接入从站设备,或者与主站设备集成一体成显控一体型的主站设备。
其中的监视器是指产生非实时业务数据(也可称为非周期业务数据)的终端,此类非实时业务数据包含参数的读写,生产者消费者模型的监控数据,如监控通道数据。需要说明的是无论是上述哪一种拓扑结构,都要确保监视器、主站、从站之间能够相互通信。
另外,图5中各个标号的意义:
标号1,指网络系统中的从站设备,从站设备是被监控和调试的设备,主要是按照监视器配置的参数进行数据的采集上报和命令的响应。
标号2,指网络系统中的主站设备,主站设备是执行的大脑,控制从站设备的执行,所有的实时数据由主站设备管控,主站设备具备计算非实时数据带宽的关键要素,如通信周期、每一个节点的非实时数据大小、组网总的节点个数,用户分配的实时数据带宽占用比。
标号3,指网络系统中的监视器,监视器是用于调试和监控从站设备的软件或者终端,是发起非实时数据业务的源头,用户通过操作监视器,可以获取到多个从站设备的各类信息。
标号4,指网络系统中监视器可以与从站设备进行通信,即使监视器没有与从站直接链接,监视器也可以与主站通信。
在上述网络系统结构的基础上,所述带宽划分方法包括以下步骤:
步骤S10,确定各类非实时业务数据各自对应的带宽占比,以及确定所述非实时业务数据在所述网络系统中的总带宽;
获取各个种类的非实时业务数据对应的带宽占比,既可以以各种非实时业务数据的数据量占全部非实时业务数据的比例来进行确定,也可以根据不同种非实时业务数据在数据传输中的重要程度进行预设带宽占比,即可以根据技术人员的经验来确定各类非实时业务数据对应的预设带宽占比,这里的重要程度的标准可以为:不允许丢失数据>可允许丢失小部分数据>可允许丢失大部分数据>可允许丢失全部数据。
比如,在一具体示例中:
EtherCAT的SDO服务属于协议定义的标准服务,一般由主站设备业务产生,基于Ethernet Over EtherCAT通道自主定义的连续波形采集服务属于自定义的生产者消费者服务一般由监视器产生,基于Ethernet Over EtherCAT通道自定义的功能码读写属于参数获取服务一般由监视器产生
对于上述的协议定义标准服务数据、生产者消费者服务数据、参数获取服务和其他消耗数据,根据这三种不同非实时业务数据的数据量或者重要程度,对应的带宽占比分别为50%、25%、25%。在此仅做示例理解,并非对各类非实时业务数据对应的带宽占比进行限定。
在一实施例中,步骤S10中的所述确定各类非实时业务数据各自对应的带宽占比的步骤,包括:
步骤a,获取当前的各类非实时业务数据的目标数据量和非实时业务数据总量;
步骤b,根据各个所述目标数据量和所述非实时业务数据总量,确定各类所述非实时业务数据各自对应的带宽占比。
在该实施例中,可以通过获取当前的各类非实时业务数据的目标数据量和非实时业务数据总量,计算当前的各类非实时业务数据的目标数据量相对于当前非实时业务数据总量占比来确定各类非实时业务数据对应的带宽占比,具体来说,就是将当前同一时刻的各类非实时业务数据的目标数据量除以同一时刻的非实时业务数据总量得到各个比值,该比值就是各类所述非实时业务数据各自对应的带宽占比。
通过这一实施例,能够基于各类非实时业务数据的实时的数据量,进而为不同种类的非实时业务数据实时分配不同的目标带宽,能够满足同一时刻各种数据传输的实际需要,防止业务数据的丢失。
在另一实施例中,步骤S10中的所述确定各类非实时业务数据各自对应的带宽占比的步骤,还包括:
步骤c,获取各类非实时业务数据的历史平均数据量和非实时业务数据历史平均总量;
步骤d,根据各个所述历史平均数据量和所述非实时业务数据历史平均总量,确定各类所述非实时业务数据各自对应的带宽占比。
在该实施例中,具体地,获取在预设时长内的各类非实时业务数据的历史平均数据量就是每一种类的非实时业务数据在预设时长内的数据传输总量除以预设时长得到的平均值,获取预设时长内的非实时业务数据历史平均总量,也就是所有非实时业务数据的数据传输总量除以预设时长得到的平均值。其中的预设时长可以根据实际需要进行设置,比如一周、一个月等。
再将各个所述历史平均数据量分别除以所述非实时业务数据历史平均总量得到各个比值,从而就确定了各类所述非实时业务数据各自对应的带宽占比。
通过这一实施例,能够在很大程度上反映了在过往历史中不同种类非实时业务数据的传输需求量,进而也能预示之后不同种类非实时业务数据的传输需求量,以各个历史平均数据量为参照确定不同的带宽占比以在后续各类非实时业务数据按照对应的目标带宽进行数据传输,能够确保各类非实时业务数据的稳定传输,使得各类非实时业务数据都能够得到从站设备较为及时高效的响应。
在一实施例中,步骤S10中的所述确定所述非实时业务数据在所述网络系统中的总带宽的步骤,包括:
步骤S11,获取所述网络系统中的监视器和所述网络系统中的主站设备之间的通信周期和非实时数据的周期允许量;
步骤S12,根据所述通信周期和所述周期允许量,计算得到所述非实时业务数据在所述网络系统中的总带宽。
基于监视器与主站设备的通信交互,获取计算非实时业务数据的总带宽的要素(参数),也可以是直接读取主站设备或者网络系统中的控制设备自身已经计算完成的总带宽NRT_bw,其中,计算总带宽的要素可以是通信周期T_c,单周期非实时数据允许发送大小N_b(非实时数据的周期允许量),将所述通信周期和所述周期允许量相乘之后或者将所述通信周期和所述周期允许量以及修正值相乘之后,计算出单位时间(秒)的总带宽,可以看出非实时数据带宽NRT_bw与通信周期T_c和单周期非实时数据大小N_b成正比。再具体地:总带宽的要素包括了通信周期、每一个节点的非实时数据大小、组网总的节点个数,用户分配的实时数据带宽占用比,计算总带宽的方式还可以为:先获取网络系统总线的总带宽,以及根据用户分配的实时数据带宽占用比得到实时数据带宽,将总带宽减去实时数据带宽就得到了所述总带宽。
通过该实施例,能够通过简单的参数便利地计算得到网络系统中所有非实时业务数据的总带宽。
步骤S20,根据所述总带宽和各个所述带宽占比,确定各类所述非实时业务数据的目标带宽,所述目标带宽用于限制单位时间内各类所述非实时业务数据的数据传输量。
在一实施例中,所述步骤S20,包括:
将所述总带宽乘以各个所述带宽占比得到的各个乘积,并将各所述乘积作为各类所述非实时业务数据的目标带宽。
将非实时业务数据的总带宽乘以一类非实时业务数据的带宽占比就得到了该类非实时业务的目标带宽,进而可以得到各个种类的非实时业务数据的目标带宽,比如,非实时业务数据的总带宽为100Mbps,其中非实时业务数据中的协议定义标准服务的带宽占比为50%,对应的,协议定义标准服务的目标带宽就为50Mbps,也就是说,所有的协议定义标准服务的数据传输都需要限制在50Mbps以内,不能再占用更多的带宽,在为了各类非实时业务数据分配好对应的目标带宽之后,就不会再出现抢占总带宽的情形,避免了因抢占带宽造成的数据丢失等问题。
本申请主要是通过对非实时数据占据的总线的总带宽进一步进行划分,具体通过各个不同种类的非实时业务数据对应的带宽占比,也就是不同种类的非实时业务数据在单位时间内所需占用的带宽的比值,以及通过计算得到的所有非实时数据占据的总线的总带宽对各类非实时业务数据分配不同的目标带宽,限制各类非实时业务数据只能在许可的带宽内进行数据传输,进而就不会使得多个不同种类的非实时业务数据同时抢占同一带宽,从而使得非实时业务数据分配更加科学合理,避免了非实时业务数据的丢失以及加快从站设备对主站设备和监视器发送的非实时业务数据响应效率。
请参照图4,图4为本申请带宽划分方法第二实施例的流程示意图;进一步地,基于本申请带宽划分方法的第一实施例提出本申请带宽划分方法的第二实施例,在本实施例中,所述步骤S20之后,所述方法还包括:
步骤S30,获取当前待传输非实时业务数据的单位待传输数据量;
步骤S40,判断所述单位待传输数据量是否大于所述当前待传输非实时业务数据的目标带宽;
步骤S50,若所述单位待传输数据量大于所述当前待传输非实时业务数据的目标带宽,则输出数据量超限的提示信息。
在本实施例中,当前待传输非实时业务数据可以为用户在监视器或者主机与监视器一体机上选择的对部分即将要传输的非实时业务数据。其单位待传输数据量就是允许的每秒传输数据量,通过该单位待传输数据量就可以确定当前待传输非实时业务数据即将占用的带宽,进而判断该单位待传输数据量与该取当前待传输非实时业务数据的目标带宽的大小,如果在判定单位待传输数据量大于当前待传输非实时业务数据的目标带宽时,需要提醒用户所选的非实时业务数据的数据量超限的提示消息,提示的方式不限于弹窗、语音警报、振动等方式。
在一具体示例中:监视器划分好各类非实时数据的目标带宽之后,从而反向限制用户合理的使用非实时业务,如连续波形采集(生产者消费者服务)作为当前待传输非实时业务数据时,其可用的目标带宽为1/4*NRT_bw,那么同一个网络中所监控的节点数所产生的生产者数据不能超过1/4 *NRT_bw,也就是单位待传输数据量不能超过1/4 *NRT_bw,否则会导致其他业务数据受到影响。监视器可以根据用户选择的业务所产生的数据超过其对应的目标带宽时,给予提示和限制,从而达到不同场景下非实时数据与业务合理的分配使用。
在一实施例中,所述网络系统,还包括从站设备;所述带宽划分方法,还包括:
获取各类所述非实时业务数据的服务响应时间,根据各个所述服务响应时间确定各类所述非实时业务数据的响应优先级,所述服务响应时间与所述响应优先级之间成反比;
所述从站设备用于基于所述响应优先级响应所述主站设备或者所述监视器发送的各类所述非实时业务数据。
在该实施例中,各类非实时业务数据都有其所需的服务响应时间T_Rsp,也就是主站设备或者监视器发送非实时业务数据需要从站设备在服务响应时间内进行响应,否则将会产生影响接下来的数据传输,所以基于服务响应时间的长短对各类非实时业务数据设定优先级,优先级越高的服务响应时间越短,根据不同种非实时业务数据的优先级,从站设备在各类非实时业务数据对应的目标带宽限度内按照优先级进行依次响应。
比如,优先级分配为:最高优先级(协议定义标准服务)、中等优先级(生产者消费者服务)、最低优先级(参数获取服务和其他消耗),优先级被用于从站设备中,当从站设备同时需要回复不同优先级的非实时业务数据时,优先回复高优先级的非实时业务数据。
通过该实施例,确保了对服务响应时间要求高的非实时业务数据能够得到较为快速高效地响应,避免了一些对回复时间有较高要求的非实时业务数据因从站设备回复响应时间长造成各种数据传输障碍影响接下来的数据传输。
为了进一步理解本申请的上述各个实施例,可以参照图6,图6为本申请带宽划分方法的整体应用流程示意图,本申请在实际的应用场景中整体流程可以为:
步骤1,监视器获取计算贷款元素,并计算出非实时数据的总带宽;
步骤2,划分各类实时数据的目标带宽;
步骤3,根据划分好的非实时数据的目标带宽,分配对应业务的规格,当用户选择的业务超过数据带宽时,给予提示。
此外,参照图7,本申请还提出一种带宽划分装置,所述带宽划分装置包括:
数据获取模块A10,用于确定各类非实时业务数据各自对应的带宽占比,以及确定所述非实时业务数据在网络系统中的总带宽;
带宽分配模块A20,用于根据所述总带宽和各个所述带宽占比,确定各类所述非实时业务数据的目标带宽,所述目标带宽用于限制单位时间内各类所述非实时业务数据的数据传输量。
在一实施例中,带宽分配模块A20,还用于:
获取各类所述非实时业务数据的服务响应时间,根据各个所述服务响应时间确定各类所述非实时业务数据的响应优先级,所述服务响应时间与所述响应优先级之间成反比;
所述从站设备用于基于所述响应优先级响应所述主站设备或者所述监视器发送的各类所述非实时业务数据。
在一实施例中,数据获取模块A10,还用于:
获取当前的各类非实时业务数据的目标数据量和非实时业务数据总量;
根据各个所述目标数据量和所述非实时业务数据总量,确定各类所述非实时业务数据各自对应的带宽占比。
在一实施例中,数据获取模块A10,还用于:
获取各类非实时业务数据的历史平均数据量和非实时业务数据历史平均总量;
根据各个所述历史平均数据量和所述非实时业务数据历史平均总量,确定各类所述非实时业务数据各自对应的带宽占比。
在一实施例中,带宽分配模块A20,还用于:
获取当前待传输非实时业务数据的单位待传输数据量;
判断所述单位待传输数据量是否大于所述当前待传输非实时业务数据的目标带宽;
若所述单位待传输数据量大于所述当前待传输非实时业务数据的目标带宽,则输出数据量超限的提示信息。
在一实施例中,数据获取模块A10,还用于:
获取所述网络系统中的监视器和所述网络系统中的主站设备之间的通信周期和非实时数据的周期允许量;
根据所述通信周期和所述周期允许量,计算得到所述非实时业务数据在所述网络系统中的总带宽。
在一实施例中,数据获取模块A10,还用于:
将所述总带宽乘以各个所述带宽占比得到的各个乘积,并将各所述乘积作为各类所述非实时业务数据的目标带宽。
本申请的带宽划分装置具体实施方式与上述带宽划分方法各实施例基本相同,在此不再赘述。
此外,本申请还提供一种计算机可读存储介质。本申请计算机可读存储介质上存储有带宽划分程序,其中,带宽划分程序被处理器执行时,实现如上述的带宽划分方法的步骤。
其中,带宽划分程序被执行时所实现的方法可参照本申请带宽划分方法的各个实施例,此处不再赘述。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
应当注意的是,在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的单词“一”或“一个”不排除存在多个这样的部件。本申请可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
尽管已描述了本申请的一些实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括一些实施例以及落入本申请范围的所有变更和修改。
以上所述仅为本申请的一些实施例,并非因此限制本申请的专利范围,凡是在本申请的发明构思下,利用本申请说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本申请的专利保护范围内。

Claims (10)

  1. 一种带宽划分方法,其中,所述带宽划分方法应用于网络系统;
    所述带宽划分方法包括以下步骤:
    确定各类非实时业务数据各自对应的带宽占比,以及确定所述非实时业务数据在所述网络系统中的总带宽;
    根据所述总带宽和各个所述带宽占比,确定各类所述非实时业务数据的目标带宽,所述目标带宽用于限制单位时间内各类所述非实时业务数据的数据传输量。
  2. 如权利要求1所述的带宽划分方法,其中,所述网络系统包括主站设备、从站设备以及监视器;所述带宽划分方法,还包括:
    获取各类所述非实时业务数据的服务响应时间,根据各个所述服务响应时间确定各类所述非实时业务数据的响应优先级,所述服务响应时间与所述响应优先级之间成反比;
    所述从站设备用于基于所述响应优先级响应所述主站设备或者所述监视器发送的各类所述非实时业务数据。
  3. 如权利要求1所述的带宽划分方法,其中,所述确定各类非实时业务数据各自对应的带宽占比的步骤,包括:
    获取当前的各类非实时业务数据的目标数据量和非实时业务数据总量;
    根据各个所述目标数据量和所述非实时业务数据总量,确定各类所述非实时业务数据各自对应的带宽占比。
  4. 如权利要求1所述的带宽划分方法,其中,所述确定各类非实时业务数据各自对应的带宽占比的步骤,包括:
    获取各类非实时业务数据的历史平均数据量和非实时业务数据历史平均总量;
    根据各个所述历史平均数据量和所述非实时业务数据历史平均总量,确定各类所述非实时业务数据各自对应的带宽占比。
  5. 如权利要求1所述的带宽划分方法,其中,在所述确定各类所述非实时业务数据的目标带宽的步骤之后,所述方法还包括:
    获取当前待传输非实时业务数据的单位待传输数据量;
    判断所述单位待传输数据量是否大于所述当前待传输非实时业务数据的目标带宽;
    若所述单位待传输数据量大于所述当前待传输非实时业务数据的目标带宽,则输出数据量超限的提示信息。
  6. 如权利要求1所述的带宽划分方法,其中,所述确定所述非实时业务数据在所述网络系统中的总带宽的步骤,包括:
    获取所述网络系统中的监视器和所述网络系统中的主站设备之间的通信周期和非实时数据的周期允许量;
    根据所述通信周期和所述周期允许量,计算得到所述非实时业务数据在所述网络系统中的总带宽。
  7. 如权利要求1所述的带宽划分方法,其中,所述根据所述总带宽和各个所述带宽占比,确定各类所述非实时业务数据的目标带宽的步骤,包括:
    将所述总带宽乘以各个所述带宽占比得到的各个乘积,并将各所述乘积作为各类所述非实时业务数据的目标带宽。
  8. 一种带宽划分装置,其中,所述带宽划分装置,包括:
    数据获取模块,用于确定各类非实时业务数据各自对应的带宽占比,以及确定所述非实时业务数据在网络系统中的总带宽;
    带宽分配模块,用于根据所述总带宽和各个所述带宽占比,确定各类所述非实时业务数据的目标带宽,所述目标带宽用于限制单位时间内各类所述非实时业务数据的数据传输量。
  9. 一种带宽划分设备,其中,所述带宽划分设备包括处理器、存储器、以及存储在所述存储器上的可被所述处理器执行的带宽划分程序,其中,所述带宽划分程序被所述处理器执行时,实现如权利要求1至7中任一项所述的带宽划分方法的步骤。
  10. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有带宽划分程序,其中,所述带宽划分程序被处理器执行时,实现如权利要求1至7中任一项所述的带宽划分方法的步骤。
PCT/CN2023/095134 2022-08-25 2023-05-18 带宽划分方法、装置、设备及计算机可读存储介质 WO2024041052A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211027894.4A CN115396317A (zh) 2022-08-25 2022-08-25 带宽划分方法、装置、设备及计算机可读存储介质
CN202211027894.4 2022-08-25

Publications (1)

Publication Number Publication Date
WO2024041052A1 true WO2024041052A1 (zh) 2024-02-29

Family

ID=84123220

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/095134 WO2024041052A1 (zh) 2022-08-25 2023-05-18 带宽划分方法、装置、设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN115396317A (zh)
WO (1) WO2024041052A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396317A (zh) * 2022-08-25 2022-11-25 深圳市汇川技术股份有限公司 带宽划分方法、装置、设备及计算机可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109962856A (zh) * 2017-12-26 2019-07-02 中国电信股份有限公司 资源分配方法、装置以及计算机可读存储介质
CN111818585A (zh) * 2020-07-30 2020-10-23 中国联合网络通信集团有限公司 一种用户接入方法及接入网设备
CN113055308A (zh) * 2019-12-26 2021-06-29 华为技术有限公司 带宽调度方法、流量传输方法及相关产品
CN114391250A (zh) * 2020-08-05 2022-04-22 华为技术有限公司 带宽管理方法及装置、计算机存储介质及芯片
CN114466226A (zh) * 2022-01-28 2022-05-10 杭州灵伴科技有限公司 带宽时长占比确定方法、装置、设备和计算机可读介质
CN115396317A (zh) * 2022-08-25 2022-11-25 深圳市汇川技术股份有限公司 带宽划分方法、装置、设备及计算机可读存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018095507A1 (en) * 2016-11-22 2018-05-31 Abb Schweiz Ag A method for scheduling field devices in a wireless network of an industrial process system
CN108989238A (zh) * 2018-07-20 2018-12-11 浪潮电子信息产业股份有限公司 一种分配业务带宽的方法以及相关设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109962856A (zh) * 2017-12-26 2019-07-02 中国电信股份有限公司 资源分配方法、装置以及计算机可读存储介质
CN113055308A (zh) * 2019-12-26 2021-06-29 华为技术有限公司 带宽调度方法、流量传输方法及相关产品
CN111818585A (zh) * 2020-07-30 2020-10-23 中国联合网络通信集团有限公司 一种用户接入方法及接入网设备
CN114391250A (zh) * 2020-08-05 2022-04-22 华为技术有限公司 带宽管理方法及装置、计算机存储介质及芯片
CN114466226A (zh) * 2022-01-28 2022-05-10 杭州灵伴科技有限公司 带宽时长占比确定方法、装置、设备和计算机可读介质
CN115396317A (zh) * 2022-08-25 2022-11-25 深圳市汇川技术股份有限公司 带宽划分方法、装置、设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN115396317A (zh) 2022-11-25

Similar Documents

Publication Publication Date Title
JP6431510B2 (ja) 工業インターネットブロードバンドフィールドバス技術の実現方法
CN106815066B (zh) 一种定时任务调度方法、装置及系统
WO2024041052A1 (zh) 带宽划分方法、装置、设备及计算机可读存储介质
CN106502767B (zh) 一种进程管理方法及其装置
JP2019017058A (ja) インダストリアル・インターネットフィールドバスアーキテクチャに基づくリアルタイム伝送方法と装置
EP3961999A1 (en) Method for determining service transmission requirement, apparatus, and system
CN110300040A (zh) 一种通信方法及相关设备
CN101771598B (zh) 一种实时以太网通信调度方法
WO2022193890A1 (zh) 一种资源调度方法和装置
TW201818772A (zh) 一種資源排除方法及裝置
CN109245981B (zh) 一种现场总线通讯的调度方法及系统
CN113141590A (zh) 一种面向工业物联网的无线通信调度方法及装置
CN103634223A (zh) 一种基于网络业务流的动态控制传输方法和装置
JP4811260B2 (ja) プログラマブルコントローラ、及びその支援装置
CN101893876B (zh) 一种用于大型分布式控制系统的控制网络的方法
CN114285695A (zh) 通信方法、装置、设备、系统和存储介质
CN113658351B (zh) 一种产品生产的方法、装置、电子设备及存储介质
CN106936677A (zh) 一种模块化ups系统及功率设备的数据传输方法
CN106656711B (zh) 一种令牌总线时隙预定义方法
CN102289410B (zh) 基于mtk平台的内存分配状况监控方法
Chai et al. Real-time communication model based on OPC UA wireless network for intelligent production line
CN116938822A (zh) 一种以太网的报文传输方法和装置
CN114666285B (zh) 以太网发送队列调度方法、系统、存储介质及计算设备
CN115589387A (zh) 负载均衡方法和装置、数据交互方法和装置及系统、车辆
CN109526032A (zh) 修改网络切片实例的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23856145

Country of ref document: EP

Kind code of ref document: A1