## 6 Problem Definition  
Network data transfer from source to the final destination can face many problems, such as delay, congestion, loss, or jitters. The Internet had grown through successive generations, most recently with 5G, with greatly increased network speed. Seizing the opportunities offered by modern Internet technologies, industrial innovations have enabled consumers to integrate the Internet into many areas of their lives. Healthcare is one of the most important areas in which smart technologies can play a major role, but e-health solutions have been relatively slow to emerge compared to leisure and e-commerce consumer applications. Nevertheless, many advanced technological solutions have been developed, including tele-surgery, enabling operations to be remotely directed (including in international contexts), reducing healthcare costs and increasing accessibility, and galvanizing emergency care potential. Technological challenges for such solutions pertain to the instructions (data packets) that need to be received between HPs and smart machines, which execute these instructions accurately and without any delay. The IoT machine must deal with these instructions with a high-acknowledgment response, and send a notification that the mission has been successfully executed, notifying the HP of this instantly. Hence, we consider the data to be sent and received is real-time traffic, requiring a high-performance and reliable live streaming connection with no likelihood of session interruption between the source and destination for emergency situations such as performing surgery via live video streaming (e.g., a potential problem is that traffic paths may not work effectively due to congestion in the network). We focus on the node buffers and algorithm labeling of high-priority traffic, to avoid loss of emergency packets during connections and to avoid delay if the buffer for each node on the selected path has any packets, by making our s-RCA drop any packet not accorded emergency status.  
Figure 3 shows how IoT is used in all devices based on network instructions. It shows the relationship between the CC and all devices that can be used for the connections or transmission of the data. In addition, all devices can be smart, to optimally achieve targets. Our algorithm will help the existing routing protocol, and even the hardware devices, to improve the connections and lead to success in the mission between HP and patients, with less effort. However, the disadvantage of our algorithm is that it is required to drop many other packets and keep the selected node booked until the session is expired between HP and patients. In addition, the algorithm will take some time to determine the highest quality path based on link-state information, which is provided by the existing protocol. Once the operation has been done, then all nodes are free to be used normally by other users.  
Thus, in the proposed mechanism, traffic control is performed automatically with the help of the IoT, with necessary action undertaken to resolve these problems. We have created a smart algorithm (s-RCA) that can first read high-emergency traffic, and then start to open a session between the source and the destination until the live streaming ends. We have configured our algorithm to wait for a period of time; if no more packets are received, our algorithm will stop booking the path and return to the normal mode in the network. In addition, there is packet monitoring to detect any emergency packets arriving in the buffer that have not been sent yet. The algorithm will try to alarm the node that needs to send emergency packets urgently, to complete the instructions.