IEEE 802.1 Time-Sensitive Networking (TSN) assures a guaranteed data delivery with limited latency, low jitter, and amazingly low loss of data in handling time-critical traffic. TSN handles different quality of service (QoS) requirements and frame preemption is one of the key features of TSN. In the healthcare sector networking technology preferred by large organizations uses an enormous number of nodes, and thereby, the complexity of the network increases. Since the priority of the medical data varies at times based on the patient's health, dynamic traffic scheduling mechanisms are preferred. To improve the efficiency of the network, the software-defined access mechanism is used to control the network switches and bridges in the time-sensitive network. This work uses reinforcement learning to identify and eliminate the bridges dropping packets, and the alternative path is used to schedule the real-time data traffic. It is perceived that it performs well for the time-critical data in congestion network, increases the throughput, and reduces latency.