The field of the invention relates to wireless short-range communication and more particularly to exchanging information between wireless devices for joining
Modern society has adopted, and is becoming reliant upon, wireless communication devices for various purposes, such as, connecting users of the wireless communication devices with other users. Wireless communication devices can vary from battery powered handheld devices to household and/or commercial devices utilizing electrical network as a power source. Due to rapid development of the wireless communication devices a number of areas capable of enabling entirely new types of communication applications have emerged.
Cellular networks facilitate communication over large geographic areas. These network technologies have commonly been divided by generations, starting in the late 1970s to early 1980s with first generation (1G) analog cellular telephones that provided baseline voice communications, to modern digital cellular telephones. GSM is an example of a widely employed 2G digital cellular network communicating in the 900 MHZ/1.8 GHZ bands in Europe and at 850 MHz and 1.9 GHZ in the United States. While long-range communication networks, such as GSM, are a well-accepted means for transmitting and receiving data, due to cost, traffic and legislative concerns, these networks may not be appropriate for all data applications.
Short-range communication technologies provide communication solutions that avoid some of the problems seen in large cellular networks. Bluetooth™ is an example of a short-range wireless technology quickly gaining acceptance in the marketplace. In addition to Bluetooth™ other popular short-range communication technologies include Bluetooth™ Low Energy, IEEE 802.11 wireless local area network (WLAN), Wireless USB (WUSB), Ultra Wide-band (UWB), ZigBee (IEEE 802.15.4, IEEE 802.15.4a), and ultra-high frequency radio frequency identification (UHF RFID) technologies. All of these wireless communication technologies have features that make them appropriate for various applications.
Applications for short-range wireless devices are evolving to include awareness applications providing the device with an awareness about the local network environment. Awareness applications have the promise of extending business and social networking by enabling users to share local contextual data in a peer-to-peer fashion by using their mobile wireless devices. For example, users may be able to share information in real-time for local-area business networking, social networking, dating, personal safety, advertising, publishing, and searching.
Method, apparatus, and computer program product example embodiments exchange information between wireless devices for joining
According to an example embodiment of the invention, a method comprises:
receiving, by an apparatus, one or more wireless messages, each of the one or more wireless messages including a first timing synchronization function value of a respective one of one or more candidate beacon groups from which the one or more wireless messages are sent;
calculating a first difference between a selected target timing synchronization function value and a timing synchronization function value of the apparatus;
receiving, by the apparatus, subsequent wireless messages, each of the subsequent one or more wireless messages including a second timing synchronization function value of a respective one of the one or more candidate beacon groups from which the subsequent wireless messages are sent;
calculating, by the apparatus, second differences between the subsequently received one or more second timing synchronization function values and the timing synchronization function value of the apparatus; and
selecting, by the apparatus, a target beacon group for joining having a second difference within a predefined threshold from the first difference.
According to an example embodiment of the invention, a method comprises:
selecting, by the apparatus, a largest timing synchronization function value from the received one or more first timing synchronization function values as a target timing synchronization function value;
According to an example embodiment of the invention, a method comprises:
determining that the first difference exceeds a predetermined threshold;
According to an example embodiment of the invention, a method comprises:
joining by the apparatus, the selected target beacon group for joining
According to an example embodiment of the invention, a method comprises:
adjusting by the apparatus, the timing synchronization function value of the apparatus, based on the second timing synchronization function value, when the second difference is within a predefined threshold from the first difference.
According to an example embodiment of the invention, a method comprises:
wherein the one or more received wireless messages is at least one of a beacon message and a beacon response message.
According to an example embodiment of the invention, a method comprises:
wherein the apparatus performs at least one of remaining in an awake state while scanning for wireless messages, entering a doze state and waking up for scanning for wireless messages, or immediately adopting a timing synchronization function value attributed to a beacon group that the apparatus desires to join, without waiting for the received wireless messages.
According to an example embodiment of the invention, a method comprises:
wherein the one or more candidate beacon groups are part of an IEEE 802.11 ad hoc network.
According to an example embodiment of the invention, an apparatus comprises:
at least one processor;
at least one memory including computer program code;
the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus at least to:
receive one or more wireless messages, each of the one or more wireless messages including a first timing synchronization function value of a respective one of one or more candidate beacon groups from which the one or more wireless messages are sent;
calculate a first difference between a selected target timing synchronization function value and a timing synchronization function value of the apparatus;
receive subsequent wireless messages, each of the subsequent one or more wireless messages including a second timing synchronization function value of a respective one of the one or more candidate beacon groups from which the subsequent wireless messages are sent;
calculate second differences between the subsequently received one or more second timing synchronization function values and the timing synchronization function value of the apparatus; and
select a target beacon group for joining having a second difference within a predefined threshold from the first difference.
According to an example embodiment of the invention, an apparatus comprises:
the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus at least to:
select a largest timing synchronization function value from the received one or more first timing synchronization function values as a target timing synchronization function value;
According to an example embodiment of the invention, an apparatus comprises:
the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus at least to:
determine that the first difference exceeds a predetermined threshold;
According to an example embodiment of the invention, an apparatus comprises:
the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus at least to:
join the selected target beacon group for joining
According to an example embodiment of the invention, an apparatus comprises:
the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus at least to:
adjust the timing synchronization function value of the apparatus, based on the second timing synchronization function value, when the second difference is within a predefined threshold from the first difference.
According to an example embodiment of the invention, an apparatus comprises:
wherein the one or more received wireless messages is at least one of a beacon message and a beacon response message.
According to an example embodiment of the invention, an apparatus comprises:
wherein the apparatus performs at least one of remaining in an awake state while scanning for wireless messages, entering a doze state and waking up for scanning for wireless messages, or immediately adopting a timing synchronization function value attributed to a beacon group that the apparatus desires to join, without waiting for the received wireless messages.
According to an example embodiment of the invention, an apparatus comprises:
wherein the one or more candidate beacon groups are part of an IEEE 802.11 ad hoc network.
According to an example embodiment of the invention, a computer program product comprises computer executable program code recorded on a computer readable non-transitory storage medium, the computer executable program code comprising:
code for receiving, by an apparatus, one or more wireless messages, each of the one or more wireless messages including a first timing synchronization function value of a respective one of one or more candidate beacon groups from which the one or more wireless messages are sent;
code for calculating a first difference between a selected target timing synchronization function value and a timing synchronization function value of the apparatus;
code for receiving, by the apparatus, subsequent wireless messages, each of the subsequent one or more wireless messages including a second timing synchronization function value of a respective one of the one or more candidate beacon groups from which the subsequent wireless messages are sent;
code for calculating, by the apparatus, second differences between the subsequently received one or more second timing synchronization function values and the timing synchronization function value of the apparatus; and
code for selecting, by the apparatus, a target beacon group for joining having a second difference within a predefined threshold from the first difference.
According to an example embodiment of the invention, a computer program product comprises:
code for joining by the apparatus, the target beacon group for joining having a second difference within a predefined threshold from the first difference.
The resulting example embodiments exchange information between wireless devices for joining.
This section is organized into the following topics:
A. WLAN Communication Technology
B. Awareness Network Technology
C. Exchanging of information between wireless devices for joining
A. WLAN Communication Technology
The IEEE 802.11 standard specifies methods and techniques of an exemplary wireless local area network (WLAN) operation. Examples include the IEEE 802.11b and 802.11g wireless local area network specifications, which have been a staple technology for traditional WLAN applications in the 2.4 GHz ISM band. The various amendments to the IEEE 802.11 standard were consolidated for IEEE 802.11a, b, d, e, g, h, i, j, k, n, r, s, u, v, and z protocols, into the base standard IEEE 802.11-2012, Wireless Medium Access Control (MAC) and Physical Layer (PHY) Specifications, February 2012. Since then, emerging broadband applications have stimulated interest in developing very high-speed wireless networks for short range communication, for example, the IEEE 802.11n, the planned IEEE 802.1 lac, and the planned IEEE 802.11 ad WLAN specifications that are to provide a very high throughput in higher frequency bands. Applications of these IEEE 802.11 standards include products such as consumer electronics, telephones, personal computers, and access points for both for home and office.
A WLAN may be organized as an independent basic service set (IBSS) or an infrastructure basic service set (BSS). Wireless devices or stations (STAs) in an independent basic service set (IBSS) communicate directly with one another and there is no access point in the IBSS. WLAN ad hoc networks have an independent configuration where the mobile devices communicate directly with one another, without support from a fixed access point. WLAN ad hoc networks support distributed activities similar those of the Bluetooth™ piconets. The IEEE 802.11 standard provides wireless devices with service inquiry features similar to the Bluetooth™ inquiry and scanning features.
The independent basic service set (IBSS) has a BSS Identifier (BSSID) that is a unique identifier for the particular ad hoc network. Its format is identical to that of an IEEE 48-bit address. In an ad hoc network, the BSSID is a locally administered, individual address that is generated randomly by the device that starts the ad hoc network.
Synchronization is the process of the devices in an ad hoc network getting in step with each other, so that reliable communication is possible. The MAC provides the synchronization mechanism to allow support of physical layers that make use of frequency hopping or other time-based mechanisms where the parameters of the physical layer change with time. The process involves beaconing to announce the presence of an ad hoc network, and inquiring to find an ad hoc network. Once an ad hoc network is found, a device joins the ad hoc network. This process is entirely distributed in ad hoc networks, and relies on a common time base provided by a timing synchronization function (TSF). The TSF may maintain a 64-bit timer running at 1 MHz and updated by information from other devices. When a device begins operation, it may reset the timer to zero. The timer may be updated by information received in beacon frames.
Each wireless device or STA maintains a TSF timer with modulus 264 counting in increments of microseconds. STAs expect to receive Beacon frames at a nominal rate. The interval between Beacon frames is defined by a Beacon Period parameter of the STA. A STA sending a Beacon frame sets the value of the Beacon frame's timestamp so that it equals the value of the STA's TSF timer at the time that the data symbol containing the first bit of the timestamp is transmitted to the PHY plus the transmitting STA's delays through its local PHY from the MAC-PHY interface to its interface with the antenna or light-emitting diode (LED) emission surface.
In an ad hoc network, since there is no access point (AP) to act as the central time source for the ad hoc network, the timer synchronization mechanism is completely distributed among the mobile devices of the ad hoc network. Since there is no AP, the mobile device that starts the ad hoc network will begin by resetting its TSF timer to zero and transmitting a Beacon, choosing a beacon period. This establishes the basic beaconing process for this ad hoc network. After the ad hoc network has been established, each device in the ad hoc network will attempt to send a Beacon after the target beacon transmission time (TBTT) arrives. To minimize actual collisions of the transmitted Beacon frames on the medium, each device in the ad hoc network may choose a random delay value which it may allow to expire before it attempts its beacon transmission.
Once a device has performed an inquiry that results in one or more ad hoc network descriptions, the device may choose to join one of the ad hoc networks. The joining process is a purely local process that occurs entirely internal to the mobile device. There is no indication to the outside world that a device has joined a particular ad hoc network. Joining an ad hoc network may require that all of the mobile device's MAC and physical parameters be synchronized with the desired ad hoc network. To do this, the device may update its timer with the value of the timer from the ad hoc network description, modified by adding the time elapsed since the description was acquired. This will synchronize the timer to the ad hoc network. The BSSID of the ad hoc network may be adopted, as well as the parameters in the capability information field. Once this process is complete, the mobile device has joined the ad hoc network and is ready to begin communicating with the devices in the ad hoc network.
There are three major types of medium access control (MAC) frames in the IEEE 802.11 protocol: the management frame, the control frame, and the data frame. Management frames provide management services. Data frames carry payload data. Control frames assist in the delivery of data and management frames. Each of these types of MAC frame consists of a MAC header, a frame body, and a frame check sequence (FCS). The header contains control information used for defining the type of 802.11 MAC frame and providing information necessary to process the MAC frame. The frame body contains the data or information included in either management type or data type frames. The frame check sequence is a value representing a cyclic redundancy check (CRC) over all the fields of the MAC header and the frame body field.
1. Beacon
The beacon frame is a management frame that is transmitted periodically to allow mobile devices to locate and identify an ad hoc network. Beacon generation in an IBSS is distributed. The value of the beacon period is included in Beacon and Probe Response frames, and devices or STAs adopt that beacon period when joining the IBSS. All members of the IBSS participate in beacon generation. Each STA maintains its own TSF timer that is used for Beacon Period timing. The beacon interval within an IBSS is established by the STA when the START request primitive is performed within a device to create the IBSS. This defines a series of target beacon transmission times (TBTT) exactly a Beacon Period apart, which is the time at which an ad hoc device must send a beacon. Time zero is defined to be a TBTT. At each TBTT the STA waits for the random backoff interval and then sends a Beacon frame if the random delay has expired and no other Beacon frame has arrived from the IBSS of which the STA is a member during the delay period.
The beacon frame includes the fields: timestamp, beacon interval, and capability information. The timestamp contains the value of the device's synchronization timer (TSF) at the time that the frame was transmitted. The capability information field is a 16-bit field that identifies the capabilities of the device. The information elements in a beacon frame are the service set identifier (SSID), the supported rates, one or more physical parameter sets, an optional contention-free parameter set, an optional ad hoc network parameter set, and an optional traffic indication map. There is no restriction on the format or content of the 32 byte SSID.
The first ad hoc device to become active establishes an IBSS and starts sending beacons that to maintain synchronization among the devices. Other ad hoc devices may join the network after receiving a beacon and accepting the IBSS parameters, such as the beacon interval, found in the beacon frame.
Each device that joins the ad hoc network may send a beacon periodically if it doesn't hear a beacon from another device within a short random delay period after the beacon is supposed to be sent. If a device doesn't hear a beacon within the random delay period, then the device assumes that no other devices are active and a beacon needs to be sent. A beacon signal is periodically transmitted from the ad hoc network. The beacon frame is transmitted periodically and includes the address of the sending device.
2. Probe Request
The probe request frame is a management frame that is transmitted by a mobile device attempting to quickly locate a wireless LAN. It may be used to locate a wireless LAN with a particular SSID or to locate any wireless LAN. The probe request frame may contain the service attribute request. The effect of receiving a probe request is to cause the device to respond with a probe response. When a wireless device arrives within the communication range of any member of an ad hoc network, its probe request frame inquiry signals are answered by a member of the ad hoc network detecting the inquiry. A device in an ad hoc network responds to the probe request frame inquiry signals with a probe response containing the address of the responding device. The probe response frame also includes the timestamp, beacon interval, capability information, information elements of the SSID, supported rates, one or more physical parameter sets, the optional contention-free parameter set, and the optional ad hoc network parameter set.
For active scans, the WLAN radio may broadcast a probe request on the channel it is scanning using a broadcast SSID in the probe request. The WLAN radio will add any received beacons or probe responses to a cached basic service set identifier (BSSID) scan list. For passive scans, the WLAN radio does not send a probe request, but instead, listens on a channel for a period of time and adds any received beacons or probe responses to its cached BSSID scan list. The WLAN radio may scan both infrastructure and ad hoc networks, regardless of the current setting of its network mode. The WLAN radio may use either the active or passive scanning methods, or a combination of both scanning methods. When performing an active scan, the WLAN radio sets the BSSID to the broadcast MAC address in the probe request it sends. The WLAN radio performs the scan across all the frequency channels and bands that it supports.
3. Probe Response
Devices or STAs in an IBSS respond to probe requests if it is awake at a given time to receive and respond to the probe requests. In an IBSS, a STA that sent a Beacon frame remains in the Awake state and responds to probe requests, until a Beacon frame with the current BSSID is received. There may be more than one STA in an IBSS that responds to any given probe request, particularly in cases where more than one STA transmitted a Beacon frame following the most recent TBTT, either due to not receiving successfully a previous Beacon frame or due to collisions between beacon transmissions. In an IBSS, STAs receiving Probe Request frames respond with a probe response when the SSID in the probe request is the wildcard SSID or matches the specific SSID of the STA. In an IBSS a STA that transmitted a Beacon frame since the last TBTT responds to group addressed Probe Request frames. A STA in an IBSS responds to Probe Request frames sent to the individual address of the STA. Probe Response frames are sent as directed frames to the address of the STA that generated the probe request.
B. Awareness Network Technology
Applications for short-range wireless devices are evolving to include awareness applications providing the device with an awareness about the local network environment. A non-limiting example awareness network architecture is the Nokia AwareNet framework, a network of wireless mobile devices self-organizing to support various applications, ranging from social networking to service discovery. Awareness information may be shared by a short-range wireless device sending an anonymous flooding message that may include a query, over an ad hoc network. A neighboring short-range wireless device may reply to the flooding message over the ad hoc network with a response, such as a pointer to a discovered location-based service.
Awareness information may include any information and/or context about a local network environment as well as the users and communication devices within the local network environment. Wireless devices may continuously collect and exchange information with other devices in a local network environment. Awareness applications running on short-range wireless devices may create a network for sharing awareness information, locate and organize awareness information, form communities for sharing awareness information, manage power consumption for devices engaged in sharing awareness information, develop applications to take advantage of the awareness information, and maintain the privacy and anonymity of users sharing awareness information.
Awareness applications running on short-range wireless devices, build upon the IEEE 802.11 ad hoc mode or independent basic service set (IBSS), in which every device participates in beaconing and all the other basic operations that keep the ad hoc network in operation. An ad hoc network is designed to have one service set identifier (SSID) that all of the devices in the network share. The SSID is announced in the beacons transmitted by the devices. The basic service set identifier (BSSID) is intended to represent a beacon group of devices or network instance, rather than the whole network itself. The devices announce the BSSID they use and follow, in the beacons they transmit. In the overall design, those devices that operate under same SSID are driven to use a common and shared BSSID, since the BSSID of a wireless device in an ad hoc network becomes the BSSID of the oldest network instance value in the network. The determination of which BSSID is used by a device is made by the network instance timer value, and this timer value is communicated in beacons in the timing synchronization function (TSF) value parameter. The devices are required to operate by assuming the oldest TSF value (i.e. largest TSF value) contained in the received beacons that represent the network with the SSID in which the devices are operating. When a device receives a beacon with an SSID that is the same as that in the network in which the device is operating, and if the TSF value in the beacon is larger than the device's own TSF counter value, then one of two alternative steps takes place. If the BSSID in the beacon is the same as the device's own BSSID, then the MAC adopts the TSF value (normal synchronization). Alternately, if the BSSID in the beacon is the not the same as the device's own BSSID, then the MAC passes the beacon to the LLC. The LLC then decides to join to the beacon group and passes the BSSID and the ΔTSF to the MAC.
When the radio and MAC of a wireless device transmits a Beacon, the Beacon MAC-header contains device's own current TSF value. The device may automatically transmit a reply message when it receives a Beacon from another network, the reply message being referred herein as a beacon response message. The beacon response message contains the current TSF value of the replying network.
When the radio and MAC of a wireless device receives a Beacon from another network instance during scanning, it passes to the Logical Link Control (LLC) layer of the wireless device: 1) its own TSF counter value at the time when the Beacon was received, and 2) the TSF value of the received Beacon (the other TSF). When the radio and MAC of a wireless device receives a beacon response message, the MAC passes to the Logical Link Control (LLC) layer of the wireless device, the beacon response message (including the other TSF) together with receiver's own TSF counter value at the time when the message was received.
Wireless devices form a network where all devices in proximity may communicate with each other. When two or more groups of devices forming two or more instances of the network come close to each other, the two or more instances may merge to become one network instance. Devices may make a merging or join decision to change the instance autonomously based on the TSF information collected from Beacons received during scan periods or based on the TSF information collected from received beacon response messages. A merging decision is performed when a device receives a Beacon or beacon response message with an older (greater) TSF value from another wireless device. Two devices belong to different network instances 1) if their BSSIDs (network instance identifiers) are different; or 2) if their BSSIDs are the same and their TSF difference is greater than a fixed constant threshold value (for example 1000 μs). After the merging decision has been performed by a device, the device moves into the new network instance.
The awareness functionality in a short-range wireless device is divided between four layers in the awareness architecture. The Awareness Layer and the Community Layer provide services for applications, i.e. provide the awareness API. The approximate functional split between the different layers is as follows.
Awareness Layer
Awareness Layer (AwL) has the highest level of control of the awareness architecture. The most important services the AwL offers to the applications are Publish and Subscribe. The Awareness Layer receives publish and subscribe requests from applications and maps these into queries and query responses that, in turn, are mapped as awareness messages, the Network Layer PDU, that traverse from device to device. It also maps the awareness messages received by the device, to the application. The network layer does not appear as a data pipe for applications. A single awareness message is self-contained and short, the AwL compresses the messages in order for them to consume as little resources as possible.
The Awareness Layer has an internal storage of awareness data items. Publishing an item normally means storing it in this internal storage (passive publish). Such an item is visible to other devices in the local vicinity and may be found using the Subscribe service. It is also possible to use active publishing that causes the Awareness Layer to issue a publish message that propagates from device to device. It is the responsibility of the AwL to decide whether a received message leads to the notification of an application (filtering). Items may be marked to be visible to only certain communities, so that they are visible only to searches made by members of such a community.
The Subscribe request causes the Awareness Layer to issue either a single or repetitive query message(s) that eventually propagate to other devices in the local vicinity (by using the functionality of lower awareness layers). When such a query message reaches the AwL of a device that happens to possess a matching information item, it responds with a reply message. The lower layers of awareness architecture take care of the routing of such a message back to the AwL of the querying device, which notifies the application of the other device that issued the Subscribe request.
Community Layer
The concept of communities has been integrally built into awareness architecture. Awareness communication may be visible to all the devices, or just to those that belong to a certain community. Regardless of this visibility, all wireless devices take part in the routing of messages. The role of the Community Layer (CoL) is to implement the community visibility rules. Only those messages that a certain device has visibility to (i.e. a device belongs to the same community as the message) are passed to the AwL. As an additional level of community privacy, messages are encrypted by the Community Layer. To allow such message filtering and encryption/decryption, the CoL stores the community credentials for those communities to which the user of the device belongs. The default awareness community (all local users) does not use any credentials and therefore its messages simply pass through the Community Layer.
Awareness architecture has three different kinds of communities: the default awareness community, peer communities and personal communities. Communities may also be categorized with their privacy. Messages of public communities are transmitted as plain text whereas messages of private communities are transmitted encrypted. The default awareness community is the default community for all wireless devices. Awareness community messages are not encrypted and every node may send and can receive awareness community messages (public community). In a peer community all members are equal and every member may receive all the community specific messages. A peer community may be public, or it may be private meaning that community messages are encrypted using a temporary key derived from the community specific shared key. The encryption function is Advanced Encryption Standard, EAX mode (AES/EAX) with 128 bit keys. A personal community has a community owner that manages the community. A non-owner community member may communicate with the owner but not with other members of the community. A personal community is private, meaning that community messages from the owner to other members are encrypted.
Network Layer
The Network Layer (NL) takes care of the local dissemination of the awareness messages. This is accomplished by way of a smart-flooding algorithm that attempts to adapt to the surrounding device density. At high densities, very few devices participate in the transmission of a given message. At low densities, all the devices will retransmit each message (normal flooding). The awareness network has a flat hierarchy; none of the devices may assume any special roles. Thus, at high densities, all the devices will transmit approximately the same amount of traffic (no clustering). The Network layer also takes care of the routing of the replies back to the device that issued the search. To this end, it collects routing information from the messages that flow through it. It also keeps track of all the neighbors and their approximate distance. Normally, reply routing uses unicast transmissions, whereas flooding messages are always broadcasted. All the messages received by the Network Layer are passed to Community Layer in order to check whether the message should be processed in the AwL.
Link Layer
Link Layer performs the adaptation between the underlying radio technology (e.g. IEEE 802.11 WLAN physical layer) and the Network Layer. It maps the specific information of the radio technology, such as radio identifiers and received signal strengths, into technology neutral information used by the Network Layer (NL). Multiple Link Layer instances may be used by the NL, e.g. for simultaneous usage of different radio technologies.
The Link Layer is divided into two sub layers: logical link control (LLC) and media access control (MAC). LLC provides radio technology agnostic service for the Network Layer. It hides differences between radio technology specific MACs. LLC provides a single service access point for the Network layer. LLC knows how to map the generic provided service to the service provided by the technology specific MACs. The LLC internal data structures include the Neighbor Table that contains information of all the neighboring devices that have been heard in the recent past.
The Link Layer tries to transmit data via the given channel using the TransmitData functionality. Transmission may succeed or it may fail. Internally the Link Layer may try transmissions several times if a channel is temporarily busy. The Link Layer passes all the messages it receives to the Network Layer. This also includes unicast messages that are intended for other nodes.
The logical link control (LLC) is aware of radio technology specific MACs. In case of the IEEE 802.11 WLAN MAC, the LLC does the following WLAN MAC specific actions:
Merging of WLAN networks is the responsibility of the logical link control (LLC). The LLC determines when to merge two WLAN network instances or beacon groups as a single larger network instance or a beacon group. LLC calculates an estimate of its own WLAN network size. Estimation is based on information provided by the Network Layer, information found in the LLC Neighbor Table and network size category shared by other nodes. A network size category is calculated from an estimated network size.
The IEEE 802.11 WLAN MAC awareness mode enables a wireless device to use its power efficiently. In the awareness mode, the WLAN radio is asleep most of the time, thus reducing power consumption. Messages are transmitted and received in a batch mode, i.e. LLC passes all the messages that the MAC is to transmit during a single awake period, in a single package. The MAC passes all the messages received during a single awake period in a single reception report. The LLC collects messages to be transmitted in a single package. When the MAC is awake, the LLC passes the package to the MAC and it tries to transmit the messages. When the MAC is about to go asleep, it sends a transmission report to the LLC containing information about messages it has succeeded to transmit and about messages it has failed to transmit. In addition MAC passes a reception report to LLC. The report contains messages received during the awake period.
The merging or joining process is a purely local process that occurs entirely internally to the wireless device. The Awareness Layer of the wireless device may make a merging or join decision to join a particular network instance or beacon group, either autonomously, in response to an application, or in response to user input. There is no indication to the outside world that a device has joined a particular ad hoc network. Joining an ad hoc network may require that all of the mobile device's MAC and physical parameters be synchronized with the desired ad hoc network. To do this, the device may update its timer with the TSF value of the timer from the ad hoc network description, modified by adding the time elapsed since the description was acquired. This will synchronize the device's timer to the ad hoc network. The BSSID of the ad hoc network may be adopted, as well as the parameters in the capability information field. Once this process is complete, the wireless device has joined the ad hoc network and is ready to begin communicating with the wireless devices in the ad hoc network.
The IEEE 802.11 WLAN MAC awareness mode provides the following functionalities:
Message Propagation
The propagation of an awareness search message is conducted in the awareness architecture layers of different devices. An application initiates a subscription in the device by using the Subscribe service offered by the Awareness Layer. The Awareness Layer realizes the subscription by sending a query message to other devices. In all the devices the message goes at least up to the Community Layer. However, only in those devices that belong to the community to which the message was intended, does the message proceed to the AwL. There is no need to have an application present in the replying device. It is sufficient to only have the awareness platform active.
Current awareness applications employ the standard IEEE 802.11 WLAN ad hoc Join-command to implement a move from one instance to another. In the standard IEEE 802.11 WLAN ad hoc Join-command, if all network instances share the same BSSID, then the standard Join-command does not provide means to control to which network instance, of several possible candidate network instances, a device is requested to move. In the standard IEEE 802.11 WLAN ad hoc Join-command, if all of the network instances have the same BSSID, the Beacons contain no distinctive network instance identifier and thus there is no means to control to which network instance the command is directed. Therefore, the standard IEEE 802.11 WLAN ad hoc Join-mechanism may make the device move its operations back to its original own network instance, or some other proximate network instance with the oldest TSF value.
C. Exchanging of Information Between Wireless Devices for Joining
As previously mentioned, the BSSID of a wireless device in an ad hoc network becomes the BSSID of the oldest network instance value in the network. Thus, the BSSID may not be a reliable basis for identifying beacons or beacon response messages received from a particular targeted network instance. An example embodiment of the invention distinguishes the beacon or beacon response message received from the particular targeted network instance to be joined, from those of all other possible candidate network instances.
In an example embodiment of the invention, an absolute difference is computed between the wireless device's own TSF counter value and the received candidate TSF counter value representing the particular targeted network instance to be joined. The absolute difference is referred to herein as ΔTSF. The value of ΔTSF may be used to accurately identify which network instance or beacon group, of several possible candidate network instances, is the correct one to join.
In an example embodiment of the invention, the wireless device that is the merging decision maker, calculates the ΔTSF for the network instance to which it desires the device's MAC to move operations. This ΔTSF is communicated by the logical link control (LLC) to the own device's MAC as the key parameter of the join command (or similar command). The MAC then moves the operations of the device to be compatible with the operations of the other network instance and the device will begin transmitting its own beacons with the new TSF value (it's prior own TSF counter value+ΔTSF).
In an example embodiment of the invention, an alternative to the TSF value is an “awake-period-number”. An awake-period-number is obtained as follows:
Awake_period number=floor (TSF/beacon_period_length).
The floor function of (TSF/beacon_period_length).generates the largest integer not greater than (TSF/beacon_period_length). An awake-period-number may be used whenever a TSF value is mentioned in the following discussion.
Beacon group 10Y includes wireless devices 100D, 100E, and 100F. Wireless device 100D has a TSF value of TSF(D) that is approximately equal to the value attributed to whole beacon group 10Y of TSF(Y). The value of TSF(D) is included in the beacon transmitted by wireless device 100D. Wireless device 100E has a TSF value of TSF(E) that is approximately equal to the value attributed to whole beacon group 10Y of TSF(Y). The value of TSF(E) is included in the beacon transmitted by wireless device 100E. Wireless device 100F has a TSF value of TSF(F) that is approximately equal to the value attributed to whole beacon group 10Y of TSF(Y). The value of TSF(F) is included in the beacon transmitted by wireless device 100F. In the ad hoc network instance or beacon group 10Y, the three wireless devices 100D, 100E, and 100F participate in beacon generation, each maintains its own TSF timer that is used for Beacon Period timing. The beacon interval within the beacon group 10Y is established by a device when the device initially creates the beacon group network instance, which defines a series of TBTTs exactly a Beacon Period apart. At each TBTT each wireless device 100D, 100E, and 100F waits for the random backoff interval and then sends a Beacon frame if the random delay has expired and no other Beacon frame has arrived from the beacon group 10Y during the delay period.
The awake times of beacon group 10X and beacon group 10Y are such that they are not necessarily synchronized in time. The wireless devices within a beacon group synchronize by establishing a common time base provided by the timing synchronization function maintained in each device. The beacon frames that each device sends include the value of the device's TSF timer at the time that the beacon is transmitted. When a device receives a beacon from within its the beacon group, if the TSF value in the beacon is larger than the device's own TSF counter value, then the device adopts the TSF value communicated in the beacon.
An application in wireless device 100A commands the device to join to a network and the device begins scanning for beacons, as depicted in 151 and 152, in accordance with at least one embodiment of the present invention. The user's wireless device 100A begins its operation to join a beacon group by collecting TSF information from Beacons received during passive scanning periods. The user's wireless device 100A listens on a channel for a period of time and adds any received beacons to its cached BSSID scan list.
In an example embodiment of the invention, the messages transmitted by wireless devices in the beacon groups 10X and 10Y may be propagated in consecutive hops from a sender device to a receiver device and retransmitted to a next receiver device, using a smart flooding and routing protocol managed by the network layer in each device. Whenever a wireless device schedules transmission for any message, the smart flooding and routing protocol procedure will be executed. For unicast messages, the latest routing information is obtained from a Routing Table in the network layer before forwarding the message to the Link Layer of the device for transmission. The hop count value in the received message is incremented by one by each consecutive receiving device. When the maximum hop count is reached in a receiving device, as specified in the received message, the message is removed from the Message transmission buffer in the device. In an alternate embodiment, the hop count value may be initially set to the maximum hop count and decremented by one with each hop. When the hop count reaches zero, then the message is removed from the message transmission buffer in the device.
In an example embodiment of the invention, the network layer in a wireless device manages incoming messages and retransmissions with the smart-flooding and routing protocol. When a wireless device receives a message, it may perform the following operations:
1. It updates the internal tables (neighbor table, routing table and channel table) based on the message information.
2. It checks whether it already “knows” this message by “looking” at its message ID (MsgID) information that can be obtained from the network layer header. If yes, the message reception is counted and the message is discarded. If the reception-counter for a certain message has reached a threshold, the previously scheduled retransmission of that message is cancelled.
3. The message is scheduled for further transmission. For a message with a destination address, retransmission may be the next possible transmission opportunity. For a message without a destination address, retransmission may be delayed until later.
4. The message is provided to upper layers, i.e., the community layer and the awareness layer, for processing.
When a wireless device, such as device 100A, which has been passively scanning, receives a beacon signal 140D from another network 10Y, it may initiate a transmission and/or broadcast of a beacon response message 144A, or a similar dedicated data frame, comprising connectivity information corresponding to the beacon group 10X in which it is currently operating. The beacon response message 144A may be an announcement frame, as may be used to inform newly encountered networks about the presence of the existing network to which the wireless device 100A belongs. The beacon response message 144A frame may be transmitted in a manner similar to data frames that would be transmitted by wireless devices operating within the network, for example, including basic contention rules. The TSF value TSF(A) of the wireless device 100A is included in the beacon response message 144A. The Beacon response message 144A is meant for beacon group 10Y, and thus has BSSID of 10Y, TSF of 10Y and other parameters of 10Y. The value TSF(A) may be in (data) message payload or in message header. Wireless devices, such as device 100A, may transmit beacon response frames 144A upon receiving beacon frames, such as beacon 140D from other wireless devices, such as the wireless device 100D of
In an example embodiment of the invention,
In an example embodiment of the invention, the wireless device 100A and the wireless device 100D may be a communications device, PDA, cell phone, laptop or palmtop computer, or the like or it may be a stationary access point, automotive dashboard interface, home electronics interface or other stationary interface or device. The wireless device 100A and the wireless device 100D may be a remote controller, healthcare monitor, sports sensor, token, key fob, watch, wireless keyboard, gaming pad, body sensor, toy, health care equipment, human interface device, entertainment device, wireless microphone, GPS sensor, or the like.
In an example embodiment of the invention, the wireless device 100A and the wireless device 100D may include a processor 220 that includes a single core or multi-core central processing unit (CPU) 260 and 261, a random access memory (RAM) 262, a read only memory (ROM) 264, and interface circuits 266 to interface with the radio transceiver 208. The wireless device 100A and the wireless device 100D may each further include a battery and other power sources, key pad, touch screen, display, microphone, speakers, ear pieces, camera or other imaging devices, etc. The RAM 262 and ROM 264 may be removable memory devices such as smart cards, SIMs, WIMs, semiconductor memories such as RAM, ROM, PROMS, flash memory devices, etc. according to an embodiment of the present invention. According to an example embodiment of the invention, the wireless device 100A and the wireless device 100D each include the awareness protocol stack 202.
In an example embodiment of the invention, the awareness protocol stack 202 may include the Awareness Layer, the Community Layer, the Network Layer, and the Link Layer that is divided into two sub layers: the logical link control (LLC) and the media access control (MAC). The Neighbor Table 142 in the logical link control (LLC), may include a list of all the network instances having member neighboring devices that have been heard from in the recent past. In an example embodiment of the invention, for each network instance in the neighbor table, a record or entry is made of at least its SSID and BSSID, which are recorded from the values in the most recently received beacon or beacon response message from the network instance. In an example embodiment of the invention, the neighbor table may also include the TSF value from a network instance, and it may be updated from the beacons and beacon response messages received from the network instance. The record may also include the received signal strength and an identifying indicium entered by the user or the application that identifies past memberships with the network instance, conversational sessions with a user of a device in the network instance, or other characteristics of the network instance. The Neighbor Table 142 in the logical link control (LLC) is updated when reception reports and scan reports are received from the MAC layer. The MAC passes to the LLC in the reception report, the SSID, BSSID, and other values of all the messages received during the previous awake period.
In an example embodiment of the invention, the logical link control (LLC) may make a merging or join decision to join a particular targeted network instance or beacon group, either autonomously or in response to an application. The logical link control (LLC) issues a join-command, specifying the particular targeted network instance or beacon group to join. The logical link control (LLC) looks up the specified identifying indicium, the specified received signal strength or other specified characteristic recorded in the Neighbor Table and obtains the SSID and BSSID, and other values of all the messages received during the previous awake period.
In an example embodiment of the invention, the processor 220, protocol stack 202 and/or application program 200 may be embodied as program logic stored in the RAM 262 and/or ROM 264 in the form of sequences of programmed instructions which, when executed in the CPUs 260 and/or 261, carry out the functions of the disclosed embodiments. The program logic may be delivered to the writeable RAM, PROMS, flash memory devices, etc. 262 of the wireless device 100A and the wireless device 100D from a computer program product or article of manufacture in the form of computer-usable media such as resident memory devices, smart cards or other removable memory devices, as illustrated in
Step 302: receiving, by an apparatus, one or more wireless messages, each of the one or more wireless messages including a first timing synchronization function value of a respective one of one or more candidate beacon groups from which the one or more wireless messages are sent;
Step 304: calculating a first difference between a selected target timing synchronization function value and a timing synchronization function value of the apparatus;
Step 306: receiving, by the apparatus, subsequent wireless messages, each of the subsequent one or more wireless messages including a second timing synchronization function value of a respective one of the one or more candidate beacon groups from which the subsequent wireless messages are sent;
Step 308: calculating, by the apparatus, second differences between the subsequently received one or more second timing synchronization function values and the timing synchronization function value of the apparatus; and
Step 310: selecting, by the apparatus, a target beacon group for joining having a second difference within a predefined threshold from the first difference.
The beacon packet 140A may include:
SSID,
BSSID,
TSF value and the beacon period of the beacon group 10X, and
LLC Parameters.
The beacon response message packet 144A may include:
SSID,
BSSID of the original beacon,
TSF(A) of the original beacon, and
A payload field that includes the sender's TSF value and the beacon period of the beacon group 10X.
(1) store received Beacon 140A or Beacon response message 144D information (MAC-address, Received Channel Power Indicator (RCPI), timestamp) in the Neighbor Table and call Join (Network A, ΔTSF, Threshold), Threshold=1000 us for example, and await Join Response.
(2) change BSSID to beacon group 10X and keep the receiver open until a Beacon 140A or beacon response message 144A is received from beacon group 10X or Join Timeout occurs.
(3) synchronize by the received Beacon or beacon response message TSF(A) if (recvBSSID==beacon group 10X) and (TSF(D)+(ΔTSF−Threshold)≦TSF(A) and send Join Response.
(4) clear current TSF value from the Neighbor Table and swap it with [TSF(D)+(ΔTSF)] and add a neighbor to Neighbor Table if the MAC-address in Beacon in the Join Response is new.
This example embodiment of the invention solves the unique BSSID problem. The TSF(A) value is close enough to the TSF(X) value of the targeted beacon group 10X to accommodate some TSF drifting. For example, the TSF(A) value in the received beacon 140A may be allowed to be +/−1 time unit (TU=1024 us) different from the TSF(X) value of the targeted beacon group 10X to consider the received beacon to represent the targeted beacon group 10X.
In an example embodiment of the invention, the MAC may open the receiver only in intervals when Beacons are likely to be received. The MAC and radio of the wireless device may go into the Doze state and wake up for reception of a Beacon from the targeted network instance. Wakeup needs to happen early enough for the MAC and radio to be ready to receive a Beacon frame at a TBTT of the targeted network instance. Once in the Awake state, the process performs the same steps as in the first example embodiment of the invention. In an example embodiment of the Join-mechanism. The MAC opens its receiver only in intervals when Beacons are likely to be received. As an example, the number of microseconds to sleep from TBTT to the point when receiver needs to be open is: α-Threshold, where α=mod(ΔTSF, beaconPeriod) and the number of microseconds until the interval is closed is α+Threshold, where Threshold is a constant given in micro-seconds. If α≦Threshold, the receiver is opened immediately. In case a beacon from the other aware network is missed (receiver closed without receiving a Beacon), the receiver opens periodically after n*(beaconPeriod−2*Threshold) microseconds has elapsed, and where n=1. The interval between two TBTT instances and the Join-timeout are standard awareness Join-parameters. This example embodiment of the invention solves the unique BSSID problem and decreases power consumption in the Join operation.
In an example embodiment of the invention, the sequence of steps of the Join-procedure that uses ΔTSF, may be as follows:
(1) store received Beacon or Beacon response message information (MAC-address, RCPI, timestamp) to a temporary Neighbor Table and call Join (Network A, ΔTSF).
(2) add ΔTSF to the device TSF.
(3) synchronize by received Beacon TSF if (recvBSSID==Network A) and (device TSF+(ΔTSF-Threshold)≦recvTSF) and send Join Response.
(4) clear current TSF from Neighbor Table and swap it with the temporary one and add a neighbor to Neighbor Table if the MAC-address in Beacon in the Join Response is new.
An example embodiment of the invention minimizes power consumption, since there is no need for a device to be awake if there is no beaconing in the other network:
An example embodiment of the invention minimizes communication breaks, since the direct synchronization Join may take place immediately.
Although specific example embodiments have been disclosed, a person skilled in the art will understand that changes can be made to the specific example embodiments without departing from the spirit and scope of the invention.