the invention relates to a method for selecting a window size for a packet switched connection between a first and a second party . the associated window is used by a sending party for a window based congestion control mechanism for avoiding or handling congestion on a communication path . the invented method enables to adapt the size of an initial window , a loss window , and a restart window based on information available in the network to increase the utilisation of transmission capacity .