CN115396317A - Bandwidth dividing method, device, equipment and computer readable storage medium - Google Patents

Bandwidth dividing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN115396317A
CN115396317A CN202211027894.4A CN202211027894A CN115396317A CN 115396317 A CN115396317 A CN 115396317A CN 202211027894 A CN202211027894 A CN 202211027894A CN 115396317 A CN115396317 A CN 115396317A
Authority
CN
China
Prior art keywords
bandwidth
real
service data
time service
data
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202211027894.4A
Other languages
Chinese (zh)
Inventor
余钢锋
严义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Inovance Technology Co Ltd
Original Assignee
Shenzhen Inovance Technology Co Ltd
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 Shenzhen Inovance Technology Co Ltd filed Critical Shenzhen Inovance Technology Co Ltd
Priority to CN202211027894.4A priority Critical patent/CN115396317A/en
Publication of CN115396317A publication Critical patent/CN115396317A/en
Priority to PCT/CN2023/095134 priority patent/WO2024041052A1/en
Pending legal-status Critical Current

Links

Images

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

Landscapes

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

Abstract

The invention discloses a bandwidth dividing method, a bandwidth dividing device, bandwidth dividing equipment and a computer readable storage medium, wherein the method comprises the following steps: determining the bandwidth ratio corresponding to each type of non-real-time service data, and determining the total bandwidth of the non-real-time service data in the network system; and determining target bandwidths of various types of non-real-time service data according to the total bandwidth and the bandwidth ratios, wherein the target bandwidths are used for limiting the data transmission quantity of various types of non-real-time service data in unit time. By applying the bandwidth division method in the invention to the network system, the non-real-time data bandwidth allocation is more reasonable, the loss of non-real-time service data is avoided, and the response efficiency of the slave station equipment in the network system to the non-real-time service data sent by the master station equipment and the monitor is accelerated.

Description

Bandwidth dividing method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for bandwidth division.
Background
In the existing industrial ethernet bus, for example, PROFINET, etherCAT, and EtherNetIP protocols divide the bandwidth of the bus, and generally divide the bandwidth into two categories, namely real-time data and non-real-time data, where the real-time data is also called PDO data, i.e., process data, and is mainly used for controlling related data transmission and has periodicity and certainty. The non-real-time data is applied to various occasions, such as parameter configuration, firmware upgrading, continuous data acquisition and diagnosis and the like, and the non-real-time data has low requirements on real-time performance. Under the normal working state of a network system, real-time data and non-real-time data exist on a link, wherein the periodicity and the certainty of the real-time data cannot be influenced by the non-real-time data, and the existing master station can ensure the periodicity and the certainty of the real-time data. The method can be applied to various services for non-real-time data, and although the services have no high requirement on the real-time performance of the data, the experience of business application has certain requirement on the transmission bandwidth of the data.
As for the currently mainstream industrial ethernet protocol, no further bandwidth division is performed, so that when multiple slave station devices need to be debugged and monitored simultaneously, data generated by a service is not matched with a bandwidth allowed on a link, which brings defects in use, for example, a channel of non-real-time data can be used for services of some producer consumer models, such as data reporting of fixed period sampling, triggered parameter access, simultaneous non-real-time services of data reporting of multiple nodes and the like can easily cause loss of part of service data, long service data reply time and the like, that is, in the prior art, non-real-time data bandwidth allocation is unreasonable, which causes unreasonable service data allocation.
Disclosure of Invention
The invention mainly aims to provide a bandwidth division method, a bandwidth division device, bandwidth division equipment and a computer readable storage medium, and aims to solve the technical problem that unreasonable service data allocation is caused by unreasonable allocation of non-real-time data bandwidth.
In order to achieve the above object, the present invention provides a bandwidth division method, which is applied to a network system;
the bandwidth division method comprises the following steps:
determining the bandwidth proportion corresponding to each type of non-real-time service data, and determining the total bandwidth of the non-real-time service data in the network system;
and determining target bandwidth of each type of non-real-time service data according to the total bandwidth and each bandwidth proportion, wherein the target bandwidth is used for limiting the data transmission quantity of each type of non-real-time service data in unit time.
Optionally, the network system includes a master device, a slave device and a monitor; the bandwidth division method further comprises the following steps:
acquiring service response time of each type of non-real-time service data, and determining response priority of each type of non-real-time service data according to each service response time, wherein the service response time is inversely proportional to the response priority;
and the slave station device is used for responding to various types of non-real-time service data sent by the master station device or the monitor based on the response priority.
Optionally, the step of determining the bandwidth ratio corresponding to each type of non-real-time service data includes:
acquiring target data volume and total non-real-time service data volume of various current non-real-time service data;
and determining the bandwidth ratio corresponding to each type of non-real-time service data according to each target data volume and the total amount of the non-real-time service data.
Optionally, the step of determining the bandwidth ratio corresponding to each type of non-real-time service data includes:
acquiring historical average data volume and historical average total volume of various non-real-time service data;
and determining the bandwidth ratio corresponding to each type of non-real-time service data according to the historical average data volume and the historical average total amount of the non-real-time service data.
Optionally, after the step of determining the target bandwidth of each type of the non-real-time service data, the method further includes:
acquiring unit data volume to be transmitted of current non-real-time service data to be transmitted;
judging whether the unit data volume to be transmitted is larger than the target bandwidth of the current non-real-time service data to be transmitted;
and if the unit data volume to be transmitted is larger than the target bandwidth of the current non-real-time service data to be transmitted, outputting prompt information that the data volume exceeds the limit.
Optionally, the step of determining a total bandwidth of the non-real-time service data in the network system includes:
acquiring a communication cycle between a monitor in the network system and a master station device in the network system and a cycle allowance of non-real-time data;
and calculating the total bandwidth of the non-real-time service data in the network system according to the communication cycle and the cycle allowance.
Optionally, the step of determining a target bandwidth of each type of the non-real-time service data according to the total bandwidth and each bandwidth ratio includes:
and multiplying the total bandwidth by each product obtained by each bandwidth ratio, and taking each product as the target bandwidth of each type of the non-real-time service data.
In addition, to achieve the above object, the present invention provides a bandwidth dividing apparatus, including:
the data acquisition module is used for determining the bandwidth ratio corresponding to each type of non-real-time service data and determining the total bandwidth of the non-real-time service data in a network system;
and the bandwidth allocation module is used for determining target bandwidths of various types of non-real-time service data according to the total bandwidth and the bandwidth ratios, wherein the target bandwidths are used for limiting the data transmission quantity of various types of non-real-time service data in unit time.
In addition, to achieve the above object, the present invention further provides a bandwidth dividing apparatus, including a processor, a memory, and a bandwidth dividing program stored in the memory and executable by the processor, wherein the bandwidth dividing program, when executed by the processor, implements the steps of the bandwidth dividing method as described above.
The present invention also provides a computer readable storage medium having a bandwidth partitioning program stored thereon, wherein the bandwidth partitioning program, when executed by a processor, implements the steps of the bandwidth partitioning method as described above.
The bandwidth division method in the technical scheme of the invention comprises the following steps: determining the bandwidth ratio corresponding to each type of non-real-time service data, and determining the total bandwidth of the non-real-time service data in the network system; and determining target bandwidths of various types of non-real-time service data according to the total bandwidth and the bandwidth ratios, wherein the target bandwidths are used for limiting the data transmission quantity of various types of non-real-time service data in unit time. The invention further divides the bandwidth in the network system according to the type of the non-real-time service data, thereby solving the technical problem of unreasonable service data distribution caused by unreasonable non-real-time data bandwidth distribution.
In the existing industrial ethernet bus, such as PROFINET, etherCAT, and EtherNetIP protocols, the bandwidth of the bus is divided, but the bandwidth is also divided into two major types of bandwidth, namely real-time data and non-real-time data, that is, the real-time data occupies a part of the bandwidth of the bus, and the non-real-time data occupies another part of the bandwidth of the bus.
The invention mainly divides the total bandwidth of the bus occupied by the non-real-time data, particularly allocates different target bandwidths to various non-real-time service data through the bandwidth occupation ratios corresponding to various non-real-time service data, namely the ratio of the bandwidths required to be occupied by the different non-real-time service data in unit time, and the total bandwidth of the bus occupied by all the non-real-time data obtained through calculation, limits the various non-real-time service data to carry out data transmission only in the allowed bandwidth, and further does not enable the plurality of different non-real-time service data to simultaneously occupy the same bandwidth, thereby enabling the distribution of the non-real-time service data to be more scientific and reasonable, avoiding the loss of the non-real-time service data and accelerating the response efficiency of the slave station equipment to the non-real-time service data sent by the master station equipment and the monitor.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment of a bandwidth partitioning device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a bandwidth division method according to a first embodiment of the present invention;
fig. 3 is a detailed flowchart of step S20 in the first embodiment of the bandwidth division method according to the present invention;
FIG. 4 is a flowchart illustrating a bandwidth division method according to a second embodiment of the present invention;
FIG. 5 is a diagram illustrating an example of a network topology of a network system according to the bandwidth partitioning method of the present invention;
FIG. 6 is a schematic diagram illustrating an overall application flow of the bandwidth division method according to the present invention;
fig. 7 is a schematic diagram of a frame structure of the bandwidth dividing apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment in the technical scheme of the invention is briefly described as follows:
the invention mainly allocates different target bandwidths to the non-real-time data based on the types of the non-real-time data (non-real-time service data), the data volume and the importance degree of the non-real-time data of different types, so that the non-real-time data of different types can be transmitted only within the corresponding target bandwidth limit, and a user using a network system can be reminded to carefully select the non-real-time data, thereby avoiding the problems of data loss and the like caused by the fact that all the non-real-time data seizes the same bandwidth at the same time.
The embodiment of the invention provides bandwidth dividing equipment. The bandwidth dividing device may include any type of communication device including a network system, and is not limited herein.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment of a bandwidth partitioning device according to an embodiment of the present invention.
As shown in fig. 1, the bandwidth dividing apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may comprise a Display (Display), an input unit such as a control panel, and the optional user interface 1003 may also comprise a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a WIFI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001. A bandwidth partitioning program may be included in the memory 1005, which is a kind of computer storage medium.
Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 does not constitute a limitation of the apparatus, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 of fig. 1, which is one type of computer-readable storage medium, may include an operating system, a user interface module, a network communication module, and a bandwidth partitioning program.
In fig. 1, the network communication module is mainly used for connecting to a server and performing data communication with the server; and the processor 1001 may call the bandwidth partitioning program stored in the memory 1005 and perform the steps in the following respective embodiments.
Based on the hardware structure of the controller, the embodiments of the bandwidth division method of the present invention are provided.
The embodiment of the invention provides a bandwidth dividing method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a bandwidth division method according to a first embodiment of the present invention; in a first embodiment of the present invention, the bandwidth division method is applied to a network system, where the network system includes a monitor and a master station device, and the monitor is communicatively connected to the master station device; further, the network system includes a slave device.
To facilitate understanding of the network system in this embodiment, please refer to fig. 5, and fig. 5 is a diagram illustrating a network topology of the network system related to the bandwidth partitioning method according to the present invention.
As shown in fig. 5, the network topology of the network system of this embodiment includes a master device, a plurality of slave devices, and one monitor, and the topology is not limited to a bus type, but includes a ring type and a star type, and the monitor is not limited to a position connected to the master device, and may be connected to the end of the slave device, or may be connected to the slave device through a switch, or may be integrated with the master device into a display-control integrated type.
The monitor refers to a terminal generating non-real-time service data (also called non-periodic service data), and the non-real-time service data includes reading and writing of parameters and monitoring data of a producer consumer model, such as monitoring channel data. In any of the above topologies, it is necessary to ensure that the monitor, the master station, and the slave station can communicate with each other.
In addition, the meaning of each reference numeral in fig. 5:
the reference numeral 1 denotes a slave station device in a network system, and the slave station device is a monitored and debugged device and mainly performs data acquisition and reporting and command response according to parameters configured by a monitor.
Reference numeral 2 denotes a master station device in the network system, the master station device is an executing brain that controls the execution of the slave station device, all real-time data is controlled by the master station device, and the master station device has key elements for calculating non-real-time data bandwidth, such as a communication period, a non-real-time data size of each node, a total number of nodes in the network, and a real-time data bandwidth occupation ratio allocated by a user.
Reference numeral 3 denotes a monitor in the network system, the monitor is software or a terminal for debugging and monitoring the slave station device, and is a source for initiating a non-real-time data service, and a user can obtain various information of a plurality of slave station devices by operating the monitor.
Reference numeral 4 denotes that the monitor can communicate with the slave device in the network system, and the monitor can communicate with the master even if the monitor is not directly linked with the slave.
On the basis of the network system structure, the bandwidth division method comprises the following steps:
step S10, determining the bandwidth ratio corresponding to each type of non-real-time service data, and determining the total bandwidth of the non-real-time service data in the network system;
the bandwidth ratios corresponding to various types of non-real-time service data are obtained, which can be determined by the ratio of the data volume of various non-real-time service data to all non-real-time service data, or preset bandwidth ratios can be performed according to the importance degrees of different types of non-real-time service data in data transmission, that is, the preset bandwidth ratios corresponding to various types of non-real-time service data can be determined according to the experience of technicians, and the criteria of the importance degrees can be as follows: disallowing loss of data > allow loss of a small portion of data > allow loss of a large portion of data > allow loss of all data.
For example, in one specific example:
the SDO service of the Ethernet Over Ethernet CAT belongs to standard service defined by a protocol, generally generated by main station equipment service, belongs to self-defined producer consumer service generally generated by a monitor, and belongs to parameter acquisition service generally generated by the monitor based on self-defined function code read-write of the Ethernet Over Ethernet CAT channel
For the protocol definition standard service data, the producer consumer service data, the parameter acquisition service and other consumption data, the corresponding bandwidth ratios are respectively 50%, 25% and 25% according to the data volume or importance degree of the three different non-real-time service data. It should be understood that the present invention is only exemplary, and is not limited to the bandwidth ratios corresponding to various types of non-real-time service data.
In an embodiment, the step of determining the bandwidth ratio corresponding to each of the various types of non-real-time service data in step S10 includes:
step a, acquiring target data volume and total non-real-time service data volume of various current non-real-time service data;
and b, determining the bandwidth ratio corresponding to each type of non-real-time service data according to each target data volume and the total amount of the non-real-time service data.
In this embodiment, the bandwidth ratio corresponding to each type of non-real-time service data may be determined by obtaining a target data volume and a total non-real-time service data volume of each type of non-real-time service data, and calculating a ratio of the target data volume of each type of non-real-time service data to the total non-real-time service data volume, specifically, dividing the target data volume of each type of non-real-time service data at the same time by the total non-real-time service data volume at the same time to obtain each ratio, where the ratio is the bandwidth ratio corresponding to each type of non-real-time service data.
By the embodiment, different target bandwidths can be allocated to different types of non-real-time service data in real time based on the real-time data volume of the non-real-time service data, the actual requirements of various data transmission at the same moment can be met, and the loss of the service data is prevented.
In another embodiment, the step of determining the bandwidth ratio corresponding to each of the various types of non-real-time service data in step S10 further includes:
step c, acquiring historical average data volume and historical average total amount of various non-real-time service data;
and d, determining the bandwidth ratio corresponding to each type of non-real-time service data according to the historical average data volume and the historical average total amount of the non-real-time service data.
In this embodiment, specifically, the historical average data size of each type of non-real-time service data within the preset time period is an average value obtained by dividing the total data transmission amount of each type of non-real-time service data within the preset time period by the preset time period, and the historical average total amount of non-real-time service data within the preset time period, that is, an average value obtained by dividing the total data transmission amount of all non-real-time service data by the preset time period, is obtained. The preset time period can be set according to actual needs, such as one week, one month, and the like.
And dividing the historical average data quantity by the historical average total quantity of the non-real-time service data to obtain each ratio, thereby determining the bandwidth ratio corresponding to each type of non-real-time service data.
By the embodiment, the transmission demand of different types of non-real-time service data in past history can be reflected to a great extent, the transmission demand of the different types of non-real-time service data can be further predicted, different bandwidth ratios are determined by taking each historical average data amount as a reference, and data transmission is carried out on the subsequent various types of non-real-time service data according to corresponding target bandwidths, so that stable transmission of various types of non-real-time service data can be ensured, and the various types of non-real-time service data can be responded by the slave station equipment timely and efficiently.
In an embodiment, the step of determining the total bandwidth of the non-real-time service data in the network system in step S10 includes:
step S11, acquiring a communication cycle between a monitor in the network system and a master station device in the network system and a cycle allowance of non-real-time data;
and step S12, calculating the total bandwidth of the non-real-time service data in the network system according to the communication cycle and the cycle allowance.
The element (parameter) for calculating the total bandwidth of the non-real-time service data is obtained based on the communication interaction between the monitor and the master station device, or the element (parameter) for calculating the total bandwidth of the non-real-time service data may be directly reading the total bandwidth NRT _ bw already calculated by the master station device or the control device in the network system itself, where the element for calculating the total bandwidth may be a communication period T _ c, a single-period non-real-time data allowable transmission size N _ b (a period allowable amount of the non-real-time data), and after multiplying the communication period and the period allowable amount or multiplying the communication period and the period allowable amount with a correction value, the total bandwidth per unit time (second) is calculated, and it can be seen that the non-real-time data bandwidth NRT _ bw is proportional to the communication period T _ c and the single-period non-real-time data size N _ b. More specifically: the total bandwidth factor includes the communication period, the non-real-time data size of each node, the total number of nodes in the network, the real-time data bandwidth occupation ratio allocated by the user, and the mode of calculating the total bandwidth may also be: the method comprises the steps of firstly obtaining the total bandwidth of a network system bus, obtaining the real-time data bandwidth according to the real-time data bandwidth occupation ratio distributed by a user, and subtracting the real-time data bandwidth from the total bandwidth to obtain the total bandwidth.
By the embodiment, the total bandwidth of all the non-real-time service data in the network system can be conveniently calculated through simple parameters.
Step S20, determining target bandwidth of each type of non-real-time service data according to the total bandwidth and each bandwidth ratio, wherein the target bandwidth is used for limiting data transmission quantity of each type of non-real-time service data in unit time.
In one embodiment, the step S20 includes:
and multiplying the total bandwidth by each product obtained by each bandwidth ratio, and taking each product as the target bandwidth of each type of the non-real-time service data.
The target bandwidth of the non-real-time service is obtained by multiplying the total bandwidth of the non-real-time service data by the bandwidth ratio of the non-real-time service data, and then the target bandwidth of each kind of non-real-time service data can be obtained, for example, the total bandwidth of the non-real-time service data is 100Mbps, wherein the bandwidth ratio of the protocol definition standard service in the non-real-time service data is 50%, and correspondingly, the target bandwidth of the protocol definition standard service is 50Mbps, that is, the data transmission of all the protocol definition standard services needs to be limited within 50Mbps, and no more bandwidth can be occupied.
The invention mainly divides the total bandwidth of the bus occupied by the non-real-time data, particularly allocates different target bandwidths to various non-real-time service data through the bandwidth occupation ratios corresponding to various non-real-time service data, namely the ratio of the bandwidths required to be occupied by the different non-real-time service data in unit time, and the total bandwidth of the bus occupied by all the non-real-time data obtained through calculation, limits the various non-real-time service data to carry out data transmission only in the allowed bandwidth, and further does not enable the plurality of different non-real-time service data to simultaneously occupy the same bandwidth, thereby enabling the distribution of the non-real-time service data to be more scientific and reasonable, avoiding the loss of the non-real-time service data and accelerating the response efficiency of the slave station equipment to the non-real-time service data sent by the master station equipment and the monitor.
Referring to fig. 4, fig. 4 is a flowchart illustrating a bandwidth division method according to a second embodiment of the present invention; further, a second embodiment of the bandwidth dividing method according to the present invention is proposed based on the first embodiment of the bandwidth dividing method according to the present invention, and in this embodiment, after step S20, the method further includes:
step S30, acquiring unit data volume to be transmitted of the current non-real-time service data to be transmitted;
step S40, judging whether the unit data volume to be transmitted is larger than the target bandwidth of the current non-real-time service data to be transmitted;
and S50, if the unit data volume to be transmitted is larger than the target bandwidth of the current non-real-time service data to be transmitted, outputting prompt information of data volume overrun.
In this embodiment, the currently-to-be-transmitted non-real-time service data may be a part of the non-real-time service data to be transmitted, which is selected by the user on the monitor or the host and monitor integrated machine. The unit data volume to be transmitted is the allowable data volume transmitted per second, the bandwidth to be occupied by the current non-real-time service data to be transmitted can be determined through the unit data volume to be transmitted, the size of the unit data volume to be transmitted and the target bandwidth of the current non-real-time service data to be transmitted is further judged, if the unit data volume to be transmitted is judged to be larger than the target bandwidth of the current non-real-time service data to be transmitted, a prompt message that the data volume of the non-real-time service data selected by a user is over-limited needs to be reminded, and the prompting mode is not limited to pop-up windows, voice alarms, vibration and the like.
In one specific example: after the monitor divides the target bandwidth of various non-real-time data, the monitor limits the reasonable use of non-real-time services by users in the reverse direction, for example, when continuous waveform acquisition (producer consumer service) is used as the current non-real-time service data to be transmitted, the available target bandwidth is 1/4 × nrt _bw, then the producer data generated by the monitored node number in the same network cannot exceed 1/4 × nrt _bw, that is, the unit data volume to be transmitted cannot exceed 1/4 × nrt u bw, otherwise, other service data are influenced. The monitor can give prompt and limit when the data generated by the service selected by the user exceeds the corresponding target bandwidth, so that the reasonable distribution and use of the non-real-time data and the service under different scenes are achieved.
In one embodiment, the network system further comprises a slave device; the bandwidth division method further comprises the following steps:
acquiring service response time of each type of non-real-time service data, and determining response priority of each type of non-real-time service data according to each service response time, wherein the service response time is inversely proportional to the response priority;
and the slave station device is used for responding to various types of non-real-time service data sent by the master station device or the monitor based on the response priority.
In this embodiment, each type of non-real-time service data has the required service response time T _ Rsp, that is, the master station device or the monitor sends the non-real-time service data and the slave station device needs to respond within the service response time, otherwise, the following data transmission will be affected, so that priorities are set for each type of non-real-time service data based on the length of the service response time, the higher the priority is, the shorter the service response time is, and the slave station device sequentially responds according to the priorities within the target bandwidth limit corresponding to each type of non-real-time service data according to the priorities of different types of non-real-time service data.
For example, the priority assignment is: the highest priority (protocol definition standard service), the medium priority (producer consumer service), and the lowest priority (parameter acquisition service and other consumption), which are used in the slave station device, when the slave station device needs to reply to the non-real-time service data with different priorities at the same time, the non-real-time service data with high priority is replied preferentially.
By the embodiment, the non-real-time service data with high requirement on service response time can be responded quickly and efficiently, and the influence of various data transmission obstacles on the next data transmission caused by the long response time of the slave station equipment on some non-real-time service data with high requirement on response time is avoided.
For further understanding of the above embodiments of the present invention, reference may be made to fig. 6, where fig. 6 is a schematic diagram of an overall application flow of the bandwidth division method of the present invention, and the overall flow in an actual application scenario of the present invention may be:
step 1, a monitor acquires and calculates loan elements and calculates the total bandwidth of non-real-time data;
step 2, dividing target bandwidths of various real-time data;
and 3, distributing the specification of the corresponding service according to the divided target bandwidth of the non-real-time data, and giving a prompt when the service selected by the user exceeds the data bandwidth.
Further, referring to fig. 7, the present invention also proposes a bandwidth dividing apparatus, comprising:
the data acquisition module a10 is configured to determine bandwidth ratios corresponding to various types of non-real-time service data, and determine a total bandwidth of the non-real-time service data in a network system;
and a bandwidth allocation module a20, configured to determine a target bandwidth of each type of the non-real-time service data according to the total bandwidth and each bandwidth ratio, where the target bandwidth is used to limit a data transmission amount of each type of the non-real-time service data in unit time.
Optionally, the bandwidth allocation module a20 is further configured to:
acquiring service response time of each type of non-real-time service data, and determining response priority of each type of non-real-time service data according to each service response time, wherein the service response time is inversely proportional to the response priority;
and the slave station device is used for responding to various types of non-real-time service data sent by the master station device or the monitor based on the response priority.
Optionally, the data obtaining module a10 is further configured to:
acquiring target data volume and total non-real-time service data volume of various current non-real-time service data;
and determining the bandwidth ratio corresponding to each type of non-real-time service data according to each target data volume and the total amount of the non-real-time service data.
Optionally, the data obtaining module a10 is further configured to:
acquiring historical average data volume and historical average total volume of various non-real-time service data;
and determining the bandwidth ratio corresponding to each type of non-real-time service data according to each historical average data volume and the historical average total amount of the non-real-time service data.
Optionally, the bandwidth allocation module a20 is further configured to:
acquiring unit data volume to be transmitted of current non-real-time service data to be transmitted;
judging whether the unit data volume to be transmitted is larger than the target bandwidth of the current non-real-time service data to be transmitted;
and if the unit to-be-transmitted data volume is larger than the target bandwidth of the current to-be-transmitted non-real-time service data, outputting prompt information that the data volume exceeds the limit.
Optionally, the data obtaining module a10 is further configured to:
acquiring a communication cycle between a monitor in the network system and a master station device in the network system and a cycle allowance of non-real-time data;
and calculating the total bandwidth of the non-real-time service data in the network system according to the communication period and the period allowance.
Optionally, the data obtaining module a10 is further configured to:
and multiplying the total bandwidth by each product obtained by each bandwidth ratio, and taking each product as the target bandwidth of each type of the non-real-time service data.
The specific implementation of the bandwidth dividing apparatus of the present invention is substantially the same as that of each embodiment of the bandwidth dividing method, and is not described herein again.
In addition, the invention also provides a computer readable storage medium. The computer readable storage medium of the present invention stores a bandwidth partitioning program, wherein the bandwidth partitioning program, when executed by a processor, implements the steps of the bandwidth partitioning method as described above.
The method for implementing the bandwidth partitioning program when executed may refer to various embodiments of the bandwidth partitioning method of the present invention, and will not be described herein again.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, 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 not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A bandwidth division method is characterized in that the bandwidth division method is applied to a network system; the bandwidth division method comprises the following steps:
determining the bandwidth proportion corresponding to each type of non-real-time service data, and determining the total bandwidth of the non-real-time service data in the network system;
and determining target bandwidths of various types of non-real-time service data according to the total bandwidth and the bandwidth ratios, wherein the target bandwidths are used for limiting the data transmission quantity of various types of non-real-time service data in unit time.
2. The bandwidth division method according to claim 1, wherein said network system includes a master device, a slave device, and a monitor; the bandwidth division method further comprises the following steps:
acquiring service response time of each type of non-real-time service data, and determining response priority of each type of non-real-time service data according to each service response time, wherein the service response time is inversely proportional to the response priority;
and the slave station device is used for responding to various types of non-real-time service data sent by the master station device or the monitor based on the response priority.
3. The method for dividing bandwidth according to claim 1, wherein the step of determining the bandwidth ratio corresponding to each type of non-real-time service data comprises:
acquiring target data volume and total non-real-time service data volume of various current non-real-time service data;
and determining the bandwidth ratio corresponding to each type of non-real-time service data according to each target data volume and the total amount of the non-real-time service data.
4. The method for dividing bandwidth according to claim 1, wherein the step of determining the bandwidth ratio corresponding to each type of non-real-time service data comprises:
acquiring historical average data volume and historical average total volume of various non-real-time service data;
and determining the bandwidth ratio corresponding to each type of non-real-time service data according to each historical average data volume and the historical average total amount of the non-real-time service data.
5. The method for bandwidth division according to claim 1, wherein after said step of determining the target bandwidth of each type of said non-real-time traffic data, said method further comprises:
acquiring unit data volume to be transmitted of current non-real-time service data to be transmitted;
judging whether the unit data volume to be transmitted is larger than the target bandwidth of the current non-real-time service data to be transmitted;
and if the unit data volume to be transmitted is larger than the target bandwidth of the current non-real-time service data to be transmitted, outputting prompt information that the data volume exceeds the limit.
6. The method for bandwidth division according to claim 1, wherein said step of determining the total bandwidth of said non-real-time traffic data in said network system comprises:
acquiring a communication cycle between a monitor in the network system and a master station device in the network system and a cycle allowance of non-real-time data;
and calculating the total bandwidth of the non-real-time service data in the network system according to the communication period and the period allowance.
7. The method for dividing bandwidth according to claim 1, wherein the step of determining the target bandwidth of each type of the non-real-time service data according to the total bandwidth and each of the bandwidth ratios comprises:
and multiplying the total bandwidth by each product obtained by each bandwidth ratio, and taking each product as the target bandwidth of each type of the non-real-time service data.
8. A bandwidth division apparatus, characterized in that the bandwidth division apparatus comprises:
the data acquisition module is used for determining the bandwidth proportion corresponding to each type of non-real-time service data and determining the total bandwidth of the non-real-time service data in a network system;
and the bandwidth allocation module is used for determining target bandwidths of various types of non-real-time service data according to the total bandwidth and the bandwidth ratios, wherein the target bandwidths are used for limiting the data transmission quantity of various types of non-real-time service data in unit time.
9. A bandwidth partitioning device comprising a processor, a memory, and a bandwidth partitioning program stored on the memory and executable by the processor, wherein the bandwidth partitioning program when executed by the processor implements the steps of the bandwidth partitioning method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, having a bandwidth partitioning program stored thereon, wherein the bandwidth partitioning program, when executed by a processor, implements the steps of the bandwidth partitioning method of any one of claims 1 to 7.
CN202211027894.4A 2022-08-25 2022-08-25 Bandwidth dividing method, device, equipment and computer readable storage medium Pending CN115396317A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211027894.4A CN115396317A (en) 2022-08-25 2022-08-25 Bandwidth dividing method, device, equipment and computer readable storage medium
PCT/CN2023/095134 WO2024041052A1 (en) 2022-08-25 2023-05-18 Bandwidth division method, apparatus, and device, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211027894.4A CN115396317A (en) 2022-08-25 2022-08-25 Bandwidth dividing method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115396317A true CN115396317A (en) 2022-11-25

