Movatterモバイル変換


[0]ホーム

URL:


CN102457424B - Transmission speed control method for multi-cast package - Google Patents

Transmission speed control method for multi-cast package
Download PDF

Info

Publication number
CN102457424B
CN102457424BCN201010516536.0ACN201010516536ACN102457424BCN 102457424 BCN102457424 BCN 102457424BCN 201010516536 ACN201010516536 ACN 201010516536ACN 102457424 BCN102457424 BCN 102457424B
Authority
CN
China
Prior art keywords
time
multicast package
package
dormancy
transmission speed
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.)
Expired - Fee Related
Application number
CN201010516536.0A
Other languages
Chinese (zh)
Other versions
CN102457424A (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.)
Wang Jingjun
Original Assignee
Inventec Corp
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 Inventec CorpfiledCriticalInventec Corp
Priority to CN201010516536.0ApriorityCriticalpatent/CN102457424B/en
Publication of CN102457424ApublicationCriticalpatent/CN102457424A/en
Application grantedgrantedCritical
Publication of CN102457424BpublicationCriticalpatent/CN102457424B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The invention discloses a transmission speed control method for a multi-cast package. The method comprises the following steps of: calculating standard time and recording accumulative error time; transmitting the multi-cast package and calculating the transmission time of the transmitted multi-cast package; calculating a difference between the standard time and the transmission time, recording the difference as the current error time, and adding the accumulative error time and the current error time and recording the adding result as preset sleep time; when the preset sleep time is greater than an error threshold value, executing the following steps of: sleeping for the preset sleep time; awaking from the sleeping and calculating real sleep time; and calculating new accumulative error time which is the difference between the preset sleep time and the real sleep time; and returning to the initial step and transmitting a next multi-cast package.

Description

