scieee AI-readable full text Open interactive document viewer

Emergency aware congestion control for smart grid neighborhood area networks

Astudillo León, Juan Pablo,Cruz Llopis, Luis Javier de la

Abstract

The evolution of traditional electricity distribution infrastructures towards Smart Grid networks has generated the need to carry out new research. There are many fields that have attracted the attention of researchers, among which is the improvement of the performance of the so-called Neighborhood Area Networks (NAN). In this sense, and given the critical nature of some of the data transmitted by these networks, maintaining an adequate quality of service (QoS) is absolutely necessary. In emergency situations, this need becomes even more evident. This article presents a congestion control mechanism, whose parameters are modified according to the network state of emergency. The mechanism also applies a multi-channel allocation technique, together with a differentiation in the QoS offered to the different data flows according to their relevance. These proposals have been evaluated in the context of a wireless mesh networks (WMN) made up by a set of smart meter devices, where various smart grids (SG) applications are sending their data traffics. Each SG application must meet its unique quality of service (QoS) requirements, such as reliability and delay. To evaluate the proposals, some NAN scenarios have been built by using the ns-3 simulator and its 802.11s basic model, which was modified to implement the proposed techniques. Compared with the basic Hybrid Wireless Mesh Protocol (HWMP), Emergency Aware Congestion Control proposal (EA-HWMP), shows significant improvements in terms of packet delivery ratio, network throughput and transit time.

Full text

Ad Hoc Networks 00 (2019) 1–28 Emergency Aware Congestion Control for Smart Grid Neighborhood Area Networks Juan Pablo Astudillo Le´ on∗, Luis J. de la Cruz Llopis Department of Network Engineering, Universitat Polit`ecnica de Catalunya (UPC), Barcelona 08034 Spain Abstract The evolution of traditional electricity distribution infrastructures towards Smart Grid networks has generated the need to carry out new research. There are many fields that have attracted the attention of researchers, among which is the improvement of the performance of the so-called Neighborhood Area Networks (NAN). In this sense, and given the critical nature of some of the data transmitted by these networks, maintaining an adequate quality of service (QoS) is absolutely necessary. In emergency situations, this need becomes even more evident. This article presents a congestion control mechanism, whose parameters are modified according to the network state of emergency. The mechanism also applies a multi-channel allocation technique, together with a differentiation in the QoS offered to the different data flows according to their relevance. These proposals have been evaluated in the context of a wireless mesh networks (WMN) made up by a set of smart meter devices, where various smart grids (SG) applications are sending their data traffics. Each SG application must meet its unique quality of service (QoS) requirements, such as reliability and delay. To evaluate the proposals, some NAN scenarios have been built by using the ns-3 simulator and its 802.11s basic model, which was modified to implement the proposed techniques. Compared with the basic Hybrid Wireless Mesh Protocol (HWMP), Emergency Aware Congestion Control proposal (EA-HWMP), shows significant improvements in terms of packet delivery ratio, network throughput and transit time. Keywords: smart grid, neighborhood area networks, wireless mesh networks, hybrid wireless mesh protocol, multi channel allocation, congestion control 1. Introduction The Smart Grid network has been conceived to improve the management and operation of traditional electricity distribution networks, as well as to provide new services, both to the supplying companies and to their customers [1]. To this end, a data communication network has been incorporated into its infrastructure, which in turn is made up of several sub-networks, each one possibly based on a different network technology [2]. The different smart meters (SM), devices and other utilities present inside homes are interconnected by the Home Area Network (HAN). Selectable technology standards for this HANs could be, among others, IEEE 802.15.4 (Low- Rate Wireless Personal Area Networks, LR-WPAN) or IEEE 802.11 (Wireless Local Area Networks, WLAN). In turn, the HANs are interconnected through the Neighborhood Area Network (NAN), where Power Line Communication (PLC) technologies, or standards such as IEEE 802.15.4g or IEEE 802.11s (Wireless Mesh Networks), can be considered. In terms of ubiquity, WLANs are the closest rival to PLC networks, given that they are both prevalent ∗Corresponding author. Tel.: +34-93-401-60-14. Email addresses: [email protected] (Juan Pablo Astudillo Le´ on), [email protected] (Luis J. de la Cruz Llopis) 1 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 2 in most homes. Wireless Fidelity (Wi-Fi) is known for its mobility and ease of deployment [3]. Finally, a wired backbone or even another wireless technology standard such as IEEE 802.16 (Wireless Metropolitan Area Networks, WirelessMAN) allows the information exchange between the NANs and the control centers. To plan, manage and operate a communication network with a highest degree of efficiency, it is essential a deep knowledge of the services that will be provided. The maximum efficiency must be achieved while maintaining the quality of service required by all applications. These considerations are especially relevant when working with Smart Grid, given the critical importance of the power grid infrastructure. The offered services belongs to very different types, and therefore their service quality requirements are also different [4]. Generally speaking, most Smart Grid applications have strong security and reliability requirements. The goal of this paper is to present and evaluate some techniques that allow improving the performance offered by the NANs, when the selected technology to use is based on the IEEE 802.11 wireless mesh networks standard and its Hybrid Wireless Mesh Protocol (HWMP). Specifically, a congestion control mechanism, which takes into account possible emergency situations in the network, and applies also multi-channel allocation and traffic differentiation techniques, is presented. These emergency situations are characterized by a reduction in the network performance, which in turn may be caused by intrinsic (hardware, software, communications protocols, etc.) or extrinsic (weather conditions, malicious agents, terrorist attacks, etc.) failures [5]. This proposal has been evaluated in the context of a smart grid neighborhood area network made up of a set of smart meter devices. The rest of the paper is organized as follows. In Section 2 we report and analyze the related work. Section 3 presents the multichannel and network congestion control mechanisms. Section 4 evaluates the proposed mechanism. Finally, the conclusions and future works are summarized in section 5. 2. Related work Several researchers have focused their work on the proposal of new mechanisms, or on the modification of existing ones, with the aim of improving the performance offered by wireless mesh networks in smart grid neighborhood area networks. Authors in [6] presents a performance evaluation and comparison of Optimized Link State Protocol (OLSR) [7] and HWMP (IEEE 802.11s) [8] routing protocols, together with a classification of the main AMI (Advanced Metering Infrastructure) application traffics. Later, in [9] the same authors propose an enhancement of the OLSR protocol by using the combination of different basic metrics. The objective is to offer an adapted quality of service to the different traffics traveling on the network. To this end, they use the combination of different metrics: Expected Transmission Count (ETX), Minimum Delay (MD) and Minimum Loss (ML). They chose Relevant Link Metric Types (RLMTs) for each application, assign different weights to each of them, and use a pruning technique to reduce the number of considered paths to a given destination. In this work, the best link to send each traffic is calculated by means of an AHP (Analytical Hierarchy Process) algorithm. A modification of the airtime link metric calculation method was presented in [10], in order to improve the network throughput and reliability. The proposed method gives greater relevance to the upstream transmission status (from smart meters to the concentrator), since most data is transmitted in this direction. Although a modification of the path selection mechanism is provided, the results highlight the need for congestion control mechanisms when the network size is increased. In addition, the reliability provided by the HWMP routing protocol and some proposed solutions for its weaknesses are also the main issues addressed in [11] by some of the same authors of [10]. First of all, authors identify those weaknesses, both from the HWMP protocol itself (route instability and route recovery) and from the integration with Smart Grid networks (oversimplified calculation of airtime link metric and the need of traffic differentiation). As in [10], authors propose a modification of the airtime link metric computation and of the path selection mechanism. Now, the possibility of implementing routes reservations is also exploited to reduce packet losses and routing management traffic when a path is broken. Besides, in order to provide a better quality of service to some applications, a delay-tolerant traffic management method based on the concept of delay-tolerant networking is proposed. The modification of the basic HWMP metric is also the key point in [12, 13]. In [12], the packet size and the queuing delay are included in the modified metric, and the frame error rate is computed separately for every application traffic. On the other hand, a new metric oriented to improve the behavior under electromagnetic interferences is proposed in [13]. Some of the same authors have also presented a very good performance analysis for this type of networks in [14]. 2 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 3 In [15] a multigate communication network, based on IEEE 802.11s, is proposed for Smart Grids. In order to improve the network performance, the possibility of having more than one node acting as a gateway is presented, together with a real-time traffic scheduling and a multichannel aided routing protocol. To achieve the load balance between gateways, authors propose a heuristic backpressure scheme, where every node evaluates the state of its neighbors before selecting one of them as the best next hop. As authors state, with this scheme there is no need for on-demand routing, but some information (the backpressure metric) must be periodically exchanged between nodes. Another work which considers IEEE 802.11s mesh networks as Smart Grid NANs is presented in [16], where authors propose the HWMP-NQ protocol, a modification of HWMP to ensure the needed QoS of several smart grid traffic types. To distinguish between different applications, the data size and the QoS requirements are considered. The airtime link metric is modified by considering the packet size and the transmission rate, which could increase excessively the needed number of channel measurement. To avoid this, a frame error rate calculation algorithm based on single measurement is also proposed. Besides, the benefits provided by a multi-gateway backup routing scheme are also analyzed. Moreover, to reduce the routing overhead in case of link failures, a modification of the path error mechanism is introduced. In WMN, there are two types of congestion: intra and inter-mesh congestion. Although there are multiple algorithms to solve intra-mesh congestion, in the context of NAN networks there are no works that focus on congestion control, since they are, in general, aimed to WMN. For instance, a congestion control mechanism for WMN is presented in [17]. Authors have considered that the increase in the waiting time to access the wireless channel also increase the packet delay and then, the resulting queue length leads to congestion. They propose a modification to the default HWMP in order to provide congestion avoidance. They consider that each node monitors its queue length for each flow and they notify to their neighbors when it reaches a specific level through Congestion Control Notification Frames (CCNF). This action allows the neighboring node to calculate an alternative path depending on the queue length and also excluding the congested link. The implementation of multi-channel in WMNs can be done in two ways: multiple radios on the physical layer (PHY) or using the channel switching capability of the device. The proposals and works in [18, 19, 20, 21, 22] describe techniques for channel assignment, multiple beam-antennas and multiple-radio routing metrics. However, this concept, together with congestion control techniques, has not been fully investigated in NAN networks when the WMN is implemented as the technology for data communications. For instance, in a previous work [23] a basic congestion control mechanism for WMN is proposed, which works together with a multi-channel allocation scheme. In this work, two traffic types have been defined (priority and non-priority), and the congestion control mechanism discards non-priority applications when a given channel utilization factor value is exceeded. Besides, in order to reduce the network congestion, two different channels have been used for transmitting the different NAN applications. In this work, we put together and evaluate our proposals for multi-channel allocation and for congestion control, considering the different service quality needs of the different applications. The congestion control mechanism takes into account if the network is in a state of emergency. For this, three network emergency states have been defined: normal, medium or high. Each of these states can be activated manually or automatically. For automatic operation, the network nodes periodically measure different performance parameters, and alert the rest of the nodes (by means of special management frames) in case of detecting anomalous situations. The presented techniques are executed individually in every node, and do not significantly load the nodes CPU, which is advisable if we take into account that in many cases these devices are built on a large scale and at low cost, and so they have limited resources. 3. An Emergency Aware Congestion Control mechanism for HWMP The implementation of the HWMP protocol integrates these main processes: Route Management, Data Queue and Route Assignment [24]. In order to improve the performance of the basic protocol, in this paper four specifics mechanisms, which work collaboratively, are proposed, implemented and evaluated: traffic differentiation, multi channel allocation, congestion control and emergency system. Figure 1 shows the structure of the modified HWMP, with the new modules and their relation with the basic ones, and Tables 1 and 2 present the definition of the variables and functions for the proposed emergency aware congestion control mechanism (EA-HWMP). 3 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 4 EDCA / DCF Physical layer Application / network layer Application 1 Application 2 Application 3 ... Route assignment Route management Proactive route building On-demand route building Path recovery Packet drop Data Tx Packet flow Fail Data Rx Data queue Emergency system Identify scenario Congestion control module Utilization factor measurement Packet drop Utilization factor funcions Probability of transmission no yes Multichannel allocation module Routing table Available channels Traffic diferentiation module Extract the Access Category (AC) Group into a traffic type Figure 1: Structure of the emergency aware congestion control mechanism (EA-HWMP). Table 1: Definition of the variables for the emergency aware congestion control mechanism (EA-HWMP). Parameter Description NcNumber of available data channels. ρChannel utilization factor for each data channel. ρ0The previous value of ρ. sρCurrent sample of the physical channel state. ωThe value of ω(ω∈[0,1]) defines the importance of sρwith respect to the past values. frData frame (NAN application). ρTThe sum of ρof all available data channels. tTNAN applications are classified into four traffic types. cc f Congestion control functions. PTTransmission probability based on the result of cc f . ESEmergency situation (normal, medium and high). sSource mac address. dDestination mac address. AC EDCA access categories (voice (VO), video (VI), best effort (BE) and background (BK)). TT L Time-to-live. ρth The maximum threshold of ρallowed per channel. ch Data physical channel. 4 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 5 Table 2: Definition of the functions for the emergency aware congestion control mechanism (EA-HWMP). Function Description isStateBusy Measures the physical channel state (busy: 1, iddle: 0). mapTraffic NAN applications are mapped to the four EDCA access categories. shouldTransmit Depending on the ρT,cc f and ESvalues, the frame will be pass to the multichannel allocation module. congestionControl Congestion control mechanism (Algorithm 1). channelAllocation Data frames are assigned to a specified channel based on the value of ρth (Algorithm 3). Different NAN applications are (re)transmitted through the NAN network, as well as routing and emergency messages. First, the data messages (NAN applications) are grouped into four traffic types according to their priority, where the traffic type 1 corresponds to the NAN applications with the higher QoS requirements, while the traffic type 4 represents the applications with less QoS needs. Second, different emergency messages are used to characterize different anomalous situations present in the smart grid (weather conditions, malicious agents, terrorist attacks, hardware or software failure, etc.). Besides, emergency messages modify the operation of the congestion control module. This module basically gives a higher probability of transmission to priority traffic types in situations of network congestion, and this probability will increase or decrease according to the current emergency state (normal, medium and high) of the smart grid. Finally, a multichannel allocation module is also implemented, which assigns a dedicated channel for the control traffic and the rest of channels are assigned to transmit the NAN applications. These modules will be explained in greater detail in the following sections. 3.1. Route management This module is responsible for computing and updating the paths through a proactive or an on-demand pathbuilding mechanisms. When a new data frame arrives at this module from the application or physical layer, it is immediately stored at the HWMP queue. If the frame must be forwarded, the mesh STA selects the best path for its transmission. For this purpose, the HWMP checks the destination address and looks up the next hop address in the routing table, previously calculated by the path-building mechanisms. If a path is available, the mesh STA transmits the frame by using the medium access mechanism. On the other hand, if there is not a route to the destination, the path discovery mechanism is activated. For this purpose, a Path Request (PREQ) message is broadcast from the source to the whole network, and when this message reaches the intended destination, this node replies with an unicast Path Reply (PREP) message to the PREQ originator node by using the best path (lower metric) [24]. Finally, in the case of one or more unreachable destination(s), the mesh STA drops the frame and transmits control messages such as path error (PERR) in order to invalidate the whole path. This message is sent to all traffic sources that have a known active path to the destination(s). The active forwarding information associated with the unreachable destination(s) should no longer be used for forwarding [8]. It must be kept in mind that different channels have been used for control and data traffic, where just one channel is assigned to the control traffic (routing and emergency messages), and the rest of the available channels are assigned to transmit the data frames. 3.2. Traffic differentiation module As will be detailed in section 4, in this work the different applications (data traffic flows) that are transmitted through the network are classified into four traffic types. Data packets arriving from the network /application layer are labeled with a specific access category. The objective is to map the traffic types according to the Enhanced Distributed Channel Access (EDCA) categories. For example, the traffic type 1, which has the highest QoS requirements (e.g., Demand Response applications), is mapped to the voice (VO) access category, while the traffic type 4, which has the lowest QoS needs (e.g., Meter Reading), is assigned to the background (BK) access category. The proposed scheme does not modify the medium access mechanism, since the access categories are used to identify the NAN applications and group them into different traffic types according to their priorities. 3.3. Congestion control and emergency system modules The network congestion mechanism (Algorithm 1) is based on the value of the channel utilization factor (ρ) . This parameter is measured by the mesh STA itself. The possible values are channel busy or idle. However, in 5 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 6 our practical implementation, these values are smoothed to avoid undesired oscillations. For this, an exponentially weighted moving average (EWMA) is used, where the smoothing factor (ω) was set to 0.0005. The ρmeasurement is performed before the multi channel allocation takes place. This is because the selection of the channel for a frame to be forwarded will depend on the access category (traffic type (tT)) and the result of the network control congestion mechanism at that precise moment. Algorithm 1: Congestion control algorithm. Input: data frame ( fr) (NAN application) Output: According to the channels utilization factor functions, the frame must be transmitted or not. 1for i←1to NCdo 2sρi←isStateBusy(chi) 3ρi←ω·sρi+(1 −ω)·ρ0 i 4ρT←PNC i=1ρi 5tT←mapTraffic(fr) 6PT←ccf(tT, ρT,ES) 7if shouldTransmit(PT)then 8return true 9else 10 return false The proposed congestion control mechanism is based on the definition of a congestion control function that assigns a transmission probability (PT) to each value of the utilization factor. In this way, each time a node receives a packet to be (re)transmitted, this transmission will be effectively made with probability PT, or the packet will be discarded with probability (1 −PT). On the other hand, since it is desired to differentiate the quality of service offered to the different types of traffic, it is proposed to use a different congestion control function for each of them, as shown in Figure 2. In addition, since the proposed mechanism is multi-channel (with a maximum of NCavailable channels), the sum of the utilization factors of all available channels will be taken into account (ρT=ρ1+· · · +ρNC). Thus, in situations of network congestion (high values of ρT), traffic types with lower needs (tT=3 or tT=4) will be more likely discarded. It must be kept in mind that the applications assigned to traffic types with lower priority must be those that are less sensitive to possible packet losses (for example, meter reading applications that repeat and periodically retransmit the power consumption measurements). 0.0 NC ρ 0.0 0.5 1.0 PT Figure 2: Congestion control function. The congestion control mechanism works collaboratively with the emergency system module. The objective of the emergency system is to increase even more the probability of transmission of higher priority traffic in medium or high emergency situations. For this, NAN applications with lower priority are discarded at a higher rate in the time intervals in which the emergency occurs, and those with higher priorities are provided with an even better QoS. The congestion control functions, and the channel utilization factor thresholds, for each traffic type and for each emergency situation (ES), are shown in Figure 3 and Table 3 respectively. On the other hand, the dissemination of emergency situations is done through broadcast messages, since all the nodes must know the situation. Each message contains the address of the originator node and the emergency situation, such as normal, medium or high. Finally, these messages are propagated in the network through a dedicated physical channel, to avoid high delays in congestion situations. 6 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 7 ρtT4ρtT3ρtT2ρtT1 ρ 0.0 0.2 0.4 0.6 0.8 1.0 PT tT: 4 tT: 3 tT: 2 tT: 1 (a) normal. ρtT4ρtT3ρtT2ρtT1 ρ 0.0 0.2 0.4 0.6 0.8 1.0 PT (b) medium. ρtT4ρtT3ρtT2ρtT1 ρ 0.0 0.2 0.4 0.6 0.8 1.0 PT (c) high. Figure 3: Congestion control functions for different emergency situations. Table 3: Channel utilization factor thresholds for each traffic type and for each emergency situation. Emergency situation Normal Medium High ρtT12 2 2 ρtT21.66 1.26 0.86 ρtT31.33 0.93 0.53 ρtT41 0.6 0.2 After the data frame is classified according to the traffic type (traffic differentiation module), a random number is generated between 0 and 1, and if this value is below the transmission probability (PT), the data packets are passed to multi-channel allocation module to be transmitted. Otherwise, the data packets are discarded. 3.4. Route assignment and multi channel allocation The general route assignment tasks performed by the network nodes every time they have to (re)transmit a packet are detailed in Algorithm 2. First, the node extracts the following parameters from the packet header: source node, destination node, access category, and time to live. Then, the algorithm looks up if there is an available route. In the affirmative case, the next hop node is obtained by means of the route selection algorithm by taking into account the destination node. After, the congestion control mechanism computes if the frame should be transmitted or not based on the emergency situation (ES) and the network congestion (ρTand cc f ). Finally, the transmission is assigned to a specific channel. In the case that there is no route, the packet is queued, and the path discovery mechanism is activated. This mechanism tries to obtain the route a fixed number of times, and if that threshold is exceeded, the route to that destination is considered invalid and the packet is eliminated. 7 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 8 Algorithm 2: Route assignment. Input: NAN application ( fr) Output: Forward the data to the next hop depending on the multiple channels available at the node. 1receivedata(fr) 2[s,d,AC,TTL]←read(fr) 3[nexthop,isThereRoute] ←RouteSelection(d) 4if isThereRoute then 5if congestionControl(fr)then 6chd←channelAllocation(fr) 7send(fr,nexthop,chd) 8else 9drop(fr) 10 return 11 else 12 if shouldInitiatePathDiscovery(d) then 13 lastSQN ←getLastSQN(d) 14 preq ←createPreq(lastSQN,d) 15 sendPreq(preq) 16 queuedPacket(packet) The multi channel allocation module (Algorithm 3) is composed of two parts: the routing table created by the path-building mechanisms (proactive or on-demand) and the number of physical channels available in the current mesh STA. The purpose of this module is to select the next hop address to forward a data frame, and depending on the result of the network congestion module and the value of ρof each channel, the transmission will be assigned to an specified physical channel. Algorithm 3: Multichannel allocation algorithm. Input: Number of available data channels. Output: Assigned channel for transmission 1channel ←1 2for ch ←1to NCdo 3if ρi< ρth then 4return ch 5else if i== nthen 6return noChannel If the output of the congestion control module indicates that the frame should be passed to the MAC sub-layer to be transmitted, the next process is to select the physical channel for the transmission. Our proposal for multichannel allocation is based on the use of the least possible number of channels at any given time. For this, the utilization factor of each channel (ρi) is taken into account. By default, the data packet is assigned to the data channel number 1, if and only if the value of ρfor this channel is below a certain threshold (ρ1< ρth). Otherwise, the transmission is assigned to channel number 2, and if this channel is also busy (ρ2> ρch), the transmission is assigned to the next channel and so on up to the maximum number of available channels (NC). In addition, if the last available channel is also busy, the data packet will be discarded. Finally, to avoid abrupt fluctuations due to channel changes, a hysteresis cycle is taken into account around the central value of ρth. 4. Experimental evaluation Figure 4 shows the scenario for the evaluation of our proposal, where various applications (traffic types) are transmitted upstream from the smart meters (SM) towards the data concentrator, and downstream from the concentrator towards the smart meters. The network scenario consist on a grid topology, where the number of nodes in the grid will be a variable parameter in the simulation runs, and the data concentrator is positioned at the bottom left corner. In 8 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 9 this scenario, home users transmit different types of traffic, for instance, periodic billing data (meter reading), electric vehicle (EV) charging information and other applications. On the other hand, it is possible to transmit demand response information from the control center to adjust, among other possibilities, the consumption peaks of households to the time periods in which the price of electricity is lower. The experiments consider that these applications runs simultaneously on all smart meters. Smart meter (SM)Data concentrator x y Figure 4: Scenario under consideration. Table 4: Traffic types for different NAN applications. Traffic type Applications Packet size Packet interval EDCA Length (Bytes) Distribution Interarrival time (secs) Distribution 1 Demand Response, Outage Management 200 Exponential 0.1 Exponential Voice (Highest priority: 1) 2 Video surveillance, Overhead Transmission Line Monitoring, Substation Automation systems (SASs) 200 Exponential 0.1 Exponential Video (Priority: 2) 3 Home Energy Managament (HEM), Electric Vehicles (EVs) Charging 400 Deterministic 0.1 Deterministic Best Effort (Priority: 3) 4 Meter Data Management 400 Deterministic 0.1 Deterministic Background (Lowest priority: 4) As previously mentioned, the different applications, current or future, that can be transmitted over the NAN, have been grouped into four traffic types according to their quality of service requirements. Every traffic type is in turn mapped into an EDCA category. Table 4 shows this classification, which also shows the distributions and average values selected for the packet size and interarrival time. For traffic types that group applications which generate constant size packets at regular time intervals, the distributions have been considered as deterministic. On the other hand, for the traffic types generated by different types of events or by variable rate applications, an exponential distribution has been considered, which can be better adjusted to the combination of this type of applications. In addition, to evaluate the network performance under stress situations, the packet generation rates have been selected relatively high for all types of traffic. 9 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 16 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 3000 time (ms) All nodes HWMP avg HWMP 95th EA-HWMP avg EA-HWMP 95th 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 3000 time (ms) Farthest node (a) Traffic type 1. 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 3000 time (ms) All nodes 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 3000 time (ms) Farthest node (b) Traffic type 2. 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 3000 time (ms) All nodes 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 3000 time (ms) Farthest node (c) Traffic type 3. 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 3000 time (ms) All nodes 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 3000 time (ms) Farthest node (d) Traffic type 4. Figure 9: Network transit time. 16 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 17 4.1.3. Channel utilization factor The possibility of having multiple channels implies an increase in the number of successfully transmitted packets to the destination. EA-HMWP assigns the transmission of frames to the next available channel when the following situations are true. First, the probability of transmitting the frame is calculated taking into account the congestion control functions defined for each traffic type. Second, if the frame will be effectively transmitted, the transmission is assigned to the first available data channel (channel 1 by default). However, if the ρof this channel is above the accepted threshold for that channel, the transmission will be assigned to channel 2 and so on up to a maximum limit of three data channels. Figure 10 shows the utilization factor for the four available channels: three data channels, as mentioned above, plus one control channel. The control channel is used exclusively for the transmission of routing and emergency signaling packets, as will be explained in the next section, and so its utilization factor is very low. However, the control channel utilization factor is greater when the interval time between two successive PREQs is reduced (Figures 10a, 10b and 10c). Regarding the data channels, it can be observed that the ρvalue does not achieve high values (it is always below the configured threshold), and therefore, the channels are not congested. Also, the channel utilization decreases from data channel 1 to data channel 3, in concordance with what has been explained in the previous paragraph. On the other hand, Figure 11a shows the number of data channels used (n) to transmit the data as the simulation time increases, while Figure 11b shows the probability that one or more channels are employed. It can be observed in both figures how, as the network size is increased, it becomes more congested, and therefore a greater number of data channels is needed to transmit the NAN applications. 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Control channel 36 nodes 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Data channel: 1 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Data channel: 2 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Data channel: 3 (a) On-demand mode. Reactive routing information lifetime: 5.12 s. 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Control channel 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Data channel: 1 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Data channel: 2 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Data channel: 3 (b) On-demand mode. Reactive routing information lifetime: 0.512 s. 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Control channel 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Data channel: 1 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Data channel: 2 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Data channel: 3 (c) Proactive mode. Proactive routing information lifetime: 5.12 s. Figure 10: Channel utilization factor. 17 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 18 0 100 200 300 400 500 time (secs) 1 2 3 n number of nodes: 9 0 100 200 300 400 500 time (secs) 1 2 3 n number of nodes: 16 0 100 200 300 400 500 time (secs) 1 2 3 n number of nodes: 25 0 100 200 300 400 500 time (secs) 1 2 3 n number of nodes: 36 (a) channel occupancy (temporary evolution). 1 2 3 n 0.0 0.2 0.4 0.6 0.8 1.0 pdf number of nodes : 9 1 2 3 n 0.0 0.2 0.4 0.6 0.8 1.0 pdf number of nodes : 16 1 2 3 n 0.0 0.2 0.4 0.6 0.8 1.0 pdf number of nodes : 25 1 2 3 n 0.0 0.2 0.4 0.6 0.8 1.0 pdf number of nodes : 36 (b) channel occupancy (pdf). Figure 11: Channel occupancy for the EA-HWMP. On-demand mode. Reactive routing information lifetime: 5.12 s. 4.2. Emergency scenario In the present scenario, the channel allocation and traffic differentiation techniques, congestion control mechanism and the emergency system are implemented and evaluated together. For this purpose, some modifications were made to the previous scenario. First, NAN applications were configured to generate the same amount of data for all types of traffic (Figure 12). Second, four emergency sub-scenarios are considered (normal, medium, high and a combination of the previous three). The purpose it to evaluate how the congestion control functions are adapted to the different emergency situations. That is, to give a greater probability of transmission to the most important traffics, specially in emergency situations. These situations are set up by using broadcast messages. For the first three sub-scenarios, at the beginning of the simulation an emergency message is sent by a node to indicate the type of emergency situation throughout the network. On the other hand, in the last sub-scenario (combined) three packets are sent at different times (Figure 12a). At the beginning of the simulation (t=0) a normal emergency situation message is transmitted, after 100 seconds a medium emergency situation message is sent, and then after 300 seconds a message of medium emergency situation is sent. The results are evaluated with the same figures of merit (packet delivery ratio, throughput, transit time and channels occupation) and tools used in the previous scenario. (secs) time  4321   0 100 t emergency normal 500 300 emergency high emergency medium 2.0 (a) target ρ. 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ (b) measured ρ. Figure 12: Traffic generation for the different NAN applications for the emergency scenarios. 18 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 19 4.2.1. Packet delivery ratio and network throughput In this subsection, the benefits obtained in terms of packet delivery ratio and throughput are presented in the same two ways as the previous scenario but with some differences. First, HWMP and EA-HWMP are compared taking into account the temporary evolution of the PDR and throughput. Second, the global average values are analyzed. Figures 13 and 14 show the PDR and throughput evolution over time for the four emergency scenarios and the four traffic types. For the first three scenarios, the same results are highlighted. The PDR and throughput are increased for the higher priority traffic, and these values are increased even more when the emergency situation is high. On the other hand, in situations of high emergency, lower priority NAN applications are discarded, and therefore the PDR and throughput are reduced. In the combined case, as mentioned, the scenario goes from a normal emergency situation (0 to 100 s), to a medium (100 to 300 s) and ends in a high emergency situation (300 to 500 s). The changes of emergency situations can be clearly seen in Figures 13d and 14d. In a high emergency situation, the system adapts the congestion control functions in order to give a greater probability to NAN applications grouped as traffic type 1. This can be seen with the increase of PDR and throughput from 100 to 200 s. However, the price to pay is a fall of these parameters for the less priority traffic. In the last stage, the PDR and throughput increase when going from high to medium emergency situation. 19 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 20 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 1 HWMP EA-HWMP 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 2 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 3 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 4 (a) Emergency situation: normal. 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 1 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 2 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 3 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 4 (b) Emergency situation: medium. 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 1 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 2 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 3 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 4 (c) Emergency situation: high. 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 1 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 2 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 3 100 200 300 400 500 time (s) 0 20 40 60 80 100 pdr (%) Traffic type 4 (d) Emergency situation: combined. Figure 13: Packet delivery ratio evolution over the time for different emergency situations (network size: 25). 20 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 21 100 200 300 400 500 time (s) 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 1 HWMP (T) EA-HWMP (T) HWMP (D) EA-HWMP (D) 100 200 300 400 500 time (s) 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 2 100 200 300 400 500 time (s) 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 3 100 200 300 400 500 time (s) 0.0 0.2 0.4 0.6 0.8 throughput (Mbps) Traffic type 4 (a) Emergency situation: normal. 100 200 300 400 500 time (s) 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 1 100 200 300 400 500 time (s) 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 2 100 200 300 400 500 time (s) 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 3 100 200 300 400 500 time (s) 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 4 (b) Emergency situation: medium. 100 200 300 400 500 time (s) 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 1 100 200 300 400 500 time (s) 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 2 100 200 300 400 500 time (s) 0.0 0.2 0.4 0.6 0.8 throughput (Mbps) Traffic type 3 100 200 300 400 500 time (s) 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 4 (c) Emergency situation: high. 100 200 300 400 500 time (s) 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 1 100 200 300 400 500 time (s) 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 2 100 200 300 400 500 time (s) 0.0 0.2 0.4 0.6 0.8 throughput (Mbps) Traffic type 3 100 200 300 400 500 time (s) 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 throughput (Mbps) Traffic type 4 (d) Emergency situation: combined. Figure 14: Network throughput evolution over the time (network size: 25). The PDR and throughput average values (together with the 95% confidence interval) are shown in Figures 15 and 16, for different network sizes. As the network size is increased, it becomes more congested and so the PDR decreases for all traffics (Figure 15). However, it is important to highlight some important aspects. On the one hand, this decrease is smaller with EA-HWMP for priority traffic types. In addition, emergency situations give a greater probability of transmission to the most important traffic. Therefore, the PDR is increased from the normal emergency situation to the high one for the traffic type 1. Meanwhile, for the less priority traffic types, the PDR is reduced by discarding packets of some NAN applications. On the other hand, Figure 16 complements the result obtained by the PDR parameter. That is, the network throughput is higher for traffic type 1, and it is even greater for the high emergency situation. For the less priority traffic types, the throughput decreases when the emergency situation changes from normal to high. 21 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 22 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 1 HWMP EA-HWMP 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 2 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 3 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 4 (a) Emergency situation: normal. 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 1 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 2 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 3 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 4 (b) Emergency situation: medium. 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 1 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 2 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 3 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 4 (c) Emergency situation: high. 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 1 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 2 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 3 9 16 25 36 number of nodes 0 20 40 60 80 100 pdr (%) Traffic type 4 (d) Emergency situation: combined. Figure 15: Packet delivery ratio for different emergency situations. 22 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 23 9 16 25 36 number of nodes 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 1 HWMP (T) EA-HWMP (T) HWMP (D) EA-HWMP (D) 9 16 25 36 number of nodes 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 2 9 16 25 36 number of nodes 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 3 9 16 25 36 number of nodes 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 4 (a) Emergency situation: normal. 9 16 25 36 number of nodes 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 1 9 16 25 36 number of nodes 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 2 9 16 25 36 number of nodes 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 3 9 16 25 36 number of nodes −0.2 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 4 (b) Emergency situation: medium. 9 16 25 36 number of nodes 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 1 9 16 25 36 number of nodes 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 2 9 16 25 36 number of nodes −0.2 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 3 9 16 25 36 number of nodes 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 4 (c) Emergency situation: high. 9 16 25 36 number of nodes 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 1 9 16 25 36 number of nodes 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 2 9 16 25 36 number of nodes 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 3 9 16 25 36 number of nodes 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 throughput (Mbps) Traffic type 4 (d) Emergency situation: combined. Figure 16: Network throughput for different emergency situations. 4.2.2. Network transit time In the same way as the previous scenario, the analysis of the percentiles of the transit time, together with the average values are presented, both averaged for all the network nodes, and taking into account only the node farthest from the concentrator. Figure 17 shows the results for the combined scenario. As can be seen, these values are always lower (for all network sizes and for all types of traffic) when using the techniques proposed in this article. Similarly, a significant improvement is observed in the average and percentile values obtained in the farthest node case. 23 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 24 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 time (ms) All nodes HWMP avg HWMP 95th EA-HWMP avg EA-HWMP 95th 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 time (ms) Farthest node (a) Traffic type 1. 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 time (ms) All nodes 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 time (ms) Farthest node (b) Traffic type 2. 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 time (ms) All nodes 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 time (ms) Farthest node (c) Traffic type 3. 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 time (ms) All nodes 9 16 25 36 number of nodes 0 500 1000 1500 2000 2500 time (ms) Farthest node (d) Traffic type 4. Figure 17: Network transit time (Emergency situation: combined). 24 J.P. Astudillo Le´on et al /Ad Hoc Networks 00 (2019) 1–28 25 4.2.3. Channel utilization factor Figure 18a shows the channel utilization factor measurement for the EA-HMMP protocol, for the nearest smart meter node to the concentrator, and for the four available channels (one control channel and three data channels). As in the previous scenario, it can be seen how the control channel, dedicated to transmit only emergency and routing control messages, is never congested, since its ρvalue is very low. Also, data channels are not congested, since the value of ρnever reaches high values (always below the ρthreshold). On the other hand, the channel utilization decrease from the data channel 1 to the data channel 3, and in particular, data channel 2 presents the fall of the value of ρ(100 to 300s) when the system is in a high emergency situation. Finally, Figures 18b and 18c show the results for the channel occupancy in terms of temporary evolution and probability. In the same way as the previous scenario, it can be seen how as the network size is increased, a greater number of channels are used to transmit the applications. 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Control channel 36 nodes 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Data channel: 1 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Data channel: 2 0 100 200 300 400 500 time (secs) 0.0 0.2 0.4 0.6 0.8 1.0 ρ Data channel: 3 (a) ρmeasured. 0 100 200 300 400 500 time (secs) 1 2 3 n number of nodes: 9 0 100 200 300 400 500 time (secs) 1 2 3 n number of nodes: 16 0 100 200 300 400 500 time (secs) 1 2 3 n number of nodes: 25 0 100 200 300 400 500 time (secs) 1 2 3 n number of nodes: 36 (b) channel occupancy (temporary evolution). 0 100 200 300 400 500 time (secs) 1 2 3 n number of nodes: 9 0 100 200 300 400 500 time (secs) 1 2 3 n number of nodes: 16 0 100 200 300 400 500 time (secs) 1 2 3 n number of nodes: 25 0 100 200 300 400 500 time (secs) 1 2 3 n number of nodes: 36 (c) channel occupancy (pdf). Figure 18: Channel occupancy for the EA-HWMP (emergency situation: combined). 5. Conclusions In this paper, we have evaluated the feasibility of implementing an emergency aware congestion control mechanism in the context of Smart Grid Neighborhood Area Networks. For this purpose, a Wireless Mesh Network is used as the network technology and smart meters as mesh STA devices. First, the proposed mechanisms allow identifying the different applications and grouping them into different types of traffic. Second, different congestion control functions have been configured for each traffic type. These functions are intended to give a higher transmission probability to NAN applications with higher priority in situations of network congestion. In addition, these functions are adapted depending on the emergency situation. That is, in a high emergency situation, the transmission probability is increased even more for priority traffic types by discarding applications with lower QoS requirements. Also, our 25