Real-Time Traffic in Ad-hoc Sensor Networks - Semantic Scholar

3 downloads 1087 Views 88KB Size Report
monitoring), environment observation (e.g., highway traffic monitoring), health control .... are reported assuming the network to be error-free during transmission.
Real-Time Traffic in Ad-hoc Sensor Networks Luciano Bononi

Lorenzo Donatiello

Marco Furini

Computer Science Department University of Bologna 40127 Bologna, Italy Email: [email protected]

Computer Science Department University of Bologna 40127 Bologna, Italy Email: [email protected]

DSSCQ Department University of Modena and Reggio Emilia 42100 Reggio Emilia, Italy Email: [email protected]

Abstract—The usage of sensors is emerging in the nowadays scenario where safety related applications are more and more used. These applications have timing constraints that need to be met by the control system. Thus, guaranteeing timeliness properties is considered a key challenge for research on wireless sensor networks. Among the different components that need to address this problem, we focus on the communication subsystem and, in particular, on the MAC protocols that handles transmissions. To provide timeliness behavior, the employed MAC protocol has to provide a time-bounded service. The contribution of this paper is to investigate the performance of two wireless MAC protocols that can be employed in wireless sensor networks: IEEE 802.11e and WRT-Ring. The former is part of the well know IEEE 802.11 standard, whereas the latter has characteristics that well fit the requirements of wireless sensor networks. Results show that two protocols have similar performances for networks with limited devices and/or traffic, whereas when devices and/or traffic increases, WRT-Ring has to be preferred.

I. I NTRODUCTION Sensor networks are used in many areas, from defence and surveillance to health or intelligent homes, and applications based on wireless sensor networks are emerging nowadays [1], [2], [3]. Examples include safety related applications (e.g., fire monitoring), environment observation (e.g., highway traffic monitoring), health control (e.g., medical care), and weather forecast (e.g., flooding control). Many of these sensor-based applications have timing constraints that require a sensor to: i) sense a physical phenomenon (e.g., temperature), ii) process the sensed value, and iii) communicate with other sensors, in a bounded and guaranteed time. The importance of timing constraints in wireless sensor networks is growing, and guaranteeing a timeliness behavior is considered a key challenge for research on wireless sensor networks [4]. The respect of the application timing constraints needs to be addressed by the whole system that handles the application: from wireless networking protocols to operating systems, from middleware services to data management, from programming models to theoretical analysis [5]. Looking at the communication sub-system, the network should guarantee an upper bound to the worst-case transmission time in order to support sensor-based applications that have timing constraints [6]. In fact, communication in a timely fashion is fundamental to correctly support real-time applications. Since timely communication is typically supported at

the Medium Access Control (MAC) layer, the employed MAC protocol has to provide a time-bounded service [7]. Many new MAC protocols are currently being proposed and tested for wireless sensor networks, but most of them focus on energy efficiency, and not on timing constraints [8]. Therefore, MAC protocols with timing features are desirable. One can think of using real-time MAC protocols designed for ad-hoc networks, but although wireless sensor network and ad-hoc networks have several common characteristics, there are few important differences: in ad-hoc networks, nodes cooperatively organize themselves into a communicating radio network, moving and adapting to changes in the environment, whereas in sensor networks sensors slightly move or do not move at all. However, this does not mean that wireless sensor networks have fixed topology; in fact, changes may occur because of the changing nature of the wireless link and the death of sensors due to technical problems or battery exhaustion. Another important difference is that communication among nodes in ad-hoc networks might be done in a multi-hop way, each node being a router for other nodes’ communications, whereas in sensor networks the communication among nodes is likely to be done in multi-hop transmissions, as the node’s embedded radio interface might be not powerful enough for the signal to reach the destination in one hop; therefore intermediate nodes are used to relay messages. In the literature, different wireless MAC protocols have been proposed to deal with real-time transmission. For instance, IEEE 802.11e is an amendment of the well-know IEEE 802.11 and aims at supporting real-time transmissions in a wireless environment; TBMAC [9] provides a delay bounded service using CDMA technology to avoid transmission collisions: the delay bounded service is provided requiring all the mobile hosts to have a common clock and the system needs to be aware of the exact geographic position of each mobile host; TPT (Token Passing Tree) [10] supports real-time applications in ad-hoc networks in which terminals have low mobility (e.g., indoor scenario); WRT-Ring [11] have similar characteristics, but provides a better service than TPT. The contribution of this paper is to investigate the performance of two wireless MAC protocols that can be employed in wireless sensor networks: IEEE 802.11e and WRT-Ring. The former has been chosen as it is part of a widely diffused standard, whereas the other has been chosen as its characteristics well fit with requirements of wireless sensor networks (e.g.,

multi-hop transmissions, low mobility of devices, and possible sudden variation of the network topology due to devices that stop working). Through a simulation study we analyze the goodput and the MAC delay; the goodput represents the number of bits per second that a source is able to deliver to the destination, whereas the MAC delay is the time that elapses between the arrival of a packet (of data) at the head position of the output queue and the arrival at its destination. Results reveal practical design suggestions: for networks with limited devices or with limited traffic the two protocols achieve similar results, whereas for networks with a considerable number (> 20) of stations or traffic, WRT-Ring should be preferred. The remainder of this paper is organized as follows. In section II we briefly overview IEEE 802.11e and WRT-Ring; Section III presents the evaluation of the two protocols and their comparison. Conclusions are drawn in section IV. II. BACKGROUND In this section we briefly overview the characteristics of IEEE 802.11e and of WRT-Ring. A. IEEE 802.11e IEEE 802.11e is an approved amendment to the IEEE 802.11 standard that defines a set of Quality of Service enhancements for wireless LAN applications through modifications to the Media Access Control (MAC) layer. It has been designed to support delay-sensitive applications. This version introduces the concept of traffic categories with the Enhanced Distribution Coordination Function (EDCF). Each station has eight traffic categories (i.e., every packet to transmit has its own priority). Using EDCF, stations try to send data after detecting the medium is idle and after waiting a period of time defined by the corresponding traffic category called the Arbitration Interframe Space (AIFS). A higher-priority traffic category will have a shorter AIFS than a lower-priority traffic category. To avoid collisions, a station waits for a random number of time slots (known as a contention window) before attempting to transmit data. If another station transmits before the countdown has ended, the station waits for the next idle period. The length of the contention window is defined with CWmin and CWmax. EDCF also defines the maximum time a station can transmit once it accesses the network (with the parameter TXOP). A detailed description of IEEE 802.11e can be found at http://ieee802.org/11/. Here, we highlight that this protocol provides probabilistic (and not absolute) timing guarantees to the applications. B. WRT-Ring WRT-Ring [11] is a distributed real-time MAC protocol that supports real-time and generic applications in ad-hoc networks. WRT-Ring is designed to be used in scenarios where

devices have limited mobility in a limited space (e.g., indoor scenario). WRT-Ring operates in slotted networks, provides two types of service (delay bounded and best-effort), and allows concurrent access transmissions by using CDMA technology to avoid collisions. Each node is required to have two different output queues: one for the real-time and one for the non realtime traffic (the former has higher transmission priority than the latter). Briefly, the protocol organizes all the devices as a virtual ring and uses an access mechanism to control transmissions and to integrate real-time and non real-time traffic. The access mechanism is based on a control signal that travels into the virtual ring. Every time this signal visits a station, it gives transmission authorizations. A station can always transmit as long as it has transmission authorizations. The number of such authorizations is defined by the call admission procedure and may vary from station to station. The transmission is done using CDMA and transmitter-based spreading codes. Once a packet is transmitted, it travels from its source to its destination hop by hop. The control signal travels into the network but can be seized by a station that has real-time traffic to transmit and still have transmission authorizations since the previous visit of the control signal. When released (if captured) or when passed (if not captured) the control signal provides new transmission authorizations to the visited station. The access mechanism provides a time-bounded service (i.e., an upper bound to the network access time) and is proved to be fair (i.e., stations have the same opportunity to access the network). Since the protocol operates in a wireless environment, WRT-Ring is provided with a mechanism that manages the dynamic variations and failures of the virtual ring. Briefly, the mechanism works as follows: when the control signal visits a station, this one can become an ingress station with a certain probability. An ingress station stops all the transmissions in the network and listens to the wireless channel for a predefined period of time in order to discover new stations that want to join the existing network. If no stations are asking to join the network, the ingress station informs all the other stations that transmissions are no longer stopped; conversely, if new stations want to join the network, the ingress station is in charge of re-building the virtual ring embedding the new requesting stations. After building the virtual ring, transmissions are allowed. This mechanism does not compromise timing guarantees, as the upper bound also include the time to manage dynamic variation of the network topology. A detailed description of WRT-Ring can be found in [11]. Here, we highlight that the protocol provides absolute timing guarantees to the applications. III. E VALUATION In this section we investigate the performance of IEEE 802.11e and of WRT-Ring. As previously mentioned, these protocols have been chosen as the former is an amendment of

