<p>A method and apparatus for data transmitting are provided. The method for data transmitting includes: the start(l); predicting the current data traffic in the buffer according to the new-arrival data traffic of the higher level in the period of last burst(l?); determining the size of the next transmitting window according to the predicted current data traffic in the buffer(12); forming a burst data flow with the data flow in the buffer according to the determined size of the next transmitting window(H); transmitting the burst data flow(16); the epd(2). Application of the present invention can adaptively adjust the size of the transmitting window according to the current traffic after transmitting the burst every time, and improve the performance of time delay and throughput.</p>