Abstract: There is disclosed a method of transferring input data packets from an upper layer to a lower layer of a stack of communication protocol layers, wherein the lower layer supports variable sized packets. One input data packet is received from the upper layer. This input data packet is segmented into several data segments the size of which is selected in a list of a given number N of predetermined segment size values. Signalling information is added to each data segment to form output data packets, which is delivered to a lower layer. Selection of the segment size value is performed according to an algorithm which minimizes the overall ineffective data and/or the overall signalling information. Thus, the transmission overhead generated by the segmentation scheme is reduced.