Docsity

Wireless Bluetooth, Notas de estudo de Engenharia Elétrica

Toggle sidebar
bg1
WIRELESS NETWORK – WI-FI AND BLUETOOTH
Marciel Jerry Franzner
Electrical Engineering Academic
Rua Paraiba,74 Vila Lenzi
Jaraguá do Sul, SC
Edson Lampert Tomaz
Electrical Engineering Student
Rua João Planinscheck, Nova Brasília
Jaraguá do Sul, SC
Claudenir da Silva
Electrical Engineering Student
Rua Max Döering,79 Czerniewicz
Jaraguá do Sul, SC
Abstract – The use of wireless network increased faster.
Nowadays is common at companies, restaurants, malls,
universities, the presence of a wireless network in devices
that was usually plugged by cables.
An improvement on data transferring in a faster and
cheaper way was always the main concern of all
electronic devices manufacturers.
The Bluetooth technology came as a solution for those
situations where data transfer was required without the
need of devices linked by a cable and also assuring speed
and economy through this process.
Wireless/Bluetooth works in line with radio stations
where the information is transferred with the frequency
through the air.
Every kind of Wireless/Bluetooth transmission and
working range frequency applied for this technology will
be described in this article, including its architecture of
protocols layers that are core, Radio frequency
communications (RFCOMM), telephony control and
adopted protocols.
This arcticle will explain the main features about
wireless (Wi-Fi) and Bluetooth, including their
functioning, implementation and application.
Keywords – Bluetooth, IEEE 802.11 ,Wi-Fi, wireless,
WLAN, WPAN, piconet, scatternet, ISM range, protocol.
I. INTRODUCTION
A wireless network, as their name suggests, is a network
that don’t need cables for its connection. Instead of cables
their communication uses the air, and the information is
carried by radiofrequency wave.
The wireless networks are classified based on their reach
into WPAN (Wireless Personal Access Network), WLAN
(Wireless Local Access Network), WMAN (Wireless
Metropolitan Access Network), WWAN (Wireless Wide
Access Network).
In 1994 Ericsson started the study of a device to transfer
information from cell phones and accessories via radio
frequency of low cost, replacing the current info transfer by
cables.
Their study aroused the biggest electronics manufacturers
in the world that created in 1997 the Bluetooth SIG (Special
Interest Group). From this event the Bluetooth technology
turned into reality. This technology became a very useful,
fast and cheap tool in transferring information.
The transfer can be done respecting the distance of 1m,
10m or 100m, depending on the system power adopted
(1mW, 2.5mW or 100mW) respectively.
The first step on this kind of system is the link between
the transmitter (master) and receptor (slave) which is made
through SCO (Synchronous Connection-Oriented) that book
a slot for the information to be transferred. The SCO allows
continuous data transmission, like voice. If a loss happens in
an audio transmission the file will present some damages and
noise when played through the receptor system. This system
can transmit data in a rate of 432kbps (64kbps for voice
transmission).
Another type of system is ACL (Asynchronous
Connection-Less) which uses the empty slots previously
bared to re-transmit the lost information due to a loss
occurred during first transmission.
Wireless and Bluetooth networks usually use the same
frequency, but using different protocols.
II. Wireless
The Wireless LAN is also known as Wi-Fi, which is
licensed mark created by Wi-Fi Alliance based on the IEEE
802.11 standards for WLAN.
pf3
pf4
pf5

Pré-visualização parcial do texto

Baixe Wireless Bluetooth e outras Notas de estudo em PDF para Engenharia Elétrica, somente na Docsity!

WIRELESS NETWORK – WI-FI AND BLUETOOTH

Marciel Jerry Franzner

Electrical Engineering Academic Rua Paraiba,74 Vila Lenzi Jaraguá do Sul, SC [email protected]

Edson Lampert Tomaz

Electrical Engineering Student Rua João Planinscheck, Nova Brasília Jaraguá do Sul, SC [email protected]

Claudenir da Silva

