A discrete-time chaotic oscillator based on the logistic map: A secure communication scheme and a simple experiment using Arduino
Abstract
This paper presents a modified discrete-time chaotic system obtained from the standard logistic map model. Then, a secure communication system is given and numerical experiments are carry out using the conceived discrete-time chaotic oscillator. Moreover, an experiment of our chaotic model is realized using the Arduino-UNO board.
Full text
Author's Accepted Manuscript A discrete-time chaotic oscillator based on the logistic map: A secure communication scheme and a simple experiment using Arduino Leonardo Acho PII: S0016-0032(15)00127-1 DOI: http://dx.doi.org/10.1016/j.jfranklin.2015.03.028 Reference: FI2295 To appear in: Journal of the Franklin Institute Received date: 25 March 2014 Revised date: 5 December 2014 Accepted date: 20 March 2015 Cite this article as: Leonardo Acho, A discrete-time chaotic oscillator based on the logistic map: A secure communication scheme and a simple experiment using Arduino, Journal of the Franklin Institute, http://dx.doi.org/10.1016/j.jfranklin.2015.03.028 This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting galley proof before it is published in its final citable form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain. www.elsevier.com/locate/jfranklin
A discrete-time chaotic oscillator based on the logistic map: a secure communication scheme and a simple experiment using Arduino Leonardo Acho CoDAlab, Departament de Matem`atica Aplicada III, Escola Universit`aria d’Enginyeria T`ecnica Industrial de Barcelona, Universitat Polit`ecnica de Catalunya, Comte d’Urgell,187, 08036 Barcelona, Spain. [email protected] Abstract This paper presents a modified discrete-time chaotic system obtained from the standard logistic map model. Then, a secure communication system is given and numerical experiments are carry out using the conceived discrete-time chaotic oscillator. Moreover, an experiment of our chaotic model is realized using the Arduino-UNO board. Key words: Logistic map; bifurcation diagram; chaos; secure communication; Arduino-UNO board. 1 Introduction The logistic map is considered as a well known non-linear recurrent relation with a single parameter, a1, given by [1], [2], [3]: x1(k+1)=a1x1(k)(1 −x1(k)).(1) Basically, the logistic map was postulated to describe the single specie population dynamics of size x1being a1the growth rate of the population [4]. In biology, this model can approximate the dynamics of many different birth/death processes [4]. In electronic communications and information science fields, the discrete-time logistic map can be used to generate a chaotic signal on chaosbased secure communication system designs [5], [6], or as a chaotic noise generator [7], among others. For instance, the logistic map can be employed to model some processes in chemistry [3], and so on. 1
In recent years, new discrete-time chaotic systems, based on the logistic map, have been proposed. For instance, in [3], some modified logistic maps of arbitrary power are studied. Using delay and q-deformations, some chaotic logistic maps are studied in [8]. The discrete 1fractional logistic map is analyzed in [9], and the fractional sine and standard maps are examined in [10]. For an application of a modified logistic map, see [11]. In this paper we will investigate another case of logistic map. Also, we will give a secure communication design. On the other hand, one of the open-source hardware projects now popular is Arduino. Arduino microcontroller is a single board computer easy to use that has gained considerable attention in the hobby and professional market [12], [13], [14], [15]. The Arduino hardware is reasonably priced and development software is completely free and easy to use too. To evidence the applicability of our discrete chaotic oscillator in today digital technology, we program our discrete chaotic oscillator in Arduino (the Arduino-UNO board). The content of the rest of the paper is as follows. Section 2 gives a modified version of the chaotic logistic map including its bifurcation diagram, its initial conditions sensibility test, and its chaotic attractor. We use the standard logistic map for comparison. Section 3 shows a secure communication scheme along with numerical experiments using our discrete chaotic oscillator. Section 4 presents an experimental realization of the given discrete model using the Arduino-UNO board. Finally, Section 5 states the conclusions. 2 The proposed logistic map We grant the following modified version of the logistic map: x2(k+1)=−a2sgn(x2(k))(1 −x2(k)),(2) where sgn() represents the signum function and a2is the system parameter. To study its dynamics, Fig. 1 shows its bifurcation diagram along with the bifurcation diagram of the standard logistic map. Here after, and according to these bifurcation diagrams, we are going to use a1=3.8anda2=1.3 to have chaotic behaviors on both discrete systems: the standard logistic map, and the conceived system, respectively. Thus, Fig. 2 shows the initial conditions sensibility test using initial conditions x1(0) = 0.1andx1(0) = 0.15, and x2(0) = 0.1and x2(0) = 0.15, for the standard map, and the modified one, respectively. In red are the discrete-time trajectories corresponding to x1(0) = 0.1andx2(0) = 0.1, and in blue to those corresponding to x1(0) = 0.15 and x2(0) = 0.15. Whereas, Fig. 3 displays theirs chaotic attractors. 1In some references, discrete systems means discrete-time models. So, and depending on the context, these terms can be used interchangeably. 2
0.5 1 1.5 2 2.5 3 3.5 4 0 0.5 1 x1 a1 0.2 0.4 0.6 0.8 1 1.2 1.4 −2 0 2 4 x2 a2 Figure 1: Bifurcation diagrams (long-term values). Top: for the standard logistic map, Bottom: for the given system. 2 4 6 8 10 12 14 16 18 20 0 0.5 1 x1(k) k 2 4 6 8 10 12 14 16 18 20 −2 0 2 4 x2(k) k Figure 2: Initial conditions sensibility test. Top: for the standard logistic map, Bottom: for the given model. 3
0 0.2 0.4 0.6 0.8 1 0 0.5 1 x1(k) x1(k+1) −2 −1 0 1 2 3 −2 0 2 4 x2(k) x2(k+1) Figure 3: Chaotic attractors. Top: for the standard logistic map, Bottom: for the proposed modified logistic map. 2.1 Lyapunov exponent Logistic map.- Lyapunov exponent is another mathematical tool to test chaos. Basically, this tool is a quantity that characterizes the rate of separation of infinitesimally close trajectories [2]. Let us considerer the logistic map (1), on f(x1(k); a1)=a1x1(k)(1 −x1(k)).(3) For an orbit of f(x1(k); a1) starting at x(0) = x0, the Lyapunov exponent, λ(x1(k),a 1;x0), is: λ(x1(k),a 1;x0) = lim N→∞ 1 N N−1 k=0 ln(|f(x1(k); a1)|),(4) where f(x1(k); a1)=a1−2a1x1(k). By repeating (4) (but using a large value of N, for instance, N= 10,000) for different values of parameter a1,andx0=0.5, then the picture shown in Fig. 4 is obtained. 4
3 3.2 3.4 3.6 3.8 4 −5 −4 −3 −2 −1 0 1 2 a1 Lyapunov exponent Figure 4: Lyapunov exponent of the logistic map. Remark 1.- In some numerical experiments of some scientific papers, usually, the initial condition x0is slightly different (and generated randomly) when the parameter a1is changed in (4). Qualitatively speaking, the results realized are the same. The proposed chaotic discrete system.- Due to we are dealing with a discontinuous system (because of the signum function term) in our proposed system (2), we can evolve an estimation procedure to obtain the Lyapunov exponent almost everywhere (a.e.). To begin with, let us follow the above procedure. In this case, we have: f(x2(k); a2)=a2sgn(x2(k))(1 −x2(k)) = a2(1 −x2(k)),x 2(k)>0 −a2(1 −x2(k)),x 2(k)<0. (5) Then, f(x2(k); a2)= −a2,x 2(k)>0 a2,x 2(k)<0=−a2sgn(x2(k)).(6) On this way, we obtain that |f(x2(k); a2)|=|−a2sgn(x2(k)) |=a2>0, a.e.. So, the Lyapunov exponent is positive proving chaos. 3 A secure communication system scheme To show the applicability of our discrete chaotic model to secure communication system design, we propose the scheme displayed in Fig. 5. In this Figure, the discrete chaotic systems, for the transmitter and the receiver, is the system (2). These systems start at the same time with same initial conditions (we use the value of 0.15). In digital communication systems, and due to we are utilizing 5
discrete-time oscillators, a communication protocol can be designed such that both discrete-time chaotic oscillators start working at the same time using the same initial conditions. This because in fully digital communication systems, the timing information is derived from the samples of the received signal. Then the sampling clock of the receiver with the remote transmit clock is synchronized [16] (this communication stage design is called carrier synchronization [17]), facilitating the synchronized data transfer between the transmitter and the receiver. The zero-order-hold (ZOH) blocks, employed to convert the discrete-time signal to a piece-wise continuous-time signal, are programmed to hold each sample for one second. For instance, Fig. 6 shows the ZOH response for the transmitter system. The low-pass-filter (LPF) corresponding to the receiver system has a transfer function given by G1(s)= 1 s+1,(7) whereas the LPF corresponding to the transmitter system is: G2(s)= m(t) s+m(t),(8) where m(t) is the information signal to be encrypted. This information signal is assumed to be a two value one (a binary signal). Fig. 7 shows the numerical experiment results. According to the last figure, the obtained signal 10 |e(t)| displays some characteristics that can be used to further estimate the transmitted message (see, for instance, [18] and [19]), using, for example, a filter [20], or some filtering along with a comparator data [21]. Figure 5: Block diagram of the proposed communication system. 6
0 50 100 150 200 −2 −1 0 1 2 3 4 x2zoh(t) t (s) Figure 6: Zero order hold response. 0 50 100 150 200 −1 0 1 2 Time (s) 0 50 100 150 200 0 2 4 6 8 Time (s) Figure 7: Numerical experiments of the proposed secure communication design. Top: the green-line is the information signal and the blue-line is the encrypted signal on the communication channel. Bottom: the green-line is the information signal and the blue-signal is 10 |e(t)|. Remark 2.- From the security point of view, apparently, if new chaotic oscillators are kept in secrecy, the secure of the communication system is increased. On the other hand, the study to resistant to attacks in the proposed system is beyond of the paper scope and expertise of the author. 7
4 An experiment using the Arduino-UNO board There are many Arduino boards. For a complete description of Arduino boards, see [12]. We select the Arduino-UNO. The experiment set-up is shown in Fig. 8. Basically, the Arduino-UNO pins 1 and 2 are used as digital outputs to turnon, or turn-off, the corresponding connected Led. Then, the discrete chaotic oscillator (2) 2was programmed (see Fig. 9). In this program, the Arduino- UNO output pin 1 is activated when x2(k)isbiggerthan1,otherwise,itis des-activated. The same for the Arduino-UNO output pin 2 but now using the caparison value to 0.5. The programmed activation and des-activation times were 200ms. Figures (10)-(11) display the experiment results. Figure 8: A photo of the experiment realization using Arduino-UNO. 2To implement the signum function, we used the approximation sgn(x)≃x |x|+0.01 8