1 Introduction

Visible light communication (VLC) is one of the promising wireless communication technologies, which utilizes RGB or white LEDs to fulfill the dual requirement of communication and illumination in indoor scenario [1]. IEEE standard for Visible-light Personal Area Networks (VPANs) [2] has increased the research interest in developing and exploring techniques to achieve high data rates and reliable communication using common LEDs. Handover process of conventional wireless systems is referred as Link switching in VLC. Link switching is a critical parameter that deals with the signal degradation because of mobility of user device. Mobility can be categorized as; physical or logical. Physical mobility is change of position of user device due to the movement within a cell; while logical mobility refers to change in device communication link due to interference. Link switching techniques fall into two categories namely vertical and horizontal. Vertical handover refers to the automatic switching of datalink layer technology used to access the network to maintain desired QoS. There has been lot of efforts towards developing suitable handover mechanisms in vertical handover domain. [3,4,5]. However, horizontal handover when switching between light sources is required due to interference or change in receiver position has not garnered much attention. Nguyen et al. presented a novel RSS (Received signal Strength) prediction technique to reduce link switching delay; the presented technique also prevents unnecessary link switching [6]. Thai-Chien Bui et al. [7] presented a flexible link switching algorithm based on the received power by considering adaptive hysteresis margin.

In this paper, we propose a position prediction link switching algorithm for VLC configuration. Part II of the paper describes the related work; Part III gives background and proposed System model. Part IV presents the link switching algorithm developed and conclusions are drawn in part V. Finally part VI presents future scope of the work.

2 Related work

Cisco system has predicted that by year 2022 approximately more than 80% of mobile traffic will appear indoor and 71% of internet traffic will be due to mobile data. [8], further Bao et al. simulated a hybrid VLC network and implemented an algorithm for efficient access and hand over control. Algorithm proposes a technique for subscriber to move to a VLC architecture and till the user is in VLC network, channel gain is higher as compared to standard value. [9] C. Jiang et al. work revealed load and traffic density follows temporary and spatial distribution law. [10] Issues related to limited availability of spectrum was explored by H. Haas et al., they published an article that explored possibilities that Li-Fi can offer radio frequency with increasing spectrum usage is following short of available bandwidth, shortage of spectrum has led to utilization of high frequency spectrum and Light fidelity is one of the potential area being explored. [11] Islim et al. presented how employing visible light for carrying signal can exploit, a lot of available unutilized optical spectrum, almost about 300 THz, ongoing studies reflect that the technology can achieve data rates as high as 10 Gbps [12]. D Karunatilaka et al. presented a model for integrating wireless networks with Li-Fi technologies,, here LED were employed to execute visible light communication, these were also tested and compared with other state of the art communication models. [13] P. H. Pathak et al. in 2015, explored issues and challenges with networking and communication with visible light and their potential for future applications of communication. Employing visible light communication would involve challenges of managing handover over heterogeneous networks, [14] D Q Hein et al. proposed techniques to manage seamless handover in VLC. [15] M. D. Soltani et al. simulated an algorithm for analyzing random orientation and user mobility in an Li-Fi scenario as the modified version to reflect channel occupancy to decrease collision probability. [16] The authors X. Zhou et al. developed an algorithm that works iteratively and emphasizes on power division, algorithm has two states, determining ideal power allocation and other is finding another AP for subscriber, algorithm is supposedly example of autonomous optimization. NOMA utilizes same frequency and time for communication with multiplexed power domain employing superposition coding with interference neutralization successively, the algorithm targets to explore cluster via game theory and merge and split technique to identify ideal user algorithm. [17] Recent algorithm with interference handling technique suggest that bandwidth can be completely utilized, Li-Fi APs can support high volume of data with rates in Gbps [18].

3 Proposed system model

To establish the proposed method of link switching, an empty conference room was chosen, where LEDs were mounted at defined points. Dimensions of conference room are 12 m × 12 m and height 3 m, with 9 white LED -based lighting cell array (3 × 3) mounted on the room ceiling with LED coverage. The VLC indoor system adequately fulfills the illumination requirement since illumination is the primary function of LED lighting system. Further the system can support the device mobility with continuous data transmission.

This LED distribution provides the illumination level specified in ISO standard (illumination 300 ~ 1500 lx in all the positions in the room) [19]. Thus, nine Access points are in positions (− 5; − 5;1.2), (− 5;5;1.2), (5; − 5;1.2), (5;5;1.2), (− 5;0;1.2), (5;0;1.2), (0; − 5;1.2), (0;5;1.2), and (0;0;1.2) as shown in Fig. 1. Movement of the mobile receiver device is assumed to be in a plane that is situated 1.8 m below the LED.

Fig. 1
figure 1

3D scenario with 9 LEDS and a moving receiver

Further, each LED source produces a circular lighting field. Thus, each lighting cell has omnidirectional signal coverage with radius r meter and each LED Access Point (AP) transmits at data rate D bits/sec at the center of the cell and a MT receives data when it is inside a lighting cell. Given a mobile terminal crossing a lighting cell at constant speed v [m/s], the cell gain [bits] is the number of bits received by the mobile terminal during the time interval it spends while traversing crossing the lighting cell.

The parameters that need to be monitored for performance assessment of the VLC system are the transmitted optical power and luminous intensity. Horizontal luminous intensity is given by (1) at the receiver plane when distance between the detector surface and LED is d

$$I_{hor} = I\left( 0 \right)cos^{{m_{1} }} \left( \varphi \right)Id^{2} .\cos \left( \psi \right)$$
(1)

where, φ is irradiance angle with respect to the axis, normal to the transmitter surface and \(\psi\) is the incidence angle with respect to the axis, normal to the receiver plane. I (0) is the luminous intensity at the middle point just below the light, and m1 is Lambertian emission order. If Ts (\(\psi\)) is the filter transmission function, received power is

$${P}_{r}= {P}_{t} \frac{{(m}_{1 }+ 1)}{2\pi {d}^{2}}{cos}^{{m}_{1}}\left(\varphi \right).{T}_{s}\left(\psi \right).g\left(\psi \right).\mathrm{cos}\left(\psi \right)$$
(2)

A simple linear optical AWGN channel is considered with the optical transmitted power Pt(t), impulse response h(t) and signal independent additive noise n(t) [20, 21].

Thus, VLC channel can be modeled as:

$${I}_{p }\left(t\right)= R{P}_{t}\otimes h\left(t\right)+n\left(t\right)$$
(3)

With transmitted optical power

$$P_{t} = \mathop {\lim }\limits_{T \to \infty } \frac{1}{T}\mathop \int \limits_{0}^{T} P_{i} \left( t \right)dt{ }P_{i} > 0$$
(4)

Indoor scenario also requires consideration of reflections from the walls. Thus, total Received power is given by 5 [22]

$$P_{r} = \sum \left\{ {P_{t} H_{d} } \right.\left( 0 \right) + \smallint P_{t} dH_{ref} \left. {\left( 0 \right)} \right\}$$
(5)

where Hd (0) directed path and first reflection at the receiver is:

$$H_{ref} = \rho d_{LED} A_{wall} cos^{{m_{1} }} \left( {\varphi_{r} } \right)\cos \left( {\alpha_{ir} } \right)\cos \left( {\beta_{ir} } \right)T_{s} \left( \psi \right)g\left( \psi \right)\cos \left( {\psi_{r} } \right)$$
(6)

where, dLED is the distance between the LEDs, ρ is reflectance factor, Awall is reflective area of infinitely small region, α and β are the angle of irradiance to a reflective point and ψr is the angle of incidence at the reflective surface. 3 D plot of the received optical power at different points in the room is plotted in Fig. 2

Fig. 2
figure 2

3D Plot for Received Power Distribution

4 Proposed link switching mechanism

Link switching techniques may be broadly categorized as:

4.1 Hard link switching

Hard link switching is the conventional way to perform the switching process. When strength of received signal goes down the threshold level, switching process is initiated. First user scans the neighborhood to find the best transmitter and subsequently sends the request to coordinator to switch the link; which accepts the request and sends instructions to disconnect the current link. Once, this link is disconnected, next link association request is generated by the user device. Coordinator checks with the designated transmitter and if response of this transmitter is positive, the link association is performed. Main drawback of hard link switching is disconnection from the current transmitter before association from the next transmitter. This results in service disruption and QoS degradation. Further scanning period increases the switching delay in addition to the delay involved in switching process.

4.2 Soft link switching

Soft link switching ensures that the user device is disconnected from the current serving transmitter only when link between the new serving transmitter and user device is established. This procedure ensures that there is no interruption in service and QoS is maintained. But for this we must pay a price for complex and expensive hardware, and user device is needed to receive signals from two or more transmitters simultaneously thus waste resources, increases data traffic and may result in downlink interference. Also, there is possibility of service interruption or low QoS, as sometimes, user device may not receive signal due to interference. In some cases, selected transmitter may not have enough resources to accommodate the user device.

Presently, methods available for link switching are:

Each UD (User device) sends back acknowledgement to the coordinator whenever it receives data. if coordinator does not receive acknowledgement in predetermined time, it searches for the acknowledgement in the same time slot in adjacent cells and if it found in other cell, control is transferred to corresponding cell [6].

Pre scanning & Received Signal Strength: In idle time UD checks signal from neighboring cells, makes a table; decides to switch link based on three thresholds [7].

We are hereby proposing a hard link switching algorithm, which does not require any complex circuitry and follows 802.15.7 standards for visible light communication. Proposed method is a novel approach because unlike conventional hard switching approach which allow the user to disconnect from a source when its signal strength is decreased to a minimum threshold. Then user searches for a new source to establish a new connection. Though our method, hard link switching approach pre scanning allows the coordinator to overlap the disconnection and new connection processes, bringing the link switching time ideally to zero.

Our Link switching process consists of following procedures:

5 Position estimation of mobile user

5.1 Recognition of the correct transmitter and Handover

First, we consider that in an indoor scenario where user devices are generally hand held devices and the speed of the owner of the device is not fast. We can also take the liberty that user generally moves approximately in a single direction with time and does not roam around arbitrarily. Second, we assume that with fixed interiors and light fixtures, the coordinator already has the information about the best suitable transmitter for any arbitrary position. With all these assumptions and information we propose a simple method of link switching which involves estimation of the future position of the user device and switching of transmitter links by the time user reaches that position. When user device receives or sends data in between two active periods there is an inactive or idle period. During this period UD scans the scenario and measures the strength of all the signals it receives. Then UD sends this measurement report to the coordinator. So, the proposed process starts with estimation of position of user.

5.1.1 Position estimation

In this paper, triangulation method has been used to determine the location of receiver since it provides better accuracy compared to global positioning system (GPS) in indoor environment for VLC transmission [22]. This technique helps to determine the location of receiver based on known positions of three transmitters. If T1, T2, T3 are three transmitters with known positions as shown in Fig. 3, then the position of receiver Rx (x, y) may be determined by solving the following equations where d1, d2, d3 are derived based on the RSS from corresponding Txs.

Fig. 3
figure 3

Triangulation method for prediction of Rx point

$${(x-{x}_{1})}^{2}+{(y-{y}_{1})}^{2}={d}_{1}^{2}$$
(7)
$${\left(x-{x}_{2}\right)}^{2}+{\left(y-{y}_{2}\right)}^{2}={d}_{2}^{2}$$
(8)
$${\left(x-{x}_{3}\right)}^{2}+{\left(y-{y}_{3}\right)}^{2}={d}_{3}^{2}$$
(9)

Coordinator bounds the channel time in superframe structure. A superframe as shown in Fig. 4 is started and ended by the transmission of a beacon frame and can have an active portion as well as an inactive portion.

Fig. 4
figure 4

Superframe Structure[2]

The Beacon Interval (BI) given by (10) defines the time between two consecutive beacon frames. BO is macBeaconOrder, SO is macSuperframeOrder and aBaseSuperframeDuration is a constant defined by the standard IEEE 802.15.7 [23] and is equal to 960 symbols, with a symbol time of 16 microseconds.

$${\text{BI}}\, = \,{\text{aBaseSuperframeDuration }}\cdot{ 2}^{{{\text{BO}}}}$$
(10)

Superframe duration (SD) defined by (11) gives the duration of the superframe.

$${\text{SD}}\, = \,{\text{aBaseSuperframeDuration }}\cdot{ 2}^{{{\text{SO}}}}$$
(11)

Thus, inactive period denoted by Tinactive is.

$${\text{T}}_{{{\text{inactive}}}} \, = \,{\text{BI}} - {\text{SD}}.$$
$${\text{T}}_{{{\text{inactive}}}} \, = \,{\text{aBaseSuperframeDuration }}\cdot \, \left( {{2}^{{{\text{BO}}}} - {2}^{{{\text{SO}}}} } \right)$$
(12)

During each inactive portion, user device measures the Received Signal Strength (RSS) of all the nearby transmitters and sends the measurement report repeatedly to the coordinator. Coordinator uses these RSS values to determine the current position of the user using triangulation method.

Coordinator thus generates a path report for every UD and adds its new position after every dt1 time interval (time between two inactive portions). Coordinator can predict the next position of the user using its previous path. If UD was at position 1(x1, y1) at time t = 0 and at position 2 at time t = dt1, where dt1 is the time interval between two inactive portions i.e. time interval between two measurement reports send by the user. Coordinator would calculate the next position of the UD at time t = 2dt1; time when user sends next measurement report.

$${x}_{e}= {x}_{2}+ \frac{({x}_{2}- {x}_{1})}{2}$$
(13)
$${y}_{e}= {y}_{2}+ \frac{({y}_{2}- {y}_{1})}{2}$$
(14)

Since user is moving with approximately same speed and direction; estimated position (xe, ye) will obviously be close enough to the actual position (× 3, y3) (Fig. 5).

Fig. 5
figure 5

Current position estimation

5.1.2 Recognition of correct transmitter and handover

Coordinator uses this information to find the most suitable transmitter for this future position (Fig. 7). If this transmitter is different from the current serving transmitter; link switching process is initiated. Coordinator initiates both the disconnection process from the current transmitter and link association process with next transmitter simultaneously. This reduces the switching time and ensures minimum service disruption. By the time user reaches the next position, next transmitter starts the service. If dt2 is the time taken by the link switching process and dt1 is the time to reach next known position.

Then.

$${\text{dt}}_{{1}} \approx {\text{dt}}_{{2}}$$
(15)

if dt1 is nearly equal to dt2 successful handover is done and user enjoys uninterrupted service, which is shown in Fig. 6. This call diagram explains the switching of network based on the estimation of current position of user, their movement through synchronization the request via link switching and association.

Fig. 6
figure 6

Call flow diagram for proposed link switching algorithm

6 Results and analysis

Table 1 shows the values of the parameters based on the scenario discussed in the proposed system model. These values were achieved by running the Position Prediction based link switching Algorithm. All the values have been calculated based on the velocity of the user at 0.5 m/s with the active number of 10 devices in the proposed system.

Table 1 Simulation parameters

Key idea in this scheme is to rely on the accuracy of the prediction of the future position of the U.D. based on the direction and velocity of the user.This has been explained through the simulation, where, future positions are being predicted by the algorithm to enable the link switching mechanism. Figure 7 shows the simulation results of the position prediction of the user device.

Fig. 7
figure 7

Current position estimation, actual UD position future position prediction of MT

Coordinator stores the intensity distribution value of each source in the room and predicts future position of the U.D as shown in Fig. 7 and Intensity values of Sources at User plane) to initiate the link switching process if required. This simplifies the mechanism as coordinator initiates the link switching and decides the best transmitter for user. Coordinator has the intensity distribution values of each of the source in the room. Coordinators use these two things (1. Future position of the U.D and 2. Intensity values of Sources at User plane) to initiate the link switching process if required. User need not decide or choose the best transmitter for itself, neither it had to initiate the link switching process. All is taken care by the coordinator.

Traditional link switching delay can be calculated as:

$${\text{T}}_{{{\text{trad}}}} \, = \,{\text{t}}_{{{\text{scan}}}} \, + \,{\text{t}}_{{{\text{decision}}}} \, + \,{\text{t}}_{{{\text{discon}}}} \, + \,{\text{t}}_{{{\text{linksw}}}} \, + \,{\text{t}}_{{{\text{linkasso}}}} \, + \,{\text{t}}_{{{\text{sync}}}} ;$$
(16)

where tscan is the time to scan the neighboring transmitter after RSS reduced to a given threshold level, tdecision is time taken by the user device to select the next transmitter, tdiscon, tlinksw, tlinkasso and tsync are respectively time taken in present link disconnection process, new link establishment request, link association and synchronization process. Use of position prediction technique efficiently improves link switching delay time by eliminating the need of scanning and decision making time by user device. Also, the, link disconnection and new link establishment processes are performed simultaneously. This results in reduced link switching delay time. Link switching delay time in proposed scheme is given by (14).

$${\text{T}}_{{{\text{pred}}}} \, = \,{\text{t}}_{{{\text{discon}}/{\text{linksw}}}} \, + \,{\text{t}}_{{{\text{linkasso}}}} \, + \,{\text{t}}_{{{\text{sync}}}} ;$$
(17)

Simulation results are shown in Fig. 8. In this diagram, a comparison has been made between different link switching schemes like soft link switching, conventional hard link switching, pre-scanned received signal link switching with proposed Position Prediction based link switching scheme. This diagram clearly shows that the performance of the proposed link switching is much better than hard link switching and slightly lesser than soft link switching. However, on the basis of network complexity, it is much easier to implement than soft link switching.

Fig. 8
figure 8

Simulation results of Link Switching Delay

Superiority of the proposed scheme over other existing position prediction method is that need of scanning of resources done by user in conventional methods is eliminated which reduce considerable amount of time; plus time required to decide for a new source to connect is also eliminated, also link disconnection and new connection request are not to be sent by the user. Coordinator himself issues the instructions and can almost overlap these two. These feature in our scheme reduces the link switching time considerably and make this method most efficient of all the methods in the given scenario as shown by Table 2.

Table 2 Comparison of the various link switching methods

In the proposed algorithm, switching time remains almost constant as the link switching request is done by coordinator. In conventional methods, considerable amount of time is consumed in scanning the resources and making the decision to connect a new user. This time is reduced as.

7 Conclusion

The proposed Position Prediction based link switching scheme based on hard link-switching employing pre-scanning method works well with static indoor scenario. It can be implemented in normal offices/ workplaces where objects which can obstruct path of a light source are not moved on day to day basis. In such places, it is easy to use pre scanned information for link switching and any minor changes can be accommodated easily. The proposed scheme relies on the pre-scanned information of the indoor scenario stored in the coordinator’s database, which can be refreshed at regular intervals, considering, indoor scenario is static with reference to the position of the objects and LEDs. Any changes, if occur, can be incorporated in the coordinator database. Since, link switching is done automatically so time delay due to link disconnection request and link switching is reduced, thus, reducing the overall switching time. Further, user need not initiate the link disconnection request and link switching request and thus switching time is reduced. Predicted position accuracy can be increased further by considering three or more previous positions; thus reducing link switching error. If link switching failure occurs three or more time at a position, coordinator database is updated for the same. In addition, this link switching method does not require any complex circuitry or any software changes in User Device. Present work sets path for some very promising future extensions. Our future work will involve implementation of this technique to more crowded places and manufacturing units where coverage areas of light sources are affected by movements of large objects and/or human beings randomly and frequently with relatively greater speed of movement. In future, this method can be employed for small vehicular movement inside large manufacturing units.