Reinforcement Learning Based Tsn