The simulation settings for WRT-Ring are the following: • Channel data rate of 11 Mbps; • The number of slots circulating into the virtual ring is equal to the number of stations; • Network slot length of 53 bytes; • Probability of becoming an ingress station when receiving the control signal is equal to 4%; • The number of real-time authorizations for every round of the control signal round is equal to 5; • The number of non real-time authorizations for every round of the control signal is equal to 5; • Applications have always non real-time traffic to transmit (non real-time traffic data rate is unlimited). As in most of the work on the subject, the simulation results are reported assuming the network to be error-free during transmission. A. Goodput Figure 1 shows the real-time traffic goodput of the network while varying the number of stations in the network, and while

2500

Goodput (kbps)

2000 1500 1000 IEEE 802.11e WRT-Ring

500 0 0

10

20

30

40

50

60

Number of stations in the network

Fig. 1. Real-time traffic goodput achieved when every station of the network has unlimited non real-time traffic and 45 kbps of real-time traffic to transmit. (95% confidence interval) 2500 2000

Goodput (kbps)

the widely used IEEE 802.11, whereas the latter is a protocol that supports real-time applications in ad-hoc networks where nodes have limited mobility in a limited space without requiring additional node information like the exact geographic position, and it allows multi-hop transmissions (characteristics that well fit the requirements of wireless sensor networks). The goal of this investigation is to study the goodput and the MAC delay while varying the number of stations present in the network and the amount of real-time traffic to transmit. We recall here that with goodput we refer to the number of bits per second that a station is able to deliver to their destination (considering only data bits and not header bits), and with MAC delay we refer to the time that elapses between the arrival of a packet at the head of the transmission queue (i.e., the packet is the first one that will be transmitted by the station) and the arrival to its destination station. For simulation we use the discrete event simulation environment OMNeT++, which is free of charge for teaching and research use [12]. The simulation settings for IEEE 802.11e are the following: • Channel data rate of 11 Mbps; • Packet length of 1024 bits; • Network slot length of 20µs; • Non real-time traffic rate is unlimited (always traffic to transmit); • Real-time traffic has priority 7 (i.e., highest priority); • Non real-time traffic has priority 0 (i.e., lowest priority); • AIFSN and TXOP are equal to 3 and 0 (for non realtime traffic), and to 2 and 1.504 milliseconds (for realtime traffic). Note that these are the default values for the channel access; • CWmin and CWmax are equal to 31 and 1023, respectively. Note that these values depends on the physical layer, and that we consider the DSSS physical layer specifications.

1500 1000 IEEE 802.11e WRT-Ring

500 0 0

20

40

60

80

100

Real-time traffic (kbps)

Fig. 2. Real-time traffic goodput achieved in a network of 25 stations where every station has unlimited non real-time traffic to transmit. (95% confidence interval)

considering each station of the network to generate real-time traffic with a data rate equal to 45 Kbps. It can be observed that WRT-Ring is able to handle all the real-time traffic generated by stations, whereas IEEE 802.11e does not when the number of stations in the network goes beyond 20. Figure 2 presents a similar investigation, but here the realtime traffic goodput of the network is measured while varying the real-time traffic in a network of 25 nodes. It is not surprisingly to observe that WRT-Ring is able to handle all the generated real-time traffic, whereas IEEE 802.11e is not. This means that when using IEEE 802.11e, nodes will see their real-time output queue to grow. Results of both investigations show that IEEE 802.11e and WRT-Ring achieve comparable real-time goodput when the network traffic load is low (either due to small network or to limited real-time traffic data rate). When the network traffic load increases, IEEE 802.11e is not able to handle the realtime traffic, whereas WRT-Ring is. In addition to the real-time traffic goodput, it is interesting to observe the goodput of the non real-time traffic, as the network

200

14000

180

IEEE 802.11e IEEE 802.11e MH WRT-Ring

160

12000

MAC delay (ms)

Goodput (kbps)

16000

10000 8000 6000 4000

IEEE 802.11e WRT-Ring

2000

140 120 100 80 60 40 20

0

0 0

10

20

30

40

50

60

0

Number of stations in the network

Fig. 3. Non real-time traffic goodput achieved when every station of the network has unlimited non real-time traffic and 45 kbps of real-time traffic to transmit. (95% confidence interval)

10

20

30

40

50

60

Number of stations in the network

Fig. 4. Real-time MAC delay achieved when every station of the network has unlimited non real-time traffic and 45 kbps of real-time traffic to transmit. (95% confidence interval) 100

B. Mac Delay Figure 4 shows the real-time MAC delay while varying the number of stations in the network, and while considering each station of the network to generate real-time traffic with a data rate equal to 45 Kbps. IEEE 802.11e provides a much lower delay than WRTRing. Hence, it supports applications with stringent real-time constraints. However, it is to note the IEEE 802.11e does not support multi-hop transmissions and therefore it requires all the nodes to see each other within the network (transmissions are single hop source-destination only). This explains the lower MAC delay. Conversely, in WRT-Ring a packet needs to perform multi-hop transmissions to reach its destination. Since wireless sensor networks require multi-hop transmissions, we build a benchmark scenario where the multi-hop feature is built

IEEE 802.11e IEEE 802.11e MH WRT-Ring

90 80

MAC delay (ms)

likely supports both real-time and non real-time applications. Again the non real-time goodput is measured while varying both the number of stations in the network and the real-time traffic data rate. Figure 3 shows the non real-time traffic goodput of the network while varying the number of stations in the network, and while considering each station of the network to generate real-time traffic with a data rate equal to 45 Kbps. For both protocols, the goodput decreases while increasing the number of stations in the network. However, IEEE 802.11e achieves very low goodput, whereas WRT-Ring has much higher goodput. This behavior shows that the mechanism that controls the transmission in IEEE 802.11e leaves no room for the non real-time traffic when the real-time traffic to handle is considerable. Therefore IEEE 802.11e is not fair in handling real-time and non real-time traffic. Conversely, results show that the mechanism that controls transmission in WRT-Ring ensures a fair access to the network by both the real-time and the non real-time traffic. Results are confirmed with a simulation that computes the non real-time traffic goodput of the network while varying the real-time traffic in a network of 25 nodes.

70 60 50 40 30 20 10 0 0

20

40

60

80

100

Real-time traffic (kbps)

Fig. 5. Real-time MAC delay: achieved in a network of 25 stations where every station of the network has unlimited non real-time traffic to transmit. (95% confidence interval)

upon the IEEE 802.11e protocol (i.e., the network nodes are considered as composing a virtual ring). Figure 4 also presents a series (label IEEE 802.11e MH), which represents results of IEEE 802.11e when simulating multi-hop transmissions. It can be observed that when the number of stations goes beyond 30, IEEE 802.11e provides higher MAC delays than WRT-Ring. Figure 5 shows the real-time MAC delay while varying the real-time traffic present in a network of 25 nodes. The MAC delay is steady for WRT-Ring, whereas it increases for IEEE 802.11e MH while increasing the real-time traffic load. Results confirm that IEEE 802.11e is effective in supporting real-time traffic when transmissions are done in single hop; conversely, when transmissions are done in multi-hop the MAC delay increases a lot and WRT-Ring has to be preferred. Figure 6 shows the non real-time MAC delay while varying the number of stations in the network, and while considering each station of the network to generation real-time traffic with a data rate equal to 45 Kbps. The MAC delay of WRT-Ring is lower than the one experienced while using IEEE 802.11e. Similar results are obtained while varying the real-time traffic present in a network of 25

1400

sensor networks conditions where multi-hop transmissions are required, WRT-Ring achieves lower MAC delay.

MAC delay (ms)

1200 1000

IV. C ONCLUSIONS

800

This paper focused on the support of applications with timing constraints in wireless sensor networks. In particular, it presented an investigation of the performances of two MAC protocols that can be employed to manage real-time traffic: IEEE 802.11e and WRT-Ring. The investigation revealed that WRT-Ring supports both real-time and non real-time traffic in a fair way, whereas IEEE 802.11e penalizes the non real-time traffic in favor of the real-time traffic. The investigation also showed that IEEE 802.11e might have problems in supporting real-time applications if the real-time traffic load goes beyond a certain threshold. To summarize, results showed that in wireless sensor networks with limited devices and/or real-time traffic both protocols can be employed, whereas when devices and/or traffic increases, WRT-Ring has to be preferred.

IEEE 802.11e WRT-Ring

600 400 200 0 0

10

20

30

40

50

