The present invention relates to a method of managing packet transmission for a wireless system, and more particularly, to a method of allocating priorities for various types of packets in the wireless system.
With rapid development of wireless communication technology, mobile communication products have become indispensable in daily life. In a wireless communication system, data is transferred between two or more points via the air without wire connections. Such communication allows a mobile device to be connected to the network when the mobile device moves from place to place.
The time division multiplexing technique is widely utilized for reducing interference between various wireless systems. In a time division mechanism, each wireless system can only transmit data within an allocated time period. However, a packet of a wireless system may be longer than the time period allocated to the wireless system, such that this packet may always be discarded when the time period allocated to the wireless system expires. Thus, there is a need for improvement over the prior art.
It is therefore an objective of the present invention to provide a method of managing packet transmission for a wireless system capable of allocating priorities for various types of packets in the wireless system.
The present invention discloses a method of managing packet transmission for a first wireless system, wherein the first wireless system coexists with at least one second wireless system. The method comprises receiving a first type of packet of the first wireless system; determining whether the step of receiving the first type of packet is interfered by a second type of packet of one of the at least one second wireless system; and modifying a priority of the first type of packet when the first type of packet is interfered.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
As mentioned above, the time division multiplexing cannot deal with a packet whose length is longer than a time period allocated to the packet. For example, please refer to
In order to solve this problem, a method of modifying priority is proposed, as shown in
However, the BT packet PB1 may be discarded when the above method is applied. Sometimes this BT packet PB1 may be more important than the Wi-Fi packet PW1, but the BT packet PB1 is discarded when the interference occurs in the time period P1. Thus, it is desirable to allocate a priority to each packet according to the importance of each packet, in order to select the most important packet when two or more packets interfere with each other.
Please refer to
Step 300: Start.
Step 302: Receive a first type of packet of the Wi-Fi system.
Step 304: Determine whether the first type of packet is interfered by a second type of packet of the BT system.
Step 306: Modify a priority of the first type of packet when the first type of packet is interfered.
Step 308: End.
According to the process 30, the Wi-Fi system first receives a Wi-Fi packet. If the Wi-Fi packet is not interfered by other packets, this Wi-Fi packet may be received successfully. If the Wi-Fi packet is interfered by a BT packet, an arbitration mechanism should be applied to determine which one among the Wi-Fi packet and the BT packet could be received.
In the convention method as shown in
For example, please refer to
In an embodiment, the packet length may be considered as a criterion for priority determination. For example, if the length of a Wi-Fi packet is longer than a threshold, the wireless system increases the priority of the Wi-Fi packet; if the length of a Wi-Fi packet is shorter than the threshold, the wireless system retains the priority of the Wi-Fi packet. Furthermore, if the long packets longer than a time period allocated for the Wi-Fi system in the time division multiplexing need to be protected, the priority for these long packets may be increased when facing the interference.
In an embodiment, the receiving of these long Wi-Fi packets and other packets of different wireless systems such as a BT system can be well controlled. The wireless system may originally set the priority of the long Wi-Fi packets to be lower than the BT packets, and the long Wi-Fi packets may be discarded when packet interference occurs. After a specific number of long Wi-Fi packets are discarded, the wireless system increases the priority of the long Wi-Fi packets to be higher than the BT packets, and receives the following long Wi-Fi packets. After a specific number of long Wi-Fi packets are received successfully, the wireless system recovers the priority of the long Wi-Fi packets to be lower than the BT packets, and discards the following long Wi-Fi packets. In this way, tradeoff between the receiving of the long Wi-Fi packets and the BT packets may be balanced.
The modification of priority can be implemented in any feasible manners. In an embodiment, the modification of the priority of the Wi-Fi packets is performed in a hardware manner. In such a condition, the hardware of the wireless system modifies the priority of a current Wi-Fi packet when the current Wi-Fi packet satisfies the priority determining criterion. For example, if the priority of long Wi-Fi packets is increased in the hardware manner when the long Wi-Fi packet PW2 is interfered by the BT packet PB2, the current long Wi-Fi packet PW2 may be successfully received by immediately increasing the priority of long packets. Following long Wi-Fi packets may also be received successfully when interfered by BT packets. In another embodiment, the modification of the priority of the Wi-Fi packets is performed in a software manner. In such a condition, the wireless system sends an interrupt signal to a processing unit (e.g. a micro-processing unit (MCU)) to modify the priority of following packets having the same type with the current Wi-Fi packet when the current Wi-Fi packet satisfies the priority determining criterion. For example, if the priority of long Wi-Fi packets is increased in the software manner when the long Wi-Fi packet PW2 is interfered by the BT packet PB2, following long Wi-Fi packets may be received by increasing the priority of long packets, but the current long Wi-Fi packet PW2 may be discarded since the priority may not be increased immediately when the software manner is applied.
In addition to the modification of the priority of the Wi-Fi packets, other modifications may be performed in the time division multiplexing system. In an embodiment, instead of modifying the packet priority, the time sharing schedule of the time division multiplexing system may be changed within a specific period when the Wi-Fi packet satisfies a criterion. For example, after a specific number of long Wi-Fi packets are discarded, the wireless system may increase the length of time periods where the Wi-Fi packets have a higher priority (e.g. the time period P1 shown in
Please note that, the present invention provides a method of managing packet transmission for a wireless system capable of allocating priorities for various types of packets in the wireless system. Those skilled in the art can make modifications and alternations accordingly. For example, the above embodiments are implemented in the time division multiplexing system with coexistence of a Wi-Fi system and a BT system, but in other embodiments, the present invention may also be applied in a time division multiplexing system with coexistence of three or more wireless systems, where these wireless systems may include Wi-Fi systems, BT systems, long-term evolution (LTE) systems, worldwide interoperability for microwave access (WiMAX) systems, and other wireless systems which may cause interference. In addition, in the above embodiments, the packet length is considered as the criterion to be satisfied for determining whether to modify the priority. In other embodiments, other criteria may also be utilized for determining whether to modify the priority, which should not be limited herein.
For example, in a time division multiplexing system with coexistence of a first wireless system and a second wireless system, when a packet of the first wireless system is interfered by a packet of the second wireless system, the first wireless system may determine whether the packet of the first wireless system comes from a specific network. If the packet of the first wireless system comes from the specific network, the first wireless system increases the priority of this packet to be higher than the packet of the second wireless system, so that the packet of the first wireless system may be received and the packet of the second wireless system may be discarded. In such a condition, the priority of following packets of the first wireless system coming from the specific network may also be increased. On the other hand, if the packet of the first wireless system comes from other networks, the first wireless system retains the priority of this packet to be lower than the packet of the second wireless system, so that the packet of the second wireless system may be received and the packet of the first wireless system may be discarded.
In an embodiment, when a packet of the first wireless system is interfered by a packet of the second wireless system, the first wireless system may determine whether the packet of the first wireless system is within a specific frequency band. If the packet of the first wireless system is within the specific frequency band, the first wireless system increases the priority of this packet to be higher than the packet of the second wireless system, so that the packet of the first wireless system may be received and the packet of the second wireless system may be discarded. In such a condition, the priority of following packets of the first wireless system within the specific frequency band may also be increased. On the other hand, if the packet of the first wireless system is not in the frequency band, the first wireless system retains the priority of this packet to be lower than the packet of the second wireless system, so that the packet of the second wireless system may be received and the packet of the first wireless system may be discarded.
In an embodiment, when a packet of the first wireless system is interfered by a packet of the second wireless system, the first wireless system may determine whether the packet of the first wireless system has a specific profile. If the packet of the first wireless system has the specific profile, the first wireless system increases the priority of this packet to be higher than the packet of the second wireless system, so that the packet of the first wireless system may be received and the packet of the second wireless system may be discarded. In such a condition, the priority of following packets of the first wireless system having the specific profile may also be increased. On the other hand, if the packet of the first wireless system does not have the specific profile, the first wireless system retains the priority of this packet to be lower than the packet of the second wireless system, so that the packet of the second wireless system may be received and the packet of the first wireless system may be discarded.
In an embodiment, when a packet of the first wireless system is interfered by a packet of the second wireless system, the first wireless system may determine whether the packet of the first wireless system is transmitted via circuit switching or packet switching. If the packet of the first wireless system is transmitted via circuit switching, the first wireless system increases the priority of this packet to be higher than the packet of the second wireless system, so that the packet of the first wireless system may be received and the packet of the second wireless system may be discarded. In such a condition, the priority of following packets of the first wireless system transmitted via circuit switching may also be increased. On the other hand, if the packet of the first wireless system is transmitted via packet switching, the first wireless system retains the priority of this packet to be lower than the packet of the second wireless system, so that the packet of the second wireless system may be received and the packet of the first wireless system may be discarded.
In an embodiment, when a packet of the first wireless system is interfered by a packet of the second wireless system, the first wireless system may determine whether the packet of the first wireless system is in a specific type such as a beacon packet, a broadcast packet or a multicast packet. For example, if the packet of the first wireless system is a beacon packet, the first wireless system may increase the priority of this beacon packet to be higher than the packet of the second wireless system, so that the beacon packet may be received and the packet of the second wireless system may be discarded. In such a condition, the priority of following beacon packets may also be increased. On the other hand, if the packet of the first wireless system is not a beacon packet, the first wireless system retains the priority of this packet to be lower than the packet of the second wireless system, so that the packet of the second wireless system may be received and the packet of the first wireless system may be discarded.
Please note that, whether to modify the priority of a packet may be determined according to a combination of various criteria mentioned above or other criteria which are not described herein. In an embodiment, several criteria may construct a reference matrix and each packet has a score according to the reference matrix. The reference matrix may include several check items such as the packet length, source of packet, packet type, and packet profile. A weight is predetermined for each of the check items, in order to calculate a score for the packet by checking these items. In such a condition, when packet interference occurs, the packet of the first wireless system may be received if the score corresponding to the packet is higher than a threshold, and may be discarded if the score is lower than the threshold.
In the prior art, each wireless system can only transmit data within an allocated time period in a time division mechanism. A packet of a wireless system may be longer than the time period allocated to the wireless system, such that this packet may always be discarded when the time period allocated to the wireless system expires. In comparison, the present invention provides a method of determining whether an arriving packet satisfies a criterion when packet interference occurs. The wireless system can therefore assign a priority to the packet according to whether the packet satisfies the criterion, so that the more important packet may always be received successfully when the packet interference occurs.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
This application claims the benefit of U.S. Provisional Application No. 61/756,053, filed on Jan. 24, 2013, the contents of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
61756053 | Jan 2013 | US |