The present disclosure relates generally to data communications, and more specifically to a system and method for managing received data at a computer device.
In recent years, several applications have been developed that rely on timely and effective interactions between two or more elements of a communication network. For example, in the sphere of online gaming, hundreds or thousands of game clients executing on user machines may be interacting with a central server executing on a networked computer. With such an architecture, a game server program is frequently tasked with providing content to clients, receiving client requests, processing those requests, responding to those requests, and synchronizing those requests with the requests of other clients. One factor that can affect the server programs ability to timely respond to client requests is the speed at which the server program can be notified that it has received data from the client, and the speed with which the data can be provided to the server program. One conventional method is for the server program to periodically poll the network stack of the server operating system to determine if data has been received. However, this method can take an undesirable amount of time, resulting in an undesirable delay in the server program responding to client requests. Furthermore, the speed at which a client program can be notified that it has received data from the server, and the speed with which the data can be provided to the server program can also cause undesirable delay. Similar problems can occur in peer-to-peer networks, resulting in undesirable delays in communications between programs at computer devices in the peer-to-peer network.
In the gaming context, this can result in distracting events such as game freezes, stuttering, warping, etc. As such, a need exists for an improved processing system and method that manages received data.
It will be appreciated that for simplicity and clarity of illustration, elements illustrated in the Figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements are exaggerated relative to other elements. Embodiments incorporating teachings of the present disclosure are shown and described with respect to the drawings presented herein, in which:
Embodiments discussed below describe, in part, distributed computing solutions that manage all or part of a communicative interaction between network elements. In this context, a communicative interaction may be one or more of: intending to send information, sending information, requesting information, receiving information, or receiving a request for information. As such, a communicative interaction could be one directional, bidirectional, or multi-directional. In some circumstances, a communicative interaction could be relatively complex and involve two or more network elements. For example, a communicative interaction may be “a conversation” or series of related communications between a client and a server or computer devices in a peer-to-peer network—each network element sending and receiving information to and from the other. Whatever form the communicative interaction takes, it should be noted that the network elements involved need not take any specific form. A network element may be a node, a piece of hardware, software, firmware, middleware, some other component of a computing system, and/or some combination thereof.
Though much of the following discussion focuses on specific problems associated with online gaming, the teachings disclosed herein may have broader applicability. As such, discussions relating to gaming issues like lag, game freezes, stuttering, warping, etc. are not intended to limit the scope of the disclosure. In addition, though the specific embodiment described in connection with
From a high level, a system incorporating teachings of the present disclosure may include a processor module that monitors communications between a computer programs at different computer devices in a network, such as a client program resident on a user machine and a server program resident on a computing device remote from the user, or a program at one device in a peer-to-peer network communicating with a program at another device in the network. In the case of a server/client architecture, the server program may be part of a two-tier architecture that is deployed in a hub and spoke or centralized server configuration. The server program may also be utilized in a less centralized model. For example, the server program may be implemented as one of two or more client programs that perform server-like functionality. For purposes of discussion herein, a program communicating with another program in the network is referred to herein as a peer program, and the device executing the peer program as a peer.
However the peer program is implemented, an interceptor program at the peer processor module may be utilized to intercept certain externally initiated communications intended for the peer program before those communications are placed on the network stack. Further, the interceptor program can be configured to store the received communications in a buffer in application space, rather than kernel space. The interceptor program can then intercept polling requests from the peer program inquiring if data for the peer program is located at the network stack, and provide the buffered communications to the peer program in response. Because the communications are stored in application space, rather than kernel space, the data can be rapidly provided to the peer program, improving the speed with which the program can respond to the client communications.
Alternatively, a device in the network or at the peer can monitor communications from another program in the network and determine when a communication targeted for the peer program has been received. In response, the device can initiate an interrupt at the peer. The interrupt handler for the interrupt accesses the interceptor program, which notifies the peer program that a communication for the peer program has been received, and provide the data to either the peer program or the interceptor program if the peer program is not yet ready for the data. As noted above, if the interceptor program is used to hold that data, it can respond with the data in user space rather than kernel space when the peer program is ready. Both methods reduce the latency in providing a received client communication to the peer program.
As indicated above, this application claims priority to U.S. Provisional Patent No. 60/807,530 filed on Jul. 17, 2006. The provisional application describes in part specific implementations of the teachings disclosed herein and is not intended to limit the scope of the claims attached below. The entirety of the provisional application is incorporated herein by reference.
Referring to
In operation, the peer program 107 and the host program 103 may communicate with each other via the network 106, and in particular via the network device 104. In one embodiment, the peer program 107 and host program 103 may work together to provide a user of computing device 108 with an online experience. In operation, peer program 107 may receive content from computer device 102 and may occasionally send requests to host program 103 in an effort to affect the content being provided or to modify data at the host program 103. As shown,
In operation, the peer program 107 may send communications or messages to the host program 103 to update information, request that tasks be performed, and the like. For example, the host program 103 can be an online banking application and the peer program 107 can be a web browser. The peer program 107 can send requests to the host program 103 to view account information, conduct transactions, and the like. In response, the host program 103 can determine if the requested tasks are authorized and, if so, execute the tasks. In another embodiment, the host program 103 is a server game program and the peer program 107 is a peer-side game program that provides a user with an online-gaming experience. In another embodiment, the host program 103 and the peer program 107 work together to provide a game simulation experience to two or more players at each computer device 102 and 106.
To communicate with the host program 103, the peer program 107 sends messages via the network 106, and in particular to the network device 104. Each message includes information, such as address information, indicating the location of the computer device 102. Each message also includes port information, indicating the target port of the computer device 102 with which the message is associated.
The network device 104 delivers messages from network to the computer device 102. In a particular embodiment, the computer device 102 also includes an interceptor program 105 that monitors message from the network device 104. If a message is not targeted to the host program 103, the interceptor program 105 provides the message to a network stack at the computer device 102 or to some other program to which the data is targeted. The network stack can subsequently be accessed by other programs (not shown) executing at the computer device 102 to retrieve the message, or the data is delivered to a different program (not shown). If the message is targeted for the host program 103 (for example, if the port targeted by the message is associated with the host program 103), the interceptor program 105 intercepts the message and stores it in a buffer for the host program 103. The buffer is “logically close” to the host program 103 so that it can be quickly accessed. Accordingly, when the host program 103 inquires (such as through a polling request) whether a message has been sent from a peer program 107, the interceptor program 105 receives the inquiry and provides a response more rapidly than the message could be retrieved from the network stack. Later, or at the same time as the polling request, if the data is requested by the host program 103, the data is delivered to the host program 103 more rapidly than the message could be retrieved from the network stack. Accordingly, the interceptor program 105 improves the communication efficiency between the peer program 107 and the host program 103. This reduces the likelihood of latency problems and provides for an improved user experience. Further, because the interceptor program 105 is located “between” the peer program 107 and the host program 103, it can be implemented without redesign of the host program 103 or the peer program 107. Accordingly, deployment of the interceptor program 105 is simplified. Additionally, in one embodiment the host program 103 is designed to frequently poll the network stack to check if a peer program 107 has transmitted data intended for the host program 103. These polling requests can cause additional processing power to be consumed slowing overall operation. Because the interceptor program 105 can hold buffers and data ready information logically close to the host program 103 and provide the polling answer more quickly, processing power at the computer device 102 is conserved.
In an alternative embodiment, some or all of the interceptor program 105 could reside in the network device 104. In this case the interceptor program 105 could use buffers which reside in the network device 104 to conserve the amount of buffer space needed in the computer device 102. The portion of the interceptor program 105 described above which has knowledge of if there is data available or not could still reside in user space, therefore giving similar improvements in polling. Buffered data could reside in the network device 104, and be transferred directly to the host program 103 when the data was requested by the host program 103. This method conserves memory usage in the computer device 102 and also conserves processing power when the host program 103 is polling for information if data is available or not.
In another alternative embodiment, the network device 104 provides an interrupt to the computer device 102 when a message targeted to the host program 103 is received. In response to the interrupt, the computer device 102 executes the interceptor program 105, which receives the message from the network device 104. The host program 103 may have outstanding receive commands and so would be immediately notified that the message has been received. Alternatively, the host program may poll or post a receive at some later time, at which point the data would be delivered as described above. In response, the host program 103 retrieves the message from the interceptor program 105.
Referring to
As illustrated, the application space 220 includes a host program 203, a program 207, and a temporary buffer 225. The kernel space 235 includes a network stack 235. The computer device 202 also includes an interceptor program 205 that, as illustrated, resides in both kernel space 235 and application space 220.
In operation, the network stack 235 is configured to store messages and other information received from the network 106. The network stack 235 is accessed by the kernel in response to requests from applications executing at the computer device 202. The kernel can determine if the network stack stores data for the requesting application and, if so, provide the data. Because the kernel typically executes a number of tasks in addition to accessing the network stack 235, accessing the network stack typically takes more time than an access to data stored in the application space 220.
The interceptor program 205 monitors messages received from the network 106. If a message is not targeted to the host program 203, the interceptor program 205 provides the message to the network stack 235 or to the program it is directed to, so that it is available for access by other programs at the computer device 202, such as the program 207. If the received message is targeted to the host program 203, the interceptor program stores the message in the temporary buffer 225 or an indication that the data is ready in the temporary buffer 225. In an alternative implementation a temporary data buffer is stored in kernel space 230 and only the indication that data is ready is stored in the temporary buffer 225. In yet another implementation, the indication that data is ready is stored in the temporary buffer 225, but the data itself is given to the network stack 235.
The interceptor program 205 also monitors communications between the host program 203 and the kernel to determine if the host program 203 is attempting to access the network stack 235. For example, the host program 203 may periodically poll the network stack 235 to determine if a message targeted to the program has been received from the network 106. The polling request to check the network stack 235 can be a poll request, a blocking select request, a non-blocking select request, a blocking receive request, a non-blocking receive request, or an asynchronous receive request, or any other such request as is used to determine if data is available. If the interceptor program 205 detects a polling request from the host program 203, it intercepts the request and determines if a message for the host program 203 is stored in the temporary buffer 225 or if the temporary buffer 225 indicates that data is ready to receive. If no message is stored in the temporary buffer 225 or there is no indication that data is ready to be received, the interceptor program 205 notifies the host program 203. If a message is stored in the temporary buffer 225, the interceptor program 205 either notifies the host program or when asked, provides the data to the host program 203. Because the temporary buffer 225 is located in application space 220, the interceptor program 205 is able to indicate whether or not there is data ready for the host program more quickly than it would be able to from the network stack 235. When the temporary buffer 225 also holds the data and is located in application space 220, the interceptor program 205 is able to provide the stored message more quickly than it would be provided by the kernel from the network stack 235.
Referring to
In operation, the network device 304 receives messages from the peer program 107 via the network 106. The interceptor program 350 monitors messages received from the network 106 and determines which of those messages are targeted to the host program 303. The interceptor program 350 provides messages not targeted to the host program 303 to the network stack 335 of the computer device 302 or to a different program (not shown). If a message is targeted to the host program 303, the network device 304 can send an interrupt indicator to the computer device 302. In response to the interrupt indicator, the computer device 302 invokes the interrupt handler 340, which stores an indication that the message has been received in the temporary buffer 325. The message itself can be stored in the temporary buffer 325, in another buffer (not shown) in application space 320, in kernel space 330, or in the network stack 335. In an alternative embodiment, the temporary buffer can be located at the network device 304.
In a particular embodiment, the interceptor program 305 accesses the temporary buffer 325 to determine that a message associated with the host program 303 has been received and notifies the host program 303 that the message is available. Further, the interceptor program can retrieve the message and provide it to the host program 303. Because the indication that the message has been received is not placed on the network stack 335, notification of the received message can be provided more quickly to the host program 303, thereby improving communication efficiency between the peer program 107 and the host program 103.
In an alternative embodiment, the interceptor program 305 intercepts polling requests from the host program 303 that are targeted to the network stack. In response to intercepting the polling request, the interceptor program 305 determines, based on the contents of the temporary buffer 325, whether a message targeted to the host program 303 has been received. If no message has been received, the interceptor program 305 responds to the polling request to indicate no message is available. If a message has been received, the interceptor program 305 retrieves the message (from the temporary buffer 325, from another buffer in application space, from a buffer in kernel space 330, or from the network stack 335) and provides the message to the host program 303. Because the interceptor program 305 does not access the kernel space 330 in order to determine whether a message is available, it can respond to poll requests from the host program 303 more quickly than if the requests were to proceed directly to the network stack 335.
Referring to
In operation, the network device 404 receives messages from the peer program 107 via the network 106. The interceptor program 450 monitors messages received from the network 106 and determines which of those messages are targeted to the host program 403. The interceptor program 450 provides messages not targeted to the host program 403 to the network stack 435 of the computer device 402 or to a different program (not shown). If a message is targeted to the host program 403, the interceptor program 405 can store the message or an indication that there is a new message available in the temporary buffer 425.
The interceptor program 405 monitors communications between the host program 403 and the kernel to determine if the host program 403 is attempting to access the network stack 435. For example, the host program 403 may periodically poll the network stack 435 to determine if a message targeted to the program has been received from the network 106. If the interceptor program 405 detects a polling request from the host program 403, it intercepts the request and determines if a message for the host program 403 is stored in the temporary buffer 425 or if the temporary buffer indicates that data is ready to receive. If no message is stored there or there is no indication that data is ready to be received, the interceptor program 405 notifies the host program 403. If a message is stored in the temporary buffer 425, the interceptor program 405 either notifies the host program or when asked, provides the data to the host program 403. Because the interceptor program 405 can determine whether a message is available for the host program 403 without accessing the network stack, it can respond to polling requests quickly, thereby improving the performance of the host program 403.
Referring to
The memory 560 stores an interceptor program 550 and an operating system 507. The interceptor program 550 and the operating system 507 include instructions to manipulate the processor 570 in order to implement one or more of the methods described herein. Other programs, such as applications, can also be stored in the memory 560 to manipulate the processor in order to implement the described methods. It will be appreciated that the computer device 102 could be configured similarly to the network device 504, including a memory to store one or more programs to manipulate a processor to implement one or more of the methods described herein.
The above disclosed subject matter is to be considered illustrative, and not restrictive, and the appended claims are intended to cover all such modifications, enhancements, and other embodiments that fall within the true spirit and scope of the present invention. Thus, to the maximum extent allowed by law, the scope of the present invention is to be determined by the broadest permissible interpretation of the following claims and their equivalents, and shall not be restricted or limited by the foregoing detailed description.
This application claims priority to U.S. Provisional Patent Application No. 60/807,530, entitled “METHOD AND SYSTEM FOR PROACTIVE DATA NOTIFICATION AND RECEPTION,” filed on Jul. 17, 2006, which is assigned to the current assignee hereof and are incorporated herein by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
5353412 | Douglas et al. | Oct 1994 | A |
5355371 | Auerbach et al. | Oct 1994 | A |
5675736 | Brady et al. | Oct 1997 | A |
5740370 | Battersby et al. | Apr 1998 | A |
5771287 | Gilley et al. | Jun 1998 | A |
5828903 | Sethuram et al. | Oct 1998 | A |
5890963 | Yen | Apr 1999 | A |
6015348 | Lambright et al. | Jan 2000 | A |
6240517 | Nishioka | May 2001 | B1 |
6615218 | Mandal et al. | Sep 2003 | B2 |
6625661 | Baldwin, Jr. et al. | Sep 2003 | B1 |
6675218 | Mahler et al. | Jan 2004 | B1 |
6745236 | Hawkins et al. | Jun 2004 | B1 |
6763371 | Jandel | Jul 2004 | B1 |
6810528 | Chatani | Oct 2004 | B1 |
6908389 | Puskala | Jun 2005 | B1 |
6918042 | Debry | Jul 2005 | B1 |
6941353 | Lane | Sep 2005 | B1 |
6961852 | Craft | Nov 2005 | B2 |
6988196 | Cromer et al. | Jan 2006 | B2 |
7000115 | Lewis et al. | Feb 2006 | B2 |
7003548 | Barck et al. | Feb 2006 | B1 |
7046680 | McDysan et al. | May 2006 | B1 |
7065756 | Barsness et al. | Jun 2006 | B2 |
7139780 | Lee et al. | Nov 2006 | B2 |
7209449 | Tang et al. | Apr 2007 | B2 |
7249109 | Silverbrook et al. | Jul 2007 | B1 |
7274702 | Toutant et al. | Sep 2007 | B2 |
20020078223 | Baldonado et al. | Jun 2002 | A1 |
20020180583 | Paatero et al. | Dec 2002 | A1 |
20020198932 | Wagner | Dec 2002 | A1 |
20030177187 | Levine et al. | Sep 2003 | A1 |
20030191857 | Terrell et al. | Oct 2003 | A1 |
20040068580 | Jo et al. | Apr 2004 | A1 |
20040230801 | Sueyoshi et al. | Nov 2004 | A1 |
20040246905 | Dunagan et al. | Dec 2004 | A1 |
20050107161 | Fujimoto et al. | May 2005 | A1 |
20050188073 | Nakamichi et al. | Aug 2005 | A1 |
20060015618 | Freimuth et al. | Jan 2006 | A1 |
20060075119 | Hussain et al. | Apr 2006 | A1 |
20060085557 | Ishijima | Apr 2006 | A1 |
20060112136 | Shankar et al. | May 2006 | A1 |
20060251109 | Muller et al. | Nov 2006 | A1 |
20060253605 | Sundarrajan et al. | Nov 2006 | A1 |
20060259579 | Beverly | Nov 2006 | A1 |
20060259632 | Crawford et al. | Nov 2006 | A1 |
20060294234 | Bakke et al. | Dec 2006 | A1 |
20070005986 | Bernard et al. | Jan 2007 | A1 |
20070060373 | Beverly | Mar 2007 | A1 |
20070086343 | Kujawa et al. | Apr 2007 | A1 |
20070094643 | Anderson | Apr 2007 | A1 |
20070101408 | Nakhjiri | May 2007 | A1 |
20070162639 | Chu et al. | Jul 2007 | A1 |
20070189517 | Koseki et al. | Aug 2007 | A1 |
20070226498 | Walmsley et al. | Sep 2007 | A1 |
20070297405 | He | Dec 2007 | A1 |
20070298879 | Kobayashi et al. | Dec 2007 | A1 |
20080009337 | Jackson et al. | Jan 2008 | A1 |
20080009352 | Aoyama et al. | Jan 2008 | A1 |
20080010371 | Yamamoto et al. | Jan 2008 | A1 |
20080013551 | Scholl | Jan 2008 | A1 |
20080016236 | Beverly et al. | Jan 2008 | A1 |
20080022389 | Calcev et al. | Jan 2008 | A1 |
20080039208 | Abrink et al. | Feb 2008 | A1 |
20080045285 | Fujito | Feb 2008 | A1 |
20080049621 | McGuire et al. | Feb 2008 | A1 |
Number | Date | Country |
---|---|---|
10218795 | Nov 2003 | DE |
10314451 | Dec 1998 | JP |
2001246147 | Sep 2001 | JP |
2004001615 | Dec 2003 | WO |
Entry |
---|
PCT Search Report, Mar. 3. 2008, 10 pages. |
EPO Search Report for Application No. 07812957.4 dated Feb. 9, 2011, 7 pages. |
“Korean Patent Application No. 2009-7003187, KIPO Notice of Grounds for Rejection”, Oct. 25, 2013 , 8 pages. |
Number | Date | Country | |
---|---|---|---|
20080016236 A1 | Jan 2008 | US |
Number | Date | Country | |
---|---|---|---|
60807530 | Jul 2006 | US |