CN108494586A - Band width control method and device - Google Patents

Band width control method and device Download PDF

Info

Publication number
CN108494586A
CN108494586A CN201810175001.8A CN201810175001A CN108494586A CN 108494586 A CN108494586 A CN 108494586A CN 201810175001 A CN201810175001 A CN 201810175001A CN 108494586 A CN108494586 A CN 108494586A
Authority
CN
China
Prior art keywords
data
data packet
packet
transmitted
idle
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.)
Granted
Application number
CN201810175001.8A
Other languages
Chinese (zh)
Other versions
CN108494586B (en
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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Technology Guangzhou Ltd
Comba Telecom Systems China Ltd
Comba Telecom Systems Guangzhou Co Ltd
Tianjin Comba Telecom Systems 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 Comba Telecom Technology Guangzhou Ltd, Comba Telecom Systems China Ltd, Comba Telecom Systems Guangzhou Co Ltd, Tianjin Comba Telecom Systems Co Ltd filed Critical Comba Telecom Technology Guangzhou Ltd
Priority to CN201810175001.8A priority Critical patent/CN108494586B/en
Publication of CN108494586A publication Critical patent/CN108494586A/en
Application granted granted Critical
Publication of CN108494586B publication Critical patent/CN108494586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Landscapes

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

Abstract

The present invention relates to a kind of band width control method and devices, wherein the data packet length that band width control method passes through measurement data to be transmitted packet;Based on data packet length and pre-set bandwidths, output proportioning and the idle data packet for being spaced data to be transmitted packet in transmission process are generated;It is matched according to output, data to be transmitted packet and idle data packet is transmitted to Ethernet with pre-set bandwidths;It being capable of measurement data packet length and real-time dynamic regulation bandwidth, additional cost need not be increased, be conducive in Ethernet transmission data controlling transmission bandwidth as desired, simultaneously, by software realization adjust automatically, also without excessive manual intervention, software configuration is convenient, the convenience and adaptivity for improving bandwidth control, can avoid data congestion in Ethernet transmission link leads to packet loss problem.

Description

Band width control method and device
Technical field
The present invention relates to network transmission technology fields, more particularly to a kind of band width control method and device.
Background technology
In recent years, With the fast development of internet, the transmission of Ethernet data is widely used, and needs access mutual The equipment of networking is substantially all using Ethernet transmission technology.In the data transmission, controlling transmission bandwidth is many times needed, with The bandwidth demand for meeting physical channel is unlikely to cause data congestion and entanglement packet loss.
During realization, inventor has found that at least there are the following problems in traditional technology:Traditional Ethernet transmission belt Width controlling method is using ICP/IP protocol (Transmission Control Protocol/Internet Protocol, transmission Control protocol/Internet Protocol) control, receiving-transmitting sides arrange transmission bandwidth, with some specified bandwidth for transmission data;This Kind mode needs both sides to interact, and negotiates transmission rate, but in practical Ethernet transmission link, transport protocol is not limited to ICP/IP protocol, also udp protocol (UserDatagram Protocol, User Datagram Protocol), even customized biography Defeated agreement, receiving-transmitting sides are at all without the rule of any agreement specified transmission rate;Therefore transmission bandwidth becomes uncontrollable.
Invention content
Based on this, it is necessary to for the uncontrolled problem of data transfer bandwidth, provide a kind of band width control method and device.
To achieve the goals above, on the one hand, an embodiment of the present invention provides a kind of band width control methods, including:
Measure the data packet length of data to be transmitted packet;
Based on data packet length and pre-set bandwidths, output proportioning and to be transmitted for being spaced in transmission process is generated The idle data packet of data packet;Output proportioning is the data packet length ratio or quantity ratio of data to be transmitted packet and idle data packet;
It is matched according to output, data to be transmitted packet and idle data packet is transmitted to Ethernet with pre-set bandwidths.
The step of data packet length of measurement data packet includes in one of the embodiments,:
Pass through work clock measurement data packet length.
The step of being based on data packet length and pre-set bandwidths in one of the embodiments, generating idle data packet is wrapped It includes:
According to pre-set bandwidths and data packet length, idle data packet length is generated;
Based on idle data packet length, idle data packet is generated.
It is matched in one of the embodiments, according to output, with pre-set bandwidths by data to be transmitted packet and idle data packet The step of being transmitted to Ethernet include:
It is matched according to output, conversion obtains Read-write Catrol delay value;Read-write Catrol delay value include data to be transmitted packet with The output sequence and output proportioning of idle data packet;
Based on Read-write Catrol delay value, data to be transmitted packet, idle data packet are read and exported.
It is matched in one of the embodiments, according to output, with pre-set bandwidths by data to be transmitted packet and idle data packet Further include before the step of being transmitted to Ethernet:
Cache data to be transmitted packet.
The step of caching data to be transmitted packet includes in one of the embodiments,:
When getting the data to be transmitted packet of predetermined number in preset time, according to the priority for obtaining data to be transmitted packet Sequence caches each data packet successively.
Further include step after the step of measuring the data packet length of data to be transmitted packet in one of the embodiments,:
Record data packet length.
On the other hand, the embodiment of the present invention additionally provides a kind of bandwidth control apparatus, including:
Data packet length measurement module, the data packet length for measuring data to be transmitted packet;
Band width configuration module generates output proportioning and for passing for being based on data packet length and pre-set bandwidths The idle data packet of data to be transmitted packet is spaced during defeated;Output proportioning is the data of data to be transmitted packet and idle data packet Packet length ratio or quantity ratio;
Data packet transmission module, for being matched according to output, with pre-set bandwidths by data to be transmitted packet and idle data packet It is transmitted to Ethernet.
An embodiment of the present invention provides a kind of computer readable storage mediums, are stored thereon with computer program, the program Above-mentioned band width control method is realized when being executed by processor.
The embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and is stored in memory Computer program that is upper and can running on a processor, processor realize above-mentioned bandwidth controlling party when executing computer program Method.
A technical solution in above-mentioned technical proposal has the following advantages that and advantageous effect:
By the data packet length for measuring data to be transmitted packet;Based on data packet length and pre-set bandwidths, output is generated Proportioning and idle data packet;According to output match, with pre-set bandwidths by data to be transmitted packet and idle data packet be transmitted to Too net;The embodiment of the present invention can measurement data packet length and real-time dynamic regulation bandwidth, solve that transmission bandwidth is uncontrolled asks Topic, and it is not only restricted to specific transport protocol, it is participated in without artificial, improves the convenience and adaptivity of bandwidth control, it can Data congestion in Ethernet transmission link is avoided to lead to packet loss problem.
Description of the drawings
Fig. 1 is the applied environment figure of band width control method one embodiment of the present invention;
Fig. 2 is the first pass schematic diagram of band width control method embodiment 1 of the present invention;
Fig. 3 is the second procedure schematic diagram of band width control method embodiment of the present invention;
Fig. 4 is the third flow diagram of band width control method embodiment of the present invention;
Fig. 5 is the 4th flow diagram of band width control method embodiment of the present invention;
Fig. 6 is the 5th flow diagram of band width control method embodiment of the present invention;
Fig. 7 is the 6th flow diagram of band width control method embodiment of the present invention;
Fig. 8 is the 7th flow diagram of band width control method embodiment of the present invention;
Fig. 9 is the structural schematic diagram of bandwidth control apparatus embodiment 1 of the present invention;
Figure 10 is that the exemplary system of band width control method one of the present invention connects block diagram;
Figure 11 is the exemplary data packet control bandwidth output figure of band width control method one of the present invention;
Figure 12 is the internal structure chart of one embodiment of the invention Computer equipment.
Specific implementation mode
To facilitate the understanding of the present invention, below with reference to relevant drawings to invention is more fully described.In attached drawing Give the preferred embodiment of the present invention.But the present invention can realize in many different forms, however it is not limited to this paper institutes The embodiment of description.On the contrary, purpose of providing these embodiments is make it is more thorough and comprehensive to the disclosure.
Unless otherwise defined, all of technologies and scientific terms used here by the article and belong to the technical field of the present invention The normally understood meaning of technical staff is identical.Used term is intended merely to description tool in the description of the invention herein The purpose of the embodiment of body, it is not intended that in the limitation present invention.Term " and or " used herein includes one or more phases Any and all combinations of the Listed Items of pass.
Currently, not become more and more by the transmission bandwidth of protocol integrated test system, in such a case, sent out according to Ethernet high speed The requirement of exhibition needs to control transmission bandwidth, to reach transmission rate demands, just can avoid network congestion even packet loss Problem occurs.
Band width control method provided in an embodiment of the present invention, can be applied in application environment as shown in Figure 1, and Fig. 1 is The applied environment figure of band width control method one embodiment of the present invention.Wherein, terminal 102 is passed through by network and server 104 Network is communicated.102 measurement data packet length of terminal, real-time dynamic regulation bandwidth, with pre-set bandwidths transmission packet to net Network avoids the problem that data congestion leads to packet loss.Wherein, terminal 102 can be, but not limited to be various personal computers, notebook Computer, smart mobile phone, tablet computer and portable wearable device, server 104 can be either more with independent server The server cluster of a server composition is realized.
Specifically, an embodiment of the present invention provides a kind of band width control method, as shown in Fig. 2, Fig. 2 is bandwidth control of the present invention The first pass schematic diagram of embodiment of the method 1 processed, including:
Step S210 measures the data packet length of data to be transmitted packet;
Specifically, the data to be transmitted packet to input carries out linear measure longimetry, data packet length can be obtained;Preferably, may be used Transmission packet is treated using the clock cycle of work clock to be counted, obtained counting number can be data to be transmitted packet Data packet length;Further, after obtaining data packet length, which can be recorded designated position;
It should be noted that data to be transmitted Bao Kewei prepares the data packet for being transmitted to Ethernet;
Data packet length can be measured or be calculated as unit of byte, such as the physical characteristic of Ethernet determines link The maximum length of layer data frame is 1500 bytes, a longest IP packet may be 65535 bytes etc.;
Step S220 is based on data packet length and pre-set bandwidths, generates output proportioning and in transmission process It is spaced the idle data packet of data to be transmitted packet;Output proportioning is the data packet length ratio of data to be transmitted packet and idle data packet Or quantity ratio;
Specifically, by the data packet length of input, generates idle data packet according to pre-set bandwidths and output matches;
It should be noted that pre-set bandwidths can be used for according to actual needs, carrying out amount of bandwidth or rate being configured, it can It is obtained by system configuration parameter;Specifically, such as full speed, cutout, Half Speed, 1/4 rate, 1/5 rate, 1/8 rate;The present invention is real It applies example and real-time adjusting parameter is reached by real-time dynamic adjusting bandwidth parameter, without restarting system;
Idle data Bao Kewei idle invalid data packet or idle character, can be used for controlling each data to be transmitted packet and exist Interval in transmission process;Specifically, can be generated according to the data packet length and pre-set bandwidths of data to be transmitted packet corresponding Idle data packet, the idle data packet can be spaced data to be transmitted packet in transmission process, realize real-time dynamic adjusting bandwidth ginseng Number, without restarting system;
Output proportioning can be the data packet length or quantity ratio of data to be transmitted packet and idle data packet, can be used for controlling The ratio of data to be transmitted packet and idle data packet in data transmission procedure;
Specifically, the data packet length for measuring data to be transmitted packet obtains data packet length L;According to data packet length L with And pre-set bandwidths generate idle data packet and output matches, wherein the data packet length of idle data packet is I;
If L=I, the quantity ratio of data to be transmitted packet and idle data packet can be indicated by exporting proportioning;Pre-set bandwidths are complete When fast mode, output proportioning can be 1/0, and the quantity of data to be transmitted packet is 1, and the quantity of idle data packet is 0, that is, is not increased Inter-packet gap continuously walks the data packet of input hair;When pre-set bandwidths are cutout pattern, output proportioning can be 0/1, data to be transmitted Packet quantity is 0, and idle data packet quantity is 1, does not export any data packet, continuously transmits idle character;Pre-set bandwidths are Half Speed When pattern, output proportioning can be 1/1, and data to be transmitted packet quantity is 1, and idle data packet quantity is 1, sends out a packet data to be transmitted Packet, sends out a packet idle data packet, and control output bandwidth halves;When pre-set bandwidths are 1/4 rate mode, output proportioning can be 1/3, Data to be transmitted packet quantity is 1, and idle data packet quantity is 3, sends out a packet data to be transmitted, sends out 3 packet idle data packets, and control is defeated Go out bandwidth is original 1/4;And so on, pre-set bandwidths can be also 1/5 rate mode, 1/8 rate mode etc., no longer go to live in the household of one's in-laws on getting married herein It states;
If L ≠ I, the data packet length ratio of data to be transmitted packet and idle data packet can be indicated by exporting proportioning;According to pre- If bandwidth, the data to be transmitted packet that a bag data packet length is L, the idle data packet that one bag data packet length of hair is I, control are sent Actual transmission bandwidth processed is L/ (L+I);
Step S230 matches according to output, data to be transmitted packet and idle data packet is transmitted to ether with pre-set bandwidths Net.
Specifically, based on output proportioning, controlled according to reading, exports data to be transmitted packet and idle data packet to next Grade is transmitted to Ethernet with pre-set bandwidths, completes bandwidth control;
It should be noted that can also carry out it during data to be transmitted packet and idle data packet are transmitted to Ethernet It is handled, and therefore, can be matched according to output, data to be transmitted packet and idle data packet are transmitted to next stage with pre-set bandwidths, It is transmitted to Ethernet again after next stage is handled, completes bandwidth control;
Optionally, in one example, output proportioning can be converted into Read-write Catrol delay logic, data packet is read out Come, exports to next stage;Specifically, under Full-Speed mode, the Clockreading delay of idle data packet need not be increased, directly read It takes and exports data to be transmitted packet to next stage;Under half fast mode, read data packet length is increasing after the data to be transmitted packet of L Add idle data to wait for I clock count (the clock count number of I is equal to the clock count number of L), then reads next wait for Transmission packet strictly controls the transmission intercal between two data to be transmitted packets, to ensure average bandwidth control 1/2;
The data packet length that the embodiment of the present invention passes through measurement data to be transmitted packet;Based on data packet length and default band Width generates output proportioning and idle data packet;It is matched according to output, with pre-set bandwidths by data to be transmitted packet and idle data Packet is transmitted to Ethernet;Can measurement data packet length and real-time dynamic regulation bandwidth, solve the problems, such as that transmission bandwidth is uncontrolled, And it is not only restricted to specific transport protocol;Idle data packet is sent to realize the control of bandwidth, will not depend upon specific input Data packet bandwidth rates need not increase additional cost, be conducive in Ethernet transmission data controlling transmission as desired Bandwidth, meanwhile, by software realization adjust automatically, also without excessive manual intervention, software configuration is convenient, improves bandwidth control Convenience and adaptivity, can avoid data congestion in Ethernet transmission link leads to packet loss problem;
Further, the embodiment of the present invention be conducive to using as FPGA (Field-Programmable Gate Array, That is field programmable gate array), CPLD (Complex Programmable Logic Device, complicated programmable logic device Part), EPLD (Erasable Programmable Logic Device, erasable Programmadle logic device), SPLD (simple Programmable logic device, simple programmable logical device) etc. programmable logic device realize, it is possible to use specially With ASIC (Application Specific Integrated Circuit, application-specific IC) chips or DSP (Digital Signal Processing, Digital Signal Processing) programmable chip is realized.
In a specific embodiment, referring to the second procedure that such as 3, Fig. 3 is band width control method embodiment of the present invention The step of schematic diagram, the data packet length of measurement data packet includes:
Step S310 passes through work clock measurement data packet length.
It is counted specifically, treating transmission packet using work clock, reaches its data packet length;
It should be noted that the clock cycle that work clock can be used in measurement data packet length is counted;Pass through work The mode of clock count carrys out measurement data packet length, it can be achieved that automatic measured data packet length, further enhances implementation of the present invention The flexibility of example band width control method reduces manual intervention, and software configuration is convenient, improves convenience and the adaptation of bandwidth control Property.
In a specific embodiment, as shown in figure 4, Fig. 4 is the third stream of band width control method embodiment of the present invention Journey schematic diagram, be based on data packet length and pre-set bandwidths, generate idle data packet the step of include:
Step S422 generates idle data packet length according to pre-set bandwidths and data packet length;
Step S424 is based on idle data packet length, generates idle data packet.
Specifically, can be calculated according to the data packet length and pre-set bandwidths for measuring obtained data to be transmitted packet To idle data packet length;Idle data packet is generated according to the idle data packet length;
Specifically, can ask poor to the data packet length of pre-set bandwidths and data to be transmitted packet, idle data packet length is obtained; Based on idle data packet length, several idle data packets are produced.
In a specific embodiment, it is the 4th flow of band width control method embodiment of the present invention referring to Fig. 5, Fig. 5 The step of schematic diagram matches according to output, data to be transmitted packet and idle data packet are transmitted to Ethernet with pre-set bandwidths is wrapped It includes:
Step S532 is matched according to output, and conversion obtains Read-write Catrol delay value;Read-write Catrol delay value includes to be transmitted Data packet is matched with the output sequence of idle data packet and output;
Step S534 is based on Read-write Catrol delay value, reads and export data to be transmitted packet, idle data packet.
Specifically, the Read-write Catrol delay value that can be obtained based on output proportioning conversion is read out output data to be transmitted Packet and idle data packet;
It should be noted that Read-write Catrol delay value can by output proportioning conversion obtain, it may include data to be transmitted packet with The output sequence and output proportioning of idle data packet;According to Read-write Catrol delay value, data packet is read out, is exported to next Grade;Specifically, under Full-Speed mode, the Clockreading delay of idle data packet need not be increased, it is to be transmitted to directly read output Data packet is to next stage;Under half fast mode, read data packet length is transmittable long data packet after the data to be transmitted packet of L The idle data packet or increase idle data waiting I clock count (clock meter of the clock count number of I equal to L that degree is I Several numbers), then next data to be transmitted packet is read, the transmission intercal between two data to be transmitted packets is strictly controlled, to protect Average bandwidth control is demonstrate,proved 1/2;Optionally, the output sequence of output of embodiment of the present invention proportioning can be that first reading output is to be transmitted Data packet retransmits idle data packet, or, first send idle data packet reads output idle data packet again, or, with number to be transmitted The sequence assigned among several idle data packets according to packet is sent;
The embodiment of the present invention sends data to be transmitted packet and idle data packet to realize successively according to Read-write Catrol delay value The control of bandwidth will not depend upon specific input data packet bandwidth rates, need not increase additional cost, be conducive to Too net transmission data when controlling transmission bandwidth as desired, meanwhile, by software realization adjust automatically, also need not be excessive artificial do In advance, software configuration is convenient, improves the convenience and adaptivity of bandwidth control, can avoid data in Ethernet transmission link and gathers around Plug leads to packet loss problem.
In a specific embodiment, as shown in fig. 6, Fig. 6 is the 5th stream of band width control method embodiment of the present invention The step of journey schematic diagram matches according to output, data to be transmitted packet and idle data packet is transmitted to Ethernet with pre-set bandwidths Further include before:
Step S612 caches data to be transmitted packet.
Specifically, after getting the data to be transmitted packet of input, data to be transmitted packet can be cached, with after an action of the bowels Continuous reading and transmission;Preferably, data to be transmitted packet can be stored into programming chip interior memory, such as FIFO (First Input First Output, First Input First Output) memory, (Random-Access Memory, are deposited RAM at random Access to memory) etc.
In a specific embodiment, it is the 6th flow of band width control method embodiment of the present invention referring to Fig. 7, Fig. 7 Schematic diagram, cache data to be transmitted packet the step of include:
Step S714, when getting the data to be transmitted packet of predetermined number in preset time, according to acquisition number to be transmitted Each data packet is cached successively according to the sequencing of packet.
Specifically, when getting several data to be transmitted packets in the short time, it can be according to acquisition data to be transmitted packet Sequencing cache each data packet successively, be conducive to subsequently be successively read data to be transmitted packet;
It should be noted that preset time can be configured according to actual needs, specifically, can be 1s (second, second), 0.01s or 0.001s etc.;
Predetermined number can be configured according to actual needs, specifically, can be 2 or more, 3 with first-class;
When it is paroxysmal receive multiple data packets when, should be sequentially stored into memory, so as to subsequently with correctly sequence Read data to be transmitted packet, it is ensured that read the accuracy of output data packet, ensure the precise delivery of bandwidth control.
In a specific embodiment, as shown in figure 8, Fig. 8 is the 7th stream of band width control method embodiment of the present invention Further include step after the step of journey schematic diagram, the data packet length of measurement data to be transmitted packet:
Step S812 records data packet length.
Specifically, after the data packet length for measuring data to be transmitted packet, recorded data packet length is saved into Designated position, so as to the calling of subsequent step.
It should be understood that although each step in the flow chart of Fig. 2-8 is shown successively according to the instruction of arrow, These steps are not that the inevitable sequence indicated according to arrow executes successively.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-8 Part steps may include that either these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can either the sub-step of other steps or at least part in stage be in turn or alternately with other steps It executes.
On the other hand, the embodiment of the present invention additionally provides a kind of bandwidth control apparatus, and referring to Fig. 9, Fig. 9 is bandwidth of the present invention The structural schematic diagram of control device embodiment 1, including:
Data packet length measurement module 910, the data packet length for measuring data to be transmitted packet;
Band width configuration module 920 is used to be based on data packet length and pre-set bandwidths, generates output proportioning and is used for The idle data packet of data to be transmitted packet is spaced in transmission process;Output proportioning is the number of data to be transmitted packet and idle data packet According to packet length ratio or quantity ratio;
Data packet transmission module 930, for being matched according to output, with pre-set bandwidths by data to be transmitted packet and idle data Packet is transmitted to Ethernet.
Further, the embodiment of the present invention may also include:Data pack buffer module, for caching data to be transmitted packet;Number According to packet length logging modle, for recording data packet length;
Wherein, data packet length measurement module may include work clock measuring unit, for being waited for by work clock measurement The data packet length of transmission packet;
Band width configuration module may include idle data packet length acquiring unit and idle data packet generation unit;Idle number It is used to, according to pre-set bandwidths and data packet length, generate idle data packet length according to packet length acquiring unit;Idle data packet Generation unit is used to be based on idle data packet length, generates idle data packet;
Data packet transmission module may include Read-write Catrol delay value acquiring unit and read output data packet unit;Read-write It controls delay value acquiring unit to be used to be matched according to output, conversion obtains Read-write Catrol delay value;Read output data packet unit For being based on Read-write Catrol delay value, data to be transmitted packet, idle data packet are read and exported;
It should be noted that the specific restriction about bandwidth control apparatus may refer to above for band width control method Restriction, details are not described herein.Modules in above-mentioned bandwidth control apparatus can fully or partially through software, hardware and its It combines to realize.Above-mentioned each module can be embedded in or in the form of hardware independently of in the processor in computer equipment, can also It is stored in a software form in the memory in computer equipment, in order to which processor calls the above modules of execution corresponding Operation.
For convenience of the specific implementation flow of the embodiment of the present invention is understood, it is illustrated with a specific example of implementing, such as Figure 10, shown in 11, Figure 10 is that the exemplary system of band width control method one of the present invention connects block diagram, and Figure 11 is bandwidth control of the present invention The exemplary data packet control bandwidth output figure of method one processed;
Data packet 1 and data packet 2 to be transmitted are got, using the data packet length of work clock measurement data packet 1,2, Obtain L1 and L2;The data packet 1,2 received is write in internal storage successively, such as FIFO, RAM;According to long data packet L1, L2 and pre-set bandwidths are spent, data packet length I1, I2 of idle packet is calculated, are generated comprising L1, L2, I1 and I2 Output proportioning;It is matched according to output, is controlled according to reading, be successively read the data packet 1 of L1 length, then send the sky of I1 length Spare time packet 1, then the data packet 2 of L2 length is read, the idle packet 2 of I2 length is retransmited, is sequentially output data packet to next stage, in turn It is transmitted to Ethernet, completes bandwidth control;Wherein, data packet corresponds to above-mentioned data to be transmitted packet, and idle packet corresponds to the above-mentioned free time Data packet.
The embodiment of the present invention can pass through the data packet length of measurement data to be transmitted packet;Based on data packet length and preset Bandwidth generates output proportioning and idle data packet;It is matched according to output, with pre-set bandwidths by data to be transmitted packet and idle number It is transmitted to Ethernet according to packet;Can measurement data packet length and real-time dynamic regulation bandwidth, additional cost need not be increased, had Conducive to the controlling transmission bandwidth as desired in Ethernet transmission data, meanwhile, it, also need not be excessive by software realization adjust automatically Manual intervention, software configuration is convenient, improves the convenience and adaptivity of bandwidth control, it is uncontrolled to solve transmission bandwidth Problem, and it is not only restricted to specific transport protocol, can avoid data congestion in Ethernet transmission link leads to packet loss problem;
Further, the measurement that data packet length is carried out by data packet dynamic buffering and using work clock, can be real When configure transmission bandwidth, to reach the data transfer bandwidth of control reality output, the flexibility of enhancing bandwidth control is reduced artificial Intervene, software configuration is convenient.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition is shown in Fig.12, and Figure 12 is the internal structure chart of one embodiment of the invention Computer equipment.The computer is set Standby includes processor, memory and the network interface connected by system bus.Wherein, the processor of the computer equipment is used for Calculating and control ability are provided.The memory of the computer equipment includes non-volatile memory medium, built-in storage.This is non-volatile Property storage medium is stored with operating system, computer program and database.The built-in storage is in non-volatile memory medium The operation of operating system and computer program provides environment.The network interface of the computer equipment is used to pass through with external terminal Network connection communicates.To realize a kind of band width control method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Figure 12, only with the relevant part of application scheme The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set Standby may include either combining certain components than more or fewer components as shown in the figure or being arranged with different components.
The computer equipment, when processor executes program, by realizing such as any one band in the various embodiments described above Width controlling method is participated in without artificial so as to real-time dynamic regulation bandwidth, improves the convenience of bandwidth control and adaptive Ying Xing solves the problems, such as that transmission bandwidth is uncontrolled, and is not only restricted to specific transport protocol, can avoid in Ethernet transmission link Data congestion leads to packet loss problem.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program realizes a kind of band width control method when being executed by processor.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, Any reference to memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..It is described above Each technical characteristic of embodiment can be combined arbitrarily, to keep description succinct, not to each technology in above-described embodiment Feature it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present contradiction, all it will be understood that It is the range that this specification is recorded.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of band width control method, which is characterized in that including:
Measure the data packet length of data to be transmitted packet;
Packet length and pre-set bandwidths based on the data generate output proportioning and for being waited for described in the interval in transmission process The idle data packet of transmission packet;The output proportioning is the data packet of the data to be transmitted packet and the idle data packet Length ratio or quantity ratio;
According to the output match, with the pre-set bandwidths by the data to be transmitted packet and the idle data packet be transmitted to Too net.
2. band width control method according to claim 1, which is characterized in that the long data packet for measuring the data packet The step of spending include:
The data packet length is measured by work clock.
3. band width control method according to claim 2, which is characterized in that packet length and default band based on the data Width, the step of generating the idle data packet include:
According to the pre-set bandwidths and the data packet length, idle data packet length is generated;
Based on the idle data packet length, the idle data packet is generated.
4. band width control method according to claim 3, which is characterized in that matched according to the output, with described default The step of data to be transmitted packet and the idle data packet are transmitted to Ethernet by bandwidth include:
It is matched according to the output, conversion obtains Read-write Catrol delay value;The Read-write Catrol delay value includes described to be transmitted Data packet is matched with the output sequence of the idle data packet and the output;
Based on the Read-write Catrol delay value, the data to be transmitted packet, the idle data packet are read and exported.
5. band width control method according to any one of claims 1 to 4, which is characterized in that it is matched according to the output, Further include before the step of data to be transmitted packet and the idle data packet are transmitted to Ethernet with the pre-set bandwidths:
Cache the data to be transmitted packet.
6. band width control method according to claim 5, which is characterized in that
The step of caching the data to be transmitted packet include:
When getting the data to be transmitted packet of predetermined number in preset time, according to the acquisition data to be transmitted packet Sequencing caches each data packet successively.
7. band width control method according to claim 6, which is characterized in that
Further include step after the step of measuring the data packet length of the data to be transmitted packet:
Record the data packet length.
8. a kind of bandwidth control apparatus, which is characterized in that including:
Data packet length measurement module, the data packet length for measuring data to be transmitted packet;
Band width configuration module generates output proportioning and for passing for packet length and pre-set bandwidths based on the data The idle data packet of the data to be transmitted packet is spaced during defeated;Output proportioning be the data to be transmitted packet with it is described The data packet length ratio or quantity ratio of idle data packet;
Data packet transmission module, for according to output proportioning, with the pre-set bandwidths by the data to be transmitted packet and institute It states idle data packet and is transmitted to Ethernet.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The band width control method described in claim 1 to 7 any one is realized when row.
10. a kind of computer equipment, including memory, processor and it is stored on the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to Band width control method described in 7 any one.
CN201810175001.8A 2018-03-02 2018-03-02 Bandwidth control method and device Active CN108494586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810175001.8A CN108494586B (en) 2018-03-02 2018-03-02 Bandwidth control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810175001.8A CN108494586B (en) 2018-03-02 2018-03-02 Bandwidth control method and device

Publications (2)

Publication Number Publication Date
CN108494586A true CN108494586A (en) 2018-09-04
CN108494586B CN108494586B (en) 2021-04-27

Family

ID=63341343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810175001.8A Active CN108494586B (en) 2018-03-02 2018-03-02 Bandwidth control method and device

Country Status (1)

Country Link
CN (1) CN108494586B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11599649B2 (en) * 2020-06-29 2023-03-07 Rockwell Automation Technologies, Inc. Method and apparatus for managing transmission of secure data packets
US11606346B2 (en) 2020-06-29 2023-03-14 Rockwell Automation Technologies, Inc. Method and apparatus for managing reception of secure data packets

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108306A (en) * 1997-08-08 2000-08-22 Advanced Micro Devices, Inc. Apparatus and method in a network switch for dynamically allocating bandwidth in ethernet workgroup switches
US20030103243A1 (en) * 2001-11-30 2003-06-05 Hideaki Watanabe Transmission system
CN1798099A (en) * 2004-12-29 2006-07-05 华为技术有限公司 Method for implementing dynamic speed adjustment for data packets based on logic
CN101222296A (en) * 2008-01-31 2008-07-16 上海交通大学 Self-adapting transmission method and system in ascending honeycomb video communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108306A (en) * 1997-08-08 2000-08-22 Advanced Micro Devices, Inc. Apparatus and method in a network switch for dynamically allocating bandwidth in ethernet workgroup switches
US20030103243A1 (en) * 2001-11-30 2003-06-05 Hideaki Watanabe Transmission system
CN1798099A (en) * 2004-12-29 2006-07-05 华为技术有限公司 Method for implementing dynamic speed adjustment for data packets based on logic
CN101222296A (en) * 2008-01-31 2008-07-16 上海交通大学 Self-adapting transmission method and system in ascending honeycomb video communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11599649B2 (en) * 2020-06-29 2023-03-07 Rockwell Automation Technologies, Inc. Method and apparatus for managing transmission of secure data packets
US11606346B2 (en) 2020-06-29 2023-03-14 Rockwell Automation Technologies, Inc. Method and apparatus for managing reception of secure data packets

Also Published As

Publication number Publication date
CN108494586B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN106951379B (en) A kind of high-performance DDR controller and data transmission method based on AXI protocol
CN108494586A (en) Band width control method and device
CN100471176C (en) Queue dispatch method and equipment
EP2369751A2 (en) Receiver for error-protected packet-based frame
CN113806258B (en) Dynamic self-adaptive virtual channel mapping method, device and storage medium
CN107133407B (en) FPGA (field programmable Gate array) realizing method for increasing DDR (double data Rate) RAM (random Access memory) interface bandwidth under high bandwidth
WO2023066391A1 (en) Memory controller, internet-of-things chip, and electronic device
CN108768981A (en) A kind of IP kernel for realizing the communication of Powerlink industry real-time ethernets
CN112818415A (en) Cryptographic calculation method, system and medium based on APSoC
CN110209472A (en) Task data processing method and board
CN103198001B (en) Storage system capable of self-testing peripheral component interface express (PCIE) interface and test method
CN107885517A (en) Embedded system handles device program loaded circuit
JP2017532908A (en) Data caching method, apparatus and storage medium
CN115102908B (en) Method for generating network message based on bandwidth control and related device
CN109783290A (en) A kind of RISC-V controller adjustment method and device based on UART
CN110417609A (en) A kind of statistical method of network flow, device, electronic equipment and storage medium
CN112019407A (en) Forwarding equipment data testing method and device, computer equipment and storage medium
CN106209681B (en) A kind of queue management method and device
CN106059955A (en) Ethernet real-time packet capturing method based on SOC DMA
CN110098976A (en) Measurement method, device, computer equipment and the storage medium of network parameter
CN107888337A (en) A kind of method of FPGA, FPGA processing information, accelerator
CN105335323A (en) Buffering device and method of data burst
CN109408426A (en) A kind of agile and all-purpose serial communication method and system
CN108429707A (en) A kind of time triggered business transponder and method adapting to different transmission rates
CN110096456A (en) A kind of High rate and large capacity caching method and device

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
TA01 Transfer of patent application right

Effective date of registration: 20200109

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Patentee after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Patentee before: Comba Telecom System (China) Ltd.

CP01 Change in the name or title of a patent holder