The transmission speed control method of multicast package
Technical field
The present invention is about a kind of transmission speed control method of multicast package of transmission speed control method, particularly a kind of high precision of multicast package.
Background technology
In the field relevant to the transmission technology of network package, it is an important subject under discussion that transmission speed is controlled.The account form of network data transmission speed is the ratio of data traffic volume and transmitting time.At present, window (Windows) system of Microsoft (Microsoft) is used the transmission speed of time delay (Sleep) function control network package.Delay function is exactly occupying system resources not in time delay process, but its precision is too low, approximately only can be accurate to Millisecond.And error when actual execution delay function generally can reach 10 milliseconds, be not therefore suitable for and need at a high speed and the application of stable transmission speed.
And window system also provide a kind of precision can with machine clock coincidence counter, it can be accurate to nanosecond (ns) level.But the method for utilizing this counter to postpone needs system frequently to count and confirms whether delay time arrives, and seriously take central processing unit (central processor unit, CPU) resource, and then affect the operation of other software and system.
That is to say, traditionally send in the transmission speed control of the network package such as multicast (multi-cast) to there is delay precision too low and easily cause the problem of the fluctuation of transmission speed, or there is the shortcoming that need to extremely expend cpu resource.
Summary of the invention
In order to address the above problem, provide the transmission speed control method of a kind of multicast package (multi-cast package) at this, it is for making a network card (network interface card, NIC) send multiple multicast packages with a target velocity.The transmission speed control method of multicast package comprises: size and target velocity according to multicast package are calculated a standard time, and record the cumulative errors time; Send one of multicast package, and calculate a transmitting time of the multicast package sending; The difference of calculating standard time and transmitting time, is recorded as this error time by the difference of standard time and transmitting time, cumulative errors time and this error time is added up to, and aggregate result is recorded to a predetermined dormancy time; In the time that predetermined dormancy time is greater than an error threshold value, carry out following steps: the predetermined dormancy time of dormancy; In dormancy, be waken up, and calculate an actual dormancy time; And to calculate the new cumulative errors time be that predetermined dormancy time subtracts actual dormancy time; And get back to the above-mentioned size according to multicast package and target velocity calculating standard time, and record the step of cumulative errors time, to send next multicast package.
Wherein calculate a standard time in the size according to multicast package and target velocity, and record among the step of a cumulative errors time, separately can comprise: set up an accumulative total transmitting time.And sending one of multicast package, and before calculating the step of a transmitting time of the multicast package sending, the processing method of multicast package separately can comprise: calculate an accumulative total transmitting time; And be greater than a cumulative time when threshold value when accumulative total transmitting time, cumulative errors time and accumulative total transmitting time are reset to 0.
According to an enforcement example, the transmission speed control method of multicast package separately can comprise: in the time that predetermined dormancy time is not more than an error threshold value, using predetermined dormancy time as the new cumulative errors time.Wherein transmitting time can be that the system time before and after the multicast package transmission of transmission is subtracted each other and obtained.
In addition, above-mentioned cumulative time threshold value can be 1 second (s).Error threshold value can be 1 millisecond (ms).Actual dormancy time can be to be greater than 10 milliseconds.
In sum, the transmission speed control method utilization of multicast package is the delay function of low precision originally, but realizes high accuracy multicast control speed.See through and in real time the accumulated error time is fed back to delay function, and the technology regularly being emptied, the transmission speed control method of multicast package can guarantee that the efficient stable of network data transmission does not take again too much central processing unit (central processor unit, CPU) resource.
Accompanying drawing explanation
Fig. 1 is the flow chart of the transmission speed control method of the multicast package of an enforcement example;
Fig. 2 is another part flow chart of implementing the transmission speed control method of the multicast package of example;
Fig. 3 is the curve chart of the transmission speed of an enforcement example.
Wherein, Reference numeral:
20 transmission speed curves
Embodiment
In execution mode, describe below detailed features of the present invention and advantage in detail; its content is enough to make any those skilled in the art understand technology contents of the present invention and implement according to this; and according to the disclosed content of this specification, claim protection range and accompanying drawing, any those skilled in the art can understand object and the advantage that the present invention is relevant easily.
The present invention is about the transmission speed control method of a kind of multicast package (multi-cast package), and it is for making a network card (network interface card, NIC) send multiple multicast packages with a target velocity.
Please refer to Fig. 1, is the flow chart of the transmission speed control method of the multicast package of an enforcement example.
First the transmission speed control method of multicast package calculates a standard time according to size and the target velocity of the multicast package that will transmit, and records the cumulative errors time (step S110).Wherein the standard time is that the size of multicast package is divided by the quotient of target velocity.Follow another network card reality and send a multicast package with target velocity, and calculate a transmitting time (step S120) of the multicast package sending.
Transmitting time can be that the system time before and after the multicast package transmission of transmission is subtracted each other and obtained.In more detail, can read the system time that comprises that the calculator of this network card is safeguarded before and after multicast package sending, then the time before and after sending is subtracted each other and just can obtain the transmitting time that this multicast package of actual transmission spends.
Then calculate the difference of standard time and transmitting time, the difference of standard time and transmitting time is recorded as to this error time; Cumulative errors time and this error time are added up to, and aggregate result is recorded to a predetermined dormancy time (step S130).That is to say, in step S130, the cumulative errors time is fed back to predetermined dormancy time, to react more delicately and to adjust transmission speed.
Obtain after predetermined dormancy time, judge whether predetermined dormancy time is greater than an error threshold value (step S140).According to an enforcement example, error threshold value can be 1 millisecond (ms).Error threshold value can positively be grasped the precision of the control of transmission speed, can, according to the actual setting that needs that sends multicast package, it not limited at this.
In the time that predetermined dormancy time is greater than error threshold value, make the predetermined dormancy time of network card dormancy one, wherein predetermined dormancy time be add this error time the cumulative errors time and (step S160).Can be through application programming interfaces (application program interface, API) implementations such as time delay (Sleep) functions of such as window (Windows) system in step S160.Relative, in the time that predetermined dormancy time is not more than error threshold value, can be using predetermined dormancy time as the new cumulative errors time (step S150).
Can be seen and be known by step S150 and S160, this error time that the transmission speed control method of multicast package produces each time delay retains, rather than abandons.This error time being fed back in real time in time delay control next time, and can dynamic compensation error, thereby reduce delay time error and improve control precision.In addition, owing to utilizing this error compensation mechanism, even if the error that the contract measurement time produces also can obtain effective compensation.
Network card dormancy in dormancy, be waken up after predetermined dormancy time, and calculate actual dormancy time (step S170).Similarly, also the system time before and after network card dormancy can be subtracted each other, to obtain actual dormancy time.Because the precision surveyed of Sleep function is greater than 10 milliseconds, therefore generally speaking actual dormancy time all can be greater than 10 milliseconds.
The transmission speed control method of multicast package is then calculated predetermined dormancy time and deducts the difference of actual dormancy time, and the difference that predetermined dormancy time is deducted to actual dormancy time is as the new cumulative errors time (step S180).And all can judge whether whole multicast packages to be sent completely to (step S190) after multicast package of every transmission.If so, can finishing control.If not, get back to step S110 to send next multicast package.
It is noted that, above-mentioned " error threshold value ", the numerical value that " actual dormancy time " and " cumulative time threshold value " gives an example all can, according to the actual setting that needs that sends multicast package, not limit it at this.See through and adjust these numerical value, can set the scope of dynamic error compensation, and how soon can return to goal-setting speed etc.
Please refer to Fig. 2, for another implements the part flow chart of transmission speed control method of the multicast package of example.In this enforcement example, also can set up an accumulative total transmitting time at step S110 simultaneously.And sending multicast package (step S120) in reality can carry out following in order to reset the cumulative errors time before.
Before each transmission multicast package, first calculate accumulative total transmitting time (step S210); Namely calculating that accumulative total transmitting time is established or is reset is 0 to have spent up till now the time how long.Then judge whether transmitting time is greater than a cumulative time threshold value (step S220); When being greater than the cumulative time when threshold value, cumulative errors time and accumulative total transmitting time are reset to 0 (step S230).
According to an enforcement example, accumulated error threshold value can be 1 second (s).Accumulated error threshold value also can, according to the actual setting that needs that sends multicast package, not limit it at this.Owing to just the accumulated error time being reset to 0 at set intervals, therefore can guarantee that the accumulated error time carries out dynamic error compensation within a bit of time.
Please refer to Fig. 3, is the curve chart of the transmission speed of an enforcement example.Can be seen and be known by atransmission speed curve 20 of Fig. 3, network card has just started to start fashion and has carried out the actions such as the configuration of environment and cannot transmit fast multicast package.But for the multicast package of accumulation is spread out of in real time, become and do not need to carry out delay function completely subsequently, can pass and how soon how soon pass and reach the transmission speed upper limit of network card.But in order to adjust too fast transmission speed, the transmission speed control method of multicast package is promptly returned to target velocity by transmission speed through the accumulated error time.
In sum, the transmission speed control method of multicast package feeds back to delay function by the accumulated error time in real time, and timing is emptied.Therefore the transmission speed control method of multicast package can guarantee that the efficient stable of network data transmission does not take again too much central processing unit (central processor unit, CPU) resource.In other words, the transmission speed control method of multicast package can reach the effect of low-resource utilance and high accuracy control simultaneously.Further, this method can comprise the pressure of the multicast server of this network card, and guarantees multi-case data energy high speed stable transfer, and has reduced the possibility that network data transmission is made mistakes.
Below better concrete enforcement example is for more clearly describing feature of the present invention and spirit, not with above-mentioned disclosed better concrete enforcement example, category of the present invention being limited.On the contrary, the deformation program of various changes and tool equality is all covered by scope of patent protection of the present invention.

Claims (6)

CN201010516536.0A2010-10-192010-10-19Transmission speed control method for multi-cast packageExpired - Fee RelatedCN102457424B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201010516536.0ACN102457424B (en)2010-10-192010-10-19Transmission speed control method for multi-cast package

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201010516536.0ACN102457424B (en)2010-10-192010-10-19Transmission speed control method for multi-cast package

Publications (2)

Publication NumberPublication Date
CN102457424A CN102457424A (en)2012-05-16
CN102457424Btrue CN102457424B (en)2014-05-28

Family

ID=46040117

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201010516536.0AExpired - Fee RelatedCN102457424B (en)2010-10-192010-10-19Transmission speed control method for multi-cast package

Country Status (1)

CountryLink
CN (1)CN102457424B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111726450B (en)*2019-03-192021-06-08安克创新科技股份有限公司Control method of intelligent express cabinet and intelligent express cabinet

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1149805A (en)*1995-09-121997-05-14国际商业机器公司 Pace Control for Multicasting in a Video Server Environment
CN101023605A (en)*2004-08-272007-08-22三星电子株式会社Method for controlling power and transmission rate of a shared forward link data channel in a mobile communication system
CN100484121C (en)*2003-09-012009-04-29三星电子株式会社Method for controlling sleep mode in broadband wireless access communication system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2004192256A (en)*2002-12-102004-07-08Seiko Epson Corp Network controller
US7779146B2 (en)*2006-11-092010-08-17Sharp Laboratories Of America, Inc.Methods and systems for HTTP streaming using server-side pacing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1149805A (en)*1995-09-121997-05-14国际商业机器公司 Pace Control for Multicasting in a Video Server Environment
CN100484121C (en)*2003-09-012009-04-29三星电子株式会社Method for controlling sleep mode in broadband wireless access communication system
CN101023605A (en)*2004-08-272007-08-22三星电子株式会社Method for controlling power and transmission rate of a shared forward link data channel in a mobile communication system

Also Published As

Publication numberPublication date
CN102457424A (en)2012-05-16

Similar Documents

PublicationPublication DateTitle
CN101441498B (en) Virtual machine monitor, virtual machine system and its clock distribution method
CA2832571C (en)Allocation aware heap fragmentation metrics
JP2012105344A (en)Managing timing of protocol stack
CN101951300B (en)Method for realizing accurate time tick of Ethernet
CN106251163B (en) Information push control method and device
CN102457424B (en)Transmission speed control method for multi-cast package
CN105718257A (en)Embedded system-based timer device and timing method
WO2010000554A4 (en)Read data flow control in a cascade interconnect memory system
CN107181674A (en)Message delivery method and device in Internet of Things
WO2017157164A1 (en)Data aggregation method and device
CN112860598B (en)Method, system, and medium for controlled buffer injection of incoming data
CN115102908B (en)Method for generating network message based on bandwidth control and related device
CN104253737B (en)A kind of method and device for measuring social channel communication effect
CN102882809A (en)Network speed-limiting method and device based on message buffering
CN105528315A (en) A hard disk IO timeout control method and device
CN110784337A (en) A cloud service quality monitoring method and related products
US8379643B2 (en)Method for controlling transmission speed of multi-cast packets
CN102710502A (en)Network speed-limiting method and device based on time wasting
WO2019169727A1 (en)Network traffic test method and apparatus, device, and computer-readable storage medium
TWI411268B (en)Sending speed controlling method for multi-cast packages
US20230289316A1 (en)Method of transmitting data and command through rs232 serial port
CN112751778B (en) Data transmission control method and device, congestion detection and device, server system
CN104378442B (en)A kind of Trace file dumping methods for reducing resource contention
Babu et al.Temporally synchronized emulation of devices with simulation of networks
CN115103024A (en)Serial number generation method and device, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CB03Change of inventor or designer information
CB03Change of inventor or designer information

Inventor after:Wang Jingjun

Inventor before:Li Liancheng

Inventor before:Chen Zhifeng

TR01Transfer of patent right

Effective date of registration:20170918

Address after:Room 3, unit 1, South court District, Xinhua Avenue, Langfang, Xianghe, Hebei,

Patentee after:Wang Jingjun

Address before:300193 West Lake Road, Tianjin, No. 38, No.

Co-patentee before:Inventec Corporation

Patentee before:Inventec Co., Ltd.

TR01Transfer of patent right
CP02Change in the address of a patent holder

Address after:No. 19, 541500 Central Road, whole state county, Guilin, the Guangxi Zhuang Autonomous Region

Patentee after:Wang Jingjun

Address before:065000 room 1, room 3, room 1, South court District, Xinhua Street, pacify District, Xianghe County, Hebei Province

Patentee before:Wang Jingjun

CP02Change in the address of a patent holder
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20140528

Termination date:20171019

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp