Research Article Fault Tolerant Mechanism for Multimedia Flows in Wireless Ad Hoc Networks Based on Fast Switching Paths Juan R. Diaz,1Jaime Lloret,1Jose M. Jimenez,1 Sandra Sendra,1,2 andJoelJ.P.C.Rodrigues 2 1Instituto de Investigaci´ on para la Gesti´ on Integrada de Zonas Costeras (IGIC), Universidad Polit´ ecnica de Valencia, Camino Vera s/n, 46022 Valencia, Spain 2Instituto de Telecomunicac¸˜ oes, Universidade da Beira Interior, Rua Marquˆ es de ´ Avila e Bolama, 6201-001 Covilh˜ a, Portugal Correspondence should be addressed to Jaime Lloret;
[email protected] Received 14 July 2014; Accepted 21 July 2014; Published 2 September 2014 Academic Editor: Jingjing Zhou Copyright © 2014 Juan R. Diaz et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. Multimedia traffic can be forwarded through a wireless ad hoc network using the available resources of the nodes. Several models and protocols have been designed in order to organize and arrange the nodes to improve transmissions along the network. We use a cluster-based framework, called MWAHCA architecture, which optimizes multimedia transmissions over a wireless ad hoc network. It was proposed by us in a previous research work. This architecture is focused on decreasing quality of service (QoS) parameters like latency, jitter, and packet loss, but other network features were not developed, like load balance or fault tolerance. Inthispaper,weproposeanewfaulttolerancemechanism,usingasabasetheMWAHCAarchitecture,inordertorecoverany multimedia flow crossing the wireless ad hoc network when there is a node failure. The algorithm can run independently for each multimedia flow. The main objective is to keep the QoS parameters as low as possible. To achieve this goal, the convergence time must be controlled and reduced. This paper provides the designed protocol, the analytical model of the algorithm, and a software application developed to test its performance in a real laboratory. 1. Introduction A wireless ad hoc network is a decentralized structure by nature. This type of network does not depend on a preexisting infrastructure such as wireless routers or access points in managed wireless networks. Instead of this, each node participates in routing tasks by forwarding data to other nodes. The purpose of these nodes is determined dynamically based on the network connectivity. An ad hoc network typically refers to any set of nodes where all of them have the same status within the network and are free to associate with any othernodeintheradiocoverage[1]. An ad hoc network is composed of several nodes connected by radio links. These links are limited by the resources of each node such as its power consumption, transmission power, computing power, memory, performance properties, and radio link properties (e.g., the duration of the connection, signal loss, interference, and noise). As radio links can be connected or disconnected at any time, a functioning network must be able to cope this dynamic restructuring, preferably in a timely, efficient, reliable, robust, and scalable way [2]. Ad hoc networks are suitable for a variety of applications such as emergency situations, armed conflicts, natural disasters [3], or environmental monitoring [4], where nodes are not dependent on a central node. This feature can improve the scalability of these networks compared to managed wireless networks. Furthermore, we can find lots of hardware available for their implementation [5]. Among lots of applications that canbeimplementedbytheadhocnetworks,wecanfindthe multimedia content distribution. Design of a multimedia ad hoc network for a certain application is influenced by several factors, such as fault tolerance [6], scalability, production costs, operating environment, network topology, hardware constraints, transmission media, and power consumption [7]. Moreover, there exist additional factors which affect the efficiency of multimedia communication in ad hoc networks such as high bandwidth demand, multimedia coding techniques, application-specific quality of service (QoS) Hindawi Publishing Corporation Mathematical Problems in Engineering Volume 2014, Article ID 361543, 12 pages http://dx.doi.org/10.1155/2014/361543
2Mathematical Problems in Engineering requirements, and delay bounds, among others. These factors aresomeofthemostimportantonesastheyserveas guidelines to design communication protocols, multimedia applications, and algorithms for efficient multimedia communications in ad hoc networks. Routing protocols for multimedia ad hoc and wireless sensor networks can be divided into location-based, hierarchical, and flat networks [8]. All of them try to solve and improve their problems and requirements. On the one hand, a hierarchical architecture seems to be more beneficial than flat architectures in terms of less energy consumption, higher functionality, better scalability, and reliability. When multimedia ad hoc networks or wireless sensor networks use a hierarchical architecture, such as I cluster-based networks, we can see that nodes have different roles or tasks [9]. This reduces the energy consumption. In addition, the Cluster-Head (CH) can perform data aggregation which avoids unnecessary data transmission and reduce the total consumed bandwidth. Finally,thenon-CHcanremaininstandbymode(turning off the radio interface) after transmitting its packets, reducing energy consumption, and avoiding communication collisions and interferences. As [10] shows, some of the main requirements of the hierarchical routing protocol in multimedia ad hoc and wireless sensor networks is to minimize the signaling overhead for cluster formation and guarantee multimedia retrieval and retransmission [11]. In addition, the routing protocol should be able to ensure good levels of QoS and Quality of Experience (QoE) in routes where multimedia and scalar data aretransmitted.Thus,thisprotocolshouldprovidescalability and reliability. However, most of current hierarchical routing protocols for multimedia ad hoc and wireless sensor networks do not take into account such key features. Finally, it is important to select the appropriate nodes to have connections between failure nodes or when a radio link is lost. We must also consider that there are applications wheretheuseofmixednetworkswithmobileandstaticnodes is considered. In these cases, the protocol should be able to implement handover mechanisms. Moreover, a protocol which implements a reliable handover mechanism should guarantee some parameters such as faded signal-to-noise ratio, residual channel capacity, and connection life time [12]. The goal of a good implementation should be a network with low handover and small end-to-end delays for multimedia applications. Packet loss ratios as well as efficient network selection processes will also be enhanced in comparison with other proposals which do not consider these parameters [13]. In this paper, we are going to propose a new fault tolerant mechanism for wireless ad hoc networks. The algorithm will be developed inside the MWAHCA framework following [10,11] specifications. The main objective of our proposal is to have an algorithm to provide fault tolerance to each multimedia flow in a wireless ad hoc network running a protocolbasedintheMWAHCAarchitecture.Wearenot going to modify the original architecture but we are going to propose a protocol enhancement and extension. This new algorithm will be analyzed theoretically and experimentally in the laboratory. The rest of this paper is structured as follows. Section 2 shows some previous proposals on multimedia ad hoc and sensor networks where the main features of these networks are analyzed. Section 3 explains the fault tolerance behavior included in the MWAHCA architecture, then, our proposal is explained, and the protocol extension in order to implement this mechanism is described. Section 4 exposes theoretical calculations to estimate the convergence time and QoS parameters for this proposal. Section 5 focus on the experimental study performed. Finally, conclusion and future work are presented in Section 6. 2. Related Work Nowadays, we can find some works about routing protocols to solve the problems we can find in multimedia wireless ad hoc and sensor networks. Most of these proposals are tested in network simulators and very few are developed for real environments. Researchers like Pagani and Rossi [14]presentedareliable broadcast protocol designed for mobile ad hoc networks. The proposed protocol was implemented on top of the wireless MAC protocol which sits over the clustering protocol. The protocol also provides tolerance in communication failures and host mobility. The reliable broadcast service ensures that all hosts in the network deliver the same set of messages to the upper layer. Their results show that the proposal provides high broadcast and multicast services as an efficient and reliable alternative to the flooding method. Gupta and Younis proposed in [15] a high-energy gateway node that acts as a centralized manager to handle the sensors. The gateway serves as a hop to relay data and commands from sensors to a distant node. They have introduced a two phase in the communication process to apply fault tolerance approach in sensor networks. This system allows detecting and recovering sensors from the failed gateways without shutting down or reclustering the system. Their approach enables fault tolerance in the system by performing periodic checks on the status of the gateways. Sensors managed by a faulty gateway are recovered by reassociating them to other clusters based on backup information created during the clustering time. Taietal.[16] developed an algorithm for detecting failures in distributed systems formed over ad hoc wireless networks. By exploiting the cluster-based communication architecture, thesystemisabletomakethefailuredetectionservice scalable and resilient to link failures. Moreover, the proposed protocol allows intra- and intercluster communication to be resilient to message loss and node failure by taking advantage of the inherent message redundancy in ad hoc wireless networks. Kuhn et al. [17] also studied distributed approximation algorithms for fault tolerant clustering in wireless ad hoc and sensor networks. Other authors such as Xue and Nahrstedt [18]proposeda new routing service named best-effort fault tolerant routing (BFTR). The design of BFTR is not to detect whether routing path consists of any misbehaving node, but to evaluate its routing feasibility based on its end-to-end connection. Analytical and experimental results demonstrate that BFTR
Mathematical Problems in Engineering 3 greatly improves the ad hoc routing performance in the presence of misbehaving nodes. On the other hand, some researchers proposed fault tolerant routing protocols for ad hoc networks. Among them, Boukerche et al. [19] proposed two routing protocols: periodic, event-driven, and query-based protocol (PEQ) and its variation CPEQ. They are two fault tolerant and lowlatency algorithms that meet sensor network requirements for critical conditions supervision in context-aware physical environments. PEQ uses a small amount of information for the routing mechanism (basically the hop level and routing table). When a failure is detected, unlike other solutions that use three way protocols, PEQ broadcasts a SEARCH packet to its neighbors and receives a reply with their hop level and identification. The neighbor with lower hop levelischosenasthenewdestination.Inthisway,loop back is avoided. Bheemarjuna Reddy et al. [20]presented MuSeQoR, a new multipath routing protocol that tackles the twin issues of reliability (protection against failures of multiple paths) and security while ensuring minimum data redundancy. Reliability is addressed on the context of both erasure and corruption channels. Authors also quantified the security of their protocol in terms of the number of eavesdropping nodes. The requirements of reliability and security in a session are specified by a user and are related to the parameters of the protocol adaptively. This relationship shows how the protocol attempts to simultaneously achieve reliability and security. In addition, the protocol minimizes the redundancy by using optimal coding schemes and by dispersing the original data. Chao and Chang [21]proposedafaulttolerantrouting protocol called Sensor On-demand Multi-path Distance Vector Reliable (SOMDV-R) routing protocol for wireless sensor networks which support reliable data delivery. This protocol takes into account reliability demand and link quality to determine the number of desired paths. Results show that, in comparison with Ad hoc On-demand Multi-path Distance Vector (AOMDV) and AODV, SOMDV-R can achieve higher packet delivery rate, lower routing overhead, and lower mean latency, upon different channel conditions. Melamed et al. [22]alsopresentedasimplefaulttolerantprotocolcalled Octopus. This proposal showed great efficiency in routing tasksforlargeMANETswhichcanworkwithmobilenodes. Finally, regarding power consumption, Antoniou et al. [23] proposed a new energy efficient and fault tolerant protocol for data propagation in wireless sensor networks. It is called Variable Transmission Range Protocol (VTRP). The main idea of this protocol is based on the varying range of data transmissions. The protocol exhibits high fault tolerance, by bypassing obstacles or failed sensors, and increases network lifetime (since critical sensors, that is, close to the control center, are not overused). The protocol was evaluated and compared, in terms of performance measures and energy consumption, with representative protocols such as Licklider Transmission Protocol (LTP). The results show that their protocol achieves significant improvements in energy efficiency and network lifetime. As we have seen, most of these works are focused on solving some of these issues individually. Our proposal tries to solve the problem of fault tolerance basing its operation on a smart protocol. In addition, this proposal has been tested in a real environment to demonstrate its performance. 3. Fault Tolerance in the Multimedia Wireless Ad Hoc Network In this section, we are going to explain how fault tolerance is managed in the MWAHCA architecture. As proposed in [11], MWAHCA is a multimedia wireless ad hoc network architecturebasedonclusters.Theaimofthismodelisto provide the reference framework in order to build an efficient and robust network protocol which can improve QoS and QoE parameters on multimedia transmissions through ad hoc wireless networks. The architecture has been successfully implemented in a wireless ad hoc protocol [13]andtestedon IEEE 802.11 networks and wireless sensor networks (WSN) [10]. In order to achieve our goals, a new decision algorithm is proposed to achieve fault tolerance for multimedia wireless ad hoc networks. The proposed mechanism runs independently for each multimedia flow when there is a node failure in the network. In order to avoid the degradation of QoS parameters such as latency, jitter, or packet loss, the algorithm looks for a fast switching path while the system is being restored or a new optimal path is being recalculated and guaranteed. The fast switching path introduced by the algorithm is not a guaranteed route and it will be dismounted when an optimal path is found. The main objective of this proposal is to reduce the convergence time when a network failure happens and the end user could keep receiving multimedia packetsassoonaspossibleafterthenetworkfailure.Asthe MWAHCA architecture is being used as framework base, the algorithm must be consistent with this model and no architecture modifications are allowed. Finally, an extension of the protocol implemented in [10] is proposed. This protocol is based on the MWAHCA model. We introduce the algorithm and the analytical model to test the consistency of the proposal. Several types of messages are added to the original table and some new exchange messages are defined. 3.1. Adding Fault Tolerance to the MWAHCA Architecture. IntheMWAHCAarchitecture,nodesaregroupedinseveral clusters following the Multimedia Init Profile (MIP) configuration as described in [11]. The MIP configuration collects the hardware characteristics that a node must fulfill in order to join a cluster. Following the reference model, only adjacencies between nodes with the same MIP are allowed; thus each cluster in the network is created by joining nodes with similar behavior and available resources. MIP configuration is initially assigned to cluster nodes. It limits the typesofmultimediaflowsthatcanbemanagedbyaspecific cluster node. In this paper, we are going to focus only on thefaulttolerancemechanismbasedonfastflowrecovery, but we are not going to go deep inside the whole network structure or in the different process to make or destroy an adjacency. The starting point of this research is a multimedia
4Mathematical Problems in Engineering MIP cluster Ad hoc wireless network Fault node Cluster node Active node Gateway node External node Figure 1: IP cluster built into the wireless ad hoc network. wireless ad hoc network where at least one cluster has already been created. This wireless ad hoc cluster provides us with the transport infrastructure to deliver multimedia data from a source node to a destination node. They can be both internal and external to the ad hoc wireless network. Figure 1 describes the components of this scenario. Gateway nodes (GN) are defined in the MWAHCA architecture to be used as a bridge between two different networks or with external nodes. A GN is connected with the wireless ad hoc network by a wireless interface card, but they are also connected to another external network with a different interface card. This external network can be wired or wireless, but in this research we only use the wireless connections option. When a cluster node has to transmit multimedia packets to another cluster node, it looks for the best route according to the routing algorithm provided by the MWAHCA architecture. This algorithm examines the whole cluster topology, which is defined by the assigned MIP, and it weights up the resources and characteristics of the nodes into the path in order to select the optimal multimedia route. When the best path is calculated, then, the required resources for the multimedia streaming are reserved by exchanging messages between the source and destination nodes, before starting sending multimedia packets. All nodes in the path are checked to guarantee that they have enough capacity and no more multimedia connections are allowed in a node when bandwidth resources run out. If the rouging algorithm offers different paths between source and destination nodes, only the best route will be selected according to the topology characteristics and the multimedia metrics. When a node on the selected route cannot make an appropriate resource reservation to accomplish the request from the source node, it sends a notification message back to the source node; thus it could eliminate this saturatednodefromthetopologyusedbythealgorithmto avoid bottlenecks and traffic congestion. Then, a new path is calculated and the resource allocation is tested again. Because routing algorithm works independently for each flow, this mechanism provides load balancing between two nodes into the same cluster. Sending different multimedia flows between two nodes by different routes keeps latency, jitter, and lost packets under the thresholds criteria established by the MIP configuration. When the resource allocation is successfully completed and multimedia streams are sent through the same path and the same nodes, thus jitter and latency will be the lowest because of the routing algorithm calculations. But the problem comes when a node in the path is disconnected, faileddown,orwhenitjustdisappearsfromthecluster. Neighbor nodes will detect the fault node when it stops sending messages. Then, they update their state tables and send this change of topology to other nodes in the same cluster. When the source node finds out that there is a multimedia path that is not valid anymore because of a change in the topology, it stops sending multimedia packets and runs the routing algorithm again. If there is an alternative path, and the nodes meet the requirements, then a new route is built between the source and destination nodes. Consequently, the MWAHCA architecture can be considered inherently fault tolerant because of its capacity to adapt when changeshappen.However,thearchitecturedoesnotprovide any specific fault tolerant mechanism; thus the convergence time needed to recover the multimedia flow can be high enough to break the multimedia communication. Even when the transmission is kept, the QoS parameters and the quality perceived by the end user will be really harmed in this time interval. The convergence time depends on many factors: topology size,amountofnodesintothecluster,averageadjacenciesbya node, average distance between nodes, and node settings such as timers. From previous studies performed by us through simulations and real scenarios [10,13], the convergence time can be estimated and it takes values in a wide range of values, on general between one and sixty seconds. For some applications, such as Internet Protocol Television (IPTV) or Video on Demand (VoD), convergence time values around a few seconds can be admissible because the multimedia transmission will be lost for a while but it will be restored quickly. A fault node will cause some sort of degradation in the quality of service perceived by the final user, but the transmission will not be interrupted. Nevertheless, if there is a real time bidirectional communication, like a VoIP call or a video conference between two or more people, and the destination node stops receiving the audio or video signal only a few seconds, the communication breaks down. Moreover, the user may end the transmission because he/she cannot hear or see anything. Another different problem that we can face with this fault tolerance behavior is the suboptimal routing. If a new route is calculated and the multimedia transmission is restored, whenthefailednoderestartsanditcomesbacktothecluster, thebestpathwillnotbecalculatedagainandtheavailable resources can be underused. The related problems with the original behavior bring us to design a new complementary algorithm valid for any wireless ad hoc network in general and for MIP clusters based on the MWAHCA model in particular. In the next subsection this proposal is detailed.
Mathematical Problems in Engineering 5 3.2.FaultTolerantMechanismBasedonaFastSwitchingPath. Our objective is to design a fault tolerant mechanism that should be able to restore a multimedia transmission path in less than a second. Moreover, this mechanism will be applied to individual unidirectional flows; thus if two or more flows are affected by a node failure, each one of them will be recovered separately. A bidirectional multimedia communication, VoIP call o video conference, is seen by this algorithm as two different unidirectional and independent flows. To achieve this objective, the algorithm establishes a temporary route called fast switching path (FSP). A specific FSP will be assigned to each affected flow to quickly switch from the broken path to a new optimal route when it is calculated. The purposeofthisFSPistoreducetheconvergencetime,butat the same time to keep QoS parameters inside an admissible range of values. Multimedia transmissions usually use UDP protocol at the transport layer; thus when a node fails, it is not possible to completely avoid the packet loss because the acknowledge packets are not sent to confirm the correct packet reception. Hence, even with convergence time values lower than a second, some quality degradation will be always expected. When a node is transmitting multimedia packets and the next hop in the path stops sending messages back to it, thenodebecomesanactive node (AN). On one hand, the role of an AN seems similar to a source node, because it has to run the routing algorithm to calculate the best path from this point to the destination. But, on the other hand, an AN does not make a reservation because there is already a multimedia transmission in progress and it needs to restart sending packets as soon as possible. When the algorithm determines the new next hop to the destination node, then theactivenodesendsaWarning Message addressed to the destination through this hop. Each hop between the active and the destination node that reads the warning message updates its information table and forwards the message to the new hop. The warning message is only used to advise the nodes about the new path to retransmit the packets as long as the resource starvation does not happen. Consequently, in the first stage of the fault tolerant mechanism, there will be two concatenated paths for the same multimedia flow in the same cluster. First path is part of the original broken routeanditgoesfromthesourcetotheactivenode;this is a guaranteed path because all nodes keep the resource allocation initially performed. The second path goes from the active to the destination node and it is the fast switching path. FSP does not have any guarantee of service and packet loss may happen, but destination will keep receiving packets just somemillisecondsafterthenodefailurehasoccurred. In order to better understand how the proposed mechanism works, we are going to study an example topology. Figure 2 shows two multimedia transmissions along the same MIP cluster. In this example topology there are twelve nodes,twoofthemareGNsandtheyallowtheadhoc wireless network to connect with external nodes. The system is designed to provide multimedia transmissions between internal sensor nodes, between internal and external nodes or vice versa, or between external nodes. In this example we will describe the worst case, between external nodes. So, GN1 GN2 MIP cluster N11 N21 N31 N12 N22 N32 N13 N23 N33 S2 S1 Fault node Cluster node Active node Gateway node External node C1 C2 Figure 2: Two multimedia flows crossing along an ad hoc network using the optimal path. Figure 2 shows how multimedia transmissions go from the left to the right external nodes. The wireless ad hoc network is only used as a transport network between external nodes. Thus, all the multimedia traffic that will be considered in this example crosses the ad hoc network from the gateway node 1 (GN1) to the gateway node 2 (GN2) because only a unidirectional flow has been taken into account. Some multimedia applications require bidirectional flows; however, as the fault tolerant mechanism is applied independently to unidirectional flows, this scenario holds all the necessary components to understand how it works. Moreover, it could represent a real case study where the wireless ad hoc network is used to deploy a multimedia service, extending their scope and coverage. Figure 2 also shows the best path calculated by the routing protocol for both multimedia flows when all nodes into the cluster are working properly, the adjacency processeshavefinished,andthenetworkhasconverged.All nodes in the ad hoc network have the same characteristics, the same available resources, and they have been previously configured with the same MIP settings. Therefore, the main criterion used by the routing algorithm is to minimize the number of hops between GN1 and GN2. Figure 3 showstheFSPcalculatedfortheredflowwhen N31 node fails down. In the described scenario a node failure issimulatedbyshuttingdowntheN31node(therednodein the diagram). In a certain moment, packets of the red flow transmittedbytheN21nodearelost.WhenN21nodebreaks the adjacency with N31 node, it sends a Cluster State Update (CSU) message to the remaining neighbor nodes. Next, with the purpose of restoring the multimedia transmission quickly,theactivenodestartsthefaulttolerantmechanism running the routing algorithm to find out the FSP. Looking at the diagram, we can see that the best option to get to the destination is using N22 as next hop. Then, N21 sends to this node a warning message andtheN22nodewill retransmit the warning message totheN32node,andthis one to the GN2 node, who is the final destination inside the MIP cluster. Immediately after the active node has sent the warning message, multimedia packets transmission for the redflowisstartedagain,butnowitisdonethroughtheN22 node. The established fast switching path allows the system to
6Mathematical Problems in Engineering N11 N21 N31 N12 N22 N32 N13 N23 N33 S2 S1 GN1 Fault node Cluster node Active node Gateway node External node GN2 C1 C2 MIP cluster Figure 3: Fast switching path (FSP) recovery after a node failure. keep delivering packets to the destination while minimizing thenumberoflostpacketsandtheamountoftimethat the service was interrupted because of the node failure. Fast switching moves the system to a transitional state, where the main objective is to provide a continuous delivery of packets although the quality of service of these packets cannot be completely guaranteed. In this transitional path, as observed in Figure 3, the path between source and destination gateway nodes is not the optimal route because it has been modified bytheactivenodetoavoidthefailednode.Furthermore, another inconvenient for this transitional route is that the restored multimedia flow is crossing several cluster nodes that are already managing some other multimedia flows, like the blue flow. Thus, if the fast switching path is kept during a long time, it can contribute to make a bottleneck and the network couldbecomecongested.InthetopologyshownatFigure 3, red and blue flows are being retransmitted through N22, N32, and GN2 nodes. This is the optimal route only for the blue flow which also has a valid resource reservation in these nodes. But red flow does not have any reservation between the N21 and the GN2 node; thus when one of these nodes runs out their bandwidth resources, the red multimedia packets will be dropped. Blue multimedia packets will not be harmed because the resource reservation for this multimedia flow is kept at all times. Given the aforementioned reasons the transitional path shouldbechangedassoonaspossibletoanewstable path. In order to know the optimal route, the path must be calculated at the source node of this flow (or the first hop in the MIP cluster if the source node is an external node), and not in the active node. It can be be done, because theactivenodesendsafault message back to the source gateway node asking for a new route calculation, but in this process multimedia packets keep being sent through the transitional route provided by the FSP. Moreover, when thesourcegatewaynodereceivesthefault message it keeps sending multimedia packets through the current route until a new route is calculated by the routing algorithm and the resource reservation of this final route is performed. Figure 4 showsthenewoptimalroute,calledrestored path, fortheredmultimediaflow,wherethenumberofhops has been minimized (underused nodes were preferred). For N11 N21 N31 N12 N22 N32 N13 N23 N33 GN2 C1 C2 S2 S1 GN1 Fault node Cluster node Active node Gateway node External node MIP cluster Figure 4: Restored path after the node failure. the nodes in this new route, a normal resource allocation has been performed following the MWAHCA architecture specifications and the original developed protocol [11,13]. Finally, when the resource reservation for the restored path is completely confirmed, the source gateway node stops sending red multimedia packets over the FSP and starts sending them along the restored path. Additionally, a message is sent to the active node to release the assigned resources in the nodes in this path. 3.3. Protocol Extensions. With the proposed fault tolerance mechanism, MWAHCA architecture has not been modified and the processes and messages defined at the network protocol remain identical. This was one of the initial objectives of this proposal. The other one was to reduce the recovering time when a node fails. It will be demonstrated later on a theoretical study first and in a performance study in a laboratory test bench. Thefaulttolerantmechanismcanbeincorporatedtothe existing system by an extension of the protocol. To achieve it, we need to define several new types of messages and some messages exchange processes. Because of the space limitation, only the new type of messages to achieve fault tolerance are introduced and exposed in this paper. The remaining types ofmessagesandprocessesareusedasdefinedin[10]. Table 1 shows the new types of messages definition for the fault tolerant mechanism. MEDIA INFO structure holds information about the source and destination multimedia flow, the required resources, and the original path. Figure 5 shows the messages exchange has taken place between the affected nodes when a specific node fails in the cluster. When the routing algorithm selects the neighbor node, only the warning message is sent before the multimedia streaming packets are sent again from this new path. If the neighbor node has a valid route to the final destination, and this route does not include the active node, then it sends an ACK warning message to the active node to confirm the new route. When this happens, the active node will keep sending multimedia packets. The active node does not wait for the ACK warning message reception; thus the latency time for the buffered packets in
Mathematical Problems in Engineering 7 Table 1: Fault tolerant messages. FAULT TOLERANCE MECHANISM MESSAGE TYPE LENGTH VALUE DESCRIPTION WARNING 0x41 13–41 bytes NODE ID MEDIA INFO Message to inform the next nodes that a multimedia flow without guaranteed services is going to be sent ACK WARNING 0x42 13–41 bytes NODE ID MEDIA INFO Confirms the warning message when there is a valid route from this point to the destination REJECT WARNING 0x43 13–41 bytes NODE ID MEDIA INFO Reject the warning message when there is notanyvalidroutefromthispointtothe destination END FAULT TRAN 0x44 13–41 bytes NODE ID MEDIA INFO Releases resource reservation and notifies the previous hop in the path when a node fails NODE FAULT 0x45 13–41 bytes NODE ID MEDIA INFO Notification of a node failure from the active node to the source node ACK NODE FAULT 0x46 13–41 bytes NODE ID MEDIA INFO Confirm the node failure message sent to theactivenode Active node Neighbor node Destination GN Intermediate node Warning ACK warning Multimedia packets Warning ACK warning Multimedia packets Warning ACK warning Multimedia packets Multimedia packets Figure 5: Fast switching path stage messages exchange. active node is significantly reduced. The same process is repeated in every hop until the destination GW is reached. The neighbor, intermediate, and destination gateway nodes keep the flow information held into the MEDIA INFO structureinaseparatedtableofflowswithavalidresource reservation; therefore, when the node becomes congested, it starts dropping packets from no guaranteed flows. When the gateway destination node starts receiving multimedia packets again, it stops the oldest path because it is not valid anymore. The end fault transmission message is used instead of the original end transmission message in order to notify the nodes in the path that the transmission is ending because of a node failure. Figure 6 shows the messages exchange when a node in the FSP does not have enough available resources because it runs out its bandwidth. This mechanism is implemented to avoid the bottleneck formation. The intermediate node, which has its resources exhausted, stops forwarding the warning message to the next hops. Instead of that, it answers with a reject warning message. Then, the previous node stops forwarding multimedia packets and forwards the reject warning message back to the path. When the reject message Active node Neighbor node Destination GN Intermediate node Warning ACK warning Multimedia packets Warning Reject warning Multimedia packets Reject warning Multimedia packets Figure 6: Fast switching path (FSP) fails because of resource starvation. arrives to the active node, the multimedia packet stops until a new alternative FSP is calculated by the routing algorithm. If there is no valid alternative FSP from the active node to the destination node, the active node definitely ends the multimedia transmission by sending an end fault transmission message tothesourcenodebyusingtheoriginaloptimalpath. In this case, the source node starts the forward process to find a new route to the destination. Asstatedabove,thenewFSPiscreatedonlytokeepthe quality of service parameters as good as possible, but the active node has to inform the source gateway node that the current path has failed and a new optimal route has to be recalculated. A node fault message issentfromtheactivenode tothesourcenodewiththeMEDIAINFO structure of the multimediaflowthatmustberestored.Figure 7 describes this scenario where the source GN finds a new optimal alternative route to the destination GN and immediately starts transmitting multimedia packets. This new path will be a guaranteed route because all intermediate nodes will have confirmed the resource reservation with a reserve resources
8Mathematical Problems in Engineering Active node Source GN Destination GN Intermediate node Node fault ACK node fault Request forwarding Request forwarding Reserve resources Reserve resources Multimedia packets Figure 7: Recovery route procedure. Source GN Active node Destination GN Intermediate node ACK node fault End fault tran End fault tran Multimedia packets Figure8:Procedureofresourcereleaseonafailedpath. message. The source GN node will send an ACK node fault message to the active node in order to notify it that the temporary fast switching route should be disassembled. WhentheactivenodereceivestheACK node fault message, it stops forwarding multimedia packets and it sends an end fault tran to the destination node in order to release the flow information from their tables. Figure 8 shows how the fast switching path is unmounted. 4. Analytical Model of Convergence Time and QoS Parameters In this section, the convergence time for the fault tolerant mechanism described above is described analytically. Then, the quality of service parameters is analyzed to know the impactofafailednodeinthequalityofmultimediatransmissionperceivedbytheenduser. We define the convergence time (𝑇)asthetimeinterval between a node into the cluster which fails and a new route to the destination which is established. We assume 𝑛𝑎hops between the source node into the MIP cluster and the active node, the node before the failed node. The latency time to the active node (𝐿𝑎) is defined as the time needed by a message sentbythesourcenodetoreachtheactivenode.Thelatency between the source node and the destination node into the cluster (with a distance of 𝑛𝑑hops) is defined as 𝐿𝑑.𝐿𝑤is the time needed to send a warning message from the active node. Then, we can estimate the convergence time from two conditions: when the fault tolerant mechanism algorithm is not used, 𝑇1,andwhenitisused,𝑇2.Then 𝑇1≥𝐿𝑎+2𝐿𝑑, 𝑇2≥𝐿𝑤.(1) If we assume that the processing time is the same in both thesourceandactivenodeandwemaketheapproximation of taking the latency as a linear function of the number of hops, we can express 𝐿𝑎=𝑛 𝑎⋅𝐿,𝐿𝑑=𝑛 𝑑⋅𝐿,and 𝐿𝑤=𝐿. Following these approximations, we can calculate the difference between the convergence time in the two considered conditions. It is estimated from (1)that Δ𝑇 = 𝑇1−𝑇 2≈𝐿𝑎+2𝐿𝑑−𝐿𝑤=(𝑛𝑎+2𝑛𝑑−1)𝐿. (2) If we call Rthe average number of packets sent by a specific multimediaflowpersecond,thenwecancalculatethe average packet loss (𝑃) in the two aforementioned conditions: 𝑃1≥(𝐿𝑎+2𝐿𝑑)𝑅, 𝑃2≥𝑅𝐿 𝑤.(3) Andfollowingthesameapproximationsthanin(2), the difference between lost packets when we use the fault tolerant mechanism is given by Δ𝑃 = 𝑃1−𝑃 2≈(𝐿𝑎+2𝐿𝑑)𝑅−𝑅𝐿𝑤=(𝑛𝑎+2𝑛𝑑−1)𝑅𝐿. (4) In order to have a picture of the behavior of the proposed model, we will show how the system performs in this model for the cases of 𝑛𝑎= {2,3,4}.Wewilltake𝑛𝑑=4and we assume 𝑅 = 400.Theconvergencetimeandnumberoflost packets can be represented as a function of 𝐿.Figures9(a) and 9(b) show the linear function of Δ𝑇and Δ𝑃when 𝐿rises. The improvement achieved on reducing the convergence time and the number of packets will be bigger when more delay introduces a single node. Moreover, higher 𝑛𝑎provides higher Δ𝑇 and Δ𝑃 values. Thus, results can be especially interesting on WSN where nodes have really limited resources. 5. Performance Study In this section, the measurements obtained from the test bench are presented. The fault tolerant mechanism described in this paper has been incorporated to the protocol explained in [10]. The protocol extension has been programmed in JAVA language. Figure 10 shows the topology used in these tests. Each dashed line matches the adjacency between two different nodes. The yellow node, N22, represents a congested node where the available resources have been reduced by other multimedia flows. This node has a large number of adjacencies. The paths between the gateway nodes are longer when they cross the N22 node. Black nodes are gateway nodes; GN1 is connected to the external node S1, which is running the VLC software as a video streaming server, and GN2 is connected to the external node C1, which is running thesameVLCsoftwarebutasaclientofvideostreaming receiving the S1 signal. Green nodes are cluster nodes with identical characteristics; all of them have the same amount of available resources. The only criterion used by the routing algorithm is the number of hops because of the laboratory settings and the node configurations. Only a multimedia unidirectional flow is being transmitted from S1 node to C1
Mathematical Problems in Engineering 9 0 100 200 300 400 500 010203040 L (ms) ΔT (ms) ΔTfor na=2 ΔTfor na=3 ΔTfor na=4 (a) 0 50 100 150 200 0 10203040 ΔP (packets) L (ms) ΔPfor na=2 ΔPfor na=3 ΔPfor na=4 (b) Figure 9: (a) Δ𝑇 as function of L,(b)Δ𝑃 as function of L. GN1 GN2 N11 N31 N12 N22 N32 N13 N33 C1 S1 MIP cluster Figure 10: Experimental topology. node. When transmission starts in S1, multimedia packets are flooded to GN1 where the developed protocol is used. GN1 extracts the multimedia information into the IP, UDP, and RTP headers to build the MEDIA INFO structure. Then, the routing algorithm calculates the optimal route to reach the GN2 node, which is the destination node into the ad hoc cluster. The N22 node is discharged because the minimum amountofhopsisfourwhiledistancealongtheupperpath, GN1-N11-N31-GN2, and the lower path, GN1-N13-N33-GN2, is only three hops. There is no load balance implemented; therefore the routing algorithm selects the route whose next hops have a lower NODE ID. In Figure 10,itisN11node.In summary, if the video streaming starts after the MIP cluster has converged, the route selected will be GN1-N11-N31-GN2, with three hops. We will call this initial route as baseline path. Once, all nodes in the MIP cluster are working properly, we gathered measurements of latency, jitter, and packets loss at C1. They represent the optimal values for this specific network arrangement because the optimal path has been established when all nodes are working and no other multimedia flow or IP traffic is on the ad hoc network. Measured values for QoS parameters depend on the bandwidth consumption spent by the selected video codec. Latency, jitter, and lost packets values of a video streaming with a higher bandwidth consumption codec will also be higher. In order to validate the results, independently of the codec features, three different codecs have been selected in this study: 600 Kbps, 1.500 Kbps, and 3.000 Kbps. While C1 is receiving video streaming, a node failure is introduced in the network by forcing to shut down N31 node. Following the fault tolerant mechanism introduced in this paper,theN11nodebecomesactivenodewhentheN31failure is detected. Thus, it looks for an alternative path through the other neighbor node, N22. We called this temporary route as fast switching path. It consists of the optimal path from GN1 to N11 concatenated to the new temporary route calculated by the routing algorithm between N11 and GN2. The whole fast switching path is GN1-N11-N22-N32-GN2. The expected results are that QoS values in this stage must be worse than baseline path values because this is not the optimal route and no resources reservation has been performed on N22, N32, and GN2 nodes. However, if fault tolerant algorithm is working properly, the video streaming will not be interrupted at any time. At the final phase, the recovery mechanism tries to find a new optimal path between GN1 and GN2. When the active node, N11, sends the fault node message to GN1, a new forwarding process starts in the source gateway node. Looking at the diagram of the topology we can see that the new optimal path will be composed by the following nodes: GN1-N13-N33-GN2. This third and definitive path is called recovered path.Then,measurementsoflatency,jitter,andlost packets are performed using a video streaming of 600 Kbps, 1.500 Kbps, and 3.000 Kbps in three different conditions. (i) Baseline path:averagevaluesarecalculatedfromthe last 100 multimedia packets before the N31 node fails. (ii) Fast switching path:averagevaluesarecalculatedfrom all packets received by C1 in this stage. While this is a temporary path, only a limited number of packets (usually less than one hundred) will be sent along this route. (iii) Recovered path:averagevaluesfromthefirst100 multimedia packets received by the C1 node have taken 10 seconds after the N31 went down. A 5-second waiting time is established to ensure that the MIP cluster topology has converged and the fault tolerant mechanism has already established the recovered