% This is samplepaper.tex, a sample chapter demonstrating the
% LLNCS macro package for Springer Computer Science proceedings;
% Version 2.20 of 2017/10/04
%
\documentclass[runningheads]{llncs}
%
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{amsmath}
\usepackage{authblk}
\usepackage{makecell,array}
%\usepackage{natbib}
%\usepackage[square,sort,comma,numbers]{natbib}
%\usepackage[numbers]{natbib}
\usepackage[square,numbers]{natbib}
\usepackage{graphicx}
\usepackage{float}
\usepackage{gensymb}
% Used for displaying a sample figure. If possible, figure files should
% be included in EPS format.
%
% If you use the hyperref package, please uncomment the following line
% to display URLs in blue roman font according to Springer's eBook style:
% \renewcommand\UrlFont{\color{blue}\rmfamily}
\begin{document}
%
\title{A Regression based approach for link residual time prediction in MANETs \thanks{Gurukul Kangri Vishwavidyalaya, Uttarakhand}}
%
%\titlerunning{Abbreviated paper title}
% If the paper title is too long for the running head, you can set
% an abbreviated paper title here
%
\author{Surabhi Patel\inst{1} \and
Dr Heman Pathak\inst{2} }
%
\authorrunning{S. Patel and Dr H.pathak }
% First names are abbreviated in the running head.
% If there are more than two authors, 'et al.' is used.
%
\institute{Gurukul Kangri Vishwavidyalaya, Uttarakhand \and
\email{surabhipatel30@gmail.com}\\
\and
Gurukul Kangri Vishwavidyalaya, Uttarakhand\\
\email{hpathak@gkv.ac.in}}
%
\maketitle % typeset the header of the contribution
\begin{abstract}
Mobile ad-hoc network (MANET) is a collection of mobile terminals forming an infrastructure less and quick deployable network, which can communicate to each other via multiple hops or single hop. Such ad-hoc networks have always been important for various applications like defence applications especially for countries like India having boundaries and regions with large geographical diversity. Mobility attribute is a notable one in MANETs, as this leads to frequent topology changes which are the primary cause of route failure. A route is an ordered set of links, hence for predicting future availability of any particular route, it is important to estimate the availability of its currently available constituent links. This paper explores various link availability prediction model and proposes a least square polynomial regression-based statistical approach to predict the availability of link. Proposed approach assumes that movement of nodes are based on column mobility model i.e each node in the network is linearly moving with constant speed. Each node in the network periodically broadcasts hello packets to its neighbours to inform it's availability in the network. Neighbour node receives hello packet and uses its signal strength to estimate distance between sender and receiver of hello packet. A monotonically decreasing signal strength of hello packets at receiver node indicates that nodes are moving away from each other and link between them may break in future so it starts link residual time prediction algorithm to predict the time when the distance between them will exceed the pre-defined threshold value. The proposed algorithm is simulated using NS 2.35. The performance of the algorithm has been analyzed for identified parameters. The results are also been compared by simulating other existing link prediction approaches based on interpolation.
\keywords{Ad Hoc Networks \and MANET\and Mobility \and Link prediction.}
\end{abstract}
%
%
%
\section{Introduction}
Mobile ad-hoc network (MANET)is a collection of mobile nodes and operates in a self-organised manner. The nodes move in an arbitrary manner and routes are prone to frequent breakage. Lack of central control and frequent breakage of routes make a big challenge for routing protocols.
\par
Routing protocols in MANETs are classified into three categories: proactive, reactive and hybrid ~\cite{r1}. Proactive protocols such as distance vector routing protocol maintain a database of route information at each node in the network before routing starts. Reactive protocols do not maintain route information, it only identifies routes that are required to carry data in the network. AODV ~\cite{r2} is an example of reactive routing protocols. Hybrid protocols combine the best features of proactive and reactive routing protocols such as zone routing protocol.
\par
Frequent change in topology caused by the mobility of nodes affects QoS (Bandwidth, delay, jitter, throughput, etc.) requirements in MANET application ~\cite{r3}. Routing protocols should adapt dynamic change in topology. Majority routing protocols are designed to find out the shortest path, but due to the mobility of nodes links on the shortest route may fail. This failure causes data loss and connection interruption if rediscovering of the route is not done rapidly. The availability of routes can be estimated by predicting the availability of the links between nodes which are forming the route. When a link failure is expected, then upstream nodes find a new route within link residual time. If the new route is not found upstream nodes propagate warning message to the source node before the link residual time.
\par
Manet protocols are based on layered architecture, for optimization of protocols need to go for cross-layer architecture. A notable amount of research has been done on cross-layer approaches ~\cite{r4,r5} in order to improve the performance of protocols. Cross-layer approach uses the interaction between non- adjacent layers with different objectives. In the proposed approach also cross-layer interaction between physical and network layers is utilized for link failure prediction. Network layer utilizes received signal strength (from the physical layer) of hello packets for optimizing AODV routing protocol.
\par In this paper, least square polynomial regression approach ~\cite{r6,r7} is discussed for estimating for how much time any particular link will be active. Monotonically decreasing received signal strengths of hello packet is used as the dataset for discussed regression-based statistical approach.
\section{literature survey}
In this approach, ~\cite{r8} monotonically decreasing received signal strength is used for predicting the availability of link. Prediction is done by one mathematical model which is based on the Newton divided difference method.
\par
Stability of the link for the flow of data in multimedia is an important issue. This paper ~\cite{r10} presented a scheme for estimating link lifetime. Newton interpolation polynomial mathematical tool is used to approximate received signal strength within limited samples and link lifetime estimation is done by interception and middle value.
\par
This paper ~\cite{r11} presented the statistical parametric model to distributions of the link lifetime for different-2 mobility pattern. Four-link lifetime distribution pattern are discussed (Gamma, Weibull, Lognormal, Exponential) based on mobility pattern (Manhattan, low speed, high speed).
\par
In this paper ~\cite{r9} original AODV routing protocol is used. Authors are estimating link expiration when a node is in the preemptive region. Preemptive region means, when a node is receiving packet signal strength from the upstream node is less than threshold signal strength. When a node is in the preemptive region, the signal strength of the last three consecutive packets and their arrival time are used in Lagrange interpolation for predicting link expiration.
\section{Regression based approach for link residual time prediction(RLRP)}
MANET is infrastructure less network form by mobile nodes. These mobile nodes communicate to each other via single hop or multiple hops. Mobility is a key attribute, this causes route failure because the topology of the network changes frequently. So for predicting the future of network topology, link residual time prediction is an important field.
\par
Proposed approach is based on column Mobility Model ~\cite{r15} of mobile nodes it assumes that each node broadcast hello packets to inform its availability in the range. When neighbour node receives hello packet from a sender it uses its signal strength (RSSI Value) to estimate the distance between them.
------
monotonically decreasing sequence of RSSI indicates that nodes are moving away from each other and link between them may break down in future. -----.
\par
Regression-based approach for link residual time prediction(RLRP) is based on least square polynomial regression. Regression is a better approach than interpolation ~\cite{r16} because interpolation looks for the predicted form of function but in regression looks for a function that minimizes error, this needs a good approximation.
The following steps are discussed below:
\begin{enumerate}
\item Let node $i$ and $j$ are any two neighbour nodes of MANET.
\item Node $i$ broadcasts hello packets of constant predefined signal strength at periodic intervals.
\item Neighboring node $j$ receives these packets and maintains a record of RSSI (received signal strength indication) and packet arrival time in a table. RSSI is a measurement of the signal strength in recieved radio signal. Let $RSSI_{i,j_{1}},RSSI_{i,j_{2}},......RSSI_{i,j_{m}}...\\
.....RSSI_{i,j_{n}}$ are signal strengths of recieved hello packets by $j$th node transmitted from $i$th node recieved at time $t_{i,j_{1}},t_{i,j_{2}},......t_{i,j_{m}}.....t_{i,j_{n}}$ respectively.
\item When node $j$ observes a monotonically decreasing pattern of received signal strengths of hello packets as in equation~\ref{eqn:rssi}; In considered case let $m$th onward packets have monotonically decreasing RSSI valuues then:
\begin{equation}
\label{eqn:rssi}
RSSI_{i,j_{m}}>RSSI_{i,j_{m+1}}>RSSI_{i,j_{m+2}}.....>RSSI_{i,j_{m+n}}
\end{equation}
A set ${\Re}_{i,j}$ as equation~\ref{eqn:set} is formulated with above monotonically decreasing hello packet signal strengths and times as elements.
\begin{equation}
\label{eqn:set}
{\Re}_{i,j}= \left\lbrace (RSSI_{i,j_{m}},t_{i,j_{m}}),(RSSI_{i,j_{m+1}},t_{i,j_{m+1}}), \\
...,(RSSI_{i,j_{m+p}},t_{i,j_{m+p}})...\\
,(RSSI_{i,j_{m+n}})\right\rbrace
\end{equation}
\item Least square polynomial regression based link failure prediction module is invoked.
\begin{itemize}
\item Following is the representation of quadratic model which relates elements of set ~\ref{eqn:set}.
\begin{equation}% ##-- EQUATION TEMPLATE --##
\begin{aligned}
\left[\begin{matrix}RSSI_{i,j_{m}} \\RSSI_{i,j_{m+1}}\\ \vdots\\RSSI_{i,j_{m+p}}\\ \vdots\\RSSI_{i,j_{m+n}}
\end{matrix} \right] = \left[\begin{matrix} t^{2}_{m} & t_{m} & 1\\t^{2}_{m+1} & t_{m+1} & 1\\ \vdots & \vdots & \vdots\\t^{2}_{m+p} & t_{m+p} & 1 \\ \vdots & \vdots & \vdots \\t^{2}_{m+n} & t_{m+n} & 1 \end{matrix} \right]
*\left[\begin{matrix} a_{ij} \\ b_{ij} \\ c_{ij}\end{matrix} \right]
\end{aligned}\label{eq:six}
\end{equation}
\item Equation:~\ref{eq:seven} is simplified representation of equation:~\ref{eq:six}.
\begin{equation}% ##-- EQUATION TEMPLATE --##
\begin{aligned}
\varUpsilon_{ij} = \varPhi_{ij} *\varTheta _{ij}
\end{aligned}\label{eq:seven}
\end{equation}
where
\begin{equation}% ##-- EQUATION TEMPLATE --##
\begin{aligned}
\varUpsilon_{ij} =\left[\begin{matrix}RSSI_{i,j_{m}} \\RSSI_{i,j_{m+1}}\\ \vdots\\RSSI_{i,j_{m+p}}\\ \vdots\\RSSI_{i,j_{m+n}}
\end{matrix} \right] , \varPhi_{ij} =\left[\begin{matrix} t^{2}_{m} & t_{m} & 1\\t^{2}_{m+1} & t_{m+1} & 1\\ \vdots & \vdots & \vdots\\t^{2}_{m+p} & t_{m+p} & 1 \\ \vdots & \vdots & \vdots \\t^{2}_{m+n} & t_{m+n} & 1 \end{matrix} \right] , \varTheta _{ij}=\left[\begin{matrix} a_{ij} \\ b_{ij} \\ c_{ij}\end{matrix} \right]
\end{aligned}\label{eq:eight}
\end{equation}
\item Least Square estimate ~\cite{r17} $\hat{\varTheta_{ij}}$ of vector parameter $\varTheta _{ij}$ of equation:~\ref{eq:seven} is following:
\begin{equation}% ##-- EQUATION TEMPLATE --##
\begin{aligned}
\hat{\varTheta_{ij}}={(\varPhi^{T}\varPhi)}^{-1}\varPhi^{T}\varUpsilon_{ij}
\end{aligned}\label{eq:eight}
\end{equation}
\item In this way one can estimate values of $\hat{a}_{ij}$,$\hat{b}_{ij}$ and $\hat{c}_{ij}$ and express signal strength of $i\Leftrightarrow j$th link $RSSI_{ij}$. Equation:~\ref{eq:nine} represents best fit quadretic polynomial of signal strength with respect to time.
\begin{equation}% ##-- EQUATION TEMPLATE --##
\begin{aligned}
RSSI_{ij} = \hat{a}_{ij} t^{2} + \hat{b}_{ij}t + \hat{c}_{ij}
\end{aligned}\label{eq:nine}
\end{equation}
\item By antenna characteristics threshold value of signal strength $RSSI_{thresh}$ ~\cite{r12} , min signal strength rquired to be detected by reciever antenna is a known parameter. Solution of equation:~\ref{eq:ten} will provide estimate of time$\tau_{i,j_{break}}$ when link will break.
\begin{equation}% ##-- EQUATION TEMPLATE --##
\begin{aligned}
RSSI_{thresh} = \hat{a}_{ij} t^{2} + \hat{b}_{ij}t + \hat{c}_{ij}
\end{aligned}\label{eq:ten}
\end{equation}
Value of $\tau_{i,j_{break}}$ can be calculated with help of Sridharacharya formulae ~\cite{r13}.
\begin{equation}% ##-- EQUATION TEMPLATE --##
\begin{aligned}
\tau_{i,j_{break}} =\frac{-\hat{b}_{ij} \pm \sqrt{\hat{b}_{ij}^{2}-4\hat{a}_{ij}\hat{c}_{ij}}}{2\hat{a}_{ij}}
\end{aligned}\label{eq:eleven}
\end{equation}
This computed value $\tau_{i,j_{break}}$ is the estimated time when link between $i_{th}$ and $j_{th}$ node will break.
\end{itemize}
\item When Current time= $\tau_{i,j_{break}}- \delta$, where $\delta$ is very small time; corrective action is taken to prevent packet drop.
\end{enumerate}
\section{ Simulation Results and Analysis}
The proposed approach is based on AODV routing protocol. NS-2.35 ~\cite{r14} tool is used for simulation. NS2.35 is an open source tool which is used for research in networking.
\subsection{Experimantal setup}
Column Mobility Model ~\cite{r15} is used for representing mobility of node. In column mobility model, a set of mobile nodes are moving linearly from one location to another location. Velocity of nodes varies from 2 m/s to 10m/s. The simulation area is 500*500, omni-direction antenna model and two-way ray ground radio propagation model are used. In Table~\ref{tab1} detailed parameters for simulation are summarized.
\begin{table}
\caption{Simulation parameters}\label{tab1}
\begin{center}
\begin{tabular}{|c c |}
\hline
Parameters & Values \\ [0.5ex]
\hline\hline
Size & 500 m by 500 m \\
\hline
Simulation Time & 500 s \\
\hline
Velocity & 2,4,6,8,10 m/s \\
\hline
Packet length & 512 bytes \\
\hline
Traffic pattern & TCP\\ [1ex]
\hline
MAC protocol & IEEE 802.11 \\ [1ex]
\hline
\end{tabular}
\end{center}
\end{table}
\subsection{Analysis of results}
\begin{table}
\caption{Comparision of estimated vs actual link residual time }\label{tab2}
\begin{center}
\begin{tabular}{|c c c|}
\hline
Link No & Estimated Residual Time & Actual Residual time \\
\hline\hline
1 & 252.2639 sec & 251.9715 sec \\
% \hline
2 & 227.7949 sec & 226.4358 sec \\
% \hline
3 & 209.076 sec & 207.9343 sec \\
% \hline
4 & 204.8224 sec & 204.0284 sec \\
% \hline
5 & 168.5515 sec & 167.4681 sec \\
% \hline
6 & 97.8936 sec & 96.5896 sec \\
\hline
\end{tabular}
\end{center}
\end{table}
Table~\ref{tab2} is representing a comparison of estimated link residual time with actual link residual time for a 5 node manet with node velocity 2m/sec. On observing the data one can conclude that the present algorithm is generating remarkable performance in terms of accurate estimation of link residual time.
\par Root-mean-square error (RMSE) of link residual time calculated as following equation:~\ref{eq:e1}is chosen as performance measure:
\begin{equation}% ##-- EQUATION TEMPLATE --##
\begin{aligned}
RMSE_{v}=\sqrt{\dfrac{1}{L}\sum_{k=1}^{L} (\tau_{k,v_{break}}-\tau_{k,v_{actual}})^{2}}
\end{aligned}\label{eq:e1}
\end{equation}
where $RMSE_{v}$ is Root-mean-square error (RMSE) of link residual time at node velocity $v$m/sec, $\tau_{k,v_{break}}$ and $\tau_{k,v_{actual}}$ are estimated and actual link residual times of any $k_{th}$ link of MANET of total $L$ links with node velocity $v$ respectivey.
\par
Fig:~\ref{Fig1} shows the comparison of RMSE for the different sets of n points with monotonically decreasing pattern of received signal strengths of hello packet used in the least square polynomial regression wrt velocity of nodes. It can be concluded that increasing node velocity is not directly affecting RMSE value of link residual time; means estimated link residual time is immune to node velocity scaling.
\par
There are three different curves showing RMSE vs node velocity relationship with varying number of hello packets of monotonically decreasing RSSI appearing in the figure:~\ref{Fig1}. It can be concluded that with an increasing value of $n$ there is again in RMSE value of error but since computational overhead is also increasing with $n$. Hence in this algorithm, an optimal value $n=5$ has been chosen.
\begin{center}
\begin{figure}
\includegraphics[width=11cm, height=5.5cm]{r1.jpg}
\caption{RMSE vs node velocity} \label{Fig1}
\end{figure}
\end{center}
\par
Fig.~\ref{Fig2} shows a comparison between regression and interpolation based approaches of link residual time estimation. From the figure, it can be concluded that by adapting regression-based approaches one can have an edge over interpolation based approaches. Mathematically, regression-based approaches uses a polynomial pattern within considered points; means there is no guarantee that polynomial will pass through at least one chosen point. On the other hand, interpolation provides curve fitting type solution; means it is guaranteed that a $n_{th}$ degree polynomial will pass through n selected points. In this, although it is guaranteed that there will be zero error at considered n points but for other points in the domain this polynomial will not provide a solution with the optimal error.
Although in both cases this polynomial is extrapolated as in equation:~\ref{eq:ten} to find a solution for link residual time, yet the regression polynomial is better approximated for this point.
\begin{center}
\begin{figure}
\includegraphics[width=11cm, height=5.5cm]{r2.jpg}
\caption{Comparision between RMSE of Interpolation vs Regression based residual time estimation} \label{Fig2}
\end{figure}
\end{center}
%\begin{table}
% \caption{Predicted link residual time and actual link failure time when node velocity is 2 m/sec}\label{tab2}
% \begin{tabular}{|l|l|l|}
% \hline
% Heading level & Example & Font size and style\\
% \hline
% Title (centered) & {\Large\bfseries Lecture Notes} & 14 point, bold\\
% 1st-level heading & {\large\bfseries 1 Introduction} & 12 point, bold\\
% 2nd-level heading & {\bfseries 2.1 Printing Area} & 10 point, bold\\
% 3rd-level heading & {\bfseries Run-in Heading in Bold.} Text follows & 10 point, bold\\
% 4th-level heading & {\itshape Lowest Level Heading.} Text follows & 10 point, italic\\
% \hline
% \end{tabular}
% \end{table}
\section{Conclusion}
The authors have presented a novel approach for link residual time prediction based upon cross-layer optimization and least square quadratic regression. Although these approaches are very powerful tools of contemporary researchers of networking community yet there are very limited examples of simultaneous use of both for link residual time prediction. Results are very promising and the algorithm is very simple in terms of implementation.
% ---- Bibliography ----
%
% BibTeX users should specify bibliography style 'splncs04'.
% References will then be sorted and formatted in the correct style.
%
\bibliographystyle{apalike}
\bibliography{mybib}
%
\end{document}