sábado, 20 de marzo de 2010

WLAN Throughput

Big numbers sell better. This is also the case for wireless networks. A "11Mbps" or a "54Mbps" wireless network might sound impressive but it is not what you as a user will experience. A lot of the capacity is lost to communications overhead and the data rate given is what can be expected of the physical layer. Wired networks also give their capacity on the physical layer but the overhead is not that large and the experienced throughput is close to the physical capacity.
To understand where the overhead is, it is a good idea to understand about the network layers. This table shows the OSI reference model and how it relates to the world of TCP/IP. The light yellow boxes show the wireless specific layers.

When transmitting a packet of data which comes from the application layer, headers has to be added for each layer, making the total transfer size larger.
The following shows how the IEEE 802.11b operates:
  • FCS = Frame Check Sequence
  • MSS = Maximum Segment Size
  • MTU = Maximum Transmission Unit
  • SNAP = SubNetwork Access Protocol
  • LLC = Logical Link Control
  • MPDU = MAC Protocol Data Unit
  • PLCP = Physical Layer Convergence Protocol
  • PSDU = PLCP Service Data Unit (SDU)
  • PPDU = PLCP Protocol Data Unit (PLCP + MPDU)
This is an example of how headers are added. On top of the data comes the TCP header of 20 bytes (assuming the option fields are not used). Then comes the IP header of 20 bytes. Together they make the TCP/IP datagram. The size of this the same as the MTU, usually 1500 bytes to get through most router configurations. Then comes the SNAP header (used to encapsulate original Ethernet V2 ethertype values into an IEEE 802.2 frame) of 5 byte and the LLC (Logical Link Control) header of 3 bytes. This is in turn encapsulated by a MAC header of 30 byte and a trailing FCS of 4 byte. This is the MPDU or the PSDU part of the PPDU. Then we get a PLCP header of 6 byte and finally a PLCP preamble of 18 byte ("long preamble"). The preamble is used to signal that "here is a train of data coming" to the receiver. The 802.11b standard gives an option of reducing the size of the PLCP preamble to 9 bytes ("short preamble"), significantly increasing performance on the higher rates.
he IEEE 802.11 MAC layer has several types of frames. The Data Frame is the frame type that contains the payload data, there is an ACK frame and RTS (Request to Send) an CTS (Clear to Send) frames. In addition there are Management Frame, Power-Save Poll Frame and Contention-Free Frame. With 802.11, all Data Frames gets an ACK receipt.

There are two types of PLCP headers. One for long preamble and one for short preamble. One downside to the PLCP is that the PLCP preamble and header is ALWAYS transmitted at 1Mbps, regardless of the transmit rate for the rest of the data. This means that the transfer time is constant at 192 Usec (microseconds) for the PLCP with long preamble. The short preamble version does a bit better, transmitting the shorter preamble at 1Mbps and the header at 2Mbps, shortening the transmit time to 96 Usec.

Transmitting the data is not just burping out a bunch of signals on the air. A strict set of rules is governing the way a transmission should behave (CSMA/CA). First the sender has to wait a period of DIFS (Distributed Coordination Function InterFrame Space) time of 50 Usec before the channel is presumed clear of traffic. Then a Data Frame or a Request to Send frame can be sent. The receivers answer to this is with an ACK or Clear To Send, accordingly. The receiver has to wait a SIFS (Short InterFrame Space) time of 10 Usec before this reply is sent.

Adrian E.Colmenares C.
Sistemas de Comunicaciones Opticos
Fuente: http://forskningsnett.uninett.no/wlan/throughput.html


No hay comentarios:

Publicar un comentario