Family

ID=84123220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211027894.4A Pending CN115396317A (en) 2022-08-25 2022-08-25 Bandwidth dividing method, device, equipment and computer readable storage medium

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024041052A1 (en) * 2022-08-25 2024-02-29 深圳市汇川技术股份有限公司 Bandwidth division method, apparatus, and device, and computer readable storage medium

Citations (3)

* 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 (en) * 2018-07-20 2018-12-11 浪潮电子信息产业股份有限公司 A kind of method and relevant device for distributing service bandwidth
WO2022027331A1 (en) * 2020-08-05 2022-02-10 华为技术有限公司 Bandwidth management method and apparatus, computer storage medium, and chip

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109962856B (en) * 2017-12-26 2022-07-12 中国电信股份有限公司 Resource allocation method, device and computer readable storage medium
CN113055308B (en) * 2019-12-26 2024-03-05 华为云计算技术有限公司 Bandwidth scheduling method, traffic transmission method and related products
CN111818585B (en) * 2020-07-30 2022-07-12 中国联合网络通信集团有限公司 User access method and access network equipment
CN114466226B (en) * 2022-01-28 2023-12-08 杭州灵伴科技有限公司 Bandwidth duration duty cycle determination method, device, equipment and computer readable medium
CN115396317A (en) * 2022-08-25 2022-11-25 深圳市汇川技术股份有限公司 Bandwidth dividing method, device, equipment and computer readable storage medium

