An apparatus for computing, comprising: one or more processors, and a traffic shaper operated by at least one of the one or more processors configured to shape packet traffics of a plurality of regulated traffic generating entities, wherein the traffic shaper includes a policer configured to process incoming packets of the regulated traffic generating entities and determine whether to forward or temporarily hold the packets, a buffer configured to store the packets to be temporarily held, and a timer task manager configured to process timer tasks of the regulated traffic generating entities and determine whether to discard the timer tasks or forward to regulate release of held packets of the regulated traffic generating entities, characterized in that the policer is configured to determine whether the incoming packets of a regulated traffic generating entity are compliant or non-compliant with a desired packet traffic rate for the regulated traffic generating entities, forward the packets determined to be compliant, and store the packets determined to be non-compliant in the buffer, on storage of a packet of the regulated traffic generating entity into the buffer, the policer is configured to further install a timer task for the regulated traffic generating entity, if none exists, and the buffer does not have stored packets of the regulated traffic generating entity prior to storing the packet into the buffer, and the policer is configured to install a timer task of the regulated traffic generating entity that is adapted to a moving average packet size of packets of the regulated traffic generating entity that get stored temporarily in the buffer, wherein the policer is configured to continuously calculate the moving average packet size of packets of the regulated traffic generating entity that get stored temporarily in the buffer. one or more processors, and a traffic shaper operated by at least one of the one or more processors configured to shape packet traffics of a plurality of regulated traffic generating entities, wherein the traffic shaper includes a policer configured to process incoming packets of the regulated traffic generating entities and determine whether to forward or temporarily hold the packets, a buffer configured to store the packets to be temporarily held, and a timer task manager configured to process timer tasks of the regulated traffic generating entities and determine whether to discard the timer tasks or forward to regulate release of held packets of the regulated traffic generating entities, characterized in that the policer is configured to determine whether the incoming packets of a regulated traffic generating entity are compliant or non-compliant with a desired packet traffic rate for the regulated traffic generating entities, forward the packets determined to be compliant, and store the packets determined to be non-compliant in the buffer, on storage of a packet of the regulated traffic generating entity into the buffer, the policer is configured to further install a timer task for the regulated traffic generating entity, if none exists, and the buffer does not have stored packets of the regulated traffic generating entity prior to storing the packet into the buffer, and the policer is configured to install a timer task of the regulated traffic generating entity that is adapted to a moving average packet size of packets of the regulated traffic generating entity that get stored temporarily in the buffer, wherein the policer is configured to continuously calculate the moving average packet size of packets of the regulated traffic generating entity that get stored temporarily in the buffer.