A method and system for distributing data packets within a network node is disclosed. The method and system for distributing data packets within a network node involves the utilization of a moving weighted average function to dynamically distribute the data packets in a balanced fashion. By utilizing a moving weighted average function to dynamically distribute the data packets in a balanced fashion, data packets are distributed more efficiently thereby increasing the overall efficiency of network operations. The method and system include computing a ratio matrix based on a moving weight average function of a load over a plurality of data ports and distributing data packets to the plurality of data ports based on the ratio matrix.