Patent Citations (3)

* 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 (en) * 2018-07-20 2018-12-11 浪潮电子信息产业股份有限公司 A kind of method and relevant device for distributing service bandwidth
WO2022027331A1 (en) * 2020-08-05 2022-02-10 华为技术有限公司 Bandwidth management method and apparatus, computer storage medium, and chip

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024041052A1 (en) * 2022-08-25 2024-02-29 深圳市汇川技术股份有限公司 Bandwidth division method, apparatus, and device, and computer readable storage medium

Also Published As

Publication number Publication date
WO2024041052A1 (en) 2024-02-29

Similar Documents

Publication Publication Date Title
CN106815066B (en) Timed task scheduling method, device and system
CN103053146B (en) Data migration method and device
WO2024041052A1 (en) Bandwidth division method, apparatus, and device, and computer readable storage medium
CN110737538B (en) Algorithm model calling system based on thrift
CN112162852A (en) Multi-architecture CPU node management method, device and related components
CN111651351A (en) Software performance testing method and device based on Jenkins
CN109245981B (en) Scheduling method and system for field bus communication
CN114285695B (en) Communication method, device, apparatus, system and storage medium
US11218383B2 (en) Simulation system and method for simulating processing of reservation enquiries for multicast data streams in communications networks
CN113658351B (en) Method and device for producing product, electronic equipment and storage medium
CN105487403A (en) Establishment of motion control system based on CAN and simulation modeling method
US11868808B2 (en) Automatic driving simulation task scheduling method and apparatus, device, and readable medium
CN101893876B (en) Control network method for large-scale distributed control system
CN113806027B (en) Task orchestration method, apparatus, electronic device, and computer-readable storage medium
CN110955504B (en) Method, server, system and storage medium for intelligently distributing rendering tasks
CN111355751A (en) Task scheduling method and device
CN103164338B (en) The analogy method of concurrent processing system and device
CN116166421A (en) Resource scheduling method and equipment for distributed training task
CN115437761A (en) Simulation method of scheduler, electronic device, and storage medium
CN109224451A (en) Development of games method, equipment and storage medium based on block chain subchain
US20230069599A1 (en) Time-division multiplexing communication system and recording medium
CN113852554A (en) Data transmission method, device and equipment
CN113848752A (en) Distributed real-time simulation method
CN111209109A (en) Docker-based home decoration industry cloud rendering cluster scheduling system and scheduling method
CN109117340A (en) A kind of mobile terminal and its monitoring method, the storage medium of interprocess communication

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination