WO2012167040A1 - System and method for two way push notifications - Google Patents

System and method for two way push notifications Download PDF

Info

Publication number
WO2012167040A1
WO2012167040A1 PCT/US2012/040410 US2012040410W WO2012167040A1 WO 2012167040 A1 WO2012167040 A1 WO 2012167040A1 US 2012040410 W US2012040410 W US 2012040410W WO 2012167040 A1 WO2012167040 A1 WO 2012167040A1
Authority
WO
WIPO (PCT)
Prior art keywords
provider
gateway
push notification
push
user
Prior art date
Application number
PCT/US2012/040410
Other languages
French (fr)
Inventor
Andrew H. Vyrros
Darryl N. Bleau
Jeffrey T. DAVEY
Justin N. WOOD
Original Assignee
Apple Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apple Inc. filed Critical Apple Inc.
Priority to EP12726325.9A priority Critical patent/EP2716010B1/en
Priority to SG2013079116A priority patent/SG194617A1/en
Priority to JP2014513733A priority patent/JP5756884B2/en
Publication of WO2012167040A1 publication Critical patent/WO2012167040A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Definitions

  • This invention relates generally to the field of mobile device processing; and more specifically, to the management of notification messages transmitted between mobile devices and application providers.
  • Users of the mobile devices may have applications installed that periodically receive notification messages from notification services.
  • applications include "push" e-mail services (e.g., MobileMe, Microsoft Exchange, ActiveSync, Push- IMAP, Yahoo! Push, etc.), or other push services (e.g., update/upgrade services, news services, web blog services, podcast services, social networking services, or other types of services where notification messages may be sent).
  • Notification messages typically represent events of interest, which are typically defined by the applications (e.g., new e-mail indicator, new news item indicator, new podcast indicator, change of on-line status of a social networking friend, etc.).
  • Scalability becomes a particular issue within the context of notification messages sent to mobile devices as the number of mobile devices connected to a network increases.
  • a network device that connects to mobile devices can typically manage device connections for thousands of mobile devices at a time.
  • hundreds of millions of mobile devices would require hundreds of thousands of network server devices to manage the connections and the routing of messages to those hundreds of millions of devices.
  • hundreds of thousands of network server devices would be both cost prohibitive and very complex to implement.
  • static routing of messages using network server devices are often not failsafe or fault tolerant, meaning that if a network device goes down, it is possible that notification messages will not be able to reach certain mobile devices.
  • FIG. 1 is a block diagram illustrating a system according to various embodiments.
  • FIG. 2 is a block diagram, according to various embodiments.
  • FIG. 3 is a flow diagram of operation, according to various embodiments.
  • FIG. 4 is a flow diagram of operation, according to various embodiments.
  • FIG. 5 illustrates one embodiment of a system architecture for selecting an optimal route over a gateway between a provider and a device.
  • FIG. 6 illustrates one embodiment of a method for selecting an optimal route over a gateway between a provider and a device.
  • FIG. 7 illustrates one embodiment of a system architecture for providing two-way push notifications.
  • FIG. 8 illustrates one embodiment of a method for providing two-way push notifications.
  • a system and method are described for establishing two-way push communication between a provider and a mobile device.
  • Providers like mobile devices register to listen for push notifications from a specified set of users. The presence of the provider is then continually monitored to determine whether the provider is currently listening over a pre-specified port. If so, in response to receiving a push notification for the first provider from the set of one or more users, a current network location over which the provider is listening for push notifications is identified and the push notification is forwarded to the first provider.
  • Embodiments of the invention may be implemented within the context of a push notification service.
  • a push notification service which has been designed by the assignee of the present application, is described in co-pending U.S. Patent Application No. 2010/0227632, Filed June 5, 2009, entitled Push Notification Service.
  • An overview of the push notification service is provided below, followed by a detailed description of a system and method for implementing two-way push notifications and a system and method for dynamic routing.
  • Figure 1 is a block diagram according to various embodiments.
  • Gateway 1 10 receives notification messages (e.g., push messages) from provider 102.
  • provider 102 sends an authentication Secure Sockets Layer (SSL) certificate upon an initial connection with gateway 1 10.
  • SSL certificate can be configured with additional user-defined data.
  • Other secure communications protocols e.g., cryptographic protocols such as Transport Layer Security (TLS), etc.
  • TLS Transport Layer Security
  • Authenticator 1 14 uses any additional user-defined data to identify the provider 102 in a trusted fashion.
  • gateway 1 10 can not only authenticate the provider, but also automatically provision push service for the provider and the application (e.g., Twitter). In other words, gateway 1 10 can automatically extract any additional identifying data from the authentication certificate and attach the additional identifying data (or a portion of the data) to messages (e.g., push-notification messages).
  • the additional identifying data may identify a topic or feed associated with the provider (or an application of the provider) to which a user might subscribe.
  • the additional information in the authentication certificate can be leveraged to direct messages to mobile devices that have subscribed to the topic/feed or requested information regarding the topic/feed. In this way, push service is automatically provisioned for the provider.
  • gateway 1 10 determines the destination zone for the notification message.
  • the destination zone is included within a token that is sent along with the notification message. In some embodiments, it is not necessary to send the zone information as part of a token.
  • gateway 1 10 determines whether the destination zone matches the zone maintained/managed by gateway 1 10. So, for example, if gateway 1 10 is responsible for zone 5, then all messages received from a provider having the destination zone 5 can be forwarded to a courier by gateway 1 10. However, if gateway 1 10, which is responsible for zone 5, receives a message whose destination zone is zone 8, then gateway 1 10 must route the notification message to the gateway that is responsible for zone 5.
  • Routing table 1 12 is used to route messages from one gateway to another gateway.
  • DNS domain name service
  • gateway 1 10 determines whether it is the appropriate gateway to forward the message. If not, gateway 1 10 performs a routing table lookup of routing table 1 12 to determine the appropriate gateway to forward the message. In some embodiments,
  • the DNS lookup itself is used to determine whether the gateway is the appropriate gateway for forwarding the notification message.
  • gateway 1 10 In cases where gateway 1 10 receives a message having a particular destination zone that matches the zone managed by gateway 1 10, then gateway 1 10 can forward that message directly to the appropriate courier device using a device/courier mapping 1 16. Gateway 1 10 receives this mapping information from various couriers, which will be explained in more detail below. Zones are dynamically assigned to gateways. In other words, gateway 1 10 might manage notification messages for one zone for a period of time and then be switched, or reconfigured, to manage the forwarding of messages for a different zone at a later time.
  • Courier 120 is a network device.
  • Courier 120 includes a connection module 124, a back-propagation module 122, and maintains device information 126.
  • Courier 120 can, in some embodiments, manage connections for upwards of 1 .6 million devices.
  • Couriers are not limited to connecting with devices of a particular zone. In other words, courier 220 can manage device connections where various connected devices belong to different zones.
  • courier 120 provisions a zone for the device.
  • the zone provisioned for the device is permanent.
  • devices may lose their connection with courier 120 for various reasons. For example, a connection might be lost due to loss of cellular signal, or wi-fi signal, loss of power, or because the mobile device has changed geographic locations, etc.
  • a mobile device attempts to reconnect to the system and connect with a courier, the device can connect with any courier on the network. In this way, courier 120 can be connected to devices assigned to different zones.
  • courier 120 maintains device information 126 for each device with which it is connected.
  • Device information can include a zone identifier for the device, a unique device identifier (UID) for the device, and other device information.
  • Connection module 124 is used to establish connections between courier 120 and various devices.
  • Courier 120 also includes a back-propagation module 122.
  • Back- propagation module 122 is used to back-propagate the device information 126 to respective gateways.
  • Device information is back-propagated to gateways based on zone information. For example, if courier 120 is connected to a zone 1 1 device, then courier 120 will provision a connection via connection module 124 with the gateway responsible for managing zone 1 1 . Courier 120 will then back- propagate the device information for the zone 1 1 device to the gateway responsible for managing zone 1 1 . In similar fashion, courier 220 will make connections with gateways of different zones to back-propagate specific device information for devices associated with those respective zones.
  • Mobile device 130 includes a processor 140, memory 132, a transmitter 134, a receiver 136, and one or more applications 138.
  • Processor 140 includes a connection module 142 that determines a courier for connecting to the mobile device 230.
  • Connection module 142 may use a round-robin DNS (Domain Name Service) scheme to determine a courier with which to connect. In other embodiments, a courier might be determined based on other information, such as geographical location, etc.
  • Receiver 136 receives a zone identifier from the courier upon initially connecting with the courier.
  • Encryption module 144 combines the zone identifier and the unique device identifier (UID) for the device to generate a device token.
  • UID unique device identifier
  • encryption module 144 encrypts the token by applying a hashing algorithm (e.g., SHA-0, SHA-1 , SHA-2, MD5, Whirlpool, or other hashing algorithms).
  • Memory 132 stores the token.
  • the token generated and encrypted by device 130 remains constant for mobile device 130 in various embodiments. In other words, the UID does not change and the zone identifier for the device does not change, either.
  • transmitter 234 transmits, or sends, the token to various provider applications (e.g., provider 102).
  • the token may be transmitted when device 130 first calls provider 102.
  • Provider 102 can use the token, or include the token, with any notification message so that it can be appropriately forwarded back to device 130.
  • FIG. 2 is a block diagram, according to various embodiments.
  • Figure 2 illustrates various examples of forwarding notification messages between providers and mobile devices.
  • device 1 subscribes to a particular application managed by provider 1 and desires to receive notification messages for that application.
  • device 1 calls provider 1 and transmits its device token to provider 1 .
  • that token includes an encrypted combination of the device's UID and its zone identifier.
  • device 1 has a zone identifier, zone 15.
  • provider 1 sends a notification message to device 1 , it connects with one of the gateways in the system.
  • provider 1 connects to a gateway via round- robin DNS, although, in other embodiments, other connection schemes can be used.
  • provider 1 does not need to connect to any particular gateway to successfully push a notification message to device 1 .
  • gateway 1 will look at the token accompanying the message and see that the message is intended for a device in zone 15.
  • gateway 1 performs a routing table lookup (e.g., DNS lookup) and routes the message to gateway 2, which is responsible for zone 15.
  • Gateway 2 sends/forwards the message to courier 2 based on its device/courier mapping. Given that courier 2 is connected to device 1 , courier 2 will have previously back-propagated the device information for device 1 to gateway 2 because device 1 belongs to zone 15 and gateway 2 is responsible for managing zone 15. Thus, gateway 2 is able to forward a message to courier 2, based on its device courier mapping; courier 2 is then able to lookup its connections and send the message to device 1 .
  • courier 2 is connected to both device 1 and device 2 and that each device belongs to a different zone.
  • courier 2 back- propagates device information for each of the devices to the appropriate zone for the respective devices.
  • courier 2 back-propagates device information for device 1 to gateway 2, given that gateway 2 manages zone 15.
  • Courier 2 back-propagates device information for zone 2 to gateway 1 , given that gateway 1 is responsible for managing zone 9.
  • back- propagation involves a courier establishing a connection with a gateway device and sending information as to its connections with various mobile devices (e.g., UIDs for the devices).
  • provider 2 wishes to send a notification message to device 3.
  • gateway 1 determines that it is the appropriate gateway to forward the message, given that the message is intended for a zone 9 device (gateway 1 is responsible for zone 9). It can be seen from Figure 2 that gateway 1 has connections with both courier 1 and courier 2, given that both courier 1 and courier 2 are each connected to a zone 9 device. However, based on the device/courier mappings back-propagated by courier 1 and courier 2, respectively, gateway 1 can perform a lookup of the mapping information and determine that the message should be forwarded to courier 1 in order to reach its destination at device 3. Once courier 1 receives the message, courier 1 forwards the message to device 3.
  • Figure 3 is a flow diagram of operation, according to various aspects
  • Presence information for one or more mobile devices is
  • the presence information for each mobile device includes a token comprised of a UID and a zone identifier.
  • the term "dynamically receiving" as used herein refers to the concept that the presence information is not static. In other words, devices are not always connected to the same couriers and, therefore, gateways need to be dynamically updated to appropriately forward messages for devices to the correct couriers.
  • the notification message is received 320 at the first gateway device from a provider application.
  • the notification message includes a mobile device token.
  • the token is decrypted 330 (e.g., using a hashing algorithm) to determine the zone identifier associated with the message. It is then determined 340 whether the zone identifier in the message matches the zone currently managed by the gateway. If the zone identifier in the message does not match the zone managed by gateway, the gateway performs a routing table lookup and routes 360 the message to the appropriate gateway that manages the zone associated with the message. If the zone identifier in the message does match the zone managed by the gateway, the gateway refers to its device/courier mapping and forwards 350 the message to the appropriate courier.
  • Figure 4 is a flow diagram of operation, according to various aspects
  • a mobile device establishes 410 a connection to a courier device.
  • the connection can be established by performing a round-robin DNS search, or other scheme, to establish a courier connection.
  • a zone identifier is received 420 from the courier device upon connecting with the courier device.
  • the zone identifier is received only during an initial connection with the courier. In other words, a zone identifier is not received each time the device connects with a new courier. Instead, the zone identifier is received only the first time the device makes a connection of any kind with a courier.
  • a token for the device is generated and encrypted 430 via an encryption algorithm.
  • the token includes both the device's unique identifier (UID) and the zone identifier.
  • the encryption may be accomplished using a hashing algorithm, such as the hashing algorithms described previously.
  • a message is received 450 from the provider application via a path that includes at least one gateway and a courier.
  • the path might include one gateway, or more than one gateway.
  • the path will include only one courier.
  • the forwarding path between gateway(s) and courier is determined based, at least in part, on the token that was originally transmitted from the device to the provider application.
  • providers push notifications to mobile devices through gateways and couriers.
  • the mobile devices Di and D 2 register to receive push notifications by establishing a secure connection to a particular courier 531 , 532
  • the couriers 531 , 532 maintain network information for each device including, for example, a zone identifier and a unique device identifier (UID) for each device.
  • the zone identifier identifies the particular zone to which the device is assigned which, in turn, identifies the gateway responsible for that zone.
  • gateways 521 and 523 are responsible for routing push notifications for zones 1 -500, and gateways 522- 524 are responsible for routing push notifications for zones 501 -1000.
  • Multiple gateways are assigned to handle traffic for the same range of zones to provide redundancy, load balancing, and dynamic data traffic routing (as described herein). For example, if gateway 323 becomes inoperative, its data traffic (for zones 1 -500) may be temporarily serviced by gateway 521 . It should be noted, however, that the underlying principles of the invention are not limited to any particular number of gateways or any particular set of zone assignments.
  • the different gateways may be located in different data centers.
  • gateways 521 and 522 may be located in a first data center and gateways 523 and 524 may be located in a second data center.
  • Multiple redundant gateways may also be located within the same data center.
  • the underlying principles of the invention may be implemented within a single data center or across multiple data centers.
  • a provider 501 may connect to a gateway through a particular interface 51 1 , which performs an analogous function as couriers perform for mobile devices.
  • Each interface 51 1 is a process through which providers 501 may securely transmit push notifications via SSL or TLS connections (i.e., as authorized by users via applications executed on the mobile devices). For example, a user may register to receive push notifications for a particular news topic or team, or for any other application-specific reason.
  • the providers 501 generate these push notifications at appropriate times (e.g., periodically, in response to certain events, etc) based on user preferences.
  • a device's presence information is maintained on the gateways using the device's push token. Accordingly, when a push notification is received at a gateway directed to a particular push token, the gateway performs a lookup to determine there is a TCP socket descriptor associated with that push token. The socket descriptor provides the TCP socket information and other networking information needed to transmit the push notification to the appropriate courier 531 (i.e., the courier through which the device is currently connected).
  • a provider identifies a device using the device's push token (e.g., token ⁇ in the example, which identifies device D-i).
  • the push token contains a zone identifier indirectly identifying the gateway responsible for that zone (i.e., because each gateway is responsible for routing traffic for a specified range of zones).
  • token T-i associated with device D identifies zone 506, which is managed by two redundant gateways: gateways 522 and 524.
  • push notifications may be transmitted to device Di through either of the gateways 522 or 524.
  • a round robin scheme is employed to balance the load between each of the gateways.
  • the quality of the communication channel between each gateway and each device may be monitored, and the gateway which provides a relatively higher quality connection may be selected. While various different measurements may be used to determine the "quality" of each gateway/device channel, in one embodiment of the invention, the quality is based on the measured round trip time for packets transmitted between each gateway and each device.
  • a current round trip times (RTT) value associated with each device may be stored and subsequently used to select a particular route through a particular gateway.
  • RTT round trip times
  • an interface 51 1 of a provider 501 may initially make a domain name service (DNS) call to identify the network addresses (e.g., IP addresses) of each of the gateways needed to route a particular push notification.
  • DNS domain name service
  • a push token such as ⁇ in our example identifies a zone, and that zone identifies a particular set of gateways (i.e., in our example, zone 506 identifies redundant gateways 522 and 524).
  • the interface 51 1 may initially generate a DNS query of the form 6. gateway.push.apple.com (i.e., where the 6 in the first portion of the address identifies zone 6).
  • the DNS server responds to the interface query with the IP addresses of each of the gateways 522 and 523 responsible for zone 6.
  • the interface 51 1 may then select one of the gateways to transmit the push notification.
  • the interface 51 1 selects a particular gateway based on the current round trip time (RTT) associated with that gateway for the particular device to which the push is directed. For example, if gateway 522 has a relatively shorter RTT than gateway 524, then the interface 51 1 may select gateway 522.
  • RTT current round trip time
  • the interface 51 1 may select gateway 522.
  • the network address of the gateway having the lowest RTT may be provided to the interface in response to the DNS query, or the set of network addresses may be sent to the interface in a prioritized order (with the network address of the gateway having the lowest RTT at the top of the
  • the DNS may be integrated with, or may communicate with, each of the gateways to retrieve and process the various RTT values. It should be noted, however, that the underlying principles of the invention are not limited to the specific manner in which a route is selected through a gateway. Various different configurations are possible and
  • a round robin scheme may also be implemented (e.g., for load balancing). For example, as long as the RTT values associated with each of the gateways is within a specified threshold, then either gateway may represent a viable routing option. In such a case, a gateway next in succession in the round robin scheme may be selected. In one embodiment, the round robin scheme may be performed with only those gateways having RTT values within the designated threshold. For example, if there are eight different possible gateways, but only two that have RTT values within the threshold, then the round robin scheme may be
  • the two gateways may have relatively similar RTT values, but these RTT values may be significantly lower than the remaining 6 gateways (which may be in different data centers). It should be noted, of course, that the underlying principles of the invention are not limited to any particular distribution of gateways between data centers.
  • the RTT is not compared to a static threshold value. Rather, the differences between the various RTT values are compared and, if some are significantly lower than others beyond a specified threshold difference, then the gateways with the lower RTT values will be selected.
  • FIG. 6 One embodiment of a method for routing push notifications is illustrated in Figure 6. The method may be implemented within the context of the architecture shown in Figure 5, but is not limited to any particular system architecture.
  • presence information is received from a particular mobile device, identifying the device to the push notification service (e.g., identifying the particular courier through which the device is connected).
  • the device's token is associated with a socket descriptor identifying a TCP socket connecting each gateway to each courier which, in turn, maintains a connection with the device.
  • RTTs round trip times
  • the RTT values for each GW/device combination are continually updated within a table managed by the gateways, although such a configuration is not necessary for complying with the underlying principles of the invention.
  • a push notification is generated by a particular provider with which the user has subscribed. For example, a particular event may occur with respect to one of the user's favorite teams or a new version of software installed on the user's device may be made available.
  • a route is chosen to route the push notification through a particular gateway.
  • the route may be indicated in response to a DNS query by the interface through which the provider is connected or, alternatively, may be made by the interface itself. Additionally, a limited round robin scheme may be implemented in combination with the RTT values (as discussed above). Regardless of the particular implementation, a gateway be selected to efficiently route the push notification to the device.
  • a bi-directional implementation may be used, for example, to generate feedback notifications to providers (e.g., using read receipts to detect when a user has read, acknowledged, or otherwise consumed a push
  • an provider opens a socket connection to a pre-specified TCP port via interface 71 1 in order to indicate that the provider is listening for notifications.
  • this port is generically referred to as "Port X," although any pre-specified port may be used.
  • each provider is assigned a unique certificate which may be used to generate a zone number for the provider.
  • the provider provides its certificate to the interface, which then performs a hash on the certificate (e.g., an SHA-1 hash) to generate a provider token (analogous to the device token) which includes a zone number - zone 518 in the example shown in Figure 7.
  • This token/zone number may then be specified by applications on mobile devices (or by other services) to transmit push notifications to each respective provider.
  • each provider may register its presence within the gateway responsible for its zone.
  • the provider's presence data is stored on a table on each gateway responsible for the provider's assigned zone.
  • the presence information may include the round trip times (RTTs) of packets transmitted between the gateway and each respective provider.
  • RTTs round trip times
  • the RTT values associated with providers may then be used to select among each of the redundant gateways for a zone, just as the RTT values for couriers are used to select gateways as described above.
  • the same provider presence and device presence as shown for gateway 524 may be stored within gateway 522.
  • a device transmitting a push notification to a particular provider identifies that provider with the provider's token, which identifies the gateway using the zone associated with that token.
  • the courier to which the device is connected initially extracts the provider's zone number from the provider's token and generates a DNS query using the zone number to identify the IP addresses of the gateways responsible for that zone (e.g.,
  • gateway.push.apple.com where 518 identifies the zone).
  • the DNS functionality may be implemented within the same hardware platforms as the gateways or may use separate, dedicated hardware. Multiple IP addresses may then be returned in response to the DNS queries for multiple redundant gateways. In one embodiment, these IP addresses may be prioritized using a round robin scheme, RTT values or a combination of the two (as discussed above). For example, if a set of gateways have RTT values significantly lower than other gateways for this particular provider (e.g., lower by a specified threshold amount), then the round robin scheme may be implemented on this set of gateways.
  • the selected gateway uses the socket descriptor data for the interface to which the provider is connected to transmit the push notification to the provider.
  • the provider may then read the contents of the push notification and respond in any application- specific manner. For example, if the push notification is a read receipt, then the provider may store the information contained in the read receipt within a user database.
  • the underlying principles of the invention are not limited to any particular use of the reverse-push functions described herein.
  • the same provider may be connected over several different gateways to several different interfaces while still complying with the underlying principles of the invention.
  • Figure 8 illustrates a method according to one embodiment of the invention. The method may be executed within the context of the architecture shown in Figure 7, but is not limited to any particular architecture.
  • the provider connects to the push notification service via a designated port (e.g., Port X in the example shown in Figure 7) and provides its certificate.
  • a hash of the certificate is performed to identify the zone for the provider.
  • the provider's presence data e.g., TCP socket data and current status
  • the gateways responsible for this particular zone is stored within the gateways responsible for this particular zone.
  • a push notification is received from one of the devices and the route through a particular gateway is selected based on the current quality of the socket connections over each of the gateways (e.g., as identified by round trip times, in one embodiment).
  • the reverse push notification is received by the provider, which may act on the receipt of the reverse push notification in any number of pre-specified ways.
  • Embodiments of the invention may include various steps as set forth above.
  • the steps may be embodied in machine-executable instructions which cause a general-purpose or special-purpose processor to perform certain steps.
  • these steps may be performed by specific hardware components that contain hardwired logic for performing the steps, or by any combination of programmed computer components and custom hardware components.
  • Elements of the present invention may also be provided as a machine- readable medium for storing the machine-executable program code.
  • the machine-readable medium may include, but is not limited to, floppy diskettes, optical disks, CD-ROMs, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, magnetic or optical cards, or other type of media/machine-readable medium suitable for storing electronic program code.
  • the underlying principles of the invention are not limited to a mobile computing implementation.
  • Virtually any type of client or peer data processing devices may be used in some embodiments including, for example, desktop or workstation computers.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A system and method are described for establishing two-way push communication between a provider and a mobile device. Providers (like mobile devices) register to listen for push notifications from a specified set of users. The presence of the provider is then continually monitored to determine whether the provider is currently listening over a pre-specified port. If so, in response to receiving a push notification for the first provider from the set of one or more users, a current network location over which the provider is listening for push notifications is identified and the push notification is forwarded to the first provider.

Description

SYSTEM AND METHOD FOR TWO WAY PUSH NOTIFICATIONS BACKGROUND
Claim to Priority
[0001] This application claims the benefit of the filing date under 35 U.S.C. § 1 19(e), of U.S. Provisional Application No. 61 /492,882, filed on June 3, 201 1 .
Field of the Invention
[0002] This invention relates generally to the field of mobile device processing; and more specifically, to the management of notification messages transmitted between mobile devices and application providers.
Description of the Related Art
[0003] Users of the mobile devices (laptops, palmtops, mobile phones, smart phones, multimedia phones, portable media players, GPS units, mobile gaming systems, etc.) may have applications installed that periodically receive notification messages from notification services. For example, such applications include "push" e-mail services (e.g., MobileMe, Microsoft Exchange, ActiveSync, Push- IMAP, Yahoo! Push, etc.), or other push services (e.g., update/upgrade services, news services, web blog services, podcast services, social networking services, or other types of services where notification messages may be sent). Notification messages typically represent events of interest, which are typically defined by the applications (e.g., new e-mail indicator, new news item indicator, new podcast indicator, change of on-line status of a social networking friend, etc.).
[0004] The increase in the use of mobile devices magnifies the complexity of routing notification messages to those devices. One problem is that mobile devices are not inherently addressable; for example, there is currently no mobile version of IPv6. In other words, mobile devices do not have their own IP addresses in the same way that a desktop computer, or even a laptop computer, has an IP address. Furthermore, mobile devices are sometimes logically behind a service provider firewall that likely employs network address translation (NAT). Such firewalls are applicable both within the cellular context and the wi-fi context. Given that mobile devices are not inherently addressable, it is difficult to route messages to a mobile device, particularly on a large scale.
[0005] Scalability becomes a particular issue within the context of notification messages sent to mobile devices as the number of mobile devices connected to a network increases. For example, a network device that connects to mobile devices can typically manage device connections for thousands of mobile devices at a time. Thus, to accommodate hundreds of millions of mobile devices would require hundreds of thousands of network server devices to manage the connections and the routing of messages to those hundreds of millions of devices. Of course, hundreds of thousands of network server devices would be both cost prohibitive and very complex to implement. Additionally, static routing of messages using network server devices are often not failsafe or fault tolerant, meaning that if a network device goes down, it is possible that notification messages will not be able to reach certain mobile devices.
BRIEF DESCRIPTION OF THE DRAWINGS
[0006] A better understanding of the present invention can be obtained from the following detailed description in conjunction with the following drawings, in which: [0007] FIG. 1 is a block diagram illustrating a system according to various embodiments.
[0008] FIG. 2 is a block diagram, according to various embodiments.
[0009] FIG. 3 is a flow diagram of operation, according to various embodiments.
[0010] FIG. 4 is a flow diagram of operation, according to various embodiments.
[0011] FIG. 5 illustrates one embodiment of a system architecture for selecting an optimal route over a gateway between a provider and a device.
[0012] FIG. 6 illustrates one embodiment of a method for selecting an optimal route over a gateway between a provider and a device.
[0013] FIG. 7 illustrates one embodiment of a system architecture for providing two-way push notifications.
[0014] FIG. 8 illustrates one embodiment of a method for providing two-way push notifications.
SUMMARY
[0015] A system and method are described for establishing two-way push communication between a provider and a mobile device. Providers (like mobile devices) register to listen for push notifications from a specified set of users. The presence of the provider is then continually monitored to determine whether the provider is currently listening over a pre-specified port. If so, in response to receiving a push notification for the first provider from the set of one or more users, a current network location over which the provider is listening for push notifications is identified and the push notification is forwarded to the first provider. DETAILED DESCRIPTION
EMBODIMENTS OF A PUSH NOTIFICATION SERVICE
[0016] Embodiments of the invention may be implemented within the context of a push notification service. One such service, which has been designed by the assignee of the present application, is described in co-pending U.S. Patent Application No. 2010/0227632, Filed June 5, 2009, entitled Push Notification Service. An overview of the push notification service is provided below, followed by a detailed description of a system and method for implementing two-way push notifications and a system and method for dynamic routing.
[0017] Figure 1 is a block diagram according to various embodiments.
Forwarding a notification message from a provider 1 02 to a mobile device 130 requires at least one gateway 1 10 and one courier 1 20. Gateway 1 10 receives notification messages (e.g., push messages) from provider 102. In various embodiments, provider 102 sends an authentication Secure Sockets Layer (SSL) certificate upon an initial connection with gateway 1 10. This SSL certificate can be configured with additional user-defined data. Other secure communications protocols (e.g., cryptographic protocols such as Transport Layer Security (TLS), etc.) can be used in other embodiments. Authenticator 1 14 uses any additional user-defined data to identify the provider 102 in a trusted fashion.
[0018] Where a provider associated with a particular application (e.g., Twitter) includes additional identifying (e.g., user-defined) data within the SSL certificate, gateway 1 10 can not only authenticate the provider, but also automatically provision push service for the provider and the application (e.g., Twitter). In other words, gateway 1 10 can automatically extract any additional identifying data from the authentication certificate and attach the additional identifying data (or a portion of the data) to messages (e.g., push-notification messages). In some embodiments, the additional identifying data may identify a topic or feed associated with the provider (or an application of the provider) to which a user might subscribe. Thus, the additional information in the authentication certificate can be leveraged to direct messages to mobile devices that have subscribed to the topic/feed or requested information regarding the topic/feed. In this way, push service is automatically provisioned for the provider.
[0019] Having received a notification message from an authenticated provider 102, gateway 1 10 determines the destination zone for the notification message. The destination zone is included within a token that is sent along with the notification message. In some embodiments, it is not necessary to send the zone information as part of a token. By extracting the zone from the token or otherwise obtaining the zone information, gateway 1 10 determines whether the destination zone matches the zone maintained/managed by gateway 1 10. So, for example, if gateway 1 10 is responsible for zone 5, then all messages received from a provider having the destination zone 5 can be forwarded to a courier by gateway 1 10. However, if gateway 1 10, which is responsible for zone 5, receives a message whose destination zone is zone 8, then gateway 1 10 must route the notification message to the gateway that is responsible for zone 5.
[0020] Routing table 1 12 is used to route messages from one gateway to another gateway. In various embodiments, DNS (domain name service) is used to route messages between gateways. However, other routing protocols could be used in other embodiments. Thus, when a message is received at gateway 1 10, gateway 1 10 determines whether it is the appropriate gateway to forward the message. If not, gateway 1 10 performs a routing table lookup of routing table 1 12 to determine the appropriate gateway to forward the message. In some
embodiments, the DNS lookup itself is used to determine whether the gateway is the appropriate gateway for forwarding the notification message.
[0021] In cases where gateway 1 10 receives a message having a particular destination zone that matches the zone managed by gateway 1 10, then gateway 1 10 can forward that message directly to the appropriate courier device using a device/courier mapping 1 16. Gateway 1 10 receives this mapping information from various couriers, which will be explained in more detail below. Zones are dynamically assigned to gateways. In other words, gateway 1 10 might manage notification messages for one zone for a period of time and then be switched, or reconfigured, to manage the forwarding of messages for a different zone at a later time.
[0022] Courier 120, similar to gateway 1 10, is a network device. Courier 120 includes a connection module 124, a back-propagation module 122, and maintains device information 126. Courier 120 can, in some embodiments, manage connections for upwards of 1 .6 million devices. Couriers are not limited to connecting with devices of a particular zone. In other words, courier 220 can manage device connections where various connected devices belong to different zones.
[0023] When a device initially connects with courier 120, courier 120 provisions a zone for the device. In various embodiments, the zone provisioned for the device is permanent. Despite the particular zone assignment for each device, devices may lose their connection with courier 120 for various reasons. For example, a connection might be lost due to loss of cellular signal, or wi-fi signal, loss of power, or because the mobile device has changed geographic locations, etc. When a mobile device attempts to reconnect to the system and connect with a courier, the device can connect with any courier on the network. In this way, courier 120 can be connected to devices assigned to different zones.
[0024] As mentioned above, courier 120 maintains device information 126 for each device with which it is connected. Device information can include a zone identifier for the device, a unique device identifier (UID) for the device, and other device information. Connection module 124 is used to establish connections between courier 120 and various devices.
[0025] Courier 120 also includes a back-propagation module 122. Back- propagation module 122 is used to back-propagate the device information 126 to respective gateways. Device information is back-propagated to gateways based on zone information. For example, if courier 120 is connected to a zone 1 1 device, then courier 120 will provision a connection via connection module 124 with the gateway responsible for managing zone 1 1 . Courier 120 will then back- propagate the device information for the zone 1 1 device to the gateway responsible for managing zone 1 1 . In similar fashion, courier 220 will make connections with gateways of different zones to back-propagate specific device information for devices associated with those respective zones.
[0026] Mobile device 130 includes a processor 140, memory 132, a transmitter 134, a receiver 136, and one or more applications 138. Processor 140 includes a connection module 142 that determines a courier for connecting to the mobile device 230. Connection module 142 may use a round-robin DNS (Domain Name Service) scheme to determine a courier with which to connect. In other embodiments, a courier might be determined based on other information, such as geographical location, etc. Receiver 136 receives a zone identifier from the courier upon initially connecting with the courier. Encryption module 144 combines the zone identifier and the unique device identifier (UID) for the device to generate a device token. In various embodiments, encryption module 144 encrypts the token by applying a hashing algorithm (e.g., SHA-0, SHA-1 , SHA-2, MD5, Whirlpool, or other hashing algorithms). Memory 132 stores the token. The token generated and encrypted by device 130 remains constant for mobile device 130 in various embodiments. In other words, the UID does not change and the zone identifier for the device does not change, either.
[0027] Once the token has been generated and encrypted, transmitter 234 transmits, or sends, the token to various provider applications (e.g., provider 102). The token may be transmitted when device 130 first calls provider 102. Provider 102 can use the token, or include the token, with any notification message so that it can be appropriately forwarded back to device 130.
[0028] Figure 2 is a block diagram, according to various embodiments. In particular, Figure 2 illustrates various examples of forwarding notification messages between providers and mobile devices. In one example, device 1 subscribes to a particular application managed by provider 1 and desires to receive notification messages for that application. Thus, device 1 calls provider 1 and transmits its device token to provider 1 . As discussed above, that token includes an encrypted combination of the device's UID and its zone identifier. As shown in Figure 2, device 1 has a zone identifier, zone 15. Thus, when provider 1 sends a notification message to device 1 , it connects with one of the gateways in the system. In various embodiments, provider 1 connects to a gateway via round- robin DNS, although, in other embodiments, other connection schemes can be used. However, it is important to note that provider 1 does not need to connect to any particular gateway to successfully push a notification message to device 1 . For example, if provider 1 usually connects with gateway 1 and sends a message intended for device 1 , gateway 1 will look at the token accompanying the message and see that the message is intended for a device in zone 15. Given that gateway 1 is associated with zone 9, gateway 1 performs a routing table lookup (e.g., DNS lookup) and routes the message to gateway 2, which is responsible for zone 15.
[0029] Gateway 2 sends/forwards the message to courier 2 based on its device/courier mapping. Given that courier 2 is connected to device 1 , courier 2 will have previously back-propagated the device information for device 1 to gateway 2 because device 1 belongs to zone 15 and gateway 2 is responsible for managing zone 15. Thus, gateway 2 is able to forward a message to courier 2, based on its device courier mapping; courier 2 is then able to lookup its connections and send the message to device 1 .
[0030] Note in Figure 2 that courier 2 is connected to both device 1 and device 2 and that each device belongs to a different zone. Thus, courier 2 back- propagates device information for each of the devices to the appropriate zone for the respective devices. In other words, courier 2 back-propagates device information for device 1 to gateway 2, given that gateway 2 manages zone 15. Courier 2 back-propagates device information for zone 2 to gateway 1 , given that gateway 1 is responsible for managing zone 9. As mentioned above, back- propagation involves a courier establishing a connection with a gateway device and sending information as to its connections with various mobile devices (e.g., UIDs for the devices). [0031] In another example, provider 2 wishes to send a notification message to device 3. Assume that provider 2 establishes a connection with gateway 1 ; thus, when provider 2 sends the message to gateway 1 , gateway 1 determines that it is the appropriate gateway to forward the message, given that the message is intended for a zone 9 device (gateway 1 is responsible for zone 9). It can be seen from Figure 2 that gateway 1 has connections with both courier 1 and courier 2, given that both courier 1 and courier 2 are each connected to a zone 9 device. However, based on the device/courier mappings back-propagated by courier 1 and courier 2, respectively, gateway 1 can perform a lookup of the mapping information and determine that the message should be forwarded to courier 1 in order to reach its destination at device 3. Once courier 1 receives the message, courier 1 forwards the message to device 3.
[0032] Figure 3 is a flow diagram of operation, according to various
embodiments. Presence information for one or more mobile devices is
dynamically received 310 from respective couriers connected to the mobile devices. The presence information for each mobile device includes a token comprised of a UID and a zone identifier. The term "dynamically receiving" as used herein refers to the concept that the presence information is not static. In other words, devices are not always connected to the same couriers and, therefore, gateways need to be dynamically updated to appropriately forward messages for devices to the correct couriers.
[0033] The notification message is received 320 at the first gateway device from a provider application. The notification message includes a mobile device token. The token is decrypted 330 (e.g., using a hashing algorithm) to determine the zone identifier associated with the message. It is then determined 340 whether the zone identifier in the message matches the zone currently managed by the gateway. If the zone identifier in the message does not match the zone managed by gateway, the gateway performs a routing table lookup and routes 360 the message to the appropriate gateway that manages the zone associated with the message. If the zone identifier in the message does match the zone managed by the gateway, the gateway refers to its device/courier mapping and forwards 350 the message to the appropriate courier.
[0034] Figure 4 is a flow diagram of operation, according to various
embodiments. A mobile device establishes 410 a connection to a courier device. The connection can be established by performing a round-robin DNS search, or other scheme, to establish a courier connection. A zone identifier is received 420 from the courier device upon connecting with the courier device. In various embodiments, the zone identifier is received only during an initial connection with the courier. In other words, a zone identifier is not received each time the device connects with a new courier. Instead, the zone identifier is received only the first time the device makes a connection of any kind with a courier.
[0035] A token for the device is generated and encrypted 430 via an encryption algorithm. The token includes both the device's unique identifier (UID) and the zone identifier. The encryption may be accomplished using a hashing algorithm, such as the hashing algorithms described previously. Once the token has been generated and encrypted, the token is transmitted 440 to a provider application. For example, the user of the mobile device might download, install, and/or subscribe to a particular application (e.g., Twitter). In some embodiments, when the mobile device next calls that provider application, it transmits the token to the provider 440. The transmittal of the token could also occur, for example, at the time the user subscribes and/or signs up for the application or service.
[0036] Subsequently, a message is received 450 from the provider application via a path that includes at least one gateway and a courier. In other words, the path might include one gateway, or more than one gateway. However, in various embodiments, the path will include only one courier. The forwarding path between gateway(s) and courier is determined based, at least in part, on the token that was originally transmitted from the device to the provider application.
EMBODIMENTS OF A SYSTEM AND METHOD FOR TWO-WAY PUSH NOTIFICATIONS
[0037] As discussed above, in one embodiment, providers push notifications to mobile devices through gateways and couriers. As illustrated in Figure 5, on one side of the architecture, the mobile devices Di and D2 register to receive push notifications by establishing a secure connection to a particular courier 531 , 532
(e.g., an SSL or TLS connection). As mentioned above, the couriers 531 , 532 maintain network information for each device including, for example, a zone identifier and a unique device identifier (UID) for each device. The zone identifier identifies the particular zone to which the device is assigned which, in turn, identifies the gateway responsible for that zone.
[0038] In the particular example shown in Figure 5, gateways 521 and 523 are responsible for routing push notifications for zones 1 -500, and gateways 522- 524 are responsible for routing push notifications for zones 501 -1000. Multiple gateways are assigned to handle traffic for the same range of zones to provide redundancy, load balancing, and dynamic data traffic routing (as described herein). For example, if gateway 323 becomes inoperative, its data traffic (for zones 1 -500) may be temporarily serviced by gateway 521 . It should be noted, however, that the underlying principles of the invention are not limited to any particular number of gateways or any particular set of zone assignments.
[0039] In one embodiment, the different gateways may be located in different data centers. For example, gateways 521 and 522 may be located in a first data center and gateways 523 and 524 may be located in a second data center.
Multiple redundant gateways may also be located within the same data center. The underlying principles of the invention may be implemented within a single data center or across multiple data centers.
[0040] As illustrated in Figure 5, a provider 501 may connect to a gateway through a particular interface 51 1 , which performs an analogous function as couriers perform for mobile devices. Each interface 51 1 is a process through which providers 501 may securely transmit push notifications via SSL or TLS connections (i.e., as authorized by users via applications executed on the mobile devices). For example, a user may register to receive push notifications for a particular news topic or team, or for any other application-specific reason. The providers 501 generate these push notifications at appropriate times (e.g., periodically, in response to certain events, etc) based on user preferences.
[0041] A device's presence information is maintained on the gateways using the device's push token. Accordingly, when a push notification is received at a gateway directed to a particular push token, the gateway performs a lookup to determine there is a TCP socket descriptor associated with that push token. The socket descriptor provides the TCP socket information and other networking information needed to transmit the push notification to the appropriate courier 531 (i.e., the courier through which the device is currently connected). [0042] A provider identifies a device using the device's push token (e.g., token ΤΊ in the example, which identifies device D-i). The push token contains a zone identifier indirectly identifying the gateway responsible for that zone (i.e., because each gateway is responsible for routing traffic for a specified range of zones). In the example shown in Figure 5, token T-i associated with device D identifies zone 506, which is managed by two redundant gateways: gateways 522 and 524.
[0043] Thus, in the example shown in Figure 5, push notifications may be transmitted to device Di through either of the gateways 522 or 524. In one embodiment of the invention, a round robin scheme is employed to balance the load between each of the gateways. Alternatively, or in addition, the quality of the communication channel between each gateway and each device may be monitored, and the gateway which provides a relatively higher quality connection may be selected. While various different measurements may be used to determine the "quality" of each gateway/device channel, in one embodiment of the invention, the quality is based on the measured round trip time for packets transmitted between each gateway and each device. Thus, as indicated in
Figure 5, a current round trip times (RTT) value associated with each device may be stored and subsequently used to select a particular route through a particular gateway. Given that each of the redundant gateways (521 /523 and 522/524) may be located in different data centers, the selected gateway may tend to be in the same data center as the courier to which the device is currently attached (although the underlying principles of the invention are not limited to this particular implementation).
[0044] In one embodiment, an interface 51 1 of a provider 501 may initially make a domain name service (DNS) call to identify the network addresses (e.g., IP addresses) of each of the gateways needed to route a particular push notification. As previously described, a push token such as ΤΊ in our example identifies a zone, and that zone identifies a particular set of gateways (i.e., in our example, zone 506 identifies redundant gateways 522 and 524). Thus, the interface 51 1 may initially generate a DNS query of the form 6. gateway.push.apple.com (i.e., where the 6 in the first portion of the address identifies zone 6). The DNS server then responds to the interface query with the IP addresses of each of the gateways 522 and 523 responsible for zone 6. The interface 51 1 may then select one of the gateways to transmit the push notification.
[0045] In one embodiment, the interface 51 1 selects a particular gateway based on the current round trip time (RTT) associated with that gateway for the particular device to which the push is directed. For example, if gateway 522 has a relatively shorter RTT than gateway 524, then the interface 51 1 may select gateway 522. Alternatively, instead of the interface selecting a gateway with a relatively lower RTT, the network address of the gateway having the lowest RTT may be provided to the interface in response to the DNS query, or the set of network addresses may be sent to the interface in a prioritized order (with the network address of the gateway having the lowest RTT at the top of the
prioritized list). In this embodiment, the DNS may be integrated with, or may communicate with, each of the gateways to retrieve and process the various RTT values. It should be noted, however, that the underlying principles of the invention are not limited to the specific manner in which a route is selected through a gateway. Various different configurations are possible and
contemplated within the scope of the present invention. [0046] In addition to routing based on RTT values, in one embodiment, a round robin scheme may also be implemented (e.g., for load balancing). For example, as long as the RTT values associated with each of the gateways is within a specified threshold, then either gateway may represent a viable routing option. In such a case, a gateway next in succession in the round robin scheme may be selected. In one embodiment, the round robin scheme may be performed with only those gateways having RTT values within the designated threshold. For example, if there are eight different possible gateways, but only two that have RTT values within the threshold, then the round robin scheme may be
implemented between just the two gateways. This embodiment may be particularly advantageous when there are multiple gateways within the same data center responsible for the same zone or zone range. In such a case, the two gateways may have relatively similar RTT values, but these RTT values may be significantly lower than the remaining 6 gateways (which may be in different data centers). It should be noted, of course, that the underlying principles of the invention are not limited to any particular distribution of gateways between data centers.
[0047] In one embodiment, the RTT is not compared to a static threshold value. Rather, the differences between the various RTT values are compared and, if some are significantly lower than others beyond a specified threshold difference, then the gateways with the lower RTT values will be selected.
[0048] One embodiment of a method for routing push notifications is illustrated in Figure 6. The method may be implemented within the context of the architecture shown in Figure 5, but is not limited to any particular system architecture. [0049] At 601 , presence information is received from a particular mobile device, identifying the device to the push notification service (e.g., identifying the particular courier through which the device is connected). As mentioned above, in one embodiment, the device's token is associated with a socket descriptor identifying a TCP socket connecting each gateway to each courier which, in turn, maintains a connection with the device.
[0050] At 602, round trip times (RTTs) are monitored between each of the devices and each of the gateways. In one embodiment, the RTT values for each GW/device combination are continually updated within a table managed by the gateways, although such a configuration is not necessary for complying with the underlying principles of the invention.
[0051] At 603, a push notification is generated by a particular provider with which the user has subscribed. For example, a particular event may occur with respect to one of the user's favorite teams or a new version of software installed on the user's device may be made available.
[0052] At 604, a route is chosen to route the push notification through a particular gateway. As previously mentioned, the route may be indicated in response to a DNS query by the interface through which the provider is connected or, alternatively, may be made by the interface itself. Additionally, a limited round robin scheme may be implemented in combination with the RTT values (as discussed above). Regardless of the particular implementation, a gateway be selected to efficiently route the push notification to the device.
SYSTEM AND METHOD FOR TWO-WAY PUSH
[0053] The above discussion focused on a unidirectional implementation in which push notifications generated by providers are routed to mobile devices. In addition, one embodiment of the invention opens a push channel from devices to providers, thereby enabling bi-directional push communication between providers and devices. A bi-directional implementation may be used, for example, to generate feedback notifications to providers (e.g., using read receipts to detect when a user has read, acknowledged, or otherwise consumed a push
notification).
[0054] Referring to Figure 7, in one embodiment, an provider opens a socket connection to a pre-specified TCP port via interface 71 1 in order to indicate that the provider is listening for notifications. In the example shown in Figure 7, this port is generically referred to as "Port X," although any pre-specified port may be used. For authentication purposes, each provider is assigned a unique certificate which may be used to generate a zone number for the provider. In one embodiment, the provider provides its certificate to the interface, which then performs a hash on the certificate (e.g., an SHA-1 hash) to generate a provider token (analogous to the device token) which includes a zone number - zone 518 in the example shown in Figure 7. This token/zone number may then be specified by applications on mobile devices (or by other services) to transmit push notifications to each respective provider.
[0055] Consequently, just as couriers register the presence of devices with gateways (as discussed above), each provider may register its presence within the gateway responsible for its zone. As indicated in Figure 7, the provider's presence data is stored on a table on each gateway responsible for the provider's assigned zone. As indicated, the presence information may include the round trip times (RTTs) of packets transmitted between the gateway and each respective provider. The RTT values associated with providers may then be used to select among each of the redundant gateways for a zone, just as the RTT values for couriers are used to select gateways as described above. It should be noted that, although not illustrated in Figure 7, the same provider presence and device presence as shown for gateway 524 may be stored within gateway 522.
[0056] A device transmitting a push notification to a particular provider identifies that provider with the provider's token, which identifies the gateway using the zone associated with that token. In one embodiment, the courier to which the device is connected initially extracts the provider's zone number from the provider's token and generates a DNS query using the zone number to identify the IP addresses of the gateways responsible for that zone (e.g.,
518. gateway.push.apple.com, where 518 identifies the zone). The DNS functionality may be implemented within the same hardware platforms as the gateways or may use separate, dedicated hardware. Multiple IP addresses may then be returned in response to the DNS queries for multiple redundant gateways. In one embodiment, these IP addresses may be prioritized using a round robin scheme, RTT values or a combination of the two (as discussed above). For example, if a set of gateways have RTT values significantly lower than other gateways for this particular provider (e.g., lower by a specified threshold amount), then the round robin scheme may be implemented on this set of gateways.
[0057] Regardless of how the gateways are prioritized, the selected gateway uses the socket descriptor data for the interface to which the provider is connected to transmit the push notification to the provider. The provider may then read the contents of the push notification and respond in any application- specific manner. For example, if the push notification is a read receipt, then the provider may store the information contained in the read receipt within a user database. Of course, the underlying principles of the invention are not limited to any particular use of the reverse-push functions described herein. Moreover, the same provider may be connected over several different gateways to several different interfaces while still complying with the underlying principles of the invention.
[0058] Figure 8 illustrates a method according to one embodiment of the invention. The method may be executed within the context of the architecture shown in Figure 7, but is not limited to any particular architecture.
[0059] At 801 , the provider connects to the push notification service via a designated port (e.g., Port X in the example shown in Figure 7) and provides its certificate. At 802, a hash of the certificate is performed to identify the zone for the provider. At 803, the provider's presence data (e.g., TCP socket data and current status) is stored within the gateways responsible for this particular zone. At 804, a push notification is received from one of the devices and the route through a particular gateway is selected based on the current quality of the socket connections over each of the gateways (e.g., as identified by round trip times, in one embodiment). Finally, at 805, the reverse push notification is received by the provider, which may act on the receipt of the reverse push notification in any number of pre-specified ways.
[0060] Embodiments of the invention may include various steps as set forth above. The steps may be embodied in machine-executable instructions which cause a general-purpose or special-purpose processor to perform certain steps. Alternatively, these steps may be performed by specific hardware components that contain hardwired logic for performing the steps, or by any combination of programmed computer components and custom hardware components.
[0061] Elements of the present invention may also be provided as a machine- readable medium for storing the machine-executable program code. The machine-readable medium may include, but is not limited to, floppy diskettes, optical disks, CD-ROMs, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, magnetic or optical cards, or other type of media/machine-readable medium suitable for storing electronic program code.
[0062] Throughout the foregoing description, for the purposes of explanation, numerous specific details were set forth in order to provide a thorough
understanding of the invention. It will be apparent, however, to one skilled in the art that the invention may be practiced without some of these specific details. For example, it will be readily apparent to those of skill in the art that the functional modules and methods described herein may be implemented as software, hardware or any combination thereof. Moreover, although embodiments of the invention are described herein within the context of a mobile computing
environment (i.e., using mobile devices 120-123; 601 -603), the underlying principles of the invention are not limited to a mobile computing implementation. Virtually any type of client or peer data processing devices may be used in some embodiments including, for example, desktop or workstation computers.
Accordingly, the scope and spirit of the invention should be judged in terms of the claims which follow.

Claims

CLAIMS We claim:
1 . A method for establishing two-way push communication between a provider and a mobile device:
receiving an indication that a first provider has selected to receive push notifications from a set of one or more users;
receiving an indication that a first user has selected to receive push notifications from a set of one or more providers;
monitoring presence information associated with the first user and the first provider, the presence information indicating whether the first user and the first provider, respectively, are currently connected to a network and listening for push notifications; and
in response to receiving a push notification for the first user, identifying a current network location of the first user and forwarding the push notification to the first user; and
in response to receiving a push notification for the first provider from the set of one or more users, identifying a current network location over which the provider is listening for push notifications and forwarding the push notification to the first provider.
2. The method as in claim 1 wherein receiving an indication that the first provider has selected to receive push notifications from a set of one or more users comprises receiving an indication of a current network port to which the first provider is connected and listening for push notifications.
3. The method as in claim 1 wherein the push notification for the first provider comprises a read receipt indicating that a user associated with the push notification has read a push notification previously transmitted to the user by the provider.
4. The method as in claim 1 wherein forwarding the push notification to the first provider comprises selecting between a first gateway and a second gateway over which to transmit the push notification.
5. The method as in claim 4 wherein selecting further comprises:
measuring channel quality for packets transmitted between the first provider and a first gateway and between the first device and a second gateway; and
selecting between the first gateway and the second gateway based on the measured channel quality.
6. The method as in claim 5 wherein measuring channel quality comprises monitoring round trip times for packets transmitted between the first provider and a first gateway and between the first provider and a second gateway.
7. The method as in claim 6 further comprising:
selecting the gateway which has a relatively lower round trip time associated therewith.
8. The method as in claim 1 wherein if the channel quality measured between the first provider and the first gateway is within a specified threshold amount of the channel quality measured between the first provider and a second gateway, then employing a round robin scheme to select between the first gateway and the second gateway for transmitting the push notification to the first provider.
9. The method as in claim 5 further comprising:
maintaining a provider presence table on each gateway, the provider presence table containing an updated channel quality value associated with the connection between that gateway and each respective provider.
10. The method as in claim 9 wherein the channel quality value comprises a round trip time of packets transmitted between the gateway and the provider.
1 1 . A machine-readable medium having program code stored thereon which, when executed by one or more machines, causes the machines to perform the operations of:
receiving an indication that a first provider has selected to receive push notifications from a set of one or more users;
receiving an indication that a first user has selected to receive push notifications from a set of one or more providers;
monitoring presence information associated with the first user and the first provider, the presence information indicating whether the first user and the first provider, respectively, are currently connected to a network and listening for push notifications; and
in response to receiving a push notification for the first user, identifying a current network location of the first user and forwarding the push notification to the first user; and
in response to receiving a push notification for the first provider from the set of one or more users, identifying a current network location over which the provider is listening for push notifications and forwarding the push notification to the first provider.
12. The machine-readable medium as in claim 1 1 wherein receiving an indication that the first provider has selected to receive push notifications from a set of one or more users comprises receiving an indication of a current network port to which the first provider is connected and listening for push notifications.
13. The machine-readable medium as in claim 1 1 wherein the push
notification for the first provider comprises a read receipt indicating that a user associated with the push notification has read a push notification previously transmitted to the user by the provider.
14. The machine-readable medium as in claim 1 1 wherein forwarding the push notification to the first provider comprises selecting between a first gateway and a second gateway over which to transmit the push notification.
15. The machine-readable medium as in claim 14 wherein selecting further comprises:
measuring channel quality for packets transmitted between the first provider and a first gateway and between the first device and a second gateway; and
selecting between the first gateway and the second gateway based on the measured channel quality.
16. The machine-readable medium as in claim 15 wherein measuring channel quality comprises monitoring round trip times for packets transmitted between the first provider and a first gateway and between the first provider and a second gateway.
17. The machine-readable medium as in claim 16 comprising additional program code to cause the machines to perform the additional operations of: selecting the gateway which has a relatively lower round trip time associated therewith.
18. The machine-readable medium as in claim 1 1 wherein if the channel quality measured between the first provider and the first gateway is within a specified threshold amount of the channel quality measured between the first provider and a second gateway, then employing a round robin scheme to select between the first gateway and the second gateway for transmitting the push notification to the first provider.
19. The machine-readable medium as in claim 15 comprising additional program code to cause the machines to perform the additional operations of: maintaining a provider presence table on each gateway, the provider presence table containing an updated channel quality value associated with the connection between that gateway and each respective provider.
20. The machine-readable medium as in claim 19 wherein the channel quality value comprises a round trip time of packets transmitted between the gateway and the provider.
21 . A system having a memory for storing program code and a processor for processing the program code to perform the operations of:
receiving an indication that a first provider has selected to receive push notifications from a set of one or more users;
receiving an indication that a first user has selected to receive push notifications from a set of one or more providers;
monitoring presence information associated with the first user and the first provider, the presence information indicating whether the first user and the first provider, respectively, are currently connected to a network and listening for push notifications; and
in response to receiving a push notification for the first user, identifying a current network location of the first user and forwarding the push notification to the first user; and
in response to receiving a push notification for the first provider from the set of one or more users, identifying a current network location over which the provider is listening for push notifications and forwarding the push notification to the first provider.
22. The system as in claim 21 wherein receiving an indication that the first provider has selected to receive push notifications from a set of one or more users comprises receiving an indication of a current network port to which the first provider is connected and listening for push notifications.
23. The system as in claim 21 wherein the push notification for the first provider comprises a read receipt indicating that a user associated with the push notification has read a push notification previously transmitted to the user by the provider.
24. The system as in claim 21 wherein forwarding the push notification to the first provider comprises selecting between a first gateway and a second gateway over which to transmit the push notification.
25. The system as in claim 24 wherein selecting further comprises:
measuring channel quality for packets transmitted between the first provider and a first gateway and between the first device and a second gateway; and
selecting between the first gateway and the second gateway based on the measured channel quality.
26. The system as in claim 25 wherein measuring channel quality comprises monitoring round trip times for packets transmitted between the first provider and a first gateway and between the first provider and a second gateway.
27. The system as in claim 26 comprising additional program code to cause the processor to perform the additional operations of:
selecting the gateway which has a relatively lower round trip time associated therewith.
28. The system as in claim 21 wherein if the channel quality measured between the first provider and the first gateway is within a specified threshold amount of the channel quality measured between the first provider and a second gateway, then employing a round robin scheme to select between the first gateway and the second gateway for transmitting the push notification to the first provider.
29. The system as in claim 25 comprising additional program code to cause the processor to perform the additional operations of:
maintaining a provider presence table on each gateway, the provider presence table containing an updated channel quality value associated with the connection between that gateway and each respective provider.
30. The system as in claim 29 wherein the channel quality value comprises a round trip time of packets transmitted between the gateway and the provider.
PCT/US2012/040410 2011-06-03 2012-06-01 System and method for two way push notifications WO2012167040A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP12726325.9A EP2716010B1 (en) 2011-06-03 2012-06-01 System and method for two way push notifications
SG2013079116A SG194617A1 (en) 2011-06-03 2012-06-01 System and method for two way push notifications
JP2014513733A JP5756884B2 (en) 2011-06-03 2012-06-01 System and method for two-way push notification

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201161492882P 2011-06-03 2011-06-03
US61/492,882 2011-06-03
US13/224,572 US8526455B2 (en) 2011-06-03 2011-09-02 System and method for two way push notifications
US13/224,572 2011-09-02

Publications (1)

Publication Number Publication Date
WO2012167040A1 true WO2012167040A1 (en) 2012-12-06

Family

ID=46210470

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2012/040410 WO2012167040A1 (en) 2011-06-03 2012-06-01 System and method for two way push notifications

Country Status (6)

Country Link
US (1) US8526455B2 (en)
EP (1) EP2716010B1 (en)
JP (1) JP5756884B2 (en)
SG (1) SG194617A1 (en)
TW (1) TWI489823B (en)
WO (1) WO2012167040A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110208616A1 (en) * 2008-06-13 2011-08-25 Christopher Simon Gorman Content system
KR20130060226A (en) 2010-04-30 2013-06-07 나우 테크놀로지스 (아이피) 리미티드 Content management apparatus
US8930277B2 (en) 2010-04-30 2015-01-06 Now Technologies (Ip) Limited Content management apparatus
US9075960B2 (en) 2013-03-15 2015-07-07 Now Technologies (Ip) Limited Digital media content management apparatus and method
CN104123281B (en) * 2013-04-23 2018-03-20 炫客集团 The method and system suggested is provided using positional information
US9608890B1 (en) 2013-12-23 2017-03-28 Kabam, Inc. System and method for forwarding external notifications of events in a virtual space from a user device to a presentation control device
US9473912B2 (en) 2014-05-30 2016-10-18 Apple Inc. SMS proxying
US9654581B2 (en) 2014-05-30 2017-05-16 Apple Inc. Proxied push
US10171605B2 (en) 2016-07-15 2019-01-01 Apple Inc. Dual channel delivery
US11095740B2 (en) 2019-04-18 2021-08-17 Bank Of America Corporation Two-way push notification of activity events through a wireless device
CN113434764B (en) * 2021-06-29 2023-10-24 青岛海尔科技有限公司 Content pushing method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070124393A1 (en) * 2005-11-18 2007-05-31 Oracle International Corporation Presence based notifications
EP1983725A2 (en) * 2007-04-11 2008-10-22 Nec Corporation Information delivery system and information delivery method using the same
EP2073467A1 (en) * 2007-12-21 2009-06-24 Nokia Siemens Networks Oy Messaging mechanism
US20100227632A1 (en) 2009-03-09 2010-09-09 Apple Inc. Push notification service

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE382236T1 (en) * 2000-08-22 2008-01-15 Symbian Ltd METHOD AND APPARATUS FOR COMMUNICATING USER-RELATED INFORMATION USING A WIRELESS INFORMATION DEVICE
US6990534B2 (en) * 2001-07-20 2006-01-24 Flowfinity Wireless, Inc. Method for a proactive browser system for implementing background frame maintenance and asynchronous frame submissions
JP4045109B2 (en) * 2002-03-20 2008-02-13 株式会社日立コミュニケーションテクノロジー Content data distribution system and content data distribution method
EP1665711B8 (en) * 2003-09-17 2016-12-14 Google Technology Holdings LLC System and method for asynchronous wireless services using reverse service schema generation
US20070174246A1 (en) * 2006-01-25 2007-07-26 Sigurdsson Johann T Multiple client search method and system
US9088589B2 (en) * 2006-09-27 2015-07-21 Avaya Inc. Bidirectional user notification system for media quality control
US20110208616A1 (en) * 2008-06-13 2011-08-25 Christopher Simon Gorman Content system
US20110131177A1 (en) * 2009-12-01 2011-06-02 Sheth Niral S Method and system for providing rapid updating of services in an ims environment
US8438294B2 (en) * 2010-04-07 2013-05-07 Apple Inc. Application programming interface, system, and method for collaborative online applications
KR20120026859A (en) * 2010-09-10 2012-03-20 삼성전자주식회사 Method and system for providing social network service using mobile terminal
US20120278195A1 (en) * 2011-04-27 2012-11-01 Douglas Joseph Method for locating a provider and a provider locating system
US8942115B2 (en) * 2011-06-03 2015-01-27 Apple Inc. System and method for dynamic routing for push notifications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070124393A1 (en) * 2005-11-18 2007-05-31 Oracle International Corporation Presence based notifications
EP1983725A2 (en) * 2007-04-11 2008-10-22 Nec Corporation Information delivery system and information delivery method using the same
EP2073467A1 (en) * 2007-12-21 2009-06-24 Nokia Siemens Networks Oy Messaging mechanism
US20100227632A1 (en) 2009-03-09 2010-09-09 Apple Inc. Push notification service

Also Published As

Publication number Publication date
EP2716010B1 (en) 2017-05-24
JP5756884B2 (en) 2015-07-29
TWI489823B (en) 2015-06-21
SG194617A1 (en) 2013-12-30
JP2014524164A (en) 2014-09-18
US20120307655A1 (en) 2012-12-06
EP2716010A1 (en) 2014-04-09
TW201251384A (en) 2012-12-16
US8526455B2 (en) 2013-09-03

Similar Documents

Publication Publication Date Title
US8942115B2 (en) System and method for dynamic routing for push notifications
EP2716010B1 (en) System and method for two way push notifications
US10091005B2 (en) Push notification service
US9742859B2 (en) Network traffic management using port number redirection
EP2721787B1 (en) Principal-identity-domain based naming scheme for information centric networks
CN101088245B (en) Performing security functions on a message payload in a network element
US7430755B1 (en) Method and system for providing persistence in a secure network access
EP3150022B1 (en) Client applications communicating via a user tunnel
US8312143B2 (en) Remote access to resources
EP3453152B1 (en) Selectively altering references within encrypted pages using man in the middle
US20050148323A1 (en) System and method for supporting multiple certificate status providers on a mobile communication device
EP2332060B1 (en) Selective data forwarding storage
US20110246762A1 (en) System and Method for Exchanging Cryptographic Protocol Capabilities
US7613828B2 (en) Store-and-forward messaging channel for occasionally connected mobile applications
CN101394374A (en) Method for sharing customer information, distributed instant communication, system and device thereof
US20160255033A1 (en) Content based message delivery

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12726325

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2012726325

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2012726325

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2014513733

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE