CPC H04L 63/0236 (2013.01) [G06F 9/5016 (2013.01); H04L 63/20 (2013.01); H04L 67/1097 (2013.01)] | 20 Claims |
1. An electronic device comprising:
a communication module;
at least one processor; and
a memory electrically connected to the at least one processor,
wherein the memory stores instructions, that when executed, cause the at least one processor to perform a plurality of operations, the plurality of operations comprising:
detecting a connection for a network service corresponding to an application included in a user address space,
detecting that a low-latency guarantee service for a packet corresponding to the application is needed,
based on detection of the low-latency guarantee service, acquiring at least one packet filtering rule from the application,
determining whether a packet received through the communication module satisfies the at least one packet filtering rule,
transmitting the packet directly to the user address space allocated to the memory, bypassing a network stack included in a kernel address space allocated to the memory, when the packet satisfies the at least one packet filtering rule, and
transmitting the packet to the user address space through the network stack included in the kernel address space allocated to the memory when the packet does not satisfy the at least one packet filtering rule.
|