Keywords

1 Introduction—WSN Critical Issues

There is no doubt that sensor networks have a plethora of practical applications [1, 2] for solving single or complex problems where multiple events take place and a rapid system response is needed. On the other hand, the physical field under the dynamic conditions where the WSN will be installed introduces critical issues such as the energy consumption and WSN configuration.

Energy consumption is affected by various factors such as network topology, routing decisions, communication schemes, system response, event occurrences, etc. The most common communication scheme for each node is the assignment of fixed time slots for transmitting and receiving data to/from other WSN nodes. Node energy is saved while a node is in sleep mode (no transmitting or receiving). Time is divided in fixed slots where each node has a specific time frame to transmit or receive. This technique is called Time Division Multiplexing (TDM). Based on the TDM [3], a scheduling mechanism must be applied in order to avoid collisions and, on the other hand to reduce power consumption by wasting time with useless transmissions.

Channel allocation constitutes another critical issue due to the fact that the channel space is limited. The above issue has not been studied in depth in the literature. Additionally, channel allocation and scheduling policy have to be well combined for reducing drawback factors for the WNS such as:

  • Only a limited number of nonoverlapping channels exist.

  • Co-channel interference cause transmission problems.

  • WSN nodes receive more than one packet (from individual sources).

  • Energy is wasted while nodes are in the idle listening period.

  • Overhearing where a node receives wrong packets (different destinations).

  • Redundant data.

  • Packet loss when the receiver is not ready.

The above issues become more critical regarding the established WSN topology where the tree, cluster, and hybrid constitute the possible approaches.

Despite the plethora of studies in the literature in the field of WSN scheduling and multi-agents, only few studies present how the multi-agent characteristics and real capabilities will be used for modeling WSNs. There is also a lack of formal analysis regarding fundamental multi-agent issues and many proposed solutions are specialized in specific applications. Moreover, there is also a lack of generalized practical implementations based on the multi-agent concepts regarding the scheduling policy.

In this paper, a preliminary novel modeling approach based on the multi-agent technology is presented. Moreover, the proposed approach is focused on scheduling policy for achieving low power consumption, faster mote response, and availability.

2 WSN Scheduling

Although there are many scheduling protocols, none has been adopted as a standard in the literature [3]. With no standardization in time scheduling, a new dynamic scheduling approach must be applied for the real-time adaptation of the WSN to current conditions.

According to scheduling idea the time space is divided in slots which have equal duration. A number of time slots are assigned to each node and every slot is used for a specific purpose. For example, the sleep mode is used for energy saving while other nodes are transmitting. Based on the corresponding TDMA protocol each node transmits, receives or sleeps. These actions have to be synchronized between nodes for guarantee the needed operation of the WSN.

2.1 TDMA Protocols

TDMA protocols in the literature try to optimize the time utilization by the WSN nodes in terms of energy consumption, responsiveness, routing, etc. Based on the above constraints, new critical issues, such as synchronization, time slot assignment, etc. have been emerged.

The proposed TDMA protocols in the literature try to solve common WSN issues based on an effective time scheduling manipulation. Issues such as sleep time manipulation with a corresponding energy-efficient wake-up [4], Co-channel interference which causes redundant retransmissions [5], slot reusability [6], traffic adaptive scheduling [7], etc. are faced by a number of protocols but no one (as a single protocol) can effectively solve the majority of the known issues in WSNs.

3 Multi-agent Technology (MAT)

3.1 Basic Concepts

Multi-agent technology (MAT) constitutes a quite old approach for modeling dynamic and/or complex systems but only few studies take in account the agent characteristics and exploit the real capabilities.

An agent can be defined as an autonomous computational system that works for specific and predefined goals [8]. Moreover, an agent interacts with the surrounding environment and acts on it. The most known and important attributes of an agent are:

  • Adaptability (agent change according to external or internal events)

  • Autonomy (control of its own actions)

  • Collaboration (with other agents for achieving common goals)

  • Interactivity (with surrounding environment)

A multi-agent system (MAS) consists of a number of agents which interact through communication.

These agents act in an environment within which they have different areas of influence (Fig. 1). Within the environment many influence areas may coincide. MASs can be viewed as a loosely coupled network of problem-solver entities that collaborate together with the common goal to solve the whole complex problem beyond the solving capabilities of each individual entity. Agent technology has been also used in the management of telecommunication systems.

Fig. 1
figure 1

Multi agent environment

3.2 Multi-agents in WSNs (Existing Approaches)

Based on literature analysis [37, 922], several key points have to be stated:

  • No application analysis. Only few studies present how the multi-agent characteristics and real capabilities will be used for modeling WSNs.

  • Lack of formal analysis. There is also a lack of formal analysis regarding fundamental multi-agent issues such as decision support, negotiation, interaction, autonomy, etc. In [19], the proposed approaches are well analyzed and defined regarding some of the fundamental multi-agent concepts.

  • Too specialized solutions. Other studies present significant applications [2022] but the proposed approaches are too specialized in specific fields. Thus, no generalization can be achieved.

  • Lack of generalized practical implementations based on the multi-agent concepts.

  • Dynamic scheduling is crucial. It is well known that the time scheduling affects directly the power consumption which is a very critical factor for the WSNs. There is a lack in the literature regarding dynamic scheduling based on the MAT. MAT may offer real-time scheduling manipulation achieving higher WSN adaptation to current conditions.

4 Modeling WSNs Using MAT (A Preliminary Analysis)

The MAS technology has sense and produces the desired results only in cases where the multi-agent concept can be applied and the agent features [23] such as adaptability, autonomy, collaboration, interactivity, etc. are used in practice. In other words Agent technology must be applied not only where the agent characteristics have sense but also where these characteristics improve the whole system performance which is valuated through selected metrics.

4.1 Why MAT for Modeling WSNs?

A WSN has some characteristics that must be faced in a dynamically manner and make hard the network management in terms of energy consumption, routing, and time response.

These characteristics can be presented in comparison with the existing approaches. The key issues of applying the MAT concept are the adaptation of the WSN to current management needs based on advanced decision support strategies.

When the MAT is applied properly, several characteristics of the WSN can be face differently:

  1. (1)

    Dynamic adaptation to environment conditions. Each node acts autonomously and adapts its behavior to current needs such as the sampling rate, data processing, communication, etc.

  2. (2)

    Dynamic node role. A sensor node can works as sink, single node, gateway, or backup node. The node or team role can be changed (updated) according to current needs. If the energy of the sink node is low then a different node is used as a sink. The new sink node may belong to a different cluster and is accessed via a gateway node (Fig. 2).

    Fig. 2
    figure 2

    WSN node role adaptation

  3. (3)

    Self/overall goal. Each node has a well-defined goal within the cluster. This goal has to be adapted to cluster and system overall goals.

  4. (4)

    Dynamic scheduling. In existing approaches the TDM scheduling is based on fixed algorithms that exploit the assigned time slots in every node. In a real environment the scheduling strategy must be dynamically adapted to current conditions. The scheduling priority management can cause minimization of energy consumption, faster node response, etc. Figure 3 shows the difference in time slot assignments in real time where dynamic priorities are applied. In Fig. 3 the corresponding scheduling priority is changed for nodes 1 and 2. In phase 1, node 1 has higher priority than node 2, and thus transmits bigger packets. Due to current conditions the data of node 2 are critical for the whole system and must be transmitted as soon as possible. Thus, the corresponding scheduling priority is changed between the involved nodes.

    Fig. 3
    figure 3

    Scheduling

  • Dynamic clustering. Based on current conditions dynamic clustering may be needed. When dynamic clustering is applied new members can be added in an existing cluster or o whole cluster can be created using existing nodes (Fig. 4).

    Fig. 4
    figure 4

    Dynamic clustering

  • Dynamic, fixed, and hybrid channel allocation. Channel allocation is not obvious in WSNs. Channel allocation must be performed dynamically based on CNIR measurements

When a real phenomenon take place in a different area (Fig. 5), then the WSN focus must be transferred (phase 1 to phase 2) using backup nodes as active (current active nodes become inactive-backup nodes). Moreover, when a great number of sensors are used (e.g., large-scale WSNs) channel allocation is also a very critical issue.

Fig. 5
figure 5

Adaptation to phenomenon occurrence

Channel allocation policy is not obvious especially when dynamic real-time phenomenon take place. Thus, an intelligent real-time dynamic channel allocation is needed.

4.2 MAT Adapted to WSN

The whole proposed model is based on the multi-agent technology (MAT) for adapting the supported WSN operations to current conditions. This adaptation is achieved through the exploitation of the MAT features for modeling the WSN. From now on each WSN node is called Agent Sensor Node (ASN).

4.2.1 Modeling the Basic ASN

For any WSN, the node is the fundamental element. Thus, the first step is to design the corresponding node model (Fig. 6).

Fig. 6
figure 6

Basic node model

Each node takes measurements from its environment and interacts with the rest WSN (requests, responses). Each node transmission is based on scheduling activity or alert. More precisely, transmission includes requests, responses, data, alerts at random time, or scheduled events.

An ASN consists of well-defined modules such as:

  • Problem solver. Supports all ASN services (core module).

  • Execution. Agent code activation.

  • Communication. Exchange information with other ASN (e.g., single ASN, sink).

  • Control. Controls the internal module interaction.

  • Negotiation module. Supports negotiation with other ASNs

4.2.2 Event-Based Node Model

During the node operation various events are occurred (internal or external). The event list is critical due to the fact that the node operation is based on these events (environment and WSN events). Figure 7 shows the event-based model.

Fig. 7
figure 7

Event-based model

Table 1 shows the basic WSN events categorized as internals or externals.

Table 1 WSN node event list

Based on the above fundamental models, the corresponding agent-based model will be derived. Additionally, the multi-agent modeling will specify formally the corresponding events that initially have been presented in Table 1.

Table 2 illustrates clearly the dynamic characteristics of the proposed approach.

Table 2 Existing and proposed approaches

4.2.3 WSN Behavioral Modeling for Dynamic Scheduling

Each network node will act autonomously for achieving self goals. Additionally, network nodes contribute to overall system goals. Thus, decision support must be implemented in each node based on well-defined rules. Moreover, negotiation between nodes for achieving system adaptation to current needs and conditions is also needed.

In order to describe and implement the WSN behavior, a formal modeling must be performed as first step. In the presented analysis it is assumed that the node behavior affects the scheduling policy of the cluster.

For a MAT-based modeling specific metrics must be adapted for measuring the resulting WSN performance. Multi-agent self behavior, agent interaction, and agent negotiation constitute key issues for the new model.

Each node decides for its behavior based on current-self performance.

A number of metrics (power based or response based) can be used at node or cluster level such as:

  • Average sleep period (ASP). Larger sleep period means lower power consumption.

  • Miss ratio (MR). Fail ratio in communication.

  • Percentage of retransmissions per packet (RP). Packet retransmission means higher power consumption and higher network congestion.

  • Transmission delay (TD). The needed time for a complete transmission.

All the above metrics are applied at ASN or cluster level (Fig. 8).

Fig. 8
figure 8

Cluster and self metrics

For the first modeling attempt, the ASP and RP will be used.

Based on the above selected metrics it is assumed that the possible discrete states of the of the WSN (node or cluster level) can be described by the set E as

$$E_{P} = \left\{ {{\text{LL}},\,{\text{LH}},\,{\text{HL}},\,{\text{HH}}} \right\}$$
(1)

The pair members of the set E represent the level (performance) of ASP and RP metric, respectively (L = LOW, H = HIGH).

On the other hand, each ASN has a set of possible actions (A C ) on the WSN environment.

$$A_{C} = \left\{ {{\text{IP}}_{{{\text{ASN}}n}} ,\,{\text{DP}}_{{{\text{ASN}}n}} ,\,{\text{DN}}_{{{\text{ASN}}n}} } \right\}$$
(2)

where IP is the action “Increase Priority,” DP represents the action “Decrease Priority” and DN is the action “Do nothing” for the nth ASN. The key issue for controlling the resulting performance is the scheduling priority of each ASN. Thus, each ASN acts autonomously for achieving better self-performance.

The above actions are requests to the main cluster node (when the centralized control is applied) or to other ASNs (distributed control) based on the applied negotiation scheme for rearranging the time slots within the scheduling sequence.

The environment changes its state (performance) based on the above actions. A sequence of actions causes a sequence of state changes. Thus, a run, r, of an ASN is in the above agent run, the WSN performance regarding the metrics ASP and RP is high (H) and high (H). The scheduling priority of a specific ASN is increased and at the same time the priority of another ASN is decreased. These actions change the RP status to the lower level. Finally, another action restricts both ASP and RP to a lower level.

$$r:{\text{HH}}\mathop \to \limits^{{{\text{IP}}_{\text{ASN}} ,{\text{DP}}_{\text{ASN}} }} {\text{HL}}\mathop \to \limits^{{{\text{IP}}_{\text{ASN}} ,{\text{DN}}_{\text{ASN}} }} {\text{LL}}$$
(3)

Based on the above approach, the performance levels can be analyzed to more representative values.

4.2.4 ASN Interaction

ASNs, percept environment (performance, real-time phenomenon, communication) and act on it. These two distinct activities (perception, action) are represented by two functions within the ASN (Fig. 9).

Fig. 9
figure 9

Environment perception

The function “SEE” maps environment (states) to perceptions and function “ACTION” maps percepts to actions. In current approach, the metrics ASP and RP have been chosen for evaluating performance. These metrics can be also expressed with the following subsets:

$$E = \left\{ {\{ \overline{S} ,\,\overline{R} \} ,\,\{ \overline{S} ,\,R\} ,\,\{ S,\,\overline{R} \} ,\,\{ S,\,R\} } \right\}$$
(4)

where S represents the statement “ASP is acceptable” and R represents the statement “RP is acceptable.” Table 3 shows the meaning of the subsets of E.

Table 3 ASP and RP metrics

It also must be stated that expression (4) is equivalent to expression (1).

Let P 1 and P 2 indicate if the ASP metric is acceptable. Based on this assumption, the behavior of the “SEE” function can be described as:

$${\text{SEE}}(e) = \left\{ {\begin{array}{*{20}c} {P_{1} } & {\text{if}} & {e = e_{1} } & {\text{or}} & {e = e_{2} } & {\text{bad}} \\ {P_{2} } & {\text{if}} & {e = e_{3} } & {\text{or}} & {e = e_{4} } & {\text{good}} \\ \end{array} } \right\}$$
(5)

with, \(e_{1} = \{ \overline{S} ,\,\overline{R} \} ,\,e_{2} = \{ \overline{S} ,\,R\} ,\,e_{3} = \{ S,\,\overline{R} \} ,\,e_{4} = \{ S,\,R\}\)

For the metric RP, the SEE (e) is as follows:

$${\text{SEE}}(e) = \left\{ {\begin{array}{*{20}c} {P_{1} } & {\text{if}} & {e = e_{1} } & {\text{or}} & {e = e_{3} } & {\text{bad}} \\ {P_{2} } & {\text{if}} & {e = e_{2} } & {\text{or}} & {e = e_{4} } & {\text{good}} \\ \end{array} } \right\}$$
(6)

4.2.5 ASN Negotiation for Dynamic Adaptation to Current Needs

Each agent adapts its behavior to current environment conditions, collaborates with others and makes decisions autonomously.

As mentioned before, each ASN contains a negotiation module which supports negotiation with other ASNs based on well-defined rules.

Negotiation can be approached as centralized or distributed (Fig. 10). In centralized negotiation scheme, every single ASN negotiates with a central node and asks for scheduling priority rearrangement. After the ASN request arrival, the central node rearranges or not the current scheduling assignments. In distributed negotiation, an ASN negotiates with another ASN for mutual rearrangement of scheduling priorities.

Fig. 10
figure 10

Negotiation types

Figure 11 constitutes a synopsis of the ASN behavior regarding the corresponding metrics and negotiation approach. If current status of an ASN is critical (e.g., ASP or RP not acceptable or low power) then an attempt for finding another ASN for negotiation is performed. The negotiation is take place for mutual priority rearrangement (MPR) between the two ASNs. If the negotiation result is not acceptable then another attempt is performed for finding an available ASN (if any). Otherwise, if the negotiations are failed and no other ASN is available then the critical status flag is activated for this ASN. On the other hand, if the self status is not critical and current status is stable (as compared to previous) then the requests for MPR from other ASNs are accepted, otherwise MPR requests are also accepter under hard constraints.

Fig. 11
figure 11

ASN behavioral chart

5 Conclusions and Future Work

In this paper, a very clear modeling approach has been presented for adapting multi-agent technology in WSNs where the real conditions are changed in a dynamically manner. This preliminary analysis shows also that the multi-agent technology can contribute significantly in the field of WSNs where crucial characteristics such as power, time response, and real phenomenon are changing dynamically. It is also important to state that the multi-agent technology has sense if and only if all the requirements and specifications of agents are met as well as the practical improvement of the WSN when this approach is used.

The next step of this study is the practical and progressive implementation of a low cost WSN for studding in depth dynamic WSN characteristics such as dynamic roles, clustering, time scheduling manipulation, etc. Through this implementation, the capabilities, limitations, and other issues regarding the scheduling algorithms will be also investigated.