Docsity

Mobile and sensor networks sbobinature, Sbobinature di Ingegneria industriale

Toggle sidebar
bg1
MOBILE AND SENSOR NETWORKS
BASIC CONCEPTS
WIRELESS COMMUNICATIONS
MODULATION
Process through which information is impressed on a sinusoidal signal with frequency fc, by varying
amplitude, frequency, phase or a combination of them.
In general, we could have a Digital or an Analog modulation.
DIGITAL ANALOG
From digital signal (1011001) to analogue signal
(magnetic waves)
Central frequency is translated to the carrier
frequency.
The starting signal is reported in binary code (fo=0;
fi=1). And to describe the bandwidth we adopt the
unity measure in bits.
The number of bits is defined through the letter n.
2
n
=a
, where a is the number of point reported on the
diagram as: a = 8
n = 3 3Mb/sec
The analogue modulation is related to the
frequency. With high f we will have better
antenna size (λ), but with low f the attenuation
will be better. Then, in general if the network
capacity increases follow that the area
coverage of a single communication node
decreases. Otherwise if the frequency grows,
the area coverage by a transmit power level
decreases.
CARRIER Sinusoid modulated in amplitude, frequency and phase. In particular, its frequency depends on
the relative technology used (e.g. WI-FI follows 2.4GHz).
WIRELESS SYSTEM CAPACITY
In general, the capacity of a wireless system is given by radio frequencies and how many users the system
can serve.
Let’s consider a service area (A) with a constant user density.
The operator which operates into the considered area buys a certain number of frequency bands (L). In
general, calling with N the number of operators, L < N, so we can assume that not all the users are covered
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Anteprima parziale del testo

Scarica Mobile and sensor networks sbobinature e più Sbobinature in PDF di Ingegneria industriale solo su Docsity!

MOBILE AND SENSOR NETWORKS

BASIC CONCEPTS

WIRELESS COMMUNICATIONS

MODULATION

Process through which information is impressed on a sinusoidal signal with frequency fc , by varying amplitude, frequency, phase or a combination of them. In general, we could have a Digital or an Analog modulation. DIGITAL ANALOG From digital signal (1011001) to analogue signal (magnetic waves) Central frequency is translated to the carrier frequency. The starting signal is reported in binary code (fo=0; fi=1). And to describe the bandwidth we adopt the unity measure in bits. The number of bits is defined through the letter n.

n

= a , where a is the number of point reported on the

diagram as: a = 8  n = 3 3Mb/sec The analogue modulation is related to the frequency. With high f we will have better antenna size (λ), but with low f the attenuation will be better. Then, in general if the network capacity increases follow that the area coverage of a single communication node decreases. Otherwise if the frequency grows, the area coverage by a transmit power level decreases. CARRIER  Sinusoid modulated in amplitude, frequency and phase. In particular, its frequency depends on the relative technology used (e.g. WI-FI follows 2.4GHz). WIRELESS SYSTEM CAPACITY In general, the capacity of a wireless system is given by radio frequencies and how many users the system can serve. Let’s consider a service area (A) with a constant user density. The operator which operates into the considered area buys a certain number of frequency bands (L). In general, calling with N the number of operators, L < N, so we can assume that not all the users are covered

by WI-FI. For a company, buy frequencies entail a high cost. In order to serve all the users spending as less as possible the company could exploit the distance at which signal propagates and is received (d). So, including other 2 frequency bands, into the area there will be 3 frequency bands, so the area can serve a number of users proportional to 3L every base station will transmit different traffic to the single user (non funziona come un ripetitore). RADIO PROPAGATION DEFINITIONS Eb = Energy per bit, the transmitted energy per bit Pt = Eb * Rb = Transmit power No = Noise power density POWER IN Db In general, the power is expressed in decibel dB And the absolute measurement power is expressed as: ATTENUATION IN THE FREE SPACE If we provide a power Pt to an antenna, the achieved power at a distance R becomes Where Gt and Gr (antenna’s gains) are equal to 1 if we consider an omnidirectional antennas. The attenuation is the relationship between Pt and Pr (power level) and considering where c is the light velocity, we can express the attenuation as path lass: and observe that it depends on the frequency. If we study the attenuation in the free space, Pr decreases quadratically with R, the attenuation is strictly related to the properties of antenna, the attenuation grows increasing the frequency. In general, in free space signal propagate in straight line. But, in our case, we have to consider the real propagation of the signal, because in the real case, we are in presence of no vacuum path, with the presence of elements able to absorb, scatter and refract the signal. This is the reason why the atmosphere causes some effects on the signal and its propagation.

REFLECTION

When we have diffraction and each of copies of the signal (secondary waves) follow a different path, due to the reflection. The receiver receives the signal, but in this case the signal could be affected by a delay, for example a different phase. This process does not follow a specific rule, but is random. MULTIPATH When a signal follows different paths, so we can receive the signal directly or not, it depends on the path of the signal. We could be lucky and receive directly the signal, or not, and receive a reflected/diffracted signal. In general, signals affected by multipath exhibit fading (dissolvenza). SHADOWING (slow fading) If RX is stationary  constant attenuation. If Rx is moving slowly  attenuation that is changing slowly in time. The signal could be affected by extra attenuation given by the movement of the obstacles. FAST FADING If the obstacle is moving significantly the multipath effect generates a fast fading. In number the attenuation up to 20-30dB SNR (signal to noise ratio) Parameter used to indicate the link quality when we have a single transmitter and a single receiver:

Prx

( N 0 ∗ B )

Prx = transmitted power attenuated by distance, shadowing, fading;

N 0 ∗ B = noise power;

N 0 = power spectral density;

SINR (signal to interference plus noise ratio) Parameter used to indicate the link quality when there are several nodes acting at the same time:

Prx

( I + N 0 ∗ B )

I = power emitted by interfering transmitters attenuated by distance, shadowing, fading; ERROR DETECTION AND RECOVERY FEC (forward error correction) = channel coding; ARQ (automatic retransmission re-Quest) Diversity-based techniques; Sometimes FEC and ARQ are combined. FEC Technique that could be classified in:

  • Block codes;
  • Convolutional codes; In order to be able to detect the error we have to insert redundant bits. These bits are not information, but codes. The question is how many bits we have to introduce? The answer depends on the propagation condition that we have. If the channel is good, we have to introduce few bits. If the channel is hush, we have to introduce a lot of bits in order to recover better the error. In block codes we must define the code rate (CR): CR = k/n;
  • k = user bits
  • n = number of bits
  • n-k = redundant bits Each code could correct at most t errors per block. SEE THE EXAMPLE!!! Talking about convolutional codes the goal is the same but changes the way. We use shift register with L elements of k bits and n algebraic function generators. The procedure is to remove k bits from the shift register. The final group of bits is composed by n bits, from the latest one composed by k bits. INTERLEAVING Procedure that changes the order in which symbols are transmitted over the channel, to destroy correlation between errors. An example regards FEC technique. From a FEC coding block, follows an Interleaver which is connected to a modulation block, which gives the modulated signal to the channel, after that follows a De-modulation block which gives to a De-interleaver a de-modulated signal read by a FEC decoding block. So finally, the FEC code is de-coded.

HOW MUCH IS LARGER THE MATRIX?

LATENCY = latenza = intervallo di tempo che occorre fra il momento in cui viene inviato il segnale al sistema e il momento in cui è disponibile il suo output. We have to account the concept of latency. When we perform interleaving, before to proceed with modulation, I have to wait, because I have to read the matrix column by column, so at least the matrix has to be field in up to the first element of the last row, before that I have to read the first column and send it to the next stage that is the de-modulated block, and at the receiver I need to do something similar. First of all I write column by column and read it row by row, this means that before I can proceed with the de-coding FET de-coding step, I need to have fill in the matrix almost completely, because I need to have at least the first element of the last column. So this means that I introduce a latency in the transmission and in the reception, and latency grows with the size of the interleaving matrix, this latency is something that might be acceptable or not, it depends on the application that we are considering. OSS: FET is a random process, so we do not know which symbol is affected, initially we suppose everything correct, and after the interleaving we can know which one is affected. In order to make interleaving very robust, we should dimension the matrix in order that its size can match the longest possible burst error in the channel. Statistically this length of error might be any number. What we do is indeed to find again the right trade off, between the ability to make the interleaving effective and the latency that we are allowed to introduce. MATRIX SIZE IS STRICTLY CORRELATED TO THE LATENCY Ideally, if we do not consider latency, we have to make very large interleaving matrix, because in that case we will be pretty sure that even if we get a very long burst of error we are still able to interleaving, but unfortunately, we have to limit this latency that we introduce, so is a trade of between maximum burst length that we expect and the latency that we introduce, there is no a magic number, it depends on the environment where we are, and then we can estimate at least the average length of the error bursts and based on that and on the application requirements in terms of latency, we can dimension the interleaving step in an optimal way. ARQ It is performed typically at the protocol layer. NOT PHISICAL LAYER TECHNIQUE. The idea is that, first of all, we work at higher protocol layer (packets). Let’s assume that we have packet header where are several bits, and when there is a payload that is what is consider to be useful bits at that protocol layer, and then finally we have header that carries control bits, and in this header we have the sequence number of the packet. We have also in a part of the control bits that are included in a packet a code called CRC, which is a code that the transmitter computes considering the user bits that it transmits. What the transmitter does is to send everything to the receiver over the channel. Now our receiver has decoded user bits, and has the control bits at the packer header, we have also decoded CRC, so this is what

we think the transmitter transmit. The assumption is that control bits are decoded correctly by our receiver. Typically, it is true because these bits are more protected, we apply powerful FEC to correct any possible mistake we might have. After all these steps that we perform in physical layer, we consider that the control bits have been understood correctly by the receiver. Why instead user bits might be correct or not? What receiver does is to get user bits, re-demodulate and compute its own CRC based on what it has received as the user bits. And then again it compares the CRC that was send by the transmitter, with the CRC that has computed, based on what has received as user bits, and then verify if they similar or not, if yes, it means that the user bits that I received are all correctly, and then the packed is correct, if they are not the same, then the packed is incorrect, so I will put it away. And then what happens is that the receiver will ask to the transmitter to send the packed again (re-transmission request). There are different ways to implement this approach, one of them, is called STOP AND WAIT. STOP AND WAIT As the name says the transmitter basically will perform the error and give to the receiver which computes the CRC, compare the two CRC and verify if are equal or not (ALGORITMO DI CORREZIONE). If they are equal, then the receiver transmits packet to the transmitter, that are called acknowledgments (ACK). Notice that, why the protocol is called stop and wait? Because when the transmitter sends the packet, then it has to stop and wait, because does not send anything else. Waits for what? For the receivers the acknowledgments, when the transmitter receives the ACK, IT will transfer the second packet and so on. What happens if the receiver computes the CRC, compares it again and unfortunately they are different? In this case, the receiver will not send any ACK, so this means that the transmitter will stop and wait, but will wait up to a maximum time, after which it understands that the ACK will not arrive, therefore it will transmit the same packet, because clearly the previous packet transmission failed, so NO ACK means packet failure for the transmitter. Assume that our packet fails more than ones, we set a maximum number of transmissions for the same packet, for example 4 attempts. If the packet fails 4 times consecutively, the transmitter at that point discards the packet at the MAC layer. We use stop and wait in wi-fi for example.

SPREAD SEPCTRUM TECHNIQUES

The idea of the spread spectrum is the following: Having an information signal, like voice, we want to transmit it. As we know if we look at the voice in frequency has got a small bandwidth, called B and what we want to do through spread spectrum techniques is to transmit over the channel this kind of information using a signal that takes a large portion of frequencies, called W B<<W.

This means that the transmitter will be equipped with a serial random number generation algorithm with specific CID that is the input to the algorithm that determines the final sequence that we have as an output, and then uses this sequence to select the frequency channels on which is going to transmit. The intended receiver will have the same algorithm, but also the same CID, so this is the key that in this case the intended receiver has (CID = KEY). It is able to derive the same sequence of frequency channels and therefore when the transmitter will transmit packet in a certain point the receiver will be there at the same time able to receive the packet and then they both will hop at the same time on this other frequency channel and so on. If we notice what we said is that per each packet we are using a narrow band channel, but we are hopping on every possible channel that we have on this wide band, so besides the security aspect, the benefit that we have is that from the point of view of propagation, we counteract the fading thanks to diversity, meaning that we are able to hop on different frequency channels. Typically frequency channels that are different also experience different fading conditions, so if we transmit a packet on subchannel and we get faded early is not than bad, because the next packet that we will transmit on a different frequency channel hopefully the condition there will be better. For example, Bluetooth interferences with wi-fi. Wi-Fi transmits a signal that we can consider 20MHz, so if there is Bluetooth devices close to an access point that is transmitting, we can consider that here we will have 20 of this sub-channels that will be interfered by wi-fi, but we have all the others that are good, fortunately Bluetooth is quite smart and what he does is, once it understand that there are 20 sub-channels that are interfered he will remove them from the sequence of frequencies that I use and he will just consider the pseudo random sequence of channels excluding those that are proven to be very bad.

  • DIRECT SEQUENCES SPREAD SPECTRUM (DSSS) Used in 3G. Let’s remember that we are talking about spread spectrum techniques that are implemented clearly at the physical layer. The idea is the same as at the beginning: we need to spread our signal ,that is a narrowband, over a very large portion of frequencies and we have a nice property that is when we transmit this wideband signal, the power spectral density will be low and confused with the noise. If I use DSSS what is the idea here, what is the methodology that I need to use to achieve my goal? Let’s consider that we have a binary modulation, for simplicity, and let’s consider that we can transmit +1 or -1. If I transmit in time a door signal, that is carry for example +1, in frequency we know that a door signal in time is a sink (caduta). What is important to say here is that considering that the main loop of the sink represents the bandwidth taken by my signal (B). The other important thing to notice is the 0 (punto di intersezione segnale con asse x), which basically limits the bandwidth, this value is equal to 1/Tb. So, if the door signal was Tb long then the 0 of the sink that determines the main loop is 1/Tb. The goal is to perform a narrowband signal into a wideband signal. How can we do that?

If we need to enlarge the main loop of the sink we have to make this time duration T smaller. Because the “0” = 1/Ts. In order to much this very large, as large as W, we need T small. What we need to transmit are door signals but each of them will have to be very short. We move from Tb, we need to move toward door signals that are instead Tc long, with Tc<<Tb. If I do that I will get a nice main loop W, that will be much larger than B. How can I change a signal from B to W? I cannot just reduce the duration of what I transmit, what we have to do is process our original signal in a certain way. We do have the voice (our signal in bits) and each bits will have Tb as a duration, what we do at the transmitter is to perform the spreading, that means I will multiply each bit that I have by a sequence of short symbols, called CIPs. From 1 CIP to 4 CIPs per bits for example. The result of this multiplication is that what I am transmitting are CIPs and each CIP has got a duration of Tc. The product is performed as: for each information bit I multiply it by a sequence of CIPs. In detail if the information bit is +1, the CIP sequence will be +1, +1, -1, +1, otherwise if the information bit is -1 the CIP sequence will be -1, -1, +1, -1. So, if we look at this operation in frequency, just to highlight the occupation in frequency of the signals, originally, I have my voice with duration Tb for each bit, the occupation in frequency is larger B = 1/Tb. If we perform the signal in 4 CIPs each CIP has got a wideband occupation with a power spectral density low W = 1/Tc, with Tc the duration for each CIP. At the intended receiver what we need to do is the DESPREADING operation, that means: I receive CIPs and then again, I multiply what I receive CIP by CIP by the CIP sequence that was used by the transmitter. The key is the CIP sequence. RiCi (R= what I receive, C = CIP sequence). Then we sum all the indices over the CIP sequence length, and we divide it by the CIP sequence length, (una media pesata). Typically, when we apply DSSS we define two indices called POWER GAIN and SPREADING FACTOR. PG = ratio given by W/B, that is a measure of how much we enlarged the bandwidth of the signal that we transmit with respect to the original information signal that we had. SF = most used, express the number of chips per bit. Number of chips that compose our chip sequence. The benefits of our DSSS besides security are: let’s consider the useful signal transferred over the channel, so after spreading = W. Let’s assume that we transmit the signal over the channel and while signal travel over the channel unfortunately collects some garbage that is represented by noise characterized by a certain bandwidth. If we despread our signal, to the useful signal we go back to the original information signal we will have an high power spectral density, but despreading W we spread the noises, and we can filter out what ever is out from our band. ROBUSTNESS TO MULTIPATH

