Network state management
Abstract
A network device intercepts, from an application associated with a user space, a request message associated with obtaining information regarding a network state from a kernel. The network device directs the request message to a service daemon of the user space based on intercepting the request message, and determines, using the service daemon, network state information regarding the network state. The network device intercepts, from the service daemon, a response message associated with providing the network state information to the application, and directs an altered response message to the application based on intercepting the response message such that the altered response message identifies the kernel as a source of the response message and not the service daemon as the source of the response message.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method, comprising:
detecting, by a network device and from an application of the network device associated with a user space of the network device, a request message associated with obtaining information regarding a network state from a kernel of the network device,
wherein the request message is addressed to the kernel of the network device via an identifier, and
wherein the network state is not maintained in the kernel of the network device; and
readdressing, by the network device and based on detecting the request message associated with obtaining the information regarding the network state from the kernel of the network device, the request message to be addressed to a service daemon of the network device,
wherein the service daemon is associated with the user space of the network device, and
wherein the identifier is readdressed from an address in the kernel to an address associated with the service daemon.
2 . The method of claim 1 , wherein the network state is one or more of:
maintained in the user space of the network device, or distributed among multiple network devices,
wherein the multiple network devices include the network device.
3 . The method of claim 1 , wherein the request message is addressed to the kernel of the network device via a netlink socket identifier in a destination socket address of the request message.
4 . The method of claim 1 , wherein detecting the request message is based on an implementation of an intercept library.
5 . The method of claim 1 , wherein readdressing the request message comprises:
readdressing the request message using an intercept library to alter a netlink socket identifier.
6 . The method of claim 1 , further comprising:
causing the service daemon to obtain network state information from one or more other network devices.
7 . The method of claim 1 , wherein readdressing the request message comprises:
readdressing the request message based on altering a source identifier of the request message.
8 . A non-transitory computer-readable medium storing a set of instructions, the set of instructions comprising:
one or more instructions that, when executed by one or more processors of a network device, cause the network device to:
detect, from an application of the network device associated with a user space of the network device, a request message associated with obtaining information regarding a network state from a kernel of the network device,
wherein the request message is addressed to the kernel of the network device via an identifier, and
wherein the network state is not maintained in the kernel of the network device; and
readdress, based on detecting the request message associated with obtaining the information regarding the network state from the kernel of the network device, the request message to be addressed to a service daemon of the network device,
wherein the service daemon is associated with the user space of the network device, and
wherein the identifier is readdressed from an address in the kernel to an address associated with the service daemon.
9 . The non-transitory computer-readable medium of claim 8 , wherein the network state is one or more of:
maintained in the user space of the network device, or distributed among multiple network devices,
wherein the multiple network devices include the network device.
10 . The non-transitory computer-readable medium of claim 8 , wherein the request message is addressed to the kernel of the network device via a netlink socket identifier in a destination socket address of the request message.
11 . The non-transitory computer-readable medium of claim 8 , wherein the one or more instructions, that cause the network device to detect the request message, cause the network device to detect the request message based on an implementation of an intercept library.
12 . The non-transitory computer-readable medium of claim 8 , wherein the one or more instructions, that cause the network device to readdress the request message, cause the network device to:
readdress the request message using an intercept library to alter a netlink socket identifier.
13 . The non-transitory computer-readable medium of claim 8 , wherein the one or more instructions further cause the network device to:
cause the service daemon to obtain network state information from one or more other network devices.
14 . The non-transitory computer-readable medium of claim 8 , wherein the one or more instructions, that cause the network device to readdress the request message, cause the network device to:
readdress the request message based on altering a source identifier of the request message.
15 . A network device, comprising:
one or more memories; and one or more processors to:
detect, from an application of the network device associated with a user space of the network device, a request message associated with obtaining information regarding a network state from a kernel of the network device,
wherein the request message is addressed to the kernel of the network device via an identifier, and
wherein the network state is not maintained in the kernel of the network device; and
readdress, based on detecting the request message associated with obtaining the information regarding the network state from the kernel of the network device, the request message to be addressed to a service daemon of the network device,
wherein the service daemon is associated with the user space of the network device, and
wherein the identifier is readdressed from an address in the kernel to an address associated with the service daemon.
16 . The network device of claim 15 , wherein the network state is one or more of:
maintained in the user space of the network device, or distributed among multiple network devices,
wherein the multiple network devices include the network device.
17 . The network device of claim 15 , wherein the request message is addressed to the kernel of the network device via a netlink socket identifier in a destination socket address of the request message.
18 . The network device of claim 15 , wherein the one or more processors, when detecting the request message, are configured to detect the request message based on an implementation of an intercept library.
19 . The network device of claim 15 , wherein the one or more processors, when readdressing the request message, are configured to:
readdress the request message using an intercept library to alter a netlink socket identifier.
20 . The network device of claim 15 , wherein the one or more processors are further to:
cause the service daemon to obtain network state information from one or more other network devices.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.