Mobile access to internet-based application with reduced polling

Information

  • Patent Application
  • 20090144359
  • Publication Number
    20090144359
  • Date Filed
    December 04, 2007
    16 years ago
  • Date Published
    June 04, 2009
    15 years ago
Abstract
Providing a service in user equipment (UE) that operates within a mobile telecommunications system involves running a client application instance (CAI) in the UE, wherein the CAI interacts with a remotely-located server application via a network by means of a protocol that includes polling. A message is sent to the server application, the message including a PUSH address that uniquely identifies the UE and the CAI within the UE. The server application stops polling activity, and instead initiates a PUSH request when there is updated information to be supplied to the CAI. The UE consequently receives a PUSH that includes the identifier of the CAI, and consequently notifies the CAI of the received PUSH. The CAI responds by sending a polling message to the server application via the network. The server application sends a response to the polling message, the response including information associated with the service.
Description
BACKGROUND

The present invention relates to accessing an internet-based application by means of a mobile device, and more particularly to methods and apparatuses that enable a mobile device to access an internet-based application without needing to continuously poll the application to detect important changes in state.


Communication services are starting to appear implemented as browser/AJAX (Asynchronous JavaScript And XML) realizations. An example of one such service is meebo.com, which provides a browser based interface to instant messaging services provided by a number of different providers. A browser-based interface to Outlook is another example. Such implementations utilize the XMLHttpRequest feature of AJAX, or its equivalent, to communicate with a server.


Browser-web server architectures are designed to operate strictly in accordance with a client-server relationship: The browser, which operates only as a client, initiates a request to the server, and consequently receives a response back; there is no possibility for the server to initiate a communication to the browser.


To facilitate the communication services appearing on the Internet today, clients continuously poll the server so that they will be informed (via the response to the poll) of any state change, waiting message, pending communication request, and the like. Non-real time applications can schedule this polling to occur with low frequency but real-time applications, such as chat applications, need to poll much more frequently (e.g., every few seconds instead of minutes). An alternative solution to this frequent polling is to provide for polling with a delayed response. In this case, the server receives the request (poll) and if no state change is detected it delays sending any response until a state change is detected or a predefined timer expires. The predefined timer needs to be short enough to not let proxies and the like time out and consequently tear down the connection. The timer used in the meebo.com example is 30 seconds.


This arrangement performs very well over a broadband access; polling every 30 seconds does not create any problem over this type of access and the delayed response strategy means that there is no built in latency to deliver a communication request in a response message to a browser.


The above described solution does not work equally well when the application is accessed via cellular communications technology. One problem is that the frequent polling of the server consumes radio resources and battery power. Additionally, each polling causes the radio interface of the terminal to stay in a resource-consuming state for a significant amount of time (on the order of 10 sec-2 minutes) before the terminal is allowed to go to sleep. This further increases the consumption of radio resources and drains the battery of the terminal. Having the terminal poll a state in the network is consequently not an efficient method to enable communication services in a browser environment.


It is therefore desirable to provide a mechanism wherein a mobile terminal can utilize an Internet-based application and obtain timely changes in state and/or other application-provided information without needing to frequently polling the application.


SUMMARY

It should be emphasized that the terms “comprises” and “comprising”, when used in this specification, are taken to specify the presence of stated features, integers, steps or components; but the use of these terms does not preclude the presence or addition of one or more other features, integers, steps, components or groups thereof.


In accordance with one aspect of the present invention, the foregoing and other objects are achieved in methods and apparatuses that provide a service in user equipment that operates within a mobile telecommunications system. In some embodiments, providing the service involves running a client application instance in the user equipment, wherein the client application instance interacts with a remotely-located server application via a network by means of a protocol that includes polling. The client application instance can be, for example, a browser application instance. A message is sent to the server application, wherein the message to the server application includes a PUSH address that uniquely identifies the user equipment and uniquely identifies the client application instance within the user equipment. A PUSH is subsequently received that includes the identifier of the client application instance. In response to the received PUSH, the client application instance is notified of the received PUSH. In response to the PUSH notification, the client application instance sends a polling message to the server application via the network. The client application instance receives a response to the polling message, wherein the response includes information associated with the service.


The message to the server application can be, for example, an HTTP request.


In another aspect, after sending the message to the server but before receiving the PUSH that includes the identifier of the client application instance, the client application instance can be operated in a sleep mode.


In some of such embodiments, the client application instance can be caused to leave the sleep mode in response to receiving the PUSH that includes the identifier of the client application instance. The client application instance can also be caused to leave the sleep mode in response to a detected action initiated by a user of the user equipment.


In another aspect, operation of a server application in embodiments consistent with the invention includes interacting with a remotely-located client application instance via a network by means of a protocol that includes polling. At some point, a message is received from a client application instance, wherein the message includes a PUSH address that uniquely identifies user equipment in a mobile telecommunications system, and uniquely identifies a client application instance running in the user equipment. The client application instance can be, for example, a browser application instance. The message can be, for example, an HTTP request. The server application then, at some point, determines that application-related information should be supplied to the client application instance, and in response thereto sends a PUSH request to a PUSH server in the mobile telecommunications system, wherein the PUSH request includes the PUSH address that uniquely identifies the user equipment in the mobile telecommunications system and uniquely identifies the client application instance running in the user equipment. The server application subsequently receives a polling message from the client application instance, and in response thereto sends the application-related information to the client application instance via a network to which the user equipment is connected.


In another aspect of embodiments, consistent with the invention, operation of the server application includes, after receiving the message from the client application instance but before determining that application-related information should be supplied to the client application instance, receiving a polling request from the client application instance and in response thereto performing: discarding the PUSH address that uniquely identifies the user equipment in the mobile telecommunications system and uniquely identifies the client application instance running in the user equipment; and operating the server application in a mode wherein no PUSH request including the PUSH address that uniquely identifies the user equipment in the mobile telecommunications system and uniquely identifies the client application instance running in the user equipment is sent to the PUSH server even if application-related information should be supplied to the client application instance.





BRIEF DESCRIPTION OF THE DRAWINGS

The objects and advantages of the invention will be understood by reading the following detailed description in conjunction with the drawings in which:



FIG. 1 is a block diagram of user equipment (e.g., a mobile terminal) in which are running one or more browser application instances.



FIG. 2 is a flow chart of steps/processes/actions carried out by the various components in accordance with aspects of the invention.





DETAILED DESCRIPTION

The various features of the invention will now be described with reference to the figures, in which like parts are identified with the same reference characters.


The various aspects of the invention will now be described in greater detail in connection with a number of exemplary embodiments. To facilitate an understanding of the invention, many aspects of the invention are described in terms of sequences of actions to be performed by elements of a computer system or other hardware capable of executing programmed instructions. It will be recognized that in each of the embodiments, the various actions could be performed by specialized circuits (e.g., discrete logic gates interconnected to perform a specialized function), by program instructions being executed by one or more processors, or by a combination of both. Moreover, the invention can additionally be considered to be embodied entirely within any form of computer readable carrier, such as solid-state memory, magnetic disk, optical disk (such as radio frequency, audio frequency or optical frequency carrier waves) containing an appropriate set of computer instructions that would cause a processor to carry out the techniques described herein. Thus, the various aspects of the invention may be embodied in many different forms, and all such forms are contemplated to be within the scope of the invention. For each of the various aspects of the invention, any such form of embodiments may be referred to herein as “logic configured to” perform a described action, or alternatively as “logic that” performs a described action.


In an aspect of embodiments consistent with the invention, the requirement for a mobile terminal or other device to frequently poll an Internet-based application in order to obtain timely state changes or other application-provided information is substantially eliminated by utilizing the PUSH functionality, which is a capability available in mobile networks. More particularly, a mechanism is provided that allows a mobile browser to be connected to the PUSH functionality available in the mobile terminal running the browser. The application running in the browser informs the server that it is ceasing to poll for information, with the expectation that it (i.e., the application running in the browser) will be notified via the PUSH functionality that updated information and/or new information is now available. The application running in the browser can then send a poll message to the server in order to request the updated and/or new information.


In another aspect, this mechanism provides for a PUSH address to be provided to the server, wherein the PUSH address identifies a specific browser instance running in the mobile terminal. The server can then, when it has information to give to the client, use the PUSH address to route a notification to the browser instance via a PUSH service.


These and other aspects are described in greater detail in the following description.


The traditional client/server arrangement described in the Background section is an example of what is called PULL technology whereby a client requests a service or information from a server, which then responds by transmitting the requested information or service-related data to the client. The information is, in this manner, “pulled” from the server by the client.


By contrast, the mechanism employed in embodiments consistent with the invention employs PUSH technology. PUSH technology provides a mechanism for one device (e.g., a server) to transmit information to one or more other devices without there having been a previous request or other action from those one or more other devices.


PUSH technology has been made available in so-called 2nd Generation (“2G”) mobile telecommunications devices (e.g., by means of the Wireless Application Protocol—“WAP” PUSH), and in so-called 3rd Generation (“3G”) mobile telecommunications devices (e.g., by means of the Session Initiation Protocol—“SIP” PUSH). These or any similar arrangement can be employed in embodiments consistent with the invention.



FIG. 1 is a block diagram of user equipment (e.g., a mobile terminal) 101 in which are running one or more browser application instances 103. The user equipment 101 operates within a mobile operator domain 105, but is able to communicate with other entities operating within an application service provider domain 107 by means of a Network Address Translator (NAT)/Firewall 109. NAT/Firewalls are generally well-known components in the field of networks, and therefore do not need to be described herein in great detail.


Located in the application service provider domain 107 is a web server 111. The web server includes and runs a web application 113. The browser application instance 103 and web application 113 are able to communicate with one another via the network that connects them, and in a conventional mode of operation take on respective client/server roles.


It is desired to avoid the constant polling associated with conventional client/server arrangements. Consequently, in accordance with an aspect of embodiments consistent with the invention, the web application includes an interface 115 through which information can flow between the browser application instance 103 and an application core 117. The application core 117 carries out the functionality that is specific to the web application 113.


Also of relevance are a PUSH entity 119, which is located in the mobile terminal 100, and a PUSH server 121, located in the mobile operator domain 105 and reachable (i.e., can be communicated with) from the application service provider domain 107. These components and others will now be described by means of their functionality. This description will refer not only to FIG. 1, but also to FIG. 2, which is a flow chart of steps/processes/actions carried out by the various components.



FIG. 2 shows steps/processes/actions carried out in each of the user equipment 101, the web application 113, and the push server 121. The flow of control within any one of these elements is depicted by solid lines, whereas interactions between these components are illustrated by means of dotted lines.


To start things off, a web application is launched within the user equipment 101 (step 201), for example by means of actions performed by a user of the user equipment 101. This creates a client application instance in the form of, for example, a browser instance, and also causes the web application 113 to establish this client application instance as a client (step 203).


Interactions between the client application instance and the web application 113 are initially conventional: The client application instance sends polling messages to the web application 113, and the web application responds to these polling messages with the most current information (e.g., web-pages/scripts defining the service) available (steps 205, 207). Since this is a service with information that changes continuously but infrequently, it includes functionality for polling the application server and also a strategy for when to stop polling and to go to sleep.


At some point, the client application instance detects, according to the strategy delivered by the application, that it should stop polling the server for changing information, and that it should instead enter a sleep mode of operation. To carry this out, the client application instance asks the PUSH entity 119 to supply a mobile PUSH address and a client instance identifier. The mobile PUSH address and client instance identifier make it possible for the web server 111 to reach (via a PUSH operation) this particular client application instance running in the user equipment 101). When these are obtained (step 209), the user equipment 101 sends a message to the web application 113, wherein the message includes the PUSH address that uniquely identifies the user equipment and uniquely identifies the client application instance within the user equipment (step 211). In response to detecting receipt of the message (“YES” path out of decision block 213), the web application 113 stops expecting further polls from this client application instance, and instead stores the PUSH information. The web application 113 can also send an acknowledgement (e.g., a “200 OK”) to the client application instance to confirm the change in operating modes.


At this point, the client application instance operates in a sleep mode (step 215) in which it performs no polling. Instead, the web application 113 performs self monitoring to determine whether it needs to notify the client application instance about a state change that should be sent to the client application instance (decision block 217). The client application instance, meanwhile, will leave the sleep mode either when a PUSH notification is received or the user starts to interact with the service again. The client application instance 101 therefore monitors for these occurrences (decision block 219).


If, for example, the user starts to interact with the service again (“YES” path out of decision block 219, the client application instance returns to a conventional client/server polling mode of operation (step 205). Upon receipt of the polling request, the web application 133 discards the saved PUSH information and also returns to a conventional client/server polling mode of operation (step 207).


Alternatively, if the web application 113 detects that the application core 117 has generated a state change that should be sent to the client application instance (“YES” path out of decision block 217), it retrieves the previously-stored PUSH information, and uses it to generate a PUSH request that is sent to the PUSH server 121 (step 221). The PUSH request includes the PUSH address that uniquely identifies the user equipment in the mobile telecommunications system and uniquely identifies the client application instance running in the user equipment. The web application 113 then returns to the conventional client/server polling mode of operation (step 207), and consequently waits for a polling message.


Upon detecting receipt of the PUSH request (“YES” path out of decision block 223), the PUSH server 121 sends a PUSH notification to the destination indicated by the PUSH address (step 225). The PUSH notification includes the client application instance identifier.


The PUSH notification is received by the PUSH entity 119 within the user equipment 101. The PUSH entity 119 uses the client application instance identifier to determine to which client application instance (there may be more than one) the PUSH notification should be directed.


Upon detecting receipt of the PUSH notification (“YES” path out of decision block 219), the client application instance re-enters the conventional client/server polling mode of operation (step 205), and consequently sends a polling message to the web application 113.


In response to receipt of the polling message, the web application 113 sends updated information to the client application instance. Processing then continues as described above (e.g., the client application instance may, at some point, again enter a sleep mode and awaken in response to a PUSH notification).


Embodiments consistent with the invention provide the benefit of combining the high flexibility of a browser for application development with the ability to reach that environment with an existing and developing PUSH mechanism in mobile networks, thereby avoiding an excessive use of radio and battery resources.


The invention has been described with reference to particular embodiments. However, it will be readily apparent to those skilled in the art that it is possible to embody the invention in specific forms other than those of the embodiment described above.


For example, the embodiments described above partitioned particular functions in a way that was intended to facilitate a description (e.g., providing separate application interface and application core components). However, these embodiments are merely illustrative, and are not intended to indicate required implementations of these functions.


Thus, the described embodiments are merely illustrative and should not be considered restrictive in any way. The scope of the invention is given by the appended claims, rather than the preceding description, and all variations and equivalents which fall within the range of the claims are intended to be embraced therein.

Claims
  • 1. A method of providing a service in user equipment that operates within a mobile telecommunications system, the method comprising: running a client application instance in the user equipment, wherein the client application instance interacts with a remotely-located server application via a network by means of a protocol that includes polling;sending a message to the server application, wherein the message to the server application includes a PUSH address that uniquely identifies the user equipment and uniquely identifies the client application instance within the user equipment;receiving a PUSH that includes the identifier of the client application instance, and in response thereto notifying the client application instance of the received PUSH;in response to the PUSH notification, the client application instance sending a polling message to the server application via the network; andthe client application instance receiving a response to the polling message, wherein the response includes information associated with the service.
  • 2. The method of claim 1, wherein the message to the server application is an HTTP request.
  • 3. The method of claim 1, comprising: after sending the message to the server but before receiving the PUSH that includes the identifier of the client application instance, operating the client application instance in a sleep mode.
  • 4. The method of claim 3, comprising: causing the client application instance to leave the sleep mode in response to receiving the PUSH that includes the identifier of the client application instance.
  • 5. The method of claim 3, comprising: causing the client application instance to leave the sleep mode in response to a detected action initiated by a user of the user equipment.
  • 6. The method of claim 1, wherein the client application instance is a browser application instance.
  • 7. A method of operating a server application, the method comprising: interacting with a remotely-located client application instance via a network by means of a protocol that includes polling;receiving a message from the client application instance, wherein the message includes a PUSH address that uniquely identifies user equipment in a mobile telecommunications system, and uniquely identifies the client application instance running in the user equipment;determining that application-related information should be supplied to the client application instance, and in response thereto sending a PUSH request to a PUSH server in the mobile telecommunications system, wherein the PUSH request includes the PUSH address that uniquely identifies the user equipment in the mobile telecommunications system and uniquely identifies the client application instance running in the user equipment; andsubsequently receiving a polling message from the client application instance, and in response thereto sending the application-related information to the client application instance via a network to which the user equipment is connected.
  • 8. The method of claim 7, wherein the message from the client application instance is an HTTP request.
  • 9. The method of claim 7, wherein the client application instance is a browser application instance.
  • 10. The method of claim 7, comprising: after receiving the message from the client application instance but before determining that application-related information should be supplied to the client application instance, receiving a polling request from the client application instance and in response thereto performing: discarding the PUSH address that uniquely identifies the user equipment in the mobile telecommunications system and uniquely identifies the client application instance running in the user equipment; andoperating the server application in a mode wherein no PUSH request including the PUSH address that uniquely identifies the user equipment in the mobile telecommunications system and uniquely identifies the client application instance running in the user equipment is sent to the PUSH server even if application-related information should be supplied to the client application instance.
  • 11. An apparatus for providing a service in user equipment that operates within a mobile telecommunications system, the apparatus comprising: logic that runs a client application instance in the user equipment, wherein the client application instance interacts with a remotely-located server application via a network by means of a protocol that includes polling;logic that sends a message to the server application, wherein the message to the server application includes a PUSH address that uniquely identifies the user equipment and uniquely identifies the client application instance within the user equipment;logic that receives a PUSH that includes the identifier of the client application instance, and in response thereto notifying the client application instance of the received PUSH;logic that causes the client application instance to send a polling message to the server application via the network in response to the PUSH notification; andlogic that causes the client application instance to receive a response to the polling message, wherein the response includes information associated with the service.
  • 12. The apparatus of claim 11, wherein the message to the server application is an HTTP request.
  • 13. The apparatus of claim 11, comprising: logic that causes the client application instance to enter a sleep mode of operation after sending the message to the server but before receiving the PUSH that includes the identifier of the client application instance.
  • 14. The apparatus of claim 13, comprising: logic that causes the client application instance to leave the sleep mode in response to receiving the PUSH that includes the identifier of the client application instance.
  • 15. The apparatus of claim 13, comprising: logic that causes the client application instance to leave the sleep mode in response to a detected action initiated by a user of the user equipment.
  • 16. The apparatus of claim 11, wherein the client application instance is a browser application instance.
  • 17. An apparatus for operating a server application, the apparatus comprising: logic that interacts with a remotely-located client application instance via a network by means of a protocol that includes polling;logic that receives a message from the client application instance, wherein the message includes a PUSH address that uniquely identifies user equipment in a mobile telecommunications system, and uniquely identifies the client application instance running in the user equipment;logic that determines that application-related information should be supplied to the client application instance, and in response thereto sends a PUSH request to a PUSH server in the mobile telecommunications system, wherein the PUSH request includes the PUSH address that uniquely identifies the user equipment in the mobile telecommunications system and uniquely identifies the client application instance running in the user equipment; andlogic that receives a subsequent polling message from the client application instance, and in response thereto sends the application-related information to the client application instance via a network to which the user equipment is connected.
  • 18. The apparatus of claim 17, wherein the message from the client application instance is an HTTP request.
  • 19. The apparatus of claim 17, wherein the client application instance is a browser application instance.
  • 20. The apparatus of claim 17, comprising: logic that receives a polling request from the client application instance after receiving the message from the client application instance but before determining that application-related information should be supplied to the client application instance, and in response thereto performs: discarding the PUSH address that uniquely identifies the user equipment in the mobile telecommunications system and uniquely identifies the client application instance running in the user equipment; andoperating the server application in a mode wherein no PUSH request including the PUSH address that uniquely identifies the user equipment in the mobile telecommunications system and uniquely identifies the client application instance running in the user equipment is sent to the PUSH server even if application-related information should be supplied to the client application instance.