Traffic control based on Dahlin algorithm and neural network prediction in TAM networks