The invention discloses a device and a method for realizing traffic shaping by adopting a non-integer token. The method comprises the following steps: independently maintaining the decimal part of a token based on the expected speed, adding a decimal token maintenance list and a hit vector recording list, and within a period, accumulating the integer part of the expected speed and the integer part of the decimal token into the token, corresponding to one channel, of the token maintenance list, and maintaining a shaping state list according to the number value of the channel token. When a data message of one channel is dispatched, the token, corresponding to the token maintenance list, of the channel is reduced by the length of the data message, the state of the shaping state list is updated, and the dispatching of the channel is controlled by the value of the state list, so that the average speed of the message dispatching of the channels is controlled to the expected speed. According to the device and the method, under the condition that the expected speed is far less than the number of the channels, the roles of reducing chip area, reducing power consumption, reducing logic complexity degree of traffic shaping and facilitating chip back end realization are played.