Abstract:
The invention discloses a method for detecting priority of data frames comprising the steps of extracting (S 1 ) a bit pattern from a predetermined position in a frame, comparing (S 2,  S 3 ) said extracted bit pattern with a search pattern, and identifying (S 4 ) said received frame as a priority frame in case said extracted bit pattern (BP) matches with said first search pattern (SP). By this method, the priority of a data frame can easily be detected. The invention also proposes a corresponding device for detecting priority of data frames.

Description:
CROSS-REFERENCE TO RELATED APPLICATION  
       [0001]    This application is a continuation of International Application PCT/EP99/10097 having an international filing date of Dec. 17, 1999 and from which priority is claimed under all applicable sections of Title 35 of the United States Code including, but not limited to, Sections 120, 363 and 365(c). 
     
    
     
       FIELD OF THE INVENTION  
         [0002]    The present invention relates to a method and a device for detecting priority of data frames in a network.  
         BACKGROUND OF THE INVENTION  
         [0003]    This invention relates in general to the field of telecommunications, more precisely to Wireless Local Area Networks (WLAN) and Electrical and Electronics Engineers (IEEE) 802.11 WLAN standard.  
           [0004]    The IEEE 802.11 Wireless Local Area Network specification specifies a so-called Contention Free Period (CFP), which is a period of transmission time that is free from the normal contention based airtime reservation. The length and duration of CFP are configurable parameters in Access Point (AP), so that the start of CFP is repeated after one or more Delivery Traffic Indication Message (DTIM) intervals (see IEEE 802.11 standard). The CFP and its relationship to the so-called Content Period (CP) is schematically illustrated in FIG. 12. As can be seen, a CFP repetition interval contains a Content Free Period (CFP) and a Content Period (CP). Each CFP begins with a beacon frame that contains a DTIM element.  
           [0005]    The purpose of this CFP is that it can be used for delivering high priority traffic, which has higher real time requirements than normal traffic. The CFP is controlled by the so-called Point Coordination Function (PCF) in an Access Point (AP). The standard specifies the PCF operation in basic level, but does not specify how the PCF should be controlled or how some traffic should be identified as high priority traffic. These things are considered to be out of the scope of the standard.  
           [0006]    Information within data frames is marked as having a high priority by using certain fields in some protocol frames or headers. However, the Access Point (AP) usually processes only frames on the Medium Access Control (MAC) layer such that the AP can not easily access information regarding the priority of certain data blocks within the frames, since this information is processed in higher layers.  
           [0007]    Thus, for getting priority information, conventionally the frames which are to be transmitted through an Access Point (AP) had to be searched for these fields which indicate the priority state of the actual data frame. This means that in all frames all fields had to be checked, all the headers had to be analyzed, starting from the outer most headers, until the right field in the header had been found.  
           [0008]    Since all frame headers are parsed when detecting priority, this measure has a high reliability.  
           [0009]    However, this measure is very complex, takes a long time and requires a large amount of processing. Furthermore, the traffic transferred in WLAN can be practically anything, including complex tunneling protocols.  
           [0010]    Therefore, all the frame headers and protocols which can be included in the data frames transmitted via the network have to be known. Hence, the amount of information needed for identifying the data is huge. This huge amount of information is typically too heavy to handle in quite small and low price equipment like WLAN access points (AP).  
           [0011]    In addition, it has to be considered that every time new protocols are introduced, the access point has to be updated, at least by software updates. This is also required in case protocols already used are changed.  
           [0012]    Thus, conventionally such a transmission differentiation based on priority was not conducted at all. That is, the existing systems according to the IEEE 802.11 standard do not separate traffic based on priority. In these conventional systems, the Content Free Period (CFP) is only used to deliver traffic from the Access Point (AP) to stations, treating all frames equally.  
         SUMMARY OF THE INVENTION  
         [0013]    Therefore, the object underlying the invention resides in removing the above drawbacks of the prior art and to provide a method by which priority traffic can easily be distinguished from normal traffic without the need of a complex processing.  
           [0014]    This object is solved by a method for detecting priority of data frames in a network comprising the steps of extracting a bit pattern from a predetermined position in a frame, comparing the extracted bit pattern with a search pattern, and identifying the received frame as a priority frame in case the extracted bit pattern matches with the first search pattern.  
           [0015]    Alternatively, the above object is solved by a device for detecting priority of data frames in a network comprising a receiving means for receiving data frames, an extracting means for extracting a bit pattern from a predetermined position of a data frame, a comparing means for comparing the extracted bit pattern with a predetermined search pattern, and an identifying means for identifying the received frame as a priority frame in case the extracted bit pattern matches with the first search pattern.  
           [0016]    Thus, a priority which is defined in a higher-level layer can easily be detected by comparing a corresponding bit pattern with a search pattern without further processing of the received frame. By the method and the device according to the invention, simply a bit pattern is extracted at a position in the frame, where the priority information is known to be located. This bit pattern is compared with a search pattern which corresponds to that bit pattern, which would be located at the above position in case that a priority is set for the actual frame. Thus, it is not necessary to process and analyze the received frame, i.e., to process higher-level layers in order to obtain priority information.  
           [0017]    Hence, when adopting the IEEE 802.11 WLAN standard, the priority can be detected in the Medium Access Control (MAC) layer which is a low-level layer. That is, the method can easily find higher priority traffic from the stream of MAC layer frames. Therefore, the method does not need any knowledge of the upper layer protocols.  
           [0018]    Consequently, according to the method of the invention, certain traffic can be defined to have higher priority than other traffic when it is handled in an IEEE 802.11 WLAN Access Point (AP). The method is designed so that it is as lightweight as possible to execute in a low cost and possibly low performance AP.  
           [0019]    Furthermore, the method is protocol-independent and so flexible that all the configuration may be done in external configuration program and the Access Point does not need to know anything about the processed traffic.  
           [0020]    Further advantageous developments are set out below.  
           [0021]    In particular, the predetermined position in the frame is defined by the offset of the bit pattern in the frame. Thus, the position of the bit pattern to be extracted and examined can accurately be defined.  
           [0022]    Furthermore, the offset and the search pattern are included in an information element. This information element can be produced by an external program such that the device according to the invention and the device performing the method according to the invention does not have to generate the search pattern and the offset. Thus, the structure of the device does not have to be complex.  
           [0023]    In addition, in case new protocols or modified protocols are introduced in the network, it is not necessary to reconfigure the network element (i.e., the device) performing the method. It is only necessary to provide new information elements including the new offset and the new search pattern, which can be effected by an external configuration program. For this, it is not necessary to install new software in the network element or to install new hardware. It is not even necessary to shut down the network element for a new configuration. Hence, the method is very flexible.  
           [0024]    Moreover, the bit pattern can be masked by using a mask. Then, the masked bit pattern is compared with the search pattern instead of comparing the bit pattern with the search pattern. By this measure, single bits can easily be extracted from the bit pattern. This is advantageous in case the bit pattern is extracted in form of bytes. For example, a bit pattern can include two bytes, whereas for the priority detection only two bits of each byte are required. These two bits can easily be extracted by using the mask.  
           [0025]    The mask can also be included in the information element described above.  
           [0026]    If necessary, also a plurality of different bit patterns, search patterns, offsets and—optionally—masks can be used to detect priority of the frames. By this measure, priority information can be detected which is located at different positions within a data frame.  
           [0027]    Alternatively, a plurality of different priority levels can be provided for the frames. For detecting different priority levels, a plurality of different bit patterns, search patterns, offsets and—optionally—masks can be used to detect the plurality of different priority levels. By this measure, also different priority levels can easily be detected.  
           [0028]    Hence, a plurality of different information elements can be used. For example, one certain priority can require a plurality of information elements, while another certain priority can require only one particular information element.  
           [0029]    A received frame can be forwarded to a priority queue in case the frame is detected to be a priority frame during a special period for sending priority traffic. The priority queue serves to transmit the data priority frames in the network faster than normal frames. This measure is especially advantageous in an IEEE 802.11 WLAN since in this standard, a Contention Free Period is defined, as described above.  
           [0030]    In addition, the duration of the special period for sending priority traffic can be adjusted according statistical information regarding the priority frames sent. Thus, the special period, i.e., the Contention Free Period, can be adjusted corresponding to the load of priority traffic on the network.  
           [0031]    Furthermore, for obtaining the statistical information, the total number of priority frames and the number of priority frames outside the special period can be counted. Then, it can be decided on the basis of the count values obtained whether the special period has to be increased or decreased.  
           [0032]    In addition, in the IEEE 802.11, a data+CF-poll frame is defined. Preferably, this data+CF-poll frame can be used for transmitting priority frames in case of a symmetrical high priority traffic between the Access Point and stations in the network.  
           [0033]    Furthermore, the invention proposes a method for generating priority detecting information necessary for the above method and device. This method comprises the steps of analyzing a data frame, identifying a bit pattern indicating a priority state, defining the identified bit pattern as a search pattern, and locating the bit pattern within the data frame. By this method, the necessary priority detection information can easily be provided. For example, this method can be employed by a configuration program that is externally run, for example, in one of the wireless stations which are connected by air with the Access Point.  
           [0034]    The above method for generating priority detecting information may further comprise the steps of determining the offset of the location, and producing an information element including the offset and the search pattern. Optionally, also the mask for masking the bit pattern mentioned above can be determined and included in the information element. 
       
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0035]    The present invention will be more readily understood with reference to the accompanying drawings in which:  
         [0036]    [0036]FIG. 1 shows a main system overview;  
         [0037]    [0037]FIG. 2 shows a process for checking priority of frames according to a first embodiment;  
         [0038]    [0038]FIG. 3 shows an example for a frame to be examined by the process according to the first embodiment;  
         [0039]    [0039]FIG. 4 shows a frame priority detecting device according to the first embodiment;  
         [0040]    [0040]FIG. 5 shows an example of pattern matching with two different information elements according to a second embodiment;  
         [0041]    [0041]FIG. 6 illustrates a flow chart of a frame sending procedure during Content Free Period (CFP) according to the second embodiment;  
         [0042]    [0042]FIG. 7 shows relevant parts of a Point Coordinator (PC) according to a third embodiment;  
         [0043]    [0043]FIG. 8 illustrates a flow chart of a frame sending procedure during Content Free Period (CFP) according to the third embodiment;  
         [0044]    [0044]FIG. 9 illustrates a flow chart of a frame sending procedure during contention period according to the third embodiment; and  
         [0045]    [0045]FIG. 10 illustrates a flow chart of a procedure for CFP parameter tuning according to the third embodiment;  
         [0046]    [0046]FIG. 11 shows a flow chart of a method for obtaining priority detection information; and  
         [0047]    [0047]FIG. 12 illustrates the relationship between Content Free Periods (CFP) and Content Periods (CP) according to IEEE 802.11. 
     
    
     DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS  
       [0048]    In the following, preferred embodiments of the invention are described in more detail with reference to the accompanying drawings.  
         [0049]    [0049]FIG. 1 shows an overview of the main system used in the embodiments. The system is a normal IEEE 802.11 Basic Service Set (BSS) containing one Access point (AP)  2  and one or more wireless stations (STA)  3  to  5 . The AP may or may not be connected to another wired or wireless network  1 . The purpose of the AP  2  is to transmit the traffic between the wireless stations or between wireless stations and the network  1  which is connected to the AP  2 .  
         [0050]    All the network components function according to the IEEE 802.11 standard. This presented set-up is a typical representation of the coverage area of one AP. The whole wireless network usually consists of several of these kinds of subsystems. An external configuration program may run in one of the stations in the wireless network or it may reside in some other host and be connected to AP with a wire. In this example, the configuration program is executed in the wireless station  3 .  
         [0051]    In the following, a first embodiment which shows the basic idea of the invention is described with respect to the flow chart shown in FIG. 2 and an example for a Medium Access Control (MAC) layer frame shown in FIG. 3.  
         [0052]    The procedure shown in FIG. 2 is executed by the Access Point AP  2  every time a Medium Access Control (MAC) layer frame has been received.  
         [0053]    In step S 1 , the AP  2  extracts a bit pattern from a given position in the received frame. The bit pattern can be a pattern of two bytes, for example. However, the length of the bit pattern can be selected arbitrarily. The extracted bit pattern is indicated by BP in FIG. 2. In step S 2 , the extracted bit pattern BP is compared with a predetermined search pattern SP. If in step S 3  it is decided that both patterns match, it is determined in step S 4  that the actual frame is a priority frame. On the other hand, if it is decided in step S 3  that both patterns do not match, it is determined in step S 5  that the actual frame is not a priority frame. After identifying the priority of the frame, the frame can be treated according to the identified priority.  
         [0054]    Thus, the frame can easily be examined whether it is a priority frame or not without the need for analyzing the data format in the MAC layer frame itself, i.e., without knowing protocols of the higher layers.  
         [0055]    The position of the bit pattern to be extracted is defined by the offset OS from the start of the MAC frame, as shown in FIG. 3. Thus, the AP  2  requires only information regarding the offset OS and the search pattern SP for checking priority of certain MAC frames.  
         [0056]    This information can be provided by an external configuration program. The configuration program can be executed in one of the wireless stations, for example. Alternatively, it can be executed in any suitable network element, including the Access Point itself. For this configuration program it is necessary that the bit positions of the priority information which are usually set in higher layers are known. Thus, by providing the AP with the offset, the AP does not have to process the frame in order to identify priority information. It is only necessary to obtain the corresponding bit pattern.  
         [0057]    In the first embodiment, the configuration program is executed in the wireless station STA  3 . The configuration program produces information elements which contain the above-described information regarding the offset OS and the search pattern SP necessary to identify the priority state of certain MAC frames. These information elements are transmitted to the AP  2 .  
         [0058]    [0058]FIG. 4 shows the relevant parts of the Access Point  2  in more detail. Reference numeral  22  denotes a frame receiver by which frames are received from the wired or wireless network  1  and also from the wireless stations  2  to  5 . Reference numeral  23  denotes a bit pattern extractor by which the bit pattern BP described above is extracted from a predetermined position. The position is defined by the offset OS, as mentioned above, and the offset is stored in an offset memory  27  which is accessed by the bit pattern extractor  23 . The extracted bit pattern BP is forwarded to a comparator  24  which compares the extracted bit pattern BP with the search pattern SP. The search pattern SP is stored in a search pattern memory  25  which is accessed by the comparator  24 . The comparison result is supplied to a priority identifying means  26  which identifies the actual frame F as a priority frame in case the comparison results indicates that the bit pattern BP matches the search pattern SP. Thus, the Access Point (AP)  2  can detect priority frames and can treat them correspondingly.  
         [0059]    As mentioned above, the external configuration program provides information elements which each comprise an offset OS and a search pattern SP. These information elements are received by an information element receiver  28 . The receiver  28  analyzes the information element and supplies the detected offset OS to the offset memory  27  and the detected search pattern SP to the search pattern memory  25 .  
         [0060]    The first embodiment described above illustrates the basic operation according to the invention. The second embodiment described in the following describes a further, more detailed example for the high priority traffic detection method in which the Content Free Period (CFP) defined in IEEE 802.11 standard is used for transmitting detected high priority frames.  
         [0061]    According to IEEE 802.11, the Content Free Period (CFP) is a period which is reserved for transmitting high priority traffic, as described above in the introductory part with respect to FIG. 12. The CFP is controlled by a Point Coordinator (PC)  21  which is arranged in the Access Point (AP)  2  shown in FIG. 1. If the high priority traffic is transferred only from the AP  1  to the wireless stations (i.e., in a typical client-server application case), the CFP may be used only for delivering data from the AP to wireless stations. But, if the nature of the high priority traffic is interactive (like a videoconference, for example), the PC  21  must also poll wireless stations to permit them to transmit also during the CFP. See IEEE 802.11 standard for more detailed description about this basic functionality of IEEE 802.11 standard.  
         [0062]    The AP  2  receives MAC layer frames either from the wireless station or from the connected wired network. If the destination of the frame is in the wireless network, the AP will check whether the frame is high or normal priority traffic. The priority detection requires that the AP  2  is configured with the external configuration program to detect the priority and the required configuration information elements are configured to the AP by the external configuration program. The AP also needs to reformat the MAC level header of the frame or encapsulate the frame inside a separate IEEE 802.11 MAC header which is defined in IEEE 802.11. The point when the priority detection check is performed (before or after IEEE 802.11 MAC header formatting) can be left implementation specific.  
         [0063]    If the BSS is in a so-called Contention Free (CF) state (i.e., currently there is a Contention Free Period (CFP)) and the frame is a priority frame, the frame is put in a priority transmit queue, otherwise the frame is treated like the normal traffic. During the CFP, all the frames in the priority queue are transmitted before any frames from the normal queue. When the CFP ends, remaining frames in the priority queue are moved to the normal queue and priority queue is flushed.  
         [0064]    According to this embodiment, the priority of a MAC layer frame is detected by using one or more information elements which are transmitted to the Access Point (AP)  1 . That is, one or more bit patterns with corresponding different offsets are checked whether they match with one or more different search patterns. Furthermore, the bit patterns extracted from the MAC layer frame are also masked by using a mask. The mask is also contained in an information element. Thus, the information element according to the second embodiment comprises the offset and the search pattern as according to the first embodiment, and in addition a mask. The mask serves to obtain only particular bits in the extracted bit pattern and is optional.  
         [0065]    The operation according to the second embodiment is described by referring to FIGS. 5 and 6. It is noted that for simplifying the illustration, the second embodiment is described with reference to the case that the priority is detected by using two information elements.  
         [0066]    In FIG. 5 it is shown that two bit patterns BP 1  and BP 2  are extracted from the MAC layer frame F. The first bit pattern BP 1  is extracted with an offset OS 1 . As illustrated, the first bit pattern matches with the first search pattern SP 1 . For the first bit pattern BP 1 , no mask has been specified (i.e., no masking is performed).  
         [0067]    However, for the second bit pattern BP 1  a mask M 2  is specified. In this example, the mask is M 2 =00010000 such that only the fourth bit is passed through. The resultant bit pattern BP 2 ′ is then compared with the second search pattern SP 2 . Here, the second search pattern SP 2  and the masked bit pattern BP 2 ′ match. Since also the first search pattern SP 1  matches with the first bit pattern BP 1 , it is decided that the actual frame F is a high priority frame.  
         [0068]    According to the second embodiment, the frame F which has been detected as a priority frame, is transmitted in the Contention Free Period (CFP). That is, it is put on a high priority queue. This process is described in the following by referring to the flow chart shown in FIG. 6.  
         [0069]    The process shown in this flow chart is performed during the Content Free Period, i.e., in case the CFP is active. In step S 61 , the Access Point (AP)  2  waits for receiving a frame which is to be transmitted further to the wireless stations  3  to  5  (FIG. 1). In step S 62 , the bit patterns BP 1  and BP 2  are extracted from the frame F, as shown in FIG. 5. In step S 63 , the bit pattern BP 2  is masked with the mask M 2  to obtain a bit pattern BP 2 ′, as described above. Since no mask has been specified for the first bit pattern BP 1 , no corresponding step for the first bit pattern BP 1  is performed.  
         [0070]    Then, in step S 64 , it is checked whether both bit patterns BP 1  and BP 2 ′ match with the search patterns SP 1  and SP 2 , respectively. If SP 1  and BP 1 , and SP 2  and BP 2 ′ respectively match, it is decided that the received frame F is a high priority frame, and the frame F is put in the priority queue (step S 65 ). This is effected by the Point Coordinator (PC)  21  arranged in the Access Point (AP)  2 . If the patterns do not match (NO in step S 64 ), the received frame F is put in the normal queue, as shown in step S 66 .  
         [0071]    As described above, the Point Coordinator (PC)  21  puts a priority frame in the priority queue in case the Contention Free Period (CFP) is active. However, in case the CFP is inactive, the frame goes to the normal queue so that it does not have to wait for the CFP to start. When the CFP starts, the PC flushes the normal queue and places the unsent high priority frames in the priority queue. Thus, when the Point Coordinator (PC)  21  notices that the frame which should be sent is a high priority frame, it puts this frame in the normal or high priority queue depending on the current state of the network.  
         [0072]    As mentioned above, the use of two information elements is only an example. The number of information elements can be more than two. By using a plurality of information elements, it is also possible to distinguish between different priority levels. For example, the configuration program can give the following data to the Access Point by which three priorities (i.e. priority 1, priority 2 and priority 3) can be distinguished. It is noted that these three priorities can each represent different priority levels (e.g., priority 1 represents the highest priority while priority 3 has the lowest) or can represent equal priority levels.  
         [0073]    Priority 1 Information:  
         [0074]    Information element 1: offset 1 and search pattern 1  
         [0075]    Information element 2: offset 2 and search pattern 2  
         [0076]    Information element 3: offset 3 and search pattern 3  
         [0077]    . . .  
         [0078]    Information element n: offset n and search pattern n  
         [0079]    Priority 2 Information:  
         [0080]    Information element 1: offset 1 and search pattern 1  
         [0081]    Priority 3 Information:  
         [0082]    Information element 1: offset 1 and search pattern 1  
         [0083]    Information element 2: offset 2 and search pattern 2  
         [0084]    The AP then checks whether a received frame matches with all the information elements of the first group containing the information elements for priority 1. That is, for each information element it is checked whether a bit pattern at the offset included in the information element matches with the search pattern included in the information element. If this is the case for all information elements, then the frame has the priority 1.  
         [0085]    If the frame does not match with all information elements listed in the first group, then the AP tests the same frame with all the information elements (one, in this example) of the second group containing the information elements for priority 2. If the bit pattern extracted at the off set 3 in the frame matches with the search pattern 3 included in information element 3, it is decided that the frame has the priority 2.  
         [0086]    However, if the patterns do not match, then the AP checks the priority 3 information. That is, the frame is checked whether it matches with information elements 1 and 2. If this is the case, the frame has the priority 3. If the frame still does not match, it has no priority.  
         [0087]    Next, a third embodiment is described, according to which the Point Coordinator (PC)  21  collects statistics about the high priority traffic sent and adjusts the parameters for the CFP.  
         [0088]    In detail, the PC  21  counts the high priority packets during the every so-called Delivery Traffic Indication Message (DTIM) interval (see IEEE 802.11 WLAN standard). Furthermore, it also counts how much of those packets are transmitted outside the CFP and how much during the DTIM interval containing CFP but outside CFP. The PC saves statistics of the previous N DTIM intervals, where N is at least the CFP repeating interval. The PC then checks the statistics after every DTIM interval that contains CFP and adjusts the CFP length and interval accordingly. The frame handling and statistics collection during the CFP is presented in FIG. 8 and during the contention period in FIG. 9.  
         [0089]    The PC  21  according to the third embodiment is shown in FIG. 7 in greater detail. As derivable therefrom, the PC comprises a plurality of counters which are used by a PC controller  211  to control the CPF. A priority frames counter (PFC)  212  serves to count all priority frames received. A counter for priority frames outside CFP (PFOCFP) counter  213  serves to count all priority frames which are received during the content period, i.e., when CFP is inactive. A CFP DTIM counter  214  serves to count all priority frames which are received in an DTIM interval containing a Contention Free Period (CFP). As mentioned above, the PC  21  forwards the received priority frames either to the normal queue  215  or to the priority queue  216  depending on the current state of the network.  
         [0090]    The flowchart shown in FIG. 8 is almost the same as in FIG. 6. The steps S 81  to S 86  correspond to the steps S 61  to S 66  of FIG. 5. Thus, an unnecessary repetition is omitted here. However, in addition to the flow chart shown in FIG. 6, a new step S 87  is performed in case patterns SP 1  and BP 1 , and SP 2  and BP 2 ′ match. In this step S 8 , the priority frame counter (PFC)  212  is incremented each time it is decided that an actual frame is a high priority frame.  
         [0091]    [0091]FIG. 9 shows a flowchart representing a process performed during the content period, i.e., when the CFP is inactive. Here, all received frames are put in the normal queue. In case of a high priority frame, several values are counted by the counters of the Point Coordinator (PC)  21  for providing statistical information.  
         [0092]    In detail, in step S 91  it is waited for a frame, similar to step S 81  of FIG. 8. In step S 92 , the priority is detected in the way as described in the first or second embodiment. If the actual frame is a normal frame with no priority, the flow advances to step S 97  in which the frame is put to the normal queue  215 . If, however, the actual frame is a priority frame, the flow advances to step S 93  in which PFOCFP counter  213  is incremented. Furthermore, in step S 94  also the priority frames counter  212  is incremented.  
         [0093]    In step S 95  it is checked whether the actual DTIM interval contains a Content Free Period (CFP). If this DTIM interval contains a CFP, the CFP DTIM counter  214  is incremented in step S 96  before the flow advances to step S 97 . Otherwise, the flow advances directly to step S 97 . Thereafter, the routine is ended.  
         [0094]    The statistical information regarding the priority frames are used as described in the following with reference to FIG. 10.  
         [0095]    As shown in FIG. 10, the procedure is started in an DTIM interval after the end of the Content Free Period (step S 101 ). In step S 102 , the percentage of priority frames sent outside of the CFP is checked. Depending on the result, different processes are executed, as described next.  
         [0096]    If the percentage of high priority traffic sent outside of CFP is higher than a certain high alarm level HAL, the PC  21  will start corrective actions. These processes are illustrated on the right side of the flow chart shown in FIG. 10.  
         [0097]    The alarm level is 100%—percentage of the high priority traffic that must be send inside the CFP in any case. For example, if it is known that the traffic which requires an almost real-time treatment requires a priority traffic of 30%, the alarm level is set to 70%. The alarm level can be fixed or it can be dynamically adjustable.  
         [0098]    When the alarm level HAL is reached, the PC will next check the percentage of high priority traffic sent during the DTIM intervals not containing the CFP. This is effected in step S 107  in which the difference between the count values of the PFOCFP counter  213  and the CFP DTIM counter  214  is calculated, wherein the difference is brought in relation to the value of the priority frames counter (PFC)  212 . If it is more than the alarm level HAL, the PC will make the CFP interval to be half of the original (if it is not already one DTIM interval), as described in step S 108 .  
         [0099]    Next, in step S 109 , the PC  21  will check if the percentage of high priority traffic sent outside of the CFP during the DTIM intervals containing CFP is also higher than the alarm level. This percentage P is calculated as follows:  
           CFP DTIM  counter/( PFC− ( PFOCFP−CFP DTIM  counter))/100)  
         [0100]    If this percentage is higher than the alarm level, the PC  21  will double the duration of the CFP (if not already maximum possible) in step S 1010 . The alarm level used in the different steps may be the same or different according to the wanted system behavior.  
         [0101]    If it is decided in step S 102  that the percentage of high priority traffic sent outside the CFP drops below a low alarm level LAL, the PC  21  will start decreasing the CFP in order to give the normal traffic also a reasonable chance to be delivered in time. The low alarm level LAL is the percentage of the high priority traffic that can be send outside the CFP if needed. In order that the system can work smoothly, the low alarm level should be less than 100%—high alarm level HAL.  
         [0102]    When the alarm level LAL is reached, the PC  21  will next check what is the percentage of high priority traffic sent during the DTIM intervals not containing the CFP in step S 103  which corresponds to step S 107  described above. If it is less than alarm level, the PC will make the CFP interval to be double of the original in step S 104 . Next, the PC  21  will check if the percentage of high priority traffic sent outside of the CFP during the DTIM containing CFP is also lower than the alarm level LAL. This is effected in step S 105  which corresponds to step S 109  described above. If this percentage is lower as the alarm level LAL, the PC  21  decreases the duration of the CFP with the amount of the previous addition in step S 106 . The alarm level LAL used in the different steps may be the same or different according to the wanted system behavior.  
         [0103]    If it is decided in step S 102  that the percentage of priority frames outside the Content Free Period (i.e., the count value of the PFOCFP counter  213  with respect to the count value of the priority frame counter  212 ) is between the low alarm level LAL and the high alarm level HAL, the flow advances directly to step S 1011  in which all counters  212 ,  213  and  214  are reset. Then, the procedure is ended.  
         [0104]    Next, a fourth embodiment is described. The structure and procedures according to this embodiment is similar to the embodiments described above. However, in this embodiment the nature of the high priority traffic is checked. In particular, it is considered whether the high priority traffic is symmetrical, i.e., whether the high priority traffic from a wireless station to the Access Point (AP)  2  is the same or almost the same as the high priority traffic from the AP  2  to the wireless station.  
         [0105]    During the Content Free Period (CFP) the wireless stations (terminals) are not allowed to transmit unless the PC  21  polls them. Therefore, they will register themselves to PC to be placed in a polling list. In order to get the best benefit from this traffic control, wireless stations in the WLAN must be able to identify the high priority traffic and send that traffic during the CFP.  
         [0106]    In case of the symmetrical high priority traffic between the AP  2  and the wireless stations, the configuration information (from the external configuration program) contains a field telling that this is symmetrical high priority traffic. When the Point Coordinator (PC)  21  in the AP  2  detects that the high priority traffic is symmetrical and the receiving station is pollable during the Content Free Period (i.e., is CF-pollable), it will send it to the terminal inside a so-called data+CF-poll frame instead of normal data frame during the CFP. The data+CF-poll frame is a special data frame, defined in the IEEE 802.11 standard, that allows the receiving station send one data frame during the CFP after receiving the data+CF-poll frame. During the contention period, the symmetrical traffic does not cause any special processes. The use of data+CF-poll frame enables equal high priority data delivering performance to both directions.  
         [0107]    The PC  21  must ensure that other wireless stations in the polling list gets polled according to the standard even when delivering symmetrical high priority traffic.  
         [0108]    In the following, the configuration program used for generating priority detection information used in the above embodiments is described in more detail.  
         [0109]    The method adopted in the configuration program is described by referring to the flowchart shown in FIG. 11.  
         [0110]    In step S 111 , a bit pattern (consisting, for example, of one or two bytes) which indicates the priority information is identified in the data frame. The identified bit pattern is defined as the search pattern (SP) in step S 112 . In step S 113 , the location, that is, the offset of the identified bit pattern (i.e., the search pattern) inside the data frame is determined. Thereafter, an information element containing the determined offset and the identified search pattern is produced in step S 114 . Finally, in step S 115  the information element is sent to the Access Point and the routine ends.  
         [0111]    In a similar way, also the optional mask (as used in the second embodiment) can be obtained. Therefore, an additional step is required which is performed after the bit pattern identifying step S 112  such that the mask is defined. It is also possible to produce a plurality of information elements, as used in the second and third embodiment, also by taking into account a plurality of different priority levels.  
         [0112]    Next, an example is described in which frames (containing IP packets) to be sent to a particular IP-adress should have high priority. In this case, the identification of the search patterns and the location of the search patterns can be performed as follows: The configuration program knows that the offset to the destination IP-address from the beginning of the IP packet (as an example for a data frame) is 32 bytes and the offset from the beginning of the ethernet (version 2) frame to beginning of the IP packet is 14 bytes. Thus, the actual offset of the IP-address is 46 bytes. The search pattern is the IP-address in question. Thus, the necessary information for an information element can easily be extracted.  
         [0113]    In other cases, it might be necessary that the configuration program analyzes frames in order to obtain the relevant information.  
         [0114]    The location for performing the above method within the network can be arbitrarily chosen. It may be located in some station in the wireless network, it may be centralized in a place in the wired network, or it may be connected to the AP with a separate cable. In some cases, the configuration program may also be run in the AP, but in this way the benefit of the configuration program being external will be lost.  
         [0115]    Preferably, the location where the above method, i.e., the external configuration program can be performed is in one of the wireless stations  2  to  5 . In this way, the program can also “snoop” the traffic and check whether the traffic is correctly recognized by the AP, that is, whether the high priority traffic is correctly treated. This is because in the wireless stations, the data sent with the frames are processed and, thus, it is clear whether a received frame is a priority frame or not.  
         [0116]    When placed in the WLAN, the configuration program can also make corrections to the AP configurations (i.e., the information elements sent to the AP) based on a traffic monitoring in the WLAN. The configuration program can be run in some notebook PC in WLAN, for example.  
         [0117]    In rather large networks, however, the best place for the configuration program is in the wired network, where all the access points of the network can be controlled with a single configuration program.  
         [0118]    The above description and accompanying drawings only illustrate the present invention by way of example. Thus, the embodiments of the invention may vary within the scope of the attached claims. For example, the embodiments can be arbitrarily combined.  
         [0119]    In particular it has to be noted that the above description of the embodiment has been made basically with respect to the IEEE 802.11 WLAN standard. However, it has to be noted that this is only an example and that it is to be understood that the invention can also be applied to other suitable network situations.  
         [0120]    Furthermore, in the above embodiments it was basically distinguished between priority frames and normal frames, i.e., between frames with priority and frames without priority. However, it is also possible to distinguish between a plurality of different priority levels. For example, the second embodiment can be modified such that the two bit patterns are used to distinguish between three different priority levels (no priority—medium priority—high priority). Also, different masks for one bit pattern can be used to distinguish between different priority levels.