Electrical Engineering Student Rua Max Döering,79 Czerniewicz Jaraguá do Sul, SC [email protected]

Abstract – The use of wireless network increased faster. Nowadays is common at companies, restaurants, malls, universities, the presence of a wireless network in devices that was usually plugged by cables. An improvement on data transferring in a faster and cheaper way was always the main concern of all electronic devices manufacturers. The Bluetooth technology came as a solution for those situations where data transfer was required without the need of devices linked by a cable and also assuring speed and economy through this process. Wireless/Bluetooth works in line with radio stations where the information is transferred with the frequency through the air. Every kind of Wireless/Bluetooth transmission and working range frequency applied for this technology will be described in this article, including its architecture of protocols layers that are core, Radio frequency communications (RFCOMM), telephony control and adopted protocols. This arcticle will explain the main features about wireless (Wi-Fi) and Bluetooth, including their functioning, implementation and application.

Keywords – Bluetooth, IEEE 802.11 ,Wi-Fi, wireless, WLAN, WPAN, piconet, scatternet, ISM range, protocol.

I. INTRODUCTION

A wireless network, as their name suggests, is a network that don’t need cables for its connection. Instead of cables their communication uses the air, and the information is carried by radiofrequency wave. The wireless networks are classified based on their reach into WPAN (Wireless Personal Access Network), WLAN

(Wireless Local Access Network), WMAN (Wireless Metropolitan Access Network), WWAN (Wireless Wide Access Network). In 1994 Ericsson started the study of a device to transfer information from cell phones and accessories via radio frequency of low cost, replacing the current info transfer by cables. Their study aroused the biggest electronics manufacturers in the world that created in 1997 the Bluetooth SIG (Special Interest Group). From this event the Bluetooth technology turned into reality. This technology became a very useful, fast and cheap tool in transferring information. The transfer can be done respecting the distance of 1m, 10m or 100m, depending on the system power adopted (1mW, 2.5mW or 100mW) respectively. The first step on this kind of system is the link between the transmitter (master) and receptor (slave) which is made through SCO (Synchronous Connection-Oriented) that book a slot for the information to be transferred. The SCO allows continuous data transmission, like voice. If a loss happens in an audio transmission the file will present some damages and noise when played through the receptor system. This system can transmit data in a rate of 432kbps (64kbps for voice transmission). Another type of system is ACL (Asynchronous Connection-Less) which uses the empty slots previously bared to re-transmit the lost information due to a loss occurred during first transmission. Wireless and Bluetooth networks usually use the same frequency, but using different protocols.

II. Wireless

The Wireless LAN is also known as Wi-Fi, which is licensed mark created by Wi-Fi Alliance based on the IEEE 802.11 standards for WLAN.

The IEEE adopted this standard in 1997 and revised it on

  1. IEEE released a sort of 802.11 standards for wireless network improving the security and precision of their standard. The most known are 802.11a, 802.11b and 802.11g that have the same main features, but some differences showed in Table 1.

TABLE 1 802.11 standards features Standard Frequency Transmission rate 802.11b 2.4GHz – 2.485GHz Until 11Mbps 802.11a 5.1GHz – 5.8GHz Until 54Mbps 802.11g 2.4GHz – 2.485GHz Until 54Mbps

Bluetooth device operating in the same frequency of 802.11b/g, 2.4GHz, don’t interfere their functioning because Bluetooth use a method called frequency hopping spread spectrum signaling (FHSS), while 802.11b/g use the direct sequence spread spectrum signaling (DSSS). An 802.11 LAN is based on a cellular architecture where is subdivided into cells, where each cell (called Basic Service Set or BSS, in the 802.11 nomenclature) is controlled by a Base Station (called Access Point, or AP). The geographic area covered by a BSS is called Basic Service Area (BSA). Extended Service Set (ESS) - An ESS is a set of infrastructure BSSs, where the APs communicate among themselves to forward traffic from one BSS to another and to facilitate the movement of mobile stations from one BSS to another. The APs perform this communication via an abstract medium called the distribution system (DS). To network equipment outside of the ESS, the ESS and all of its mobile stations appears to be a single MAC-layer network where all stations are physically stationary. Thus, the ESS hides the mobility of the mobile stations from everything outside the ESS. Distribution System the distribution system (DS) is the mechanism by which one AP communicates with another to exchange frames for stations in their BSSs, forward frames to follow mobile stations from one BSS to another, and exchange frames with wired network, typically Ethernet, and in some cases wireless itself. When there is an AP, if one mobile station in the BSS must communicate with another mobile station, the communication is sent first to the AP and then from the AP to the other mobile station. This consume twice the bandwidth that the same communication. While this appears to be a significant cost, the benefits provided by the AP far outweigh this cost. One of them is, AP buffers the traffic of mobile while that station is operating in a very low power state. The following figure a wireless network example.

Fig.1 Network example.

It is also possible that BSS communicate directly to another, without an AP, this network is called ad-hoc, but is not commonly used.

As any 802.x protocol, the 802.11 protocol covers the MAC which interacts with three PHYs (all of them running at 1 and 2 Mbit/s), as shown in Table 2.

  • Frequency Hopping Spread Spectrum in the 2.4GHz Band;
  • Direct Sequence Spread Spectrum in the 2.4GHz, and
  • InfreRed TABLE 2 802.11 standards features 802.2 Data Link Layer 802.11 MAC FH DS IR PHY Layer

Beyond the standard functionality usually performed by MAC layers, the 802.11 MAC performs other functions that are typically related to upper layer protocols, such as Fragmentation, Packet retransmissions and Acknowledges. The basic access mechanism, called Distributed Coordination Function, is basically a Carrier Sense Multiple Access with Collision Avoidance mechanism (CSMA/CA). CSMA protocols are well known in the industry, where the most popular is the Ethernet, which is a CSMA/CD protocol (CD standing for Collision Detection). CSMA protocol works as follows: A station desiring to transmit senses the medium, if the medium is busy, then the station will defer its transmission to a later time, if the medium is sensed free the station is allowed to transmit. This CSMA/CA has problem in the reception, when both station transmit at same time that in CD is recognized by a retransmission phase based on an exponential random backoff that for wireless LAN is not interesting because it requires a implementation of a Full Duplex radio, that would increase the price significantly and because we can’t assume that all stations hear each other. In order to overcome these problems, the 802.11 uses a Collision Avoidance together with a Positive Acknowledge scheme. A station to transmit senses the medium, if the medium is busy then it defers. If the medium is free for a specified time (DIFS, Distributed Inter Frame Space), then the station is allowed to transmit, the receiving station will check the received packet and send an acknowledgement packet (ACK). This indicates that had no collision. If the sender does not receive the ACK it will transmit until receive this ACK. The RTS/CTS technique is similar to above described, but before send the Data, the station to transmit send a short frame called RTS (Request to Send). When the station receives this frame, after a time SIFS (Short Interframe Space), send a frame called CTS (Clear to Send). After this the station transmits the information, as shown in figure 2.

Fig.2 CSMA/CA_RTS/CTS

There are three main types of frames:

  • Data Frames: which are used for data transmission
  • Control Frames: which are used to control access to the medium (e.g. RTS, CTS and ACK)
  • Management Frames: which are frames that are transmitted the same way as data frame to exchange management information, but are not forwarded to upper layers.

SCAN: it is applied to save energy when the devices in question are functionless, so they will be set in stand-by mode and are activated every 10ms in order to check if there is some data trying to reach them. PAGE: it is used by the master device that will look for other devices to transfer the data. Every 1.25ms the transmitor (master) send two sequential connection inquiries in different frequency channels and then check twice if some reply was sent. INQUIRY: These inquiries are sent by the transmitter in order to find out what the devices around its area are and what their settings are. Once a device receives this inquiry, it should send the FHS (Frequency Hopping-Synchronization) back, informing its identity and synchronism data possible between them.

Frequency working range:

As this device uses radio frequency in an open ambient, the frequency set is around 2.45GHz which is available in every parts in the world and is also part of ISM (Industrial, Scientific, Medical) range. As mentioned on this article introduction, the Bluetooth transmission can be split in class 1, 2 or 3, depending the situation and application in question. Using the ISM range, the band is split in 79 channels, interspaced of 1MHz, i.e. each device may transmit in 79 different frequencies.

Safety:

Radio frequency can be easy intercepted; because of this it is very important that all Bluetooth devices have safe form of transmission. This need is reached as per the following:

  • Authentication, which avoids the receipt of non-trustful messages.
  • Cryptograph that will avoid non-authorized listeners during data transmission

In Bluetooth transmission there are three modes of safety:

  1. No Safety: applied when there is no need to protect the data from other users.
  2. Service level security: allows flexile access, mainly to set applications with different safety levels in parallel.
  3. Link level security: every connection on this mode has the same safety level, although not so flexile. It keeps the common level and is much easier to implement compared to mode 2. All link level security functions are based on connection code concept. One connection code woks like an aleatory number of 128 bits stored individually for each couple of devices. Each time these two devices communicate via Bluetooth connection, the connection code is used to authentication and to cryptography with any influence from piconet topology.

The most safe connection code is a combination of codes, found from inserted codes in both devices.

In some cases where the device has low capacity of storage, there is unitary code that may be used by many remote devices. Furthermore, to establish a transmission, one temporary code is necessary, which will not be used for authentication, however avoids non-authorized listener located out of the piconet in question (do not avoid the members that are sharing this temporary code).

Authentication does not require codes insertion as it is composed by interpellation device-device and answer scheme which request common connection code of 128 bits, interpellation of 128 bits and answer of 32 bits. On the first time the devices communicate, a starting procedure is necessary in order to create a common connection code of a safe mode, which is called pairing.

The basic mode can be applied assuming that the user has access to both devices at the same moment. For the first connection a Bluetooth code of 16 bytes or 128 bits is required between this device couples.

The safety Bluetooth code is mentioned like a PIN (Personal Identification Number), however this does not mean that it needs to be stored or memorized as this is used only once. When, for any reason, a code is deleted the initial pairing need to be repeated and any other Bluetooth safety code can be used by the user.

The pairing procedure consists in:

a) Creation of a numeric aleatory safety code that is used only once and then is discharged. b) Authentication, that verifies if the safety code is identical to the connected device code c) Creation of an aleatory common connection code of 128 bits stored temporary or semi-permanent in the connected devices.

As large as the connection code is the need of pairing repeating is no longer necessary, only the normal authentication procedure is requested.

Cryptography of pass band does not require data input from user. After a successful authentication and current connection code checking, this function will create a new cryptograph code from the connection code for each communication session.

The size of the cryptograph code varies from 8 to 128 bits, depending on safety level. The maximum size of this code is limited by the hardware in question.

IV. CONCLUSION

A conclusion might elaborate on the importance of the work or suggest applications and extensions. Clearly indicate advantages, limitations and possible applications.

ACKNOWLEDGEMENT

A brief acknowledgement section may be included here.

REFERences

[1] MODELAGEM E ANÁLISE DO PROTOCOLO IEEE

-Isabela Barreto Duncan https://www.land.ufrj.br/laboratory/repository/upfiles/ mastersthesis/dissertacao_isabela.pdf [2] A technical tutorial on the IEEE 802.11protocol

  • Pablo Brenner http://sss-mag.com/pdf/802_11tut.pdf [3] IEEE 802.11 Tutorial
  • Mustafa Ergen http://wow.eecs.berkeley.edu/ergen/docs/ieee.pdf [4] Wikipedia http://pt.wikipedia.org/wiki/IEEE_802. [5] Wikipedia http://pt.wikipedia.org/wiki/IEEE_802. [6] http://informatica.hsw.uol.com.br/bluetooth.htm [7] http://pt.wikipedia.org/wiki/Bluetooth [8] http://www.infowester.com/bluetooth.php