The following section describes the common Media Access Control layer used by the802.11 family of standards.
The 802.11 family uses a MAC layer known as CSMA/CA (Carrier Sense MultipleAccess/Collision Avoidance) NOTE: Classic Ethernet uses CSMA/CD - collisiondetection). CSMA/CA is, like all Ethernet protocols, peer-to-peer (there is norequirement for a master station).
In CSMA/CA a Wireless node that wants to transmit performs the followingsequence:
I want to sell online some of the electronic stuff that I don't need anymore, such as my ASUS Wi-Fi router, and I'm wondering when I upload photos of it should I leave its serial number, MAC address, and pin code written on the back of the device visible or should I photoshop it out. The MAC address (short for media access control address) is the worldwide unique hardware address of a single network adapter. The physical address is used to identify a device in computer networks. Since MAC addresses are assigned directly by the hardware manufacturer, they are also referred to as hardware addresses.
- Listen on the desired channel.
- If channel is idle (no active transmitters) it sends a packet.
- If channel is busy (an active transmitter) node waits until transmission stops then a further CONTENTION period. (The Contention period is a random period after every transmit on every node and statistically allows every node equal access to the media. To allow tx to rx turn around the contention time is slotted 50 micro sec for FH and 20 micro sec for DS systems).
- If the channel is still idle at the end of the CONTENTION period the node transmits its packet otherwise it repeats the process defined in 3 above until it gets a free channel.
CSMA/CA Protocol
Key:
- D = DCF Inter Frame Space (DIFS)
- S = Short Inter Frame Space (SIFS)
- CW = Contention Window
- MPDU = MAC Protocol Data Unit
- A = Ack
802 11 also offers a polling mode (known as PCF - Point Co-ordinationFunction) which is fairly classic polling scheme e.g. 3270 bi-sync!! As with allpolling protocols a single master (Base Station) is required.
To improve efficiency additional features are employed:
- Positive Acknowledgement (ACK)
- MAC level retransmission
- Fragmentation
ACKing
At the end of every packet the receiver, if it has successfully received thepacket, will return an ACK packet (if not received or received with errors thereceiver will NOT respond i.e. there is no NACK). The transmit window allows for the ACK i.e.CONTENTION period starts after the ACK should have been sent.
MAC level retransmission
If no ACK is received the sender will retry the transmit (using the normalCSMA/CA procedures) until either successful or the operation is abandoned withexhausted retries.
Fragmentation
Bit error rates on wireless systems (10**-5, 10**-6) are substantially higherthan wire-line systems (10**-12). Large blocks may approach the number of bitswhere the probability of an error occurring may = 1 i.e. every block could failincluding the re-transmission. To reduce the possibility of this happening largeblocks may be fragmented by the transmitter and reassembled by the receiver nodee.g. a 1500 byte block (12,000 bits) may be fragmented into 5 blocks of 300bytes (2,400 bits). While there is some overhead in doing this - both theprobability of an error occurring is reduced and, in the event of an error, there-transmission time is also reduced.
The Hidden Node Problem
The hidden node problem occurs in a point to multi-point network and isdefined as being one in which three (or more nodes) are present. Node A, Node Band Node C. It is possible that in this case Node B can hear Node A (and viceversa) and Node B can hear Node C (and vice versa) BUT Node C cannot hear NodeA. In a CSMA/CA environment Nodes A and C would both properly transmit (theycannot hear each other on the 'listen' phase so could both simultaneously andproperly transmit a packet) but Node B would get corrupted data. Nodes Aand C are said to be 'hidden' from each other.
Use of RTS and CTS
Hidden Nodes are solved by the use of a RTS (request to send)/CTS (clear tosend) protocol prior to packet transmission. In our three node network aboveNode A sends a small RTS packet which is heard by Node B which send a small CTSpacket which is heard by both Nodes A and Node C. Node C will not transmit inthis case.
CSMA/CA with RTS/CTS
Key:
- D = DCF Inter Frame Space (DIFS)
- S = Short Inter Frame Space (SIFS)
- CW = Contention Window
- MPDU = MAC Protocol Data Unit
- A = Ack
Node Identification
Each node in a 802.11 network is identified by its MAC address (exactly thesame as Ethernet a 6 byte - 48 bit value). Receiving nodes recognize their MACaddress.
Access Points
MAC Packet Format
The following defines the format of an 802.11 packet (for 802.3 packet formatsee here)
Frame Control | Duration ID | Address1 (source) | Address2 (destination) | Address3 (rx node) | Sequence Control | Address4 (tx node) | Data | FCS |
2 | 2 | 6 | 6 | 6 | 2 | 6 | 0 - 2,312 | 4 |
Values:
Why Is The Mac Address Required For Sender And Receiver For Wireless Microphone
Note: Bits are numbered right to left (i.e. bit number is same as 2**n)
Field | Bits | Values | Notes/Description |
Frame Control | 15 - 14 | Protocol version. Currently 0 | |
13 - 12 | Type | ||
11 - 8 | Subtype | ||
7 | To DS. 1 = to the distribution system. | ||
6 | From DS. 1 = exit from the Distribution System. | ||
5 | More Frag. 1 = more fragment frames to follow (last or unfragmented frame = 0) | ||
4 | Retry. 1 = this is a re-transmission. | ||
3 | Power Mgt. 1 = station in power save mode, 1 = active mode. | ||
2 | More Data. 1 = additional frames buffered for the destination address (address x). | ||
1 | WEP. 1 = data processed with WEP algorithm. 0 = no WEP. | ||
0 | Order. 1 = frames must be strictly ordered. | ||
Duration ID | 15 - 0 | For data frames = duration of frame. For Control Frames the associated identity of the transmitting station. | |
Address 1 | 47 - 0 | Source address (6 bytes). | |
Address 2 | 47 - 0 | Destination address (6 bytes). | |
Address 3 | 47 - 0 | Receiving station address (destination wireless station) | |
Sequence Control | 15 - 0 | ||
Address 4 | 47 - 0 | Transmitting wireless station. | |
Frame Body | 0 - 2312 octets (bytes). | ||
FCS | 31 - 0 | Frame Check Sequence (32 bit CRC). defined in P802.11. |
Why Is The Mac Address Required For Sender And Receiver For Wireless Subwoofer
Problems, comments, suggestions, corrections (including broken links) or something to add? Please take the time from a busy life to 'mail us' (at top of screen), the webmaster (below) or info-support at zytrax. You will have a warm inner glow for the rest of the day.