{"id":301,"date":"2018-07-17T10:27:59","date_gmt":"2018-07-17T10:27:59","guid":{"rendered":"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/?post_type=chapter&#038;p=301"},"modified":"2018-08-08T08:49:55","modified_gmt":"2018-08-08T08:49:55","slug":"layers-description-of-ieee-802-11","status":"publish","type":"chapter","link":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/chapter\/layers-description-of-ieee-802-11\/","title":{"rendered":"Layers description of IEEE 802.11"},"content":{"raw":"<strong>Learning objectives<\/strong>\r\n<ul>\r\n \t<li style=\"text-align: justify\">IEEE 802.11 Physical layer entities<\/li>\r\n \t<li style=\"text-align: justify\">IEEE 802.11 MAC layer entities introduction and inter frame spaces<\/li>\r\n \t<li style=\"text-align: justify\">CSMA\/CA<\/li>\r\n \t<li style=\"text-align: justify\">CSMA\/CA with hidden terminal problem solution<\/li>\r\n \t<li style=\"text-align: justify\">Fragmentation and Reassembly<\/li>\r\n \t<li style=\"text-align: justify\">Synchronization and Power Saving<\/li>\r\n \t<li style=\"text-align: justify\">Mobility and Roaming<\/li>\r\n<\/ul>\r\n<strong>Introduction<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">In the previous modules we learnt about basic architecture of IEEE 802.11 standard. In this this module we will learn about basic layers of the standard. It specifies MAC and PHY layer. We will learn about different PHY layers, multiple access methods, need of fragmentation and reassembly, how synchronization and\u00a0 power saving\u00a0 is done.\u00a0 We will learn\u00a0 about types\u00a0 of mobility how it is performed and how roaming is facilitated.<\/p>\r\n&nbsp;\r\n<p class=\"hanging-indent\"><strong>IEEE 802.11 layers<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">IEEE 802.11 is a set of (MAC) and physical layer (PHY) specifications for implementing wireless local area network (WLAN) computer communication . Standard defines single MAC which interacts with multiple PHYs namely(Fig. 1)<\/p>\r\n\r\n<ul>\r\n \t<li style=\"text-align: justify\">Direct Sequence Spread Spectrum<\/li>\r\n \t<li style=\"text-align: justify\">Frequency Hopped Spread Spectrum<\/li>\r\n \t<li style=\"text-align: justify\">Infrared<\/li>\r\n \t<li style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">OFDM<\/span><\/li>\r\n<\/ul>\r\n<img class=\"aligncenter size-full wp-image-304\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic1.png\" alt=\"\" width=\"832\" height=\"430\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 1: MAC and PHY Layer<\/strong><\/p>\r\n&nbsp;\r\n<div><strong>Physicallayer<\/strong><\/div>\r\n<div><strong>Figure 1: MAC and PHY Layer<\/strong><\/div>\r\n<p style=\"text-align: justify\">The Physical layer consists of two sub-parts namely<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">PLCP (Physical Layer Convergence Procedure)<\/p>\r\n\r\n<ul>\r\n \t<li style=\"text-align: justify\">Performs Carrier Sense during CSMA<\/li>\r\n \t<li style=\"text-align: justify\">Prepares MAC Protocol data Unit(MPDU) for transmission<\/li>\r\n \t<li style=\"text-align: justify\">Delivers incoming frames from wireless medium to the MAC layer<\/li>\r\n \t<li style=\"text-align: justify\">Provides asynchronous transfer of MPDU between the stations<\/li>\r\n \t<li style=\"text-align: justify\">Provides synchronization of receiving stations Physical layer with incoming packets<\/li>\r\n<\/ul>\r\nPMD (Physical medium dependent)\r\n<ul>\r\n \t<li style=\"text-align: justify\">Provides actual transmission and reception of physical layers entities between stations<\/li>\r\n \t<li style=\"text-align: justify\">Provides modulation and demodulation of the transmission<\/li>\r\n<\/ul>\r\n<strong>FHSS PHY<\/strong>\r\n<ul>\r\n \t<li style=\"text-align: justify\">Done using Frequency Hopping<\/li>\r\n \t<li style=\"text-align: justify\">79 channels of 1 MHz each in 2.402 to 2.480 GHz band<\/li>\r\n \t<li style=\"text-align: justify\">Hopping sequence is set in access point, stations synchronize to it<\/li>\r\n<\/ul>\r\n<img class=\"aligncenter size-full wp-image-305\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic2.png\" alt=\"\" width=\"1064\" height=\"500\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 2: FHSS PHY<\/strong><\/p>\r\n<p class=\"hanging-indent\"><strong style=\"text-align: initial;font-size: 1em\">DSSS PHY<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"font-size: 1em;text-align: initial\">Data is spreaded using PN code. Code is a sequence of chips or bits also known as chipping sequence. The code is also known as pseudo random because of its nature. To destined receivers it is deterministic for others it is noise therefore also as pseudo random noise. The size of the code determines amount of spreading. Different versions use different types of codes. For example:<\/span><\/p>\r\n\r\n<ul>\r\n \t<li style=\"text-align: justify\">1 Mbps and 2 Mbps versions use 11 bit Barker code<\/li>\r\n \t<li style=\"text-align: justify\">5.5 and 11 Mbps versions use complementary Code Keying(CCK)-set of 64 eight bits code words (802.11b)<\/li>\r\n \t<li style=\"text-align: justify\">22 and 33 Mbps transmission uses PBCC-22, PBCC-33(802.11g)<\/li>\r\n<\/ul>\r\n<img class=\"aligncenter size-full wp-image-306\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_1.png\" alt=\"\" width=\"1447\" height=\"453\" \/>\r\n\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-307\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_2.png\" alt=\"\" width=\"1330\" height=\"241\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 3: DSSS PHY<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Data is spreaded using PN code<\/p>\r\n<p style=\"text-align: justify\">1 Mbps and 2 Mbps versions use 11 bit Barker code<\/p>\r\n<p style=\"text-align: justify\">5.5 and 11 Mbps versions use complementary Code Keying(CCK)-set of 64 eight bits code words (802.11b)<\/p>\r\n<p style=\"text-align: justify\">22 and 33 Mbps transmission uses PBCC-22, PBCC-33(802.11g)<\/p>\r\n&nbsp;\r\n<p class=\"hanging-indent\"><strong>Infrared PHY<\/strong><\/p>\r\n&nbsp;\r\n\r\nDiffuse infrared uses 1 and 2 Mbps transmission, 16-PPM and 4-PPM\r\n\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-308\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic4.png\" alt=\"\" width=\"1177\" height=\"241\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 4: Infrared PHY<\/strong><\/p>\r\n&nbsp;\r\n<p class=\"hanging-indent\"><strong>OFDM PHY<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Orthogonal Frequency Division Multiplexing :Divides a channel into sub-channels, thus using multiple carriers.Carriers may overlap, but received without the interference because they are orthogonal to each another. The modulation on each carrier is independent of each other. Bands used in different variants are:<\/p>\r\n&nbsp;\r\n\r\n2.4 GHz band (IEEE 802.11g D2.1 DSSS-OFDM, OFDM)\r\n\r\n&nbsp;\r\n\r\n5 GHz band (IEEE 802.11a)\r\n\r\n&nbsp;\r\n\r\nGHz OFDM + MIMO (IEEE 802.11n),(IEEE 802.11ac)\r\n\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-309\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic5.png\" alt=\"\" width=\"300\" height=\"179\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 5: OFDM PHY<\/strong><\/p>\r\n&nbsp;\r\n<div>\r\n\r\n<strong>Layer2 MAC<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial\"><span style=\"font-size: 1em\">Layer 2 or the MAC layer comprises of MAC entity which deals with basic access mechanisms and fragmentation and <\/span>reassembly<span style=\"font-size: 1em\">\u00a0whereas MAC layer management entity deals with functions like synchronization,power management and roaming. The traffic services can be asynchronous data service which is mandatory whereas time bound services implemented using Point <\/span>coordinate<span style=\"font-size: 1em\">\u00a0function are optional.<\/span><\/span><\/p>\r\n\r\n<\/div>\r\n<img class=\"size-full wp-image-310 aligncenter\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic6.png\" alt=\"\" width=\"525\" height=\"380\" \/>\r\n<p class=\"hanging-indent\"><strong>Access methods<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Regardless of the physical layer used, all IEEE 802.11 wireless LAN clients use the same channel to transmit on. This Demands for precise multiple access mechanisms. The most basic of these is the Carrier Sense Multiple Access with Carrier Avoidance (CSMA\/CA) mechanism. This mechanism is defined as part of the <strong>Distributed Coordination Function (DCF) <\/strong>of the IEEE 802.11b standard and is mandatory. In CSMA users first sense the transmission medium to see if anyone is transmitting just before transmitting a packet of data. When two or more packets are transmitted simultaneously a\u201d collision\u201d occurs. Wired Ethernet can listen to these collisions also but wireless LANs cannot because in WLANs when a wireless LAN card is transmitting it cannot listen to detect if packets collide. To handle this problem, the IEEE standard devised mechanisms to avoid collisions using waiting periods. These waiting periods ensure a channel has been idle for a certain period of time before transmitting. The waiting periods are known as Interframe spaces. Fig. shows different types of interframe spaces.<\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-311\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic7.png\" alt=\"\" width=\"602\" height=\"184\" \/>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">This implementation does not handle hidden terminal problem. Hidden terminal problem occurs when a mutual receiver is in range of two transmitters which are out of range with each other. The two transmitters cannot detect one another\u2019s transmissions and their packets collide at mutual receiver. To handle this additional mechanisms are applied using control packets.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Another optional protocol that is part of the IEEE 802.11 standard is the Point Coordination Function (PCF). This function allows time critical or delay sensitive packets to be given priority over regular data transmissions. The PCF uses a polling procedure to setup a contention free period which takes priority over the DCF procedure. During the PCF established contention free period, a single host poles clients and allows them to transmit. In this way delay sensitive packets such as voice or video can be given priority over other data.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Both protocols are together known as <strong>Distributed foundation wireless Medium Access Control (DFWMAC) . <\/strong>The organization is shown below<\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-312\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic8.png\" alt=\"\" width=\"634\" height=\"267\" \/>\r\n<p class=\"hanging-indent\">Next section describes CSMA\/CA and CSMA\/CA with collission avoidance in detail.<\/p>\r\n&nbsp;\r\n<p class=\"hanging-indent\"><strong>CSMA\/CA<\/strong><\/p>\r\n&nbsp;\r\n<p class=\"hanging-indent\">The CSMA\/CA works as follows(Fig. 6)<\/p>\r\n<p class=\"hanging-indent\">Sender<\/p>\r\n\r\n<ol>\r\n \t<li style=\"text-align: justify\">Device wishing to transmit, senses channel to be idle . If medium is free for DIFS then transmit entire frame .<\/li>\r\n \t<li style=\"text-align: justify\">if it sense channel busy then Back offs(No transmission) .It Initiates a random backoff time. Again senses the medium and continues to initiate timeouts if medium busy.<\/li>\r\n<\/ol>\r\n<p style=\"text-align: justify\">If after transmission it does not get ACK, it increase random backoff interval, repeat 2<\/p>\r\n\r\n<h4>Receiver<\/h4>\r\nIt checks CRC of the packet . Wait for SIFS and return ACK\r\n\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-313\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic9.png\" alt=\"\" width=\"522\" height=\"609\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 6: <em>Receipt of ACK indicates NO COLLISION<\/em><\/strong><\/p>\r\n&nbsp;\r\n<p class=\"hanging-indent\"><strong>Virtual Carrier Sense<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">In this mechanism, transmitter relays short Ready to Send (RTS) packet to request the use of the medium. If this succeeds, the receiver waits for SIFS period and sends a Clear. After this, the actual transmission takes place. RTS and CTS broadcast duration of transmission .Other stations set a NAV or network allocation vector timer for this duration. For this duration they are deferred to access to medium. In this way the transmitter does not need to continue to sense the state of the channel until the NAV timer has expired. Hence the name virtual carrier sense. The steps are as follows:<\/p>\r\n\r\n<ul>\r\n \t<li style=\"text-align: justify\">Station send RTS with duration parameter after waiting for DIFS (duration determines amount of time the data packet needs the medium)<\/li>\r\n \t<li style=\"text-align: justify\">If ready to receive, Receiver sends CTS after SIFS;<\/li>\r\n \t<li style=\"text-align: justify\">Stations receiving RTS and CTS set their Network Allocation vector for the given duration<\/li>\r\n \t<li style=\"text-align: justify\">Stations use NAV along with physical carrier sense<\/li>\r\n \t<li style=\"text-align: justify\">Sender sends data; Receiver send ACK<\/li>\r\n<\/ul>\r\n<p style=\"text-align: justify\">The schematic diagram of the method is provided in Fig. 7<\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-315\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic10.png\" alt=\"\" width=\"1383\" height=\"801\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 7 : CSMA \/ CA with RTS &amp; CTS<\/strong><\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-316\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic11.png\" alt=\"\" width=\"1306\" height=\"468\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 8: Virtual Carrier Sense<\/strong><\/p>\r\n&nbsp;\r\n<div>\r\n<p style=\"text-align: justify\"><strong>Fragmentation and Reassembly\u00a0<\/strong>Smaller packets are preferred for WLAN for the reasons given below:<\/p>\r\n\r\n<ul>\r\n \t<li style=\"text-align: justify\">Due to high bit error rate, probability of corruption increases with packet size<\/li>\r\n \t<li style=\"text-align: justify\">Smaller the packet less overhead to transmit it<\/li>\r\n \t<li style=\"text-align: justify\">Smaller the packet, smaller chance of postponed transmission after dwell time<\/li>\r\n<\/ul>\r\n&nbsp;\r\n<p style=\"text-align: justify\">But Ethernet is backbone for most of WLANs. Ethernet can handle packets 1518 bytes long. Therefore WLANs should be able to handle big packets. For trade-off, bigger packets from Ethernet are fragmented and smaller packets from WLAN are reassembled. It is implemented using <strong style=\"font-size: 1em\">Send-and-wait Algorithm<\/strong><span style=\"font-size: 1em\">. New fragment is transmitted only when acknowledgement for previous fragment is received or when after several retransmissions whole frame is dropped. Below diagram shows virtual carrier sense with fragmentation.<\/span><\/p>\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-317\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic12.png\" alt=\"\" width=\"1418\" height=\"483\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 9: Virtual Carrier Sense with Fragmentation<\/strong><\/p>\r\n&nbsp;\r\n<p class=\"hanging-indent\" style=\"text-align: left\"><strong>Synchronization<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Stations synchronize themselves with AP\u2019s clock.The clock of AP is known by transmission of Beacon frames. This is the time when actual transmission takes place. Receiving stations synchronize their clocks with AP when the signal is received<\/span><\/p>\r\n&nbsp;\r\n<p class=\"hanging-indent\" style=\"text-align: left\"><strong>Power Saving<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Power is a scarce resource for wireless resource for wireless devices. IEEE 802.11 provides mechanisms for power saving. It provides provision for devices to go into sleep mode. AP maintains list of devices in sleep mode. AP buffers packets intended for devices in sleep mode. AP transmits information that which power saving devices have packets buffered at AP. Stations request packets either by polling or changing their mode to active.<\/p>\r\n&nbsp;\r\n<p class=\"hanging-indent\" style=\"text-align: left\"><strong>Mobility<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong>IEEE 802.11 standard defines the following mobility types (Fig. 10):<\/strong><\/p>\r\n\r\n<ul>\r\n \t<li style=\"text-align: justify\">No-transition: no movement or moving within a local BSS<\/li>\r\n \t<li style=\"text-align: justify\">BSS-transition: station moves from one BSS in one ESS to another BSS within the same ESS<\/li>\r\n \t<li style=\"text-align: justify\">ESS-transition: station moves from a BSS in one ESS to a BSS in a different ESS<\/li>\r\n<\/ul>\r\n<img class=\"aligncenter size-full wp-image-318\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic13.png\" alt=\"\" width=\"1021\" height=\"482\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 10: Types of Mobility<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">When a station wants to access an existing BSS either after power up, sleep mode or by physically entering into the BSS area, the station needs synchronization information from the AP. This information can be obtained via scanning process which may be active or passive. Once the access point is located, device decides to join the network, it goes through authentication process by exchange of authentication information between AP and device. Once authenticated, it starts association process by exchanging information about stations and BSS capabilities. Then and only then the station can transmit and receive data frames. The below diagram describes the whole process<\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-319\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic14.png\" alt=\"\" width=\"611\" height=\"247\" \/>\r\n<p class=\"hanging-indent\"><strong>Roaming<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">On a packet-based LAN system, when there is transition from cell to cell it may be performed between packet transmissions. In telephony environment, the transition may occur during a phone conversation. On a voice system, a temporary disconnection during handoff does affect the conversation. But, in a packet-based environment it significantly\u00a0 reduces performance because retransmission is performed by the upper layer protocols. IEEE 802.11 standard does not specify how roaming should be performed but defines basic tools:<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong>IAPP (802.11f): <\/strong>Common roaming protocol enabling the wireless stations to move across multivendor access points<\/p>\r\n\r\n<ul>\r\n \t<li style=\"text-align: justify\">Announce Protocol. It Provides coordination information between access points<\/li>\r\n \t<li style=\"text-align: justify\">Handover protocol. It allows APs to coordinate with each other and find status of the station. Frames buffered at old AP are forwarded to the new AP. New AP updates the necessary tables<\/li>\r\n<\/ul>\r\n<p style=\"text-align: justify\">Another protocol is Mobile IP which provides seamless connectivity between different types of networks.<\/p>\r\n&nbsp;\r\n<p class=\"hanging-indent\"><strong>Summary<\/strong><\/p>\r\n\r\n<ul>\r\n \t<li style=\"text-align: justify\">IEEE 802.11 specifies a common MAC with multiple Physical layers namely Infra-red, DSSS, FHSS and OFDM<\/li>\r\n \t<li style=\"text-align: justify\">Distributed coordinate function and point coordinate function are basic access methods<\/li>\r\n \t<li style=\"text-align: justify\">DCF is mandatory and includes CSMA\/CA and CSMA\/CA with hidden terminal problem solving<\/li>\r\n \t<li style=\"text-align: justify\">PCF is for time bound services and is optional<\/li>\r\n \t<li style=\"text-align: justify\">Synchronization is achieved via access point in IEEE 802.11 LAN<\/li>\r\n \t<li style=\"text-align: justify\">To enable power saving, devices go in sleep mode and AP buffers the packets intended for them<\/li>\r\n \t<li style=\"text-align: justify\">WLAN handles smaller packets to reduce probability of error and reduce overhead during retransmission. To exchange packets with Ethernet, fragmentation and reassembly is done<\/li>\r\n \t<li style=\"text-align: justify\">To enable mobility scanning, authentication and authorization processes are followed<\/li>\r\n \t<li style=\"text-align: justify\">Roaming is supported by protocols like IAPP and Mobile IP<\/li>\r\n<\/ul>\r\n<p class=\"hanging-indent\"><strong>Suggested Reading:<\/strong><\/p>\r\n\r\n<ol>\r\n \t<li style=\"text-align: justify\">Mobile Communication 2nd edition by Jochen Schiller, Pearson education<\/li>\r\n \t<li style=\"text-align: justify\">Mobile Computing by Asoke Talukder, Roopa Yavagal (Tata McGraw Hill)<\/li>\r\n \t<li style=\"text-align: justify\">\"Wireless communication and networking\" by William Stallings<\/li>\r\n \t<li style=\"text-align: justify\">Mobile Cellular Telecommunications \u2014 W.C.Y. Lee, Mc Graw Hill<\/li>\r\n \t<li style=\"text-align: justify\">Wireless Communications \u2013 Theodore. S. Rapport, Pearson Education<\/li>\r\n \t<li style=\"text-align: justify\">Reza B'Far (Ed), \"Mobile Computing Principles\", Cambridge University Press.<\/li>\r\n<\/ol>","rendered":"<p><strong>Learning objectives<\/strong><\/p>\n<ul>\n<li style=\"text-align: justify\">IEEE 802.11 Physical layer entities<\/li>\n<li style=\"text-align: justify\">IEEE 802.11 MAC layer entities introduction and inter frame spaces<\/li>\n<li style=\"text-align: justify\">CSMA\/CA<\/li>\n<li style=\"text-align: justify\">CSMA\/CA with hidden terminal problem solution<\/li>\n<li style=\"text-align: justify\">Fragmentation and Reassembly<\/li>\n<li style=\"text-align: justify\">Synchronization and Power Saving<\/li>\n<li style=\"text-align: justify\">Mobility and Roaming<\/li>\n<\/ul>\n<p><strong>Introduction<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">In the previous modules we learnt about basic architecture of IEEE 802.11 standard. In this this module we will learn about basic layers of the standard. It specifies MAC and PHY layer. We will learn about different PHY layers, multiple access methods, need of fragmentation and reassembly, how synchronization and\u00a0 power saving\u00a0 is done.\u00a0 We will learn\u00a0 about types\u00a0 of mobility how it is performed and how roaming is facilitated.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"hanging-indent\"><strong>IEEE 802.11 layers<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">IEEE 802.11 is a set of (MAC) and physical layer (PHY) specifications for implementing wireless local area network (WLAN) computer communication . Standard defines single MAC which interacts with multiple PHYs namely(Fig. 1)<\/p>\n<ul>\n<li style=\"text-align: justify\">Direct Sequence Spread Spectrum<\/li>\n<li style=\"text-align: justify\">Frequency Hopped Spread Spectrum<\/li>\n<li style=\"text-align: justify\">Infrared<\/li>\n<li style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">OFDM<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-304\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic1.png\" alt=\"\" width=\"832\" height=\"430\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic1.png 832w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic1-300x155.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic1-768x397.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic1-65x34.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic1-225x116.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic1-350x181.png 350w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 1: MAC and PHY Layer<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div><strong>Physicallayer<\/strong><\/div>\n<div><strong>Figure 1: MAC and PHY Layer<\/strong><\/div>\n<p style=\"text-align: justify\">The Physical layer consists of two sub-parts namely<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">PLCP (Physical Layer Convergence Procedure)<\/p>\n<ul>\n<li style=\"text-align: justify\">Performs Carrier Sense during CSMA<\/li>\n<li style=\"text-align: justify\">Prepares MAC Protocol data Unit(MPDU) for transmission<\/li>\n<li style=\"text-align: justify\">Delivers incoming frames from wireless medium to the MAC layer<\/li>\n<li style=\"text-align: justify\">Provides asynchronous transfer of MPDU between the stations<\/li>\n<li style=\"text-align: justify\">Provides synchronization of receiving stations Physical layer with incoming packets<\/li>\n<\/ul>\n<p>PMD (Physical medium dependent)<\/p>\n<ul>\n<li style=\"text-align: justify\">Provides actual transmission and reception of physical layers entities between stations<\/li>\n<li style=\"text-align: justify\">Provides modulation and demodulation of the transmission<\/li>\n<\/ul>\n<p><strong>FHSS PHY<\/strong><\/p>\n<ul>\n<li style=\"text-align: justify\">Done using Frequency Hopping<\/li>\n<li style=\"text-align: justify\">79 channels of 1 MHz each in 2.402 to 2.480 GHz band<\/li>\n<li style=\"text-align: justify\">Hopping sequence is set in access point, stations synchronize to it<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-305\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic2.png\" alt=\"\" width=\"1064\" height=\"500\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic2.png 1064w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic2-300x141.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic2-768x361.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic2-1024x481.png 1024w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic2-65x31.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic2-225x106.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic2-350x164.png 350w\" sizes=\"auto, (max-width: 1064px) 100vw, 1064px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 2: FHSS PHY<\/strong><\/p>\n<p class=\"hanging-indent\"><strong style=\"text-align: initial;font-size: 1em\">DSSS PHY<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"font-size: 1em;text-align: initial\">Data is spreaded using PN code. Code is a sequence of chips or bits also known as chipping sequence. The code is also known as pseudo random because of its nature. To destined receivers it is deterministic for others it is noise therefore also as pseudo random noise. The size of the code determines amount of spreading. Different versions use different types of codes. For example:<\/span><\/p>\n<ul>\n<li style=\"text-align: justify\">1 Mbps and 2 Mbps versions use 11 bit Barker code<\/li>\n<li style=\"text-align: justify\">5.5 and 11 Mbps versions use complementary Code Keying(CCK)-set of 64 eight bits code words (802.11b)<\/li>\n<li style=\"text-align: justify\">22 and 33 Mbps transmission uses PBCC-22, PBCC-33(802.11g)<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-306\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_1.png\" alt=\"\" width=\"1447\" height=\"453\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_1.png 1447w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_1-300x94.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_1-768x240.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_1-1024x321.png 1024w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_1-65x20.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_1-225x70.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_1-350x110.png 350w\" sizes=\"auto, (max-width: 1447px) 100vw, 1447px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-307\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_2.png\" alt=\"\" width=\"1330\" height=\"241\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_2.png 1330w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_2-300x54.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_2-768x139.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_2-1024x186.png 1024w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_2-65x12.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_2-225x41.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic3_2-350x63.png 350w\" sizes=\"auto, (max-width: 1330px) 100vw, 1330px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 3: DSSS PHY<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Data is spreaded using PN code<\/p>\n<p style=\"text-align: justify\">1 Mbps and 2 Mbps versions use 11 bit Barker code<\/p>\n<p style=\"text-align: justify\">5.5 and 11 Mbps versions use complementary Code Keying(CCK)-set of 64 eight bits code words (802.11b)<\/p>\n<p style=\"text-align: justify\">22 and 33 Mbps transmission uses PBCC-22, PBCC-33(802.11g)<\/p>\n<p>&nbsp;<\/p>\n<p class=\"hanging-indent\"><strong>Infrared PHY<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Diffuse infrared uses 1 and 2 Mbps transmission, 16-PPM and 4-PPM<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-308\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic4.png\" alt=\"\" width=\"1177\" height=\"241\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic4.png 1177w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic4-300x61.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic4-768x157.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic4-1024x210.png 1024w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic4-65x13.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic4-225x46.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic4-350x72.png 350w\" sizes=\"auto, (max-width: 1177px) 100vw, 1177px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 4: Infrared PHY<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p class=\"hanging-indent\"><strong>OFDM PHY<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Orthogonal Frequency Division Multiplexing :Divides a channel into sub-channels, thus using multiple carriers.Carriers may overlap, but received without the interference because they are orthogonal to each another. The modulation on each carrier is independent of each other. Bands used in different variants are:<\/p>\n<p>&nbsp;<\/p>\n<p>2.4 GHz band (IEEE 802.11g D2.1 DSSS-OFDM, OFDM)<\/p>\n<p>&nbsp;<\/p>\n<p>5 GHz band (IEEE 802.11a)<\/p>\n<p>&nbsp;<\/p>\n<p>GHz OFDM + MIMO (IEEE 802.11n),(IEEE 802.11ac)<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-309\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic5.png\" alt=\"\" width=\"300\" height=\"179\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic5.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic5-65x39.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic5-225x134.png 225w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 5: OFDM PHY<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div>\n<p><strong>Layer2 MAC<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial\"><span style=\"font-size: 1em\">Layer 2 or the MAC layer comprises of MAC entity which deals with basic access mechanisms and fragmentation and <\/span>reassembly<span style=\"font-size: 1em\">\u00a0whereas MAC layer management entity deals with functions like synchronization,power management and roaming. The traffic services can be asynchronous data service which is mandatory whereas time bound services implemented using Point <\/span>coordinate<span style=\"font-size: 1em\">\u00a0function are optional.<\/span><\/span><\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-310 aligncenter\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic6.png\" alt=\"\" width=\"525\" height=\"380\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic6.png 525w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic6-300x217.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic6-65x47.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic6-225x163.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic6-350x253.png 350w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<p class=\"hanging-indent\"><strong>Access methods<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Regardless of the physical layer used, all IEEE 802.11 wireless LAN clients use the same channel to transmit on. This Demands for precise multiple access mechanisms. The most basic of these is the Carrier Sense Multiple Access with Carrier Avoidance (CSMA\/CA) mechanism. This mechanism is defined as part of the <strong>Distributed Coordination Function (DCF) <\/strong>of the IEEE 802.11b standard and is mandatory. In CSMA users first sense the transmission medium to see if anyone is transmitting just before transmitting a packet of data. When two or more packets are transmitted simultaneously a\u201d collision\u201d occurs. Wired Ethernet can listen to these collisions also but wireless LANs cannot because in WLANs when a wireless LAN card is transmitting it cannot listen to detect if packets collide. To handle this problem, the IEEE standard devised mechanisms to avoid collisions using waiting periods. These waiting periods ensure a channel has been idle for a certain period of time before transmitting. The waiting periods are known as Interframe spaces. Fig. shows different types of interframe spaces.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-311\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic7.png\" alt=\"\" width=\"602\" height=\"184\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic7.png 602w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic7-300x92.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic7-65x20.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic7-225x69.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic7-350x107.png 350w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">This implementation does not handle hidden terminal problem. Hidden terminal problem occurs when a mutual receiver is in range of two transmitters which are out of range with each other. The two transmitters cannot detect one another\u2019s transmissions and their packets collide at mutual receiver. To handle this additional mechanisms are applied using control packets.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Another optional protocol that is part of the IEEE 802.11 standard is the Point Coordination Function (PCF). This function allows time critical or delay sensitive packets to be given priority over regular data transmissions. The PCF uses a polling procedure to setup a contention free period which takes priority over the DCF procedure. During the PCF established contention free period, a single host poles clients and allows them to transmit. In this way delay sensitive packets such as voice or video can be given priority over other data.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Both protocols are together known as <strong>Distributed foundation wireless Medium Access Control (DFWMAC) . <\/strong>The organization is shown below<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-312\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic8.png\" alt=\"\" width=\"634\" height=\"267\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic8.png 634w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic8-300x126.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic8-65x27.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic8-225x95.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic8-350x147.png 350w\" sizes=\"auto, (max-width: 634px) 100vw, 634px\" \/><\/p>\n<p class=\"hanging-indent\">Next section describes CSMA\/CA and CSMA\/CA with collission avoidance in detail.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"hanging-indent\"><strong>CSMA\/CA<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p class=\"hanging-indent\">The CSMA\/CA works as follows(Fig. 6)<\/p>\n<p class=\"hanging-indent\">Sender<\/p>\n<ol>\n<li style=\"text-align: justify\">Device wishing to transmit, senses channel to be idle . If medium is free for DIFS then transmit entire frame .<\/li>\n<li style=\"text-align: justify\">if it sense channel busy then Back offs(No transmission) .It Initiates a random backoff time. Again senses the medium and continues to initiate timeouts if medium busy.<\/li>\n<\/ol>\n<p style=\"text-align: justify\">If after transmission it does not get ACK, it increase random backoff interval, repeat 2<\/p>\n<h4>Receiver<\/h4>\n<p>It checks CRC of the packet . Wait for SIFS and return ACK<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-313\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic9.png\" alt=\"\" width=\"522\" height=\"609\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic9.png 522w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic9-257x300.png 257w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic9-65x76.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic9-225x263.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic9-350x408.png 350w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 6: <em>Receipt of ACK indicates NO COLLISION<\/em><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p class=\"hanging-indent\"><strong>Virtual Carrier Sense<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">In this mechanism, transmitter relays short Ready to Send (RTS) packet to request the use of the medium. If this succeeds, the receiver waits for SIFS period and sends a Clear. After this, the actual transmission takes place. RTS and CTS broadcast duration of transmission .Other stations set a NAV or network allocation vector timer for this duration. For this duration they are deferred to access to medium. In this way the transmitter does not need to continue to sense the state of the channel until the NAV timer has expired. Hence the name virtual carrier sense. The steps are as follows:<\/p>\n<ul>\n<li style=\"text-align: justify\">Station send RTS with duration parameter after waiting for DIFS (duration determines amount of time the data packet needs the medium)<\/li>\n<li style=\"text-align: justify\">If ready to receive, Receiver sends CTS after SIFS;<\/li>\n<li style=\"text-align: justify\">Stations receiving RTS and CTS set their Network Allocation vector for the given duration<\/li>\n<li style=\"text-align: justify\">Stations use NAV along with physical carrier sense<\/li>\n<li style=\"text-align: justify\">Sender sends data; Receiver send ACK<\/li>\n<\/ul>\n<p style=\"text-align: justify\">The schematic diagram of the method is provided in Fig. 7<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-315\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic10.png\" alt=\"\" width=\"1383\" height=\"801\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic10.png 1383w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic10-300x174.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic10-768x445.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic10-1024x593.png 1024w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic10-65x38.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic10-225x130.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic10-350x203.png 350w\" sizes=\"auto, (max-width: 1383px) 100vw, 1383px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 7 : CSMA \/ CA with RTS &amp; CTS<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-316\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic11.png\" alt=\"\" width=\"1306\" height=\"468\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic11.png 1306w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic11-300x108.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic11-768x275.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic11-1024x367.png 1024w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic11-65x23.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic11-225x81.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic11-350x125.png 350w\" sizes=\"auto, (max-width: 1306px) 100vw, 1306px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 8: Virtual Carrier Sense<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div>\n<p style=\"text-align: justify\"><strong>Fragmentation and Reassembly\u00a0<\/strong>Smaller packets are preferred for WLAN for the reasons given below:<\/p>\n<ul>\n<li style=\"text-align: justify\">Due to high bit error rate, probability of corruption increases with packet size<\/li>\n<li style=\"text-align: justify\">Smaller the packet less overhead to transmit it<\/li>\n<li style=\"text-align: justify\">Smaller the packet, smaller chance of postponed transmission after dwell time<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">But Ethernet is backbone for most of WLANs. Ethernet can handle packets 1518 bytes long. Therefore WLANs should be able to handle big packets. For trade-off, bigger packets from Ethernet are fragmented and smaller packets from WLAN are reassembled. It is implemented using <strong style=\"font-size: 1em\">Send-and-wait Algorithm<\/strong><span style=\"font-size: 1em\">. New fragment is transmitted only when acknowledgement for previous fragment is received or when after several retransmissions whole frame is dropped. Below diagram shows virtual carrier sense with fragmentation.<\/span><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-317\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic12.png\" alt=\"\" width=\"1418\" height=\"483\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic12.png 1418w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic12-300x102.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic12-768x262.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic12-1024x349.png 1024w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic12-65x22.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic12-225x77.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic12-350x119.png 350w\" sizes=\"auto, (max-width: 1418px) 100vw, 1418px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 9: Virtual Carrier Sense with Fragmentation<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p class=\"hanging-indent\" style=\"text-align: left\"><strong>Synchronization<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">Stations synchronize themselves with AP\u2019s clock.The clock of AP is known by transmission of Beacon frames. This is the time when actual transmission takes place. Receiving stations synchronize their clocks with AP when the signal is received<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"hanging-indent\" style=\"text-align: left\"><strong>Power Saving<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Power is a scarce resource for wireless resource for wireless devices. IEEE 802.11 provides mechanisms for power saving. It provides provision for devices to go into sleep mode. AP maintains list of devices in sleep mode. AP buffers packets intended for devices in sleep mode. AP transmits information that which power saving devices have packets buffered at AP. Stations request packets either by polling or changing their mode to active.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"hanging-indent\" style=\"text-align: left\"><strong>Mobility<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong>IEEE 802.11 standard defines the following mobility types (Fig. 10):<\/strong><\/p>\n<ul>\n<li style=\"text-align: justify\">No-transition: no movement or moving within a local BSS<\/li>\n<li style=\"text-align: justify\">BSS-transition: station moves from one BSS in one ESS to another BSS within the same ESS<\/li>\n<li style=\"text-align: justify\">ESS-transition: station moves from a BSS in one ESS to a BSS in a different ESS<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-318\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic13.png\" alt=\"\" width=\"1021\" height=\"482\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic13.png 1021w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic13-300x142.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic13-768x363.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic13-65x31.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic13-225x106.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic13-350x165.png 350w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 10: Types of Mobility<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">When a station wants to access an existing BSS either after power up, sleep mode or by physically entering into the BSS area, the station needs synchronization information from the AP. This information can be obtained via scanning process which may be active or passive. Once the access point is located, device decides to join the network, it goes through authentication process by exchange of authentication information between AP and device. Once authenticated, it starts association process by exchanging information about stations and BSS capabilities. Then and only then the station can transmit and receive data frames. The below diagram describes the whole process<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-319\" src=\"http:\/\/itp12.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic14.png\" alt=\"\" width=\"611\" height=\"247\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic14.png 611w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic14-300x121.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic14-65x26.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic14-225x91.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-content\/uploads\/sites\/27\/2018\/07\/M27Pic14-350x141.png 350w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/p>\n<p class=\"hanging-indent\"><strong>Roaming<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">On a packet-based LAN system, when there is transition from cell to cell it may be performed between packet transmissions. In telephony environment, the transition may occur during a phone conversation. On a voice system, a temporary disconnection during handoff does affect the conversation. But, in a packet-based environment it significantly\u00a0 reduces performance because retransmission is performed by the upper layer protocols. IEEE 802.11 standard does not specify how roaming should be performed but defines basic tools:<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong>IAPP (802.11f): <\/strong>Common roaming protocol enabling the wireless stations to move across multivendor access points<\/p>\n<ul>\n<li style=\"text-align: justify\">Announce Protocol. It Provides coordination information between access points<\/li>\n<li style=\"text-align: justify\">Handover protocol. It allows APs to coordinate with each other and find status of the station. Frames buffered at old AP are forwarded to the new AP. New AP updates the necessary tables<\/li>\n<\/ul>\n<p style=\"text-align: justify\">Another protocol is Mobile IP which provides seamless connectivity between different types of networks.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"hanging-indent\"><strong>Summary<\/strong><\/p>\n<ul>\n<li style=\"text-align: justify\">IEEE 802.11 specifies a common MAC with multiple Physical layers namely Infra-red, DSSS, FHSS and OFDM<\/li>\n<li style=\"text-align: justify\">Distributed coordinate function and point coordinate function are basic access methods<\/li>\n<li style=\"text-align: justify\">DCF is mandatory and includes CSMA\/CA and CSMA\/CA with hidden terminal problem solving<\/li>\n<li style=\"text-align: justify\">PCF is for time bound services and is optional<\/li>\n<li style=\"text-align: justify\">Synchronization is achieved via access point in IEEE 802.11 LAN<\/li>\n<li style=\"text-align: justify\">To enable power saving, devices go in sleep mode and AP buffers the packets intended for them<\/li>\n<li style=\"text-align: justify\">WLAN handles smaller packets to reduce probability of error and reduce overhead during retransmission. To exchange packets with Ethernet, fragmentation and reassembly is done<\/li>\n<li style=\"text-align: justify\">To enable mobility scanning, authentication and authorization processes are followed<\/li>\n<li style=\"text-align: justify\">Roaming is supported by protocols like IAPP and Mobile IP<\/li>\n<\/ul>\n<p class=\"hanging-indent\"><strong>Suggested Reading:<\/strong><\/p>\n<ol>\n<li style=\"text-align: justify\">Mobile Communication 2nd edition by Jochen Schiller, Pearson education<\/li>\n<li style=\"text-align: justify\">Mobile Computing by Asoke Talukder, Roopa Yavagal (Tata McGraw Hill)<\/li>\n<li style=\"text-align: justify\">&#8220;Wireless communication and networking&#8221; by William Stallings<\/li>\n<li style=\"text-align: justify\">Mobile Cellular Telecommunications \u2014 W.C.Y. Lee, Mc Graw Hill<\/li>\n<li style=\"text-align: justify\">Wireless Communications \u2013 Theodore. S. Rapport, Pearson Education<\/li>\n<li style=\"text-align: justify\">Reza B&#8217;Far (Ed), &#8220;Mobile Computing Principles&#8221;, Cambridge University Press.<\/li>\n<\/ol>\n","protected":false},"author":4,"menu_order":24,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":["miss-suchit-purohit"],"pb_section_license":""},"chapter-type":[],"contributor":[59],"license":[],"class_list":["post-301","chapter","type-chapter","status-publish","hentry","contributor-miss-suchit-purohit"],"part":3,"_links":{"self":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-json\/pressbooks\/v2\/chapters\/301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-json\/wp\/v2\/users\/4"}],"version-history":[{"count":9,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-json\/pressbooks\/v2\/chapters\/301\/revisions"}],"predecessor-version":[{"id":603,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-json\/pressbooks\/v2\/chapters\/301\/revisions\/603"}],"part":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-json\/pressbooks\/v2\/chapters\/301\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-json\/wp\/v2\/media?parent=301"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-json\/pressbooks\/v2\/chapter-type?post=301"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-json\/wp\/v2\/contributor?post=301"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp12\/wp-json\/wp\/v2\/license?post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}