60

Number of stations in the network

Fig. 6. Non real-time MAC delay achieved when every station of the network has unlimited non real-time traffic and 45 kbps of real-time traffic to transmit. (95% confidence interval) 900 800

ACKNOWLEDGMENT

MAC delay (ms)

700

200

This work has been partially supported by Italian MIUR funds (project PRIN-2006 NADIR: Design and analysis of distributed, and QoS-aware protocols and algorithms for Wireless Mesh Networks). Authors would like to thank Luca Cibelli and Angelo Trotta for their work on the simulator.

100

R EFERENCES

600 500

IEEE 802.11e WRT-Ring

400 300

0 0

20

40

60

80

100

Real-time traffic (kbps)

Fig. 7. Non real-time MAC delay achieved in a network of 25 nodes where achieved when every station of the network has unlimited non real-time traffic to transmit. (95% confidence interval)

nodes (see Figure 7). C. Summary of Results Results obtained while analyzing the goodput and the MAC delay experienced by IEEE 801.11e and by WRT-Ring under different network conditions show that both protocols can be employed in wireless sensor networks if the number of devices is limited and/or the real-time traffic is limited too. In particular, for a number of devices below 20 and with a global network real-time traffic below 1 Mbps both protocols can support the traffic generated by the real-time applications. What differs in this scenario is the performance of the non real-time traffic, which is better handled by WRT-Ring. For network with a higher number of stations (> 20) and/or higher real-time network traffic (> 1M bps), WRT-Ring achieves better performances in terms of goodput. Results obtained while analyzing the MAC delay showed that IEEE 802.11e could support applications with real-time requirements tighter than WRT-Ring, providing that all the devices of the network are within the range of communication (i.e., single hop transmission). Conversely, in generic wireless

[1] S. Y. Lin Ruizhong, Wang Zhim, “Wireless sensor networks solutions for real time monitoring of nuclear power plant,” in Fifth World Congress on Intelligent Control and Automation, 2004., vol. 4, June 2004, pp. 3663–3667. [2] I. K. I.F. Akyildiz, “Wireless sensor and actor networks: research challenges,” Ad Hoc Networks, vol. 2, no. 4, pp. 351–367, 2004. [3] I. F. Akyildiz, W. Su, Y. Sankarasubramaniam, and E. Cayirci, “Wireless sensor networks: A survey,” Computer Networks, vol. 38, pp. 393–422, 2002. [4] T. Watteyne, I. Aug´e-Blum, and S. Ub´eda, “Dual-mode real-time mac protocol for wireless sensor networks: a validation/simulation approach,” in InterSense ’06: Proceedings of the first international conference on Integrated internet ad hoc and sensor networks. New York, NY, USA: ACM, 2006, p. 2. [5] T. Facchinett and G. Buttazzo, “Integrated wireless communication protocol for ad-hoc mobile networks,” in International Workshop on Real-Time Networks (RTN), Catania, Italy, June 2004, pp. 43–46. [6] J. A. Stankovic, “Research challenges for wireless sensor networks,” SIGBED Rev., vol. 1, no. 2, pp. 9–12, 2004. [7] K. C. Chen, “Medium access control of wireless lans for mobile computing,” IEEE Network, vol. 8, no. 5, pp. 50–63, 1994. [8] E. Egea-Lopez, J. Vales-Alonso, A. S. Martinez-Sala, J. Garcia-Haro, P. Pavon-Marino, and M. V. B. Delgado, “A wireless sensor networks mac protocol for real-time applications,” Personal Ubiquitous Comput., vol. 12, no. 2, pp. 111–122, 2008. [9] R. Cunningham and V. Cahill, “Time bounded medium access control for ad hoc networks,” in Proceedings of ACM Principles of Mobile Computing, 2002. [10] R. Jianqiang, J. Shengming, and H. Dajiang, “A token passing tree MAC scheme for wireless ad hoc networks to support real-time traffic,” in NETWORKING ’00: Proceedings of the IFIP-TC6/European Commission International Workshop on Mobile and Wireless Communication Networks. London, UK: Springer-Verlag, 2000, pp. 47–57. [11] L. Donatiello and M. Furini, “Ad hoc networks: A protocol for supporting QoS applications,” in Proceedings of the IEEE International Parallel and Distributed Processing Symposium. IEEE Computer Society, 2003. [12] “Omnet++ discrete event simulation system,” www.omnetpp.org.

Suggest Documents