QoS support in satellite and wireless networks : study under the network simulator (NS-2)
Abstract
Aquest projecte es basa en l'estudi de l'oferiment de qualitat de servei en xarxes wireless i satel·litals. Per això l'estudi de les tècniques de cross-layer i del IEEE 802.11e ha sigut el punt clau per al desenvolupament teòric d'aquest estudi. Usant el simulador de xarxes network simulator, a la part de simulacions es plantegen tres situacions: l'estudi de la xarxa satel·lital, l'estudi del mètode d'accés HCCA i la interconnexió de la xarxa satel·lital amb la wireless. Encara que aquest últim punt, incomplet en aquest projecte, ha de ser la continuació per a futures investigacions.
Full text
QOS SUPPORT IN SATELLITE AND WIRELESS NETWORKS STUDY UNDER THE NETWORK SIMULATOR (NS-2) Memòria del Treball Final de Carrera d'Enginyeria de Telecomunicació, realitzat per Albert Bel i Pereira i dirigit per María Ángeles Vázquez Castro i Giovanni Giambene Bellaterra, 12 de setembre de 2007
Escola Tècnica Superior d’Enginyeria El sotasignat, Maria Ángeles Vázquez Castro Professor/a de l'Escola Tècnica Superior d'Enginyeria de la UAB, CERTIFICA: ! Que el treball a què correspon aquesta memòria ha estat realitzat sota la seva direcció per n’ Albert Bel i Pereira I per tal que consti firma la present. Signat: ............................................ Bellaterra, 3 de setembre de 2007
I would like to thank you to my family and friends, Maryan and Giovanni, and my family of Siena Pepa, Joan Enric and Alba
Index 1. ...............................................................................................Introduction 13 2. ...............................................................................................Satellite part 17 2.1. ....................................................................................................Introduction 18 2.2. ...................................................QoS requirements on the Application layer 19 2.2.1. ..........................................................................Conversational services 19 2.2.2. ................................................................................. Interactive services 23 2.2.3 ...................................................................................Streaming services 24 2.2.4. ........................................................Background services - applications 25 2.3. ..............................................................................................Transport Layer 26 2.3.1. ................................................ TCP protocol: mechanisms and versions 27 2.4. ..................................................................QoS Architecture for IP networks 28 2.4.1. ................................................................QoS Network building blocks 30 2.5. ..........................................Proposed QoS support techniques on MAC layer 31 2.6. ...................Relation between QoS Traffic Classes and Capacity Categories 34 3. .................................................................................................... WiFi part 37 3.1. .................................................................................... Introduction to 802.11 38 3.1.1. ............................................................................................802.11 lacks 43 3.2. ......................................................... The 802.11e, QoS support mechanisms 44 3.2.1. .................................. HCF Contention-Based Medium Access (EDCA) 45 3.2.2. ... Hybrid Coordination Function, Controlled Medium Access (HCCA) 49 3.2.3. ...........................................................................Another improvements 52 3.2.3.1. ..................................................................Block Acknowledgment 52 3.2.3.2. ........................................................................Direct Link Protocol 52
scenarios. Then a study of a wireless network under the HCCA access mode. And finally a prove of the interconnection the two networks. Thanks to the network simulator employed in the simulations and the patch created in the University of Pisa we can see effects of the different configurable parameters of the standards. Introduction 15
2. Satellite part Satellite networks provide a way to easily and economically provide long-distance communication links (especially intercontinental ones), and hence, their usage is growing. Because of their nature, when interconnected together with traditional LAN networks (and in almost all scenarios they are) they can be the bottleneck of the entire system because of the delay and throughput that they provide. For that reason, getting the maximum performance out of them is very important, and one ways to do so (the one we are exploring) is to apply cross-layer design techniques in satellite networks. If our proposal is giving Quality of Service to all users we have to achieve a better performance of the satellite network and for this reason using cross-layer techniques in its design is an advanced for our study. For this we have to focuses on cross-layer techniques for satellite networks. We start by exploring the BSM protocol stack, and by giving a brief introduction on Quality of Service (QoS). Satellite part 17
Then, we focus on more details by looking at SatLab1 recommendations for implementing the interoperability between different layers in satellite networks, and we emphasize the importance of it with a concrete example (VoIP scenario for satellite networks). 2.1. Introduction It is not easy to treat the subject of resource allocation in satellite communications, since it comprise practically all layers of a protocol architecture. The QoS requirements of the applications is the basis upon which all the actions undertaken by the lower layers depend. Immediately under the application layer, the transport layer must manage allocation problems to satisfy the upper levels’ requirements. The transport level is generally based on the TCP protocol. Whatever TCP version one uses, it may work inefficiently on a satellite link, due to the effect that the long satellite round-trip-time (RTT) has on the congestion window. But it is not the only the problem that one has to solve in the satellite network, although TCP has a great influence on the MAC layer, which runs the algorithms for the bandwidth resource allocation. We will not explicitly deal with the QoS solutions at the network layer, as they are not specific for the satellite environment; nevertheless, there is an interaction in mapping, for instance IP QoS classes onto DVB classes. The MAC layer must manage the type of access to the satellite link, and the algorithms for utilizing the common resource. Most of those algorithms implement some optimization of the bandwidth allocation, which influences the TCP goodput. Call Admission Control (CAC) is also managed at the MAC level, being itself a way to block requests that cannot be satisfied, according to the QoS specified by the application. Satellite part 18 1 SatLab is the SatLabs Group, a group promoted by the European Space Agency
If we study the physical link level we have to remark that the transmission is often affected by a signal fade due to bad atmospheric conditions. Nevertheless, the original QoS of the data, which at this level is expressed in terms of Bit Error Rate (BER), must be maintained as much as possible. The physical link must deals with several problems, such as the signal fade, which must be counteracted by means of techniques that are transparent to the upper layers, but which interfere with the MAC layer, in the sense that there must be a great correlation between the two layers in order to select the best countermeasure. 2.2. QoS requirements on the Application layer As we said supporting quality of service in a telecommunication system is, nowadays, of a great importance. But this task should be transparent to the user. It does not have to know how it is done but it notes the final degree of quality that it enjoys. in the next sections we will present the different requirements needed according to the chosen multimedia traffic. 2.2.1. Conversational services The most common use of this scheme is the real-time conversation. The two newest applications, included in this scheme, are VoIP1 and video conferencing. This scheme raises the most stringent QoS requirement. The transfer time must be short while, at the same time, variation between information entities of the stream must be preserved in the same way as for real-time streams. The limit in which the delay transfer is acceptable, is very strict, since failure to provide low enough transfer delays results in unacceptable lack of quality. When one talks about real-time conversation, the principal Satellite part 19 1 VoIP is the acronym of Voice over IP
points that one has to take care for QoS are to preserve the time relation between information entities of the stream, and the conversational pattern, that has to be stringent and of low delay. This kind of application delivers time-based information in real-time, where time-based information is user data that has an intrinsic time component. Video, audio and animation are examples of time-based information, as they consist of a continuos sequence of datd blocks that are presented to the user in the right sequence at pre-determined instants. Conversational voice Audio transfer delay requirements depend on the level of interactivity of end users. To preclude difficulties related to the dynamics of voice communications, ITU-T 1Recommendation G.114 recommends the following general limits for one-way transmission time. These are shown in the following table. 0 to 150 ms preferred range[< 30 ms, user does not notice any delay at all; < 100 ms, user does not notice delay if echo cancellation is provided and there are no distortions on the link] 150 to 400 ms acceptable range (but with increasing degradation) above 400 ms unacceptable range table 2.1. ITU-T recommendations for voice communications2 The human ear is highly intolerant of short-term delay variation, known as jitter, so the latter should be kept below a very low limit (1ms is suggested). In the other hand, the human ear is tolerant of a certain amount of distortion of the speech signal. Finally, this type of connections requires the allocation of symmetrical communication resources. Satellite part 20 1 ITU-T is the acronym of International Telecommunication Union - Terrestrial 2 extract from (VI)
As we are talking of a satellite connection, it is important to talk about the possible satellite constellation used. The use of GEO1 satellites imposes severe constraints in order to achieve good QoS for conversational voice (its round-trip delay is about 250 ms). Instead, LEO2 or MEO3 satellites can be used without problems. Videophone Videophone implies a full-duplex system, which carries both video and audio and is intended for use in a conversational environment. Therefore, the delay requirements are the same as for the conversational voice. The only difference is that the video must be synchronized with the audio in order to provide “lyp-synch”, i.e., synchronization of the speaker’s lips. In fact it is difficult to meet these requirements, due to the long delays incurred in video codecs. Also, the human eye is tolerant to the loss of some information, so it is possible to accept some packet loss. GEO satellites introduce the same constraints fro QoS in videophone as in conversational voice services. But if we take into account the lyp-synch problem, then GEO cannot support this service. Interactive games The requirements for games depend on the specific game, but normally this kind of services requires very short delays, and normally this value is around 250 ms. For that reason, the use of GEO satellites depends on the interactive game application. Two-way control telemetry This service is an example of the not requirement of real-time. It can suffer a delay value of 250 ms but the application does not tolerate information loss. In this situation the inconvenience of using GEo satellites is the possible information loss that can introduce the noisy links. It must be necessary the use of error control techniques to solve this problem. Satellite part 21 1 GEO is the acronym of Geostationary Earth Orbit 2 LEO is the acronym of Low Earth Orbit 3 MEO is the acronym of Medium Earth Orbit
Telnet This application can require a short delay in order to provide essentially instantaneous character echo-back. So the GEO satellites could have a high RTT for this kind of service, so the user can perceive a bad telnet application. In order to solve this problem a terminal auto-echo can be used. The following table shows a summary on the above applications. Medium Application Degree of symmetry Data rate Key performance parameters and target values End-to-end Oneway Delay Delay variation within a call Information loss Audio Conversational voice Two-way 4-25 kbps < 150 ms preferred < 400 ms limit < 1 ms < 3% FER Video Videophone Two-way 32-38 4 kbps < 150 ms preferred < 400 ms limit Lip-synch < 100 ms < 1% FER Data Telemetry twoway control Two-way <28.8 kbps < 250 ms NA (Not applicable) Zero Data Interactive games Two-way < 1 kB < 250 ms NA Zero Data Telnet Two-way (asymm.) < 1 kB < 250 ms NA Zero table 2.2. Conversational services. End-user performance expectations1 Satellite part 22 1 extract from (VI)
2.2.2. Interactive services This service class is applied when a human or machine is on-line requesting data from a remote server, and is characterized by the request/response pattern of the end user. This application has to support interactive non-real time services with low end-to-end round trip delay. So the fundamental requirements are the request-response pattern and the preservation of the payload content. In the next points we will present examples and their requirements. Voice messaging and dictation This service can tolerate the same information loss requirements as for the conversational voice. But here one has a high tolerance to delay, since the conversation is no direct form. Web-browsing The main consideration here is the delay in which a web page appears to the user. The best improvement is reducing this time achieving a value of 2-4 s. Medium Application Degree of symmetry Data rate Key performance parameters and target values One-way Delay Delay variation Information loss Audio Voice messaging Primarily one-way 4-13 kbps < 1 s (playback) < 2 s (record) < 1 ms < 3% FER Data Web-browsing Primarily one-way < 4 s/page NA Zero Data Transaction services - high priority Two-way < 4 s NA Zero Data E-mail Primarily one-way < 4 s NA Zero table 2.3. Interactive services. End-user performance expectations1 Satellite part 23 1 extract from (VI)
2.2.3. Streaming services The streaming services are principally unidirectional and with a high rate of utilization and short time variations between information entities within a flow. but with this services does not exist a strict limit of delay and jitter. And also is important to remark that the packet loss has not a limit. The fundamental QoS requirements of real-time streams are the unidirectional continuous streaming and the reservation of the time relation between information entities of the stream. We have to maintain the data flows continuously. Audio streaming One expects to achieve a better performance than conventional telephony so one has to impose a higher packet loss requirement. On the other hand the delay requirements are not too strict. One-way video In this occasion no conversational element is involved, so the delay requirements can be relaxed. Still image In receiving images the human eye is very tolerant, but the loss of one bit can cause disturbances in some still images format. So one has to achieve zero errors but not to control so much the delay. Satellite part 24
We need to interact between this building blocks that allows to obtain the QoS. it’s necessary that QoS parameters are exchanged. these include transaction performance at the packet level and service reliability/availability expectations in the form of traffic priority levels for specific network functions. some examples of mechanisms to convey these parameter values are signalling and database lookups and include: •QoS signalling: signalling of QoS parameter requirements per service/flow between functional blocks •Call Signalling: service invocation, resource reservation •Policy control: parameters for admission control, policing, marking etc. 2.5. Proposed QoS support techniques on MAC layer1 As it is well known, IETF2 organization is proposing two different ways to handle QoS in IP networks, namely Integrated Services (IntServ) and Differentiated Services (DiffServ). The Intserv is based on the reservation of resources on a per-flow basis, while DiffServ is based on classification of traffic into groups and provides QoS support for aggregated traffic flows. IntServ In IntServ the main focus is giving services on a per-flow basis for every single, in a single manner. Flow is normally unidirectional and can have more than one recipient and is identified with source and destination IP address and port number. A flow of packets is the traffic associated with a given connection or connectionless stream having the same source host, destination host, class of service and session identification. Satellite part 31 1 Based on the SatLabs recommendations 2 IETF is the acronym of Internet Engineering Task Force
The IntServ routers must maintain per-flow state information and must reserve end-to-end resources for individual flows in order to provide QoS. The major flaw of this approach is that it can be too complex to perform and may not scale well for large volumes of network traffic. This is due to the high control signals existing to maintain the state information at routers. DiffServ On the other hand, DiffServ is simple and easy to implement and supports a range of network services, which are differentiated on the basis of performance. Traffic flows are aggregated into classes: all the flows in one class will be treated in the same way. For example, when multiple voice connections are sent over the network, the same QoS provision scheme will applied to all these connections together by using DiffServ, while IntServ will treat each voice stream separately. But the major issue to improve in this service is the fairness problem that can cause non-deterministic and non-quantifiable QoS conditions. Because it is more convenient DiffServ has been adopted as the model of choice for most satellite systems. DiffServ replaces per-flow service with a Per-Hop Behaviour (PHB), applicable to traffic aggregates and per-flow states in network nodes are no longer required. So the end-to-end performance is now do it using multiple PHB. DiffServ standards1 defines five PHB classes, namely Expedited Forwarding (EF), four Assured Forwarding (AF) classes and Best Effort (BE) service of the original Internet Protocol. At each network node each packet is treated according to its class, as defined by the Type of Service (ToS) bits in teh packet header. Traffic packets will be mapped into PHB classes, i.e., packets containing voice stream will be mapped in EF class and will be transmitted before data with lower priority class (AF, BE). Satellite part 32 1 Defined by the IETF RFC2475
Mac layer QoS support consists in capacity request calculation/generation and scheduling/ dispatching of packets from the supported queues to fill-up the assignments in Terminal Burst Time Plan (TBTP). In order to support prioritizing some PHBs over the others, DVB-RCS provides a number of different capacity requests mechanism for satellite networks there: • Constant Rate Assignment: this is guaranteed capacity assignment where each PHB has guaranteed capacity. It is used for jitter-intolerant applications like VoIP or for signalling •Volume Based Dynamic Capacity (VBDC) – This is dynamic capacity assignment which is based on volume. It is used for non-real time applications like FTP •Rate Based Dynamic Capacity (RBDC) – This is a dynamic capacity assignment which is based on rate. It is used for near real-time jitter-tolerant such as streaming video •Free Capacity Assignment (FCA) – This is a dynamic capacity assignment which is based on free capacity, if there is any left (which won’t be used otherwise). It is used for non-real time applications). Using CRA implies that the capacity is reserved and guaranteed during he whole logon time of the terminal and terminal does not have the necessity of demanding capacity every frame, so it reduces the delay. But, in the other hand even if the terminal has no traffic, capacity will be allocated. RBDC is used when we have high-variable rate traffic which can tolerate MAC scheduler dynamic response time latency, capacity is also reserved and guaranteed, but a terminal has to ask dynamically for slots depending of the traffic sending rate. When VBDC is used, capacity is not guaranteed or reserved and terminal has to ask dynamically for VBDC slots depending on the amount of packets to transmit. It is assigned after satisfying total CRS and RBDC capacity components. Satellite part 33
The only capacity requests mechanism that is not necessary to requests is the FCA. If they are unused slots they will be assigned to terminals. An important parameter in the QoS serving is the Request Class (RC), which is a representation of a PHB at the MAC layer, in the DAMA controller. RC is a concept similar to the PHB, but applied at the MAC layer instead in IP layer. The Return Channel Satellite Terminal (RCST) maps each PHB onto an RC and it shall be possible to map any PHB to any RC. 2.6. Relation between QoS Traffic Classes and Capacity Categories Forwarding of packets on IP layer is in reality realized by the mechanisms that are applied on MAC layer. Capacity Request strategies allow for efficient combinations of DVB-RCS capacity categories in order to maximize the QoS and return link efficiency. So we need to map the QoS traffic classes to capacity categories supported by the scheduler on the MAC layer. On one hand one has three main QoS traffic types for DiffServ, called: EF (Expedited Forwarding), AF (Assure Forwarding) and BE (Best Effort). On the other hand, one has Capacity Request strategies, known as: HG (High Grade), MG (Medium Grade), LG (Low Grade), RB (Rate-Based), VB (Volume-Based), PERF (Performance), and UTIL (Utilization). One can define the following DiffServ mapping: QoS class Capacity Request Strategy Capacity Category Satellite part 34
figure 2.3. Example mapping of QoS traffic classes to Capacity Strategies Satellite part 35
3. WiFi part The first standard used in a wireless environment is the IEEE 802.11. This standard fix the needing in the creation of a wireless network. But with time it’s not only necessary to offer a network without wires. Nowadays the users have many applications that requires some specific resources in order to function correctly. For that reason appears the 802.11e. This specification belongs to the distinct specifications of the standard 802.11. With the 802.11e we are allowed to offer a wireless network able to give Quality of Service to its users. This protocol is an emerging standard that modifies the medium access control, where the differentiation of services are made. Satellite part 37
3.1. Introduction to 802.11 The IEEE 802.11 Wireless Local Area Network is being deployed widely and rapidly for many different environments. Its main characteristics are simplicity and robustness against failures due to the distributed approach of its medium access control (MAC) protocol. There is a diverse set of versions existing in market that apply different transmission schemes and operate in different frequency bands. Today, 802.11 WLAN can be interpreted as a wireless version of Ethernet supporting best effort service. But, nowadays, the real interest in wireless networks is making them able to support Quality of Service. The 802.11 working group initiated initiated an activity to enhance the current 802.11 MAC protocol to enable support of applications requiring QoS. We want to describe the limitations of the 802.11 in terms of QoS. Considering a basic service station (BSS), which is composed of an access point (AP) and a number of stations associated with the AP. The basic 802.11 MAC protocol is referred to as distributed coordination function (DCF) and operates as a listen-before-talk scheme. This is based on carrier sense multiple access (CSMA). Applying the DCF, a station determines individually when to access the medium. The decision of accessing to the medium is distributed among all stations. Stations deliver MSDU’s1 (“talk”) after detecting that there are no other transmissions in progress on the wireless medium (“listen”). If two or more stations detect the medium idle at the same time, and inevitably collision occurs. To reduce the probability of collisions, the DCF applies a collision avoidance (CA) mechanism, where stations perform a so-called backoff procedure before initiating a Satellite part 38 1 MSDU is the acronym of MAC Service Data Unit
transmission. After detecting the medium idle for a minimum duration called DCF interframe space (DIFS), station keep sensing the medium for an additional random time called backoff time. A station initiates its transmission only if the medium remains idle for this additional time. The duration of this random time is determined by each station individually, as a multiple of a slot time. A new independent random value is selected for each new transmission attempt. figure 3.1. Backoff procedure in the DCF mode This random time is selected in a random manner. This number of slots is compressed between 0 and CW1, which is initially set to a minimum value called CWmin. All the stations select the same CWmin, but they selected its random backoff time individually. The use of the same minimum value makes that users have no priority one among the others, so we haven’t any mechanism to differentiate between stations and their traffic and therefore, no QoS support in the DCF. During the downcounting of its backoff counter if the medium is idle, the station stops downcounting and defers from medium access until the medium becomes idle for a DIFS again. Satellite part 39 1 CW is the acronym of Congestion Window 2.2. El acceso distribuido en 802.11 y 802.11e 9 Figura 2.2: Proceso de backoff en el modo DCF Tabla 2.2: Par´ ametros de 802.11b Par´ ametro Valor SIFS 10 µs Te20 µs DIFS 50 µs CWmin 32 CWmax 1024 El hecho de que el tiempo SIFS sea menor que el DIFS permite dar prioridad al env´ ıo de asentimientos frente al env´ ıo de tramas. Si la estaci´ on sondea el medio durante un tiempo DIFS y detecta que ´ este est´ a ocupado, inicia el proceso de backoff.´ Este es como sigue: la estaci´ on selecciona un n´ umero al azar, distribuido entre 0 y un valor dado (CWmin −1). Una vez que vuelva a detectar el medio libre durante un tiempo igual a DIFS, decrementar´ a dicho valor en una unidad por cada tiempo Teque el medio permanezca inactivo (en la figura, estos instantes son cuando la estaci´ on B realiza el decremento 8, 7, 6, . . . ). Si el medio se detecta ocupado (en el ejemplo, durante la transmisi´ on de A), el contador se paraliza, hasta que no se vuelve a detectar libre durante un tiempo DIFS. Una vez que el contador llega a 0, la estaci´ on transmite su trama. Si no se recibe un asentimiento tras la transmisi´ on, se considera que la trama no se entreg´ o correctamente por lo que se vuelve a iniciar el proceso de backoff, pero en este caso duplicando el valor de CWmin7. A cada fallo en la transmisi´ on de una misma trama se duplicar´ a dicho valor hasta un m´ aximo dado (CWmax). Una vez que la trama es entregada correctamente, o se llega al m´ aximo n´ umero de retransmisiones R,CWmin recupera su valor original. Para el est´ andar 802.11b, los valores de los par´ ametros mencionados son los de la Tabla 2.2. A la vista de lo anterior, resulta claro que el modo DCF emplea un acceso al medio ranurado: una ranura de tiempo es el intervalo que pasa entre dos decrementos consecutivos del contador de backoff de una estaci´ on. Unas ranuras estar´ an ocupadas (por transmisiones 7Se supone que la transmisi´ on no tuvo ´ exito al coincidir en el tiempo con, al menos, otra transmisi´ on de otra estaci´ on (esto es, se produjo una colisi´ on). Para intentar evitar una nueva colisi´ on se aumenta el rango de la elecci´ on del n´ umero aleatorio: este retroceso exponencial binario sirve para que las estaciones se adapten a situaciones temporales de alta carga. FRAME FRAME A station new frame B station busy medium
Since collisions may occur due to CSMA/CA1 protocol, the stations have to be informed of the performance of transmission, using an ACK2 for each MPDU3 transmitted. If this ACK is not received the station needs to retransmit the MPDU. Every failed transmission makes increase the CW value. The CW vale is doubled after any unsuccessful transmission up to a maximum value called CWmax. This increase allows to reduce a future collision between stations, so, higher value of CW lower probability of a collision. But not only a backoff counter is done before a transmission. After each successful transmission the station, who performs as the sender, initiates a backoff called postbackoff. This guarantees that there is always one random backoff time between two consecutive exchange, and therefore is an important mechanism to guarantee DCF functionality. Parameter Value SIFS 10 µs Te 20 µs DIFS 50 µs CWmin 32 CWmax 1024 table 3.1. 802.11b parameters Satellite part 40 1 CSMA/CA is the acronym of Carrier Sense Multiple Access/Collision Avoidance 2 ACK is the acronym of ACKnowledgment 3 MPDU is the acronym of MAC Protocol Data Unit
figure 3.4. In EDCA multiple backoffs entities contends for medium access with different priorities Another important parameter, depending on the AC, is the value of the minimum size of the CW, the CWmin[AC]. Similar to the 802.11, the initial value of the backoff counter, use to access to the medium, is set in an interval defined by the CW. But the major difference between DCF and the 802.11e EDCA in terms of backoff countdown rule is that the first backoff countdown occurs at the end of the AIFSN[AC] interval, and a frame transmission is initiated after a slot from the moment when the backoff counter becomes zero. The positions and sizes of the contention windows relative to each other, as defined per AC by the EDCA parameter set, are important factors to define relative priority in medium access per AC. Every unsuccessful transmission becomes in an increasing of the contention window, always without exceeding the CWmax[AC]. Also this maximum value is defined in the EDCA parameter set. A smaller CWmax[AC] becomes in a higher priority to access to the medium. But reducing excessively this value becomes, also, in an increasing of the collision probability. And it is important to remark that exists retry counters that limit the number of retransmissions. The 802.11e protocol also defines the maximum MSDU lifetime per AC, that defines the maximum time that a frame can remain in the MAC. If a frame exceed this parameter the frame is dropped without being transmitted. This Satellite part 47
parameter is useful in transmissions that are delay sensitive, because is not useful transmit a frame of voice in retard. Another backoff parameter is the TXOPlimit[AC]. This is defined per AC as part of the EDCA parameter set. As this parameter is larger, the capacity of share is larger for this AC. Once a backoff entity obtained a TXOP, this deliver more than one MSDU consecutively during the same TXOP. This important concept in 802.11e is referred to as continuation of an EDCA-TXOP. As we said before, every station has four different backoff entities, each of them having their own EDCA parameter set. During contention, when the counters of two ore more backoffs entities in the same station reach zero at the same time, a virtual collision occurs. Upon access to the same slot by more than one backoff entity with their higher priority will transmit, whereas all other backoff entities act as if a collision occurred on the medium. Also it can occur that the transmission of a backoff entity with the higher priority can collide with another transmission initiated by other stations. Parameter AC_VO AC_VI AC_ BK AC_BE CWmin 8 16 32 32 CWmax 16 32 1024 1024 TXOP 3 ms 6 ms 3 ms 0 table 3.2. Standard configuration for EDCA in 802.11b Satellite part 48
3.2.2. Hybrid Coordination Function, Controlled Medium Access (HCCA) The controlled medium access of the HCF, referred to as HCF Controlled Channel Access (HCCA) extends the EDCA access rules by allowing the highest priority medium access to the HC during the CFP and CP. A TXOP can be obtained by the HC via the controlled medium access. The HC may allocate TXOPs to itself to initiate MSDU deliveries whenever it requires, after detecting the medium as being idle for PIFS, and without backoff. In order for that the HC can give higher priority over the 802.11 DCF and EDCA access, AIFSN[AC] must be selected such that the earliest medium access for EDCA stations is DIFS for any AC. During the contention period, each TXOP of an 802.11e station begins either when the medium is determined to be available under the EDCA rules, i.e., after AIFS[AC] plus the random backoff time, or when backoff entity receives a polling frame, the QoS CF-Poll, from the HC. This polling frame can be transmitted after a PIFS idle period, without the use of any backoff. During the CFP, the starting time and the maximum duration of each TXOP is determined by the HC using the QoS CF-Poll frames. During the contention free period the 802.11e backoff entities will not attempt to access to the medium without being explicitly polled, so, only the HC can allocate TXOPs by transmitting QoS CF-Poll frames or by immediately transmitting downlink data. During a polled TXOP, the station can transmit the frames selected by its scheduling algorithm, separated by a SIFS time gap, always under the TXOPlimit. Polled TXOP allocations may be delayed by the duration of an EDCA-TXOP. The HC controls the maximum duration of EDCA-TXOPs within its QBSS by announcing the TXOPlimit[AC] for every AC via the beacon. But it is possible to allocate polled TXOPs at any time during the CP, and the optional CFP. Satellite part 49
figure 3.5. An example of an 802.11e superframe where the HC grants TXOPs in contention free period. The figure 3.5 shows an example of a superframe that includes a CFP and a CP. The superframe starts with a beacon transmitted by the HC (on the image 1). During the CFP, the backoff entities only transmit upon being polled by the HC. (On the image 2) Here we remark the transmission of an MSDU fragmented within the CFP. In order to finalize the CFP the HC transmit a CF-end frame (on the image 3). In the next part of the frame starts the contention free period, so the backoff entities attempt to transmit using the contentionbased medium access. The EDCA-TXOPs are obtained through contention. Two of them are remark in the figure (on the image 4). Also during the CP, the HC can poll a station. Following the EDCA-TXOPs the HC allocates a station with a polling-based manner (on the image 5), that is a fragmented MSDU. One can observe that in every transmission is present the RTS/CTS system. This method allows to improve the performance of EDCA, that is not sufficient to provide effective traffic protection and QoS guarantees, especially under high traffic loads. In order to be included in the polling list of the HC, a QSTA must send a QoS reservation request using the special QoS management frame, and each individual flow needs one particular reservation request. Figure 3.6 shows a common frame format for carrying traffic specification (TSPEC) parameters. Normally TSPEC parameters include: Satellite part 50
• Mean data rate (ρ): the average bit rate for packet transmission, in bits per second • Delay bound (D): the maximum delay allowed to transport a packet across the wireless interface in milliseconds • Maximum service interval (SImax): the maximum time allowed between neighbor TXOPs allocated to the same station, in microseconds • Nominal MSDU size (L): the nominal packet size in octets • Minimum PHY rate (R): the minimum physical bit rate assumed by the scheduler for calculating transmission time in bps figure 3.6. common management frame format for traffic specification One can see that, although the QAP decision is based on the characteristics of individual flows, the HCCA TXOPs are actually assigned on a per QSTA basis instead of per flow, so it is each QSTA the responsible of allocating the TXOPs to its individual flows. Satellite part 51
3.2.3. Another improvements Also, a part from the EDCA and HCCA access medium protocol, we can talk about some other schemes that allow to improve the efficiency of the MAC protocol, and also are part of the 802.11e. 3.2.3.1. Block Acknowledgment With the optional block acknowledgment, the throughput efficiency of the protocol is improved. This allow a backoff entity to deliver a number of MSDUs being delivered consecutively during one TXOP and transmitted without individual ACK frames. The MPDUs transmitted during the TXOP are referred to as a block of MPDUs. At the end of the block, or in a later TXOP, all MPDUs are acknowledged by a bit pattern transmitted in the block acknowledgment frame, thus reducing the overhead of control exchange sequences to a minimum of one acknowledgment frame per number of MPDUs delivered in a block. 3.2.3.2. Direct Link Protocol Any backoff entity can directly communicate with any other backoff entity in a QBSS, without communicating via the AP. In the legacy 802.11 protocol, within an infrastructurebased BSS (which is denoted as BSS), all data frames are sent to the AP, and received from the AP. This, however, consumes at least twice the channel capacity compared to the direct communication. Only in an independent BSS (which is denoted IBSS), station-to-station communication is allowed in the legacy protocol, due to the absence of the AP. The direct communication in 802.11e is referred to as direct link(DiL). A setup procedure, the Direct Link Protocol (DLP), is defined to establish a DiL between 802.11e backoff entities. Satellite part 52
4. The Network Simulator The network simulator is a simulator of discreet events and its simulations are at packet level. Its main characteristics are that is of open source, it is capable of doing scheduling, routing and congestion control, and it is also capable to simulate wired networks, like P2P links and LAN, and wireless networks, like ad-hoc, GPRS, UMTS, WLAN, Bluetooth and satellite ones. The ns simulator covers a very large number of applications, of protocols, of network types, of network elements and of traffic models. We call these “simulated objects”. It was born 1989 by Cornell and it was known as REAL network simulator. In the beginning it was made to evaluate control strategy of traffic and congestion in a packetbased network. It was written in C language. In 1995, it developed to ns-1 and it was introduced the Tcl / C++ architecture. Finally, in 1996 appeared ns-2 which the objectoriented Tcl (Otcl). After some work groups have developed some wireless extensions. The Network Simulator 53
NS simulator is based on two languages, an object oriented simulator, written in C++, and a OTcl (an object oriented extension of Tcl) interpreter, used to execute user’s command scripts. Also ns has a rich library of network and protocol objects. There are two class hierarchies: the compiled C++ hierarchy and the interpreted OTcl one, with one to one correspondence between them. The compiled C++ hierarchy allows us to achieve efficiency in the simulation and faster execution times. This is in particular useful for the detailed definition and operation of protocols. this allows one to reduce packet and event processing time. Then in the OTcl script provided by the user, we can define a particular network topology, the specific protocols and applications that we wish to simulate and the form of the output that we wish to obtain from the simulator. The OTcl can make use of the objects compiled in C++ through an OTcl linkage that creates a matching of OTcl object for each of the C++. Pure OTcl Objects Pure OTcl Objects NS -2 Tcl/C++ split objects TCLCL linkage C++ Pure C++ Objects figure 4.1. Structure of languages of ns-2 The Network Simulator 54
NS is a discrete event simulator, where the advance of tie depends on the timing of events which are maintained by a scheduler. An event is an object in the C++ hierarchy with an unique ID, a scheduled time and the pointer to an object that handles the event. The scheduler keeps an ordered data structure with the events to be executed and fires them one by one, invoking the handler of the event. The simulator is structured in some directory that are constructed following a hierarchy that is showed in the following figure. ns-allinone ex test Tcl8 tcl lib mcast OTcl TclCL ns-2 nam-1TK8 ... ... ... OTcl code validation tests C++ code examples figure 4.2. Directory hierarchy The Network Simulator 55
4.1. Satellite networks in ns2 Network simulator can model, thanks to some extensions, traditional geostationary bentpipe satellites with multiple users per uplink/downlink and asymmetric links, geostationary satellites with processing payloads, and polar orbiting LEO constellations such as Iridium and Teledesic. With these models one can use ns to study networking aspects of satellite systems, in particular, MAC, link layer, routing, and transport protocols. 4.1.1. Geostationary satellites Geostationary satellites orbit the Earth at an altitude of 35888 km above the equator. The position of the satellites is specified in terms of the longitude of the nadir point (subsatellite point on the Earth’s surface). Two kinds of geostationary satellites can be modeled. Traditional bent-pipe geostationary satellites are merely repeaters in orbit, so all packets received by such satellites on an uplink channel are piped through at RF frequencies to a corresponding downlink, and the satellite node is not visible to routing protocols. Newer satellites will increasingly use baseband processing both to regenerate the digital signal and to perform fast packet switching on-board the spacecraft. In the simulations, these satellites can be modeled more like traditional ns nodes with classifiers and routing agents. The Network Simulator 56
5. Simulation results In this chapter we want to show the simulation obtained with the network simulator. In a first moment the objective was to implement a scenario involving the satellite part and the wireless part. Being the first time using this simulator, a major part of the work was to achieve a minimum knowledge of the simulator performance. So the results shown in this chapter reflects the improves achieved during the realization of this research project. The first part being simulated was the satellite. Using a geostationary satellite and introducing two satellite terminals, the study done was the difference between a wired node and the satellite network. How affects the use of satellite in the throughput link. Simulations results 63
5.1. Satellite scenario In this first part of simulations the scenario on we move is the showed below. One can see a geostationary satellite connecting two earth terminals. The parameters used in the simulations are shown in the images following. figure 5.1. Scenario used (global vision) figure 5.2. Detail of the scenario used (satellite terminals vision) Simulation results 64 Bandwidth=30Mb delay=10ms TCP sender Bandwidth=30Mb delay=10ms TCP sink
In the satellite part we are going to study the different behavior of three types of TCP, and also the importance of the buffer queue in a bottleneck satellite network. This would be reflected in the throughput achieve in the system and also in the congestion window of the satellite link. We modify the queue parameter in order to see the effect in this kind of networks the values used are 50, 85 and 1251. Always being under the value of the sum of the receiver window and the delay bandwidth product for make the simulation independent of the receiver window value. In the congestion window we see the following results: figure 5.3. cwnd of TCP New Reno Simulations results 65 1 these values are the same used in an EDCA simulation perform in Siena university
figure 5.4. cwnd of TCP Vegas figure 5.5. cwnd of TCP Sack If we observe the congestion window (cwnd) of New Reno and Sack we can see the two phases defined by the TCP congestion avoidance. In New reno, first one can see and exponential increase, follow by a lineal increase until the ssthresh value. When a loss is perform the cwnd returns to its initial value. In TCP Vegas the cwnd remains constant, witha previously oscillation of its value, achieving a top value of 140. And for TCP Sack we can see that a loss is being deployed returning to the sized off value of the cwnd, making only the lineal increase. Simulation results 66
For the different values for the queue buffer the results show very low differences between them. Only we can say that the best result is achieved by the TCP Sack, thanks that it works in a better form with a great value of the receiver window. In this case is of 500 packets. So as we want the TCP Sack obtain a better performance, as we can see in the following figures. figure 5.6. Queue buffer of 50 packets figure 5.7. Queue buffer of 85 packets figure 5.7. Queue buffer of 125 packets Simulations results 67
The last part of simulations is using a double connection between the satellite link. As is shown in the following image we have defined two TCP senders, ad two TCP receivers, using TCP New Reno, using the same satellite link. figure 5.9. Detail on the scenario We have two traffic links, the one that involve the satellite terminals and the one that involves the wired nodes. In this case we will see the effect of having different receiving windows. Their values are set to: 50, 100, 150 and 200 packets. The results obtained are shown below: 0 0,1 0,2 0,3 0,4 0,5 0,6 0,7 0,8 0,9 1 169 337 505 673 841 1009 1177 1345 1513 1681 1849 throughput sink1 throughput sink2 figure 5.10. rwnd of 50 packets The fact that we achieve a constant throughput is due to the use of a rwnd lower than the Delay Bandwidth Product. Simulation results 68
0 0,2 0,4 0,6 0,8 1 1,2 1,4 1 172 343 514 685 856 1027 1198 1369 1540 1711 1882 Throughput sink 1 Throughput sink2 figure 5.11. rwnd 100 packets The maximum Throughput achieved is about the 1,2 Mbps. The goodput normalized achieved by the TCP of sink1 (received in the satellite terminal) has a value of 39,4%, and the achieve by the other TCP connection is 29,4%. So the parameters used are insufficient to giving a good performance. 0 0,2 0,4 0,6 0,8 1 1,2 1,4 1,6 1 170 339 508 677 846 1015 1184 1353 1522 1691 1860 Throughput sink1 Throughput sink2 figure 5.12. rwnd 150 packets In this case the goodput achieve by the connections are: 34,5% and 29,2%. As one can see the improvement is not as good as one could want. Simulations results 69
0,00E+00 2,00E-01 4,00E-01 6,00E-01 8,00E-01 1,00E+00 1,20E+00 1 147 293 439 585 731 877 1023 1169 1315 1461 1607 1753 1899 Throughput sink2 Throughput sink1 figure 5.13. rwnd 200 packets Now we achieved a similar throughput in both connections although its values are below the 1Mbps. the goodput values are: 32,2%, for the sink1, and 30,5% for the sink2. We continue seeing that these chosen values are not as good as one want. So it is necessary to find a better set of parameters to increase and improve the satellite performance with satellite TCP connections. 5.2. Wireless simulations The wireless part is focus on the HCCA patch provided by the Pisa University. In a first moment we started to study the effect of the increasing users that use the VoIP service. So if the number of users that use the real time service what will pass in the network performance. This scenario also have users that transmit FTP packets using TCP protocol, while the CBR packets are transported via UDP protocol (VoIP service). This last packets are prioritized over the other packets of the TCP. The patch allow to transmit together 9 users. We tried to discover what makes this limitation. we try to modify the C++ codes but we couldn’t find the form to improve that. Simulation results 70
Another point is the change of physical parameters of the simulation. This is another fact that didn’t allow us to perform more kinds of simulations. The different codes used to implement the HCCA patch are complex and their study is complex. The HCCA ca give priorities to the stations via the TSPEC contained in the frames. In order to achieve some different it could be important to change them. But changing from the initial value makes impossible to achieve a correct simulation. For that reason the simulations present here are done varying the number of users that transmit real-time packets. figure 5.2. VoIP throughput with different number of users In this simulation we can observe that increasing the number of users allow to achieve a higher throughput of the system. As we expected the throughput achieve is constant during the time simulation due to the service required is a constant bit rate, as the user expect. On the other hand the increase of real-time stations makes decrease the system throughput in the TCP users, as we can see in the following figure. In the set of figures we ca see the differences between three kind of TCP: New Reno, Vegas and Sack. The differences between this TCP protocols are explained in a previous section of this work. Simulations results 71
figure 5.3. Throughput of TCP New Reno figure 5.4. Throughput of TCP Vegas Simulation results 72
Abstract This project is based on the study of offering quality of service in satellite and wireless networks. For that reason the study of the techniques of cross-layer and the IEEE 802.11e has been the key point for the theoretical development of this study. Using the software network simulator, in the part of simulations three situations consider: the study of the satellite network, the study of the access method HCCA and the interconnection of the satellite network with the wireless. Although this last point, incomplete in this work, must be the continuation for future investigations. Resum Aquest projecte es basa en l’estudi de l’oferiment de qualitat de servei en xarxes wireless i satelitals. Per això l’estudi de les tècniques de cross-layer i del IEEE 802.11e ha sigut el punt clau per al desenvolupament teòric d’aquest estudi. Usant el simulador de xarxes network simulator, a la part de simulacions es plantegen tres situacions: l’estudi de la red satelital, l’estudi del mètode d’accés HCCA i la interconnexió de la red satelital amb la wireless. Encara que aquest últim punt, incomplet en aquest projecte, ha de ser la continuació per a futures investigacions. Resumen Este proyecto se basa en el estudio del ofrecimiento de calidad de servicio en redes wireless y satelitales. Por eso el estudio de las técnicas de cross-layer y del IEEE 802.11e ha sido el punto clave para el desarrollo teórico de este estudio. Usando el simulador de redes network simulator, en la parte de simulaciones se plantean tres situaciones: el estudio de la red satelital, el estudio del método de acceso HCCA y la interconexión de la red satelital con la wireless. Aunque este último punto, incompleto en este proyecto, tiene que ser la continuación para futuras investigaciones.