control the flow of tcp packets for switching application