the SF that we are going to use given a certain original information signal that we transmit. Un SF elevato garantisce un miglior DSSS. WAKE RECEIVER From these observations and the observation that the spread spectrum techniques help us to counteract multipath fading, we may see that this does not sound right. Because we said that high SF is good thus short Tc is good, but, going back to our statement on the multipath fading and the intersymbol interference, we said that a long Tb is good, so these statements are completely inconsistent. They make sense when we consider an additional factor, the WAKE RECEIVER at the receiving node. Why? The rake receiver is a type of receiver that has got a fingers, and what it does is that each finger is able to capture different copies of the signal that reach the receiver, then, assume that a finger has captured a copy of the signal, the next step appears along this finger, where we have processing blocks that are able to compensate, for the channel effect on that copy of the signal. It means that, if a copy of the signal has been delay by delta , through this processing that, we can compensate this delay, and re-align the copy in face with another copy that follows a direct path, therefore we can consider delay equal to zero. This process is also called DELAY SPREAD. Our wake receiver, if we are able to distinguish among the different copies of the signal, it will be able to compensate for the effect of the channel and re-align all the copies that I am able to capture, at the output of our wake receiver there will have the sum of aligned signals that corresponds to a very strong signal. We are able to tell a part the different copies of the signal only if they are sufficiently different, this is the reason why, using DSSS + wake receiver brings a lot of benefits, because DSSS means using a small Tc , so delta will be comparable to Tc , and the delay affecting each copy will be significant with respect to the duration of the door signal, so, since this delays are significant, then, our fingers are able to work on each different copy of the signal. DSSS remark Tc=Tb/SF , where Tc is the chip duration and Tb depend on the original information signal that we have. Also, with respect to the relationship between W and Tc , W = 2/Tc. In practical wireless systems, the W is something that is fixed, because the operator can use only a certain frequency. So, consider a fixed W (in 3g is 5MHz), also Tc will be fixed in a practical system, so, if Tc is fixed, it means that the chip rate is given, so Tc is given, going back to the equation Tc = Tb/SF , we can affirm that the maximum SF that I can use will be also fixed for a given type of service. Because, if I focus on a specific type of information that I want to transmit, also Tb is given, so necessarily, the spreading factor will be determined by these 2 values ( Tc and Tb ). This means that given a certain technology able to fix the maximum Bandwidth that we can use (the maximum number of chips per second that we can send), if we want to transmit voice, we cannot protect voice more than a certain limit, given by the maximum SF. If instead of voice, we are considering video, that is characterized by a higher bit rate requirement, the maximum SF that we will have will be smaller than for voice. So, we have to play with these numbers depending on the type of traffic that we are dealing with. The chip rate that is associated to the transmission of our signal at maximum

determines our maximum spreading factor. If we want to transmit at smaller chip duration we can increase the spreading factor. If our bandwidth is 5 MHz as in 3G, the chip rate is 3.84Mchip/sec. If I decide to use the all bandwidth that I have available for voice, and I transmit only one stream of voice information bits, this means that I will spread this particular stream over the all bandwidth W. We will have the maximum SF associated to our signal, and I cannot protect this transmission more than that. If I decide to transmit 2 voice information streams, I have to consider that whatever I have in total my budget is double, then the chip rate is called Rc* , and I have to split my budget between 2 signals. Finally, I will have that Tc1 and Tc2 will be different, because I don’t have the total budget for each single stream, since the capacity of the system is given. There is a relation between the SF that can I use for the transmission of an information stream and the available capacity of the system.

  • ORTHOGONAL FREQUENCY DIVISION MULTIPLEXING (OFDM) It is one of the most advanced wireless communication techniques, for example is used in 4G, in 5G or in the newest version of wi-fi. We expect that from a W bandwidth that is quite large, the idea of OFDM is the following: Let’s focus on the letters F and D , they mean that the signal will be divided in many sub-bands, we need to divide the signal in many narrow band channels, called Bi. What we have to do now is to transmit symbols in parallel on these frequency channels, so, each sequence transmission is transmitted over each Bi , each transmission is a narrow band transmission, with their bit rate Rb , so in total we will have nRb* sub-channels. If n is large, we have a very high bit rate, and notice that we achieve a very high bit rate through narrow band transmission. If we have a narrowband transmission the bit rate will be not very high, so Tb will be large and whatever delta is will be << than Tb. OFDM achieves very good performance against multipath fading for this reason. Doing the transmissions in parallel, means that we have sink for each sub-band. The first observation is that we just drew the main loop, and the side loops are there, in general if we do not design our system carefully, we will have lots interference due to these many side loops of the sinks, the transmission will be robust for the fading but not for the interferences. Thanks to the letter O of OFDM, we will have orthogonal signals over these sub-bands, the signal for each sub-bands is orthogonal, and given one signal, if I multiply it by itself, the product will be 1 , and if I multiply 2 of this signals, the product will be 0. At the receiver, when I receive these multiple signals, I can multiply what I receive by another signal, and allow to extract exactly what was transmitted by the respective sub-band, and so on… If we observe the system in frequency, for each sub-band we will have a sink, and these sinks are orthogonal, and finally at the receiver I can actually extract a very good signal.

