摘要:
The state of the communication socket is maintained at a network device and communicated to a device driver for the network device. The device driver can send messages to an interface program in application space, which stores the state information in dedicated application space memory. In response to a query from a peer program requesting the state of the communication socket, the interface program retrieves the state information from the dedicated memory. Because the state information and the interface program are located in application space, the number of kernel transitions required to determine the socket state is reduced, improving communication efficiency.
摘要:
A method of managing communication of messages via a network includes storing messages received from an application in a queue at a transport layer. The transport layer monitors the amount of information stored at the queue. When the amount of information exceeds a threshold amount, the transport layer provides a warning message to the application. In an embodiment, the transport layer provides the warning message before the queue assigned to store messages from the application is full, so that the application can continue to provide messages to the transport layer after the warning message. The application can take appropriate action in response to the message, such as reducing the amount or frequency of information provided at the transport layer, thereby reducing the likelihood of a communication bottleneck at the transport layer.
摘要:
An interceptor program at a computer device intercepts certain externally initiated communications intended for the peer program before those communications are placed on the network stack. Further, the interceptor program stores 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.