Supercharge Your Innovation With Domain-Expert AI Agents!

Network-event processing method and device

A technology for network events and processing methods, applied in the field of network event processing methods and devices, capable of solving problems such as delays and reducing the speed of multi-core processing server event processing

Active Publication Date: 2014-01-08
BEIJING SOHU INTERNET INFORMATION SERVICE
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In the above process of processing network events, event triggering and event processing are two separate processes. The network card sends data to the cache area for storage through a processor; the user layer polls the storage status of the cache area through a processor , event triggering and event processing may come from different processor queues, resulting in a certain time interval between event triggering and event processing, causing event processing to be delayed, and reducing the event processing speed of the multi-core processing server

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Network-event processing method and device
  • Network-event processing method and device
  • Network-event processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] figure 1 It is a flow chart of Embodiment 1 of a network event processing method of the present invention, the method includes:

[0057] Step 101: When being called by the protocol stack, judge whether the listening socket is in the state of requesting connection, if yes, execute step 102, if not, execute step 106.

[0058] Each port of the server corresponds to a listening socket, and the listening socket is used for listening to at least one client connection request received by the port associated with it. When the server listening socket is initialized, set the sk_data_ready callback function of the server kernel system listening socket.

[0059] At least one client sends the connection request data to the network card of the server through a port, and the network card sends the connection request data to the protocol stack of the kernel system, and the protocol stack caches the connection request data and obtains the listening socket associated with the port , an...

Embodiment 2

[0082] figure 2 It is a flow chart of Embodiment 2 of a network event processing method of the present invention. Compared with Embodiment 1, Embodiment 2 also includes deletion processing of connection sockets. The method includes:

[0083] Step 201: When being called by the protocol stack, judge whether the listening socket is in the state of requesting connection, if yes, execute step 202; if not, execute step 210.

[0084] Step 202: Allocate a preset scheduling quota to the listening socket requesting the connection state.

[0085] The preset scheduling quota is the operation time for the data processing request of at least one client monitored by the listening socket to which it belongs.

[0086] Step 201 and step 202 are similar to the first embodiment, refer to the description of the first embodiment, and will not repeat them here.

[0087] Step 203: Determine whether it is within a preset scheduling quota of a listening socket, if yes, perform step 204, if not, perf...

Embodiment 3

[0107] image 3 It is a schematic structural diagram of Embodiment 3 of a network event processing device according to the present invention. Embodiment 3 is a device corresponding to the method described in Embodiment 1. The device includes:

[0108] The judging unit 301 is used for judging whether the listening socket is in the state of requesting connection when being called by the protocol stack.

[0109] The listening socket is used for listening to at least one client request received by the port associated with it.

[0110] The allocating unit 302 is configured to allocate a preset scheduling quota to the listening socket requesting the connection state.

[0111] The preset scheduling quota is the operation time for the data processing request of at least one client monitored by the listening socket to which it belongs.

[0112] The first creation unit 303 is configured to create a connection socket for communication with the client each time a data processing request...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a network-event processing method and device. The network-event processing method comprises the following steps of: when being called by a protocol stack, judging whether listening sockets are in a linking request state, distributing preset scheduling quota to the listening sockets in the linking request state; in one scheduling quota preset for one listening socket, when receiving a data transmission request of a client side every time, creating connecting sockets communicating with the client side; creating connecting objects communicating with the client side by the connecting sockets, transmitting data sent by the client side to the connecting objects by the connecting sockets, and returning obtained processing result data to the client side by the connecting sockets after the data is processed by the connecting objects. The network-event processing method and device provided by the invention have the advantages that triggering and processing of network events are realized on the same device, the activation and processing process is a continuous process when the triggering process is ended, so that the processing speed of the network events is accelerated, and the event processing speed of a multi-core processing server is increased.

Description

technical field [0001] The present invention relates to the technical field of communications, in particular to a network event processing method and device. Background technique [0002] With the development of Internet information transmission technology, more and more servers use multi-core processors to solve the problem of high concurrency of network events. The server handles network events. Currently, the commonly used method is user-mode polling processing, which uses the event processing layer of the operating system kernel to realize synchronous non-blocking I / O and multiplexing. . [0003] The user polling method to process network events is mainly divided into two steps: event triggering step: the network card in the server receives the network service request data sent by the client, and the network card sends the network service request data to the network protocol through a processor connected to it The data cache area of ​​the network protocol stack is cach...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/24
Inventor 李建国
Owner BEIJING SOHU INTERNET INFORMATION SERVICE
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More