1.2.5 Performance Metrics: The below performance metrics are to be satisfied with the proposed theory. a. Average Delay: It is the ratio of the sum of all the delays to the number of packets received. b. PDR: It is the ratio of the packets received to the packets sent. c. Mean Packet Delivery Ratio (MPDR): It is defined as the sum of all Packet Delivery Ratio to the number of traffic types. d. Effective Data Rate (EDR): The EDR is achieved by multiplying the number of packets received and the size of the packet and dividing it with the simulation time. Table I shows the average latency in seconds for various traffic types Table 1. Delay in seconds for several traffic types Packet Delivery Rate for 4 various QoS classes is shown in the below table II Table 2. Packet Delivery Rate for several traffic types Effective Data Rate in bits per second is shown in table III Table 3. Effective Data Rate for several traffic types Figure II represents the Mean Packet Delivery Ratio for different Data Generation Intervals (DGI) of 0.125s and 0.25s by using QBAIoT. It is observed that the mean PDR is 1 for 1 object and keeps gradually reducing as the number of objects per class increases. Figure 2. Mean Packet Delivery ratio for different Data Generation Intervals 1.3 Resilient Healthcare System for Diabetic Patients using Internet of ThingsThis paper examines on a Healthcare model which is actualized for diabetic patients. This model uses IoT innovation which utilizes a diabetic insulin siphon which is checked and controlled effectively. This additionally manages the capacity of the patient’s information in the cloud. To assemble this model, the proposed framework utilizes Alaris imbuement siphon, Keil load up and IoT cloud which tracks the ongoing information of diabetic patients. Since medicinal data is viewed as basic, to store the information on the cloud it is important to meet the accompanying exhibition measurements, that is, privacy, Integrity, Authorization, Availability, and Authenticity. The equipment utilized right now of a Diabetic mixture siphon, a Keil 1768 board, and an IoT cloud checking framework. Keil board is inserted with a microcontroller (MC) and an RJ45 ethernet port. To keep the information secure, this model uses SSH (Secure Shell) calculation which gives validness, dependability, classification and would require an approval to get to the information from the cloud . This examination study, for the most part, accomplishes all the outcomes utilizing distinctive research models. Distributed computing alongside IoT has been offering excellent types of assistance to a considerable lot of its clients around the world. The incorporation of two super advances interfaces various frameworks as well as helps track the ongoing information, hence offering exemplary types of assistance. As there is a progression in innovation, the quantity of electronic gadgets is expanding at an unfathomable rate. In this manner, the activity should be improved. These electronic gadgets, when associated with a solitary stage, permits us to screen the information progressively, control these gadgets from anyplace, whenever. There is likewise a need to store this continuous information on the cloud for simple access. The information which is put away in the cloud should be verified. Subsequently, we execute SHA (Secure Hash Algorithm) inside the equipment for secure correspondence of information between the equipment and the cloud. The proposed contextual analysis for the medicinal services framework utilizes a 256 key SHA calculation    intended for verifying delicate data.1.3.1 SHA-256 KeySHA encryption framework is utilized to verify the information from being altered   . This framework manages a pressure work that utilizations hashes from the sender’s message. On the off chance that both the hashes are equivalent at the sender and the beneficiary, that implies that no information was altered during the correspondence. Hash right now indicated by h and the pressure work is signified by H. Consequently, the three wordings can be connected the equation,h=H(Input Message);SHA-256 encryption mechanism appears in figure 1. At first, the sender’s information is under 264 bits which is then cushioned by 1’s and 0’s to accomplish a complete length of 512 bits. This cushioned message is then included with the last message of 64 pieces and afterward passed on the preprocessing stage. Right now, squares of the 512-piece input message which is then sent through a pressure work that utilizes the Secure Hash Algorithm  which has a hash esteem. The last yield of this framework would be a hash estimation of 256 bits. Figure 3: SHA – encryption method 1.3.2 Hardware:• Microcontroller: To control and manage the medical equipment, a microcontroller is used. The microcontroller used in this prototype is Cortex MC , which is embedded in the Keil circuit board.• Injection pump: This pump is used to give insulin to the patients on time. • Cloud Storage to manage data: This offers storage of patient’s data on the cloud to be accessible to the patients, doctors and any authorized persons. 1.3.3 Proposed Design:To accomplish a strong medicinal services framework, there are 4 phases. These 4 phases are preprocessing stage, circulation arrange, recreation stage, and confirmation organize. The information is transferred to the cloud in the preprocessing stage. The information is circulated in the conveyance organize. Information is gathered from different databases inside the cloud in the recreation arrange and the information is confirmed in the check organize. Figure 4: Design for Resilient Healthcare System Using IoT All the stages given above are depicted pictographically in figure 2. An Injection Pump is used to give insulin   to the patient. This uses the Keil board which has a microcontroller embedded in it. Keil board is connected to the cloud platform using the SHA 256 algorithm. For secure exchange of data between the Keil board and the cloud service provider, a Secure Shell is implemented. This is to provide the highest level of security for the exchange of information which uses SSH keys  to encrypt and decrypt the information. The cloud storage provides secure data storage of the medical data of the patient. This data is also monitored and controlled. On-time scheduling of insulin can be given and monitored in real-time by the doctors. The patient’s data in the cloud can be accessed by an authorized person from the hospital, research centers (to perform research study on diabetic patients) and by remote authorized users. 1.3.4 Outcome: The results of this model are as per the following: • Confidentiality of information: By utilizing this model, the classification of the information is accomplished as we utilize a protected shell association that utilizations keys to scramble and unscramble the information. The association is possibly settled if the two gatherings are approved. • Availability of information: The model actualized has an accessibility pace of 99.26% which reasons that the information is constantly accessible with the exception of when there is an equipment or force disappointment. • Authorization of information: This model has a sequential association that is scrambled by the SSH keys for secure correspondence. The information is scrambled before sending it from the sender and the information ought to be decoded at the recipient’s end. On the off chance that there is any difference in information or altering of information in the middle of the correspondence, at that point utilizing the SHA-256 calculation, the hash information decides whether the information has been altered. Consequently, clients should be approved to get to the information from the cloud. • Data Integrity: The model actualized checks the information honesty by observing the glucose level of the patients. In the event that there is any adjustment in the estimation of the glucose levels of a patient, the SHA-256 calculation gives an alternate hash an incentive than the first hash esteem. The microcontroller thinks about the hash esteem and can distinguish if there is any slip-up in the worth. • Authentication of clients: As referenced over, this strong framework utilizes the SSH convention to approve the clients. To get to the information, the client should get to utilizing the SSH key . Without the key, the client won’t have the option to get to the wellbeing information. In this manner, the verification factor is accomplished. • Health care benefits: This model gives numerous advantages from observing the information continuously to programmed control of the implantation siphon for insulin and managing glucose for diabetic patients. Additionally, the mixture siphon can be remotely available, and the information is put away safely and can be gotten to at whatever point required.2 INTELLIGENT GATEWAY SYSTEM FOR IOTIt is estimated that there are 18.2 billion electronic devices in the world and the number is yet to increase . Therefore, there is a need for all these devices to be interconnected to monitor all these devices in real-time. IoT provides a platform that enables the interconnection of all these devices to enable the exchange of data between these devices and store the data in the cloud. This makes easier to track the device, collect the data and know the next step of action. IoT in medicine helps patients to treat their health conditions and receive attention to emergencies via a mobile phone. This helps in analyzing, capturing, transmitting and storing health data from multiple electronic devices which include sensors, insulin infusion pump, and other medical equipment. Implementation of IoT deals with sensor network, identification, communication, networking and information systems  . IoT deals with Wireless Sensor Network (WSN) technology    which is used for sensing the data and passing on the information to the network via wireless communication. Wireless Sensor Network (WSN) contains sensors which then connects to the gateway. This prototype is useful when the doctors are not available or cannot attend to the needs of a patient thus making life easy.Figure 5 shows different devices connected to the IoT. The IoT device domain acts as a gateway which connected to the network domain and stores the data in the cloud. This data can be accessed by doctors, nurses, patients, and authorized administrators. These systems can be adjusted according to the patient’s health condition. This model will not only give the present health condition of the patient but can also predict future health condition of the patient.