×

METHOD FOR CONTROLLING TRANSMISSION SPEED OF MULTI-CAST PACKETS

  • US 20120147781A1
  • Filed: 12/09/2010
  • Published: 06/14/2012
  • Est. Priority Date: 12/09/2010
  • Status: Active Grant
First Claim
Patent Images

1. A method for controlling transmission speed of multi-cast packets, used for enabling a network interface card (NIC) to transmit a plurality of multi-cast packets at a target speed, and the method for controlling the transmission speed of the multi-cast packets comprises:

  • calculating a standard time according to sizes of the multi-cast packets and the target speed, and recording an accumulated error time;

    transmitting one of the multi-cast packets, and calculating a transmission time of the transmitted multi-cast packet;

    calculating a difference between the standard time and the transmission time, recording the difference between the standard time and the transmission time as a current error time, adding the accumulated error time and the current error time, and recording the add result as a preset sleep time; and

    when the preset sleep time is greater than an error threshold value, performing following steps;

    sleeping for the preset sleep time;

    being waked from sleep, and calculating a practical sleep time;

    calculating a difference between the preset sleep time and the practical sleep time, and using the difference between the preset sleep time and the practical sleep time as the new accumulated error time; and

    returning to the step of calculating the standard time according to the sizes of the multi-cast packets and the target speed, and recording the accumulated error time, so as to transmit the next one of the multi-cast packets.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×