WI-FI

AD HOC : there is no access point, there are just our wi-fi cards, which are configured in ad-hoc mode, they can talk directly to each other. This is also called independent BSS. It has been one of the first technology to allow device-device communication. Through this group of nodes organization, we do not have a high security in communication, that is the reason why this mode is do not used usually. When we have BSS in infrastructure mode, we know that access point can be connected to each other through the distribution system. In that case the set of BSS are called extended service set (ESS). For example, at the university, we have several access point that are connected at the MAC layer through the distribution system. When we have the ESS there are these access points that can talk with each other and somewhere there will be a gateway that connects these MAC networks with the internet, because the format of the packet that we exchange within WI-FI at the MAC layer is different from the format of the packet that we exchange for example through the ethernet. In order to translate the packet format, we need a GATEWAY that performs the translation of the packet. When we have such an ESS, wi-fi implies hand off procedure (handover), what is done in wi-fi is something very fast, in order to not guarantee the non-disruption of the connectivity. WHY? Consider a user, that is communicating with the access point A, and as the user moves, it gets out of the coverage of access point A and enters into the coverage of access point B. If the access points are connected through the distribution system, when the user connects to this new access point, the new one, will inform the old one that the user is now under its own control. From the point of view of security, when we have an ESS we can also have a security server somewhere that provides the security credentials of the users to this access point, so that, as we move from the access point A to the second, we do not need to do authentication, but we can make this transition little bit quicker thanks to the fact that we do not need to do authentication, thanks to this extra server. JOINING A BSS What are exactly the steps that the wi-fi card performs in order to connect to the access point? SCANNINGAUTHENTICATIONASSOCIACION If I want to connect to an independent access point, I have to do only the first step, if I want to connect to all the access points, I have to do the all 3 passages. SCANNING Consists in scanning the spectrum. BSS works on a frequency channel, so considering BSS with access point, each access point will work on a given frequency channel. What our wireless card does is to find possible access points to connect to. How can the card do that? Scanning the different possible frequency channels, trying to understand if there is one or more access points on these frequency channels. For example: If the BSS could work, in 3 possible frequency channels, the card will sense these frequency channels, and if I am using passive scanning, what happens is that the wi-fi card will be sensing in this frequency channel for a certain time T.

Access points, periodically, transmit a management packet, called bicon, that is a packet used by the access point, in order to announce its own presents, if I am listening to this channel and if there are access points operating which are closed to me, I will hear this bicon packet. Access points transmit bicon periodically even 100ms. Notice that when I receive bicon, I can also estimate the quality of the reception from that access point. Then I will move to the next frequency channel, and the process will be the same of the first, and so on. At the end of this procedure, we have a list of access points available with the indication of the strength of the reception. There is however a delay, introduced here because it means that for every of this frequency channels, I have to wait for the time T for the access point that may send the bicon. In order to make it faster, is used the active scanning. Our wi-fi card is not passive to listen the channel, but position itself on frequency channel it will send a packet, that is a probe request: BROADCAST : it probes the access point. “Is there any access point?” DIRECTED : probes that are looking for a specific access point I can do that for each frequency channels. The active scanning is faster, because by probing I don’t have to wait the bicon. Our wi-fi card use this option when the card have to connect to a specific access point. Commercially speaking our wi-fi card adopts the direct active scanning. In termini di privacy, non ho sicurezza, dato che se sto in un logo, come una conferenza, per connettermi, la mia wi-fi card inviera le probes al network, il quale riconosce le passate connessioni dalle quale può ricavare la cronologia dei nostri spostamenti, e scoprire per esempio dove abitiamo. AUTHENTICATION Once I have identified the access point to connect, the wi-fi asks us the authentication to access at that access point. This process is at the MAC layer. There are 2 possible ways to perform this process: OPEN SYSTEM AUTHENTICATION Is used without any other security function is not recommended because it is very simple to access. About this system, the access point will have a list of MAC addresses that are authorized, and during authentication our device will send a message to the access point indicating its own MAC address. The access point will check if we are into the list or not. SHARED KEY AUTHENTICATION More used, because adopts symmetric cryptography. At the MAC layer our user and our access point share a secret key (Ki). The access point will generate a random number and sends it crypted to the user, this is the challenge that the access point gives to the user. When the user receives this random number, he will