Method for network connection with high availability and electronic device using same
eBPF modules in load balancers synchronize and monitor packet connection information, addressing the challenge of maintaining continuous data processing in high-availability networks by ensuring efficient traffic management and reduced resource consumption.
Patent Information
- Application Number
- PCT/KR2023/007664
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-24
- Filing Date
- 2023-06-02
- Publication Date
- 2024-11-28
AI Technical Summary
In high-availability network environments, existing systems face challenges in maintaining continuous data processing without loss across various devices, particularly in synchronizing packet connection information and monitoring connection states efficiently.
The implementation of eBPF (extended Berkeley Packet Filter) modules in load balancers to synchronize packet connection information, monitor connection states, and maintain high availability by controlling load balancer operations between cloud and external networks, ensuring seamless traffic management and reduced resource consumption.
This approach enables a high-availability network system that processes various data types without loss, maintaining connection states and optimizing traffic distribution across load balancers, ensuring continuous operation even during maintenance or failures.
Smart Images

Figure KR2023007664_28112024_PF_FP_ABST
Abstract
Description
High-availability network connection method and electronic device using the same
[0001] Various embodiments of the present invention relate to a high-availability network connection method and an electronic device using the same.
[0002] In today's hotly debated Fourth Industrial Revolution, a diverse range of data can be hyper-connected across a variety of devices. In this environment, the market for innovative, convergent new products and service solutions that reflect user needs can expand. This, in turn, necessitates the construction of a network infrastructure capable of processing diverse data without loss.
[0003] Using eBPF, packet connection information between load balancers can be synchronized, the status of each connection can be monitored, and the connection can be maintained. Furthermore, the cloud's master node can control load balancers and packet connections between the cloud and external networks. This allows for the construction of a highly available network system.
[0004] According to various embodiments, a method of an electronic device may include: receiving, in a first eBPF module, new untracked traffic from a client; adding, in the first eBPF module, an entry corresponding to the new traffic to a ConnTrack map in response to the receiving of the new traffic; reporting, in the first eBPF module, the addition of the entry to a first synchronization module; and monitoring, in the first synchronization module, a first connection corresponding to the new traffic.
[0005] According to various embodiments, a method of an external electronic device may include: receiving first connection information from a first synchronization module of an electronic device within a cluster through a second synchronization module of the external electronic device; requesting a second eBPF module of the external electronic device to update the first connection information in a Conntrack map of the external electronic device; and updating the first connection information in the Conntrack map by the second eBPF module.
[0006] According to various embodiments, a cluster system including a client, an electronic device, an external electronic device, and a cloud server may include: an operation in which the electronic device receives new, untracked traffic from the client; an operation in which the electronic device adds an entry corresponding to the new traffic; an operation in which the electronic device transmits connection information corresponding to the entry to an external electronic device; and an operation in which the external electronic device stores the connection information and synchronizes it with the electronic device.
[0007] According to various embodiments of the present invention, a load balancer can use eBPF to synchronize packet connection information between load balancers, monitor the status of each connection, and utilize it to maintain the connection status. Furthermore, the cloud's master node can control the load balancer and packet connections between the cloud and external networks. This allows for the construction of a highly available network system.
[0008] FIG. 1 is a block diagram of an electronic device within a network environment according to various embodiments of the present invention.
[0009] FIG. 2 is a diagram of a high-availability network system according to various embodiments of the present invention.
[0010] FIG. 3 is a schematic diagram illustrating a load balancer according to various embodiments of the present invention.
[0011] FIG. 4 is a diagram illustrating a method for tracking new connections of a load balancer according to various embodiments of the present invention.
[0012] FIG. 5 is a diagram illustrating a method for a load balancer to synchronize with another load balancer according to various embodiments of the present invention.
[0013] FIG. 6 is a diagram schematically illustrating the traffic flow of a first load balancer according to various embodiments of the present invention.
[0014] FIG. 7 is a diagram schematically illustrating the traffic flow of a second load balancer according to various embodiments of the present invention.
[0015] FIG. 8 is a diagram illustrating a high-availability network connection of a network system according to various embodiments of the present invention.
[0016] Figure 9 is a diagram showing a conventional network system.
[0017] FIG. 10 is a diagram illustrating a network system using eBPF according to various embodiments of the present invention.
[0018] FIG. 1 is a block diagram of an electronic device (101) within a network environment (100) according to various embodiments. Referring to FIG. 1, in the network environment (100), the electronic device (101) may communicate with the electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with the electronic device (104) or a server (108) via a second network (199) (e.g., a long-range wireless communication network). According to one embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to one embodiment, the electronic device (101) may include a processor (120), a memory (130), an input device (150), an audio output device (155), a display device (160), an audio module (170), a sensor module (176), an interface (177), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197). In some embodiments, the electronic device (101) may omit at least one of these components (e.g., the display device (160) or the camera module (180)), or may have one or more other components added. In some embodiments, some of these components may be implemented as a single integrated circuit. For example, a sensor module (176) (e.g., a fingerprint sensor, an iris sensor, or an ambient light sensor) may be implemented embedded in a display device (160) (e.g., a display).
[0019] The processor (120) may control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) by executing, for example, software (e.g., a program (140)), and may perform various data processing or calculations. According to one embodiment, as at least a part of the data processing or calculation, the processor (120) may load a command or data received from another component (e.g., a sensor module (176) or a communication module (190)) into a volatile memory (132), process the command or data stored in the volatile memory (132), and store the resulting data in a non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor), and a secondary processor (123) (e.g., a graphics processing unit, an image signal processor, a sensor hub processor, or a communication processor) that may operate independently or together therewith. Additionally or alternatively, the auxiliary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a given function. The auxiliary processor (123) may be implemented separately from the main processor (121) or as part of it.
[0020] The auxiliary processor (123) may control at least a portion of functions or states associated with at least one component (e.g., a display device (160), a sensor module (176), or a communication module (190)) of the electronic device (101), for example, on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. In one embodiment, the auxiliary processor (123) (e.g., an image signal processor or a communication processor) may be implemented as a part of another functionally related component (e.g., a camera module (180) or a communication module (190)).
[0021] The memory (130) can store various data used by at least one component (e.g., a processor (120) or a sensor module (176)) of the electronic device (101). The data can include, for example, software (e.g., a program (140)) and input data or output data for commands related thereto. The memory (130) can include a volatile memory (132) or a non-volatile memory (134).
[0022] The program (140) may be stored as software in the memory (130) and may include, for example, an operating system (142), middleware (144), or an application (146).
[0023] The input device (150) can receive commands or data to be used in a component of the electronic device (101) (e.g., a processor (120)) from an external source (e.g., a user) of the electronic device (101). The input device (150) can include, for example, a microphone, a mouse, or a keyboard.
[0024] The audio output device (155) can output audio signals to the outside of the electronic device (101). The audio output device (155) can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as multimedia playback or recording playback, and the receiver can be used to receive incoming calls. According to one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.
[0025] A display device (160) can visually provide information to an external party (e.g., a user) of an electronic device (101). The display device (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling the device. According to one embodiment, the display device (160) may include touch circuitry configured to detect a touch, or a sensor circuit (e.g., a pressure sensor) configured to measure the intensity of a force generated by the touch.
[0026] The audio module (170) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through an input device (150), or output sound through an audio output device (155), or an external electronic device (e.g., an electronic device (102)) (e.g., a speaker or headphone)) directly or wirelessly connected to the electronic device (101).
[0027] The sensor module (176) can detect the operating status (e.g., power or temperature) of the electronic device (101) or the external environmental status (e.g., user status) and generate an electrical signal or data value corresponding to the detected status. According to one embodiment, the sensor module (176) can include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.
[0028] The interface (177) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (101) to an external electronic device (e.g., the electronic device (102)). In one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
[0029] The connection terminal (178) may include a connector through which the electronic device (101) may be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0030] A haptic module (179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. According to one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
[0031] The camera module (180) can capture still images and videos. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.
[0032] The power management module (188) can manage the power supplied to the electronic device (101). According to one embodiment, the power management module (388) can be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
[0033] A battery (189) may power at least one component of the electronic device (101). In one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0034] The communication module (190) may support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may operate independently from the processor (120) (e.g., application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module (194) (e.g., a local area network (LAN) communication module, or a power line communication module). Any of these communication modules may communicate with an external electronic device via a first network (198) (e.g., a short-range communication network such as Bluetooth, Wi-Fi direct, or infrared data association (IrDA)) or a second network (199) (e.g., a long-range communication network such as a cellular network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules may be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) may use subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (196) to identify and authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199).
[0035] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). According to one embodiment, the antenna module (197) can include one or more antennas, from which at least one antenna suitable for a communication method used in a communication network, such as the first network 198 or the second network 199, can be selected, for example, by the communication module (190). A signal or power can be transmitted or received between the communication module (190) and the external electronic device via the at least one selected antenna.
[0036] At least some of the above components can be interconnected and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)).
[0037] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) via a server (108) connected to a second network (199). Each of the electronic devices (102, 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations executed in the electronic device (101) may be executed in one or more of the external electronic devices (102, 104, or 108). For example, when the electronic device (101) is to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device (101) may, instead of or in addition to executing the function or service itself, request one or more external electronic devices to perform the function or at least a part of the service. One or more external electronic devices that receive the request may execute at least a portion of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may process the result as is or additionally and provide it as at least a portion of a response to the request. For this purpose, cloud computing, distributed computing, or client-server computing technologies may be utilized, for example.
[0038] Figure 2 is a block diagram (200) of a program (140) according to various embodiments. According to one embodiment, the program (140) may include an operating system (142), middleware (144), or an application (146) executable on the operating system (142) for controlling one or more resources of the electronic device (101). The operating system (142) may be, for example, Android. TM , iOS TM , Windows TM , Symbian TM, Tizen TM , or Bada TM At least some of the programs (140) may be preloaded onto the electronic device (101), for example, at the time of manufacture, or may be downloaded or updated from an external electronic device (e.g., electronic device (102 or 104), or server (108)) in the user's usage environment.
[0039] The operating system (142) can control (e.g., allocate or reclaim) system resources (e.g., processes, memory, or power) of the electronic device (101). The operating system (142) may additionally or alternatively include one or more driver programs for driving other hardware devices of the electronic device (101), for example, an input device (150), an audio output device (155), a display device (160), an audio module (170), a sensor module (176), an interface (177), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197).
[0040] The middleware (144) can provide various functions to the application (146) so that the application (146) can use functions or information provided by one or more resources of the electronic device (101). The middleware (144) can include, for example, an application manager (201), a window manager (203), a multimedia manager (205), a resource manager (207), a power manager (209), a database manager (211), a package manager (213), a connectivity manager (215), a notification manager (217), a location manager (219), a graphics manager (221), a security manager (223), a call manager (225), or a voice recognition manager (227). The application manager (201) can manage, for example, the life cycle of the application (146). The window manager (203) can manage, for example, GUI resources used on the screen. The multimedia manager (205) can, for example, identify the format required for playing media files and perform encoding or decoding of the media files using a codec suitable for the format. The resource manager (207) can, for example, manage the source code of the application (146) or the space of the memory. The power manager (209) can, for example, manage the capacity, temperature, or power of the battery and, using the information among these, determine or provide power information required for the operation of the electronic device (101). According to one embodiment, the power manager (209) can be linked with the basic input / output system (BIOS).
[0041] The database manager (211) can, for example, create, search, or modify a database to be used in the application (146). The package manager (213) can, for example, manage the installation or update of an application distributed in the form of a package file. The connectivity manager (215) can, for example, manage a wireless or wired connection between the electronic device (101) and an external electronic device. The notification manager (217) can, for example, provide a function for notifying a user of an event that has occurred (e.g., a call, a message, or an alarm). The location manager (219) can, for example, manage location information of the electronic device (101). The graphics manager (221) can, for example, manage graphic effects to be provided to the user or a user interface related thereto. The security manager (223) can, for example, provide system security or user authentication. The telephony manager (225) can manage, for example, the voice call or video call function of the electronic device (101). The voice recognition manager (227) can, for example, transmit the user's voice data to the server (108) and receive a command corresponding to a function to be performed in the electronic device (101) based on the voice data or text data converted based on the voice data. According to one embodiment, the middleware (244) can dynamically delete some of the existing components or add new components. According to one embodiment, at least a part of the middleware (144) can be included as a part of the operating system (142) or implemented as software separate from the operating system (142).
[0042] The application (146) may include, for example, a home (251), a dialer (253), an SMS / MMS (255), an instant message (IM) (257), a browser (259), a camera (261), an alarm (263), a contact (265), a voice recognition (267), an email (269), a calendar (271), a media player (273), an album (275), a watch (277), a health (279) (e.g., measuring the amount of exercise or blood sugar, etc.), or an environmental information (281) (e.g., information on barometric pressure, humidity, or temperature) application. According to one embodiment, the application (146) may further include an information exchange application (not shown) that can support information exchange between the electronic device (101) and an external electronic device. The information exchange application may include, for example, a notification relay application for transmitting designated information (e.g., a call, a message, or an alarm) to an external electronic device, or a device management application for managing the external electronic device. The notification relay application may transmit, for example, notification information corresponding to an event (e.g., reception of a mail) generated in another application (e.g., an email application (269)) of the electronic device (101) to the external electronic device, or receive notification information from the external electronic device and provide it to the user of the electronic device (101). The device management application may control, for example, the power (e.g., turn-on or turn-off) or the function (e.g., brightness, resolution, or focus of the display device (160) or the camera module (180)) of the external electronic device or some component thereof (e.g., the display device (160) or the camera module (180)) that communicates with the electronic device (101). The device management application may additionally or alternatively support installation, deletion, or updating of applications running on external electronic devices.
[0043] Electronic devices according to the various embodiments disclosed in this document may take various forms. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to the embodiments disclosed in this document are not limited to the aforementioned devices.
[0044] The various embodiments of this document and the terminology used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the context clearly indicates otherwise. In this document, phrases such as "A or B," "at least one of A and B," "at least one of A or B," "A, B, or C," "at least one of A, B, and C," and "at least one of A, B, or C" each include all possible combinations of the items listed together in the corresponding phrase. Terms such as "first," "second," or "first" or "second" may be used simply to distinguish the corresponding component from other corresponding components and do not limit the corresponding components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as being “coupled” or “connected” to another component (e.g., a second component), with or without the terms “functionally” or “communicatively,” it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.
[0045] The term "module" as used herein may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integral component, or a minimum unit or part of such a component that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).
[0046] Various embodiments of the present document may be implemented as software (e.g., a program (140)) including one or more commands stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) readable by a machine (e.g., an electronic device (101)). For example, a processor (e.g., a processor (120)) of the machine (e.g., an electronic device (101)) may call at least one command among the one or more commands stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one command called. The one or more commands may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.
[0047] According to one embodiment, the method according to the various embodiments disclosed in the present document may be provided as included in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., compact disc read only memory (CD-ROM)), or may be distributed online (e.g., downloaded or uploaded) via an application store (e.g., Play Store™) or directly between two user devices (e.g., smartphones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.
[0048] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include a single or multiple entities. According to various embodiments, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to various embodiments, the operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.
[0049] FIG. 2 is a diagram of a high-availability network system according to various embodiments of the present invention.
[0050] According to various embodiments, the high availability network system (300) may include a first load balancer (310), a second load balancer (320), a master node (330), and a worker node (340).
[0051] According to various embodiments, a load balancer may refer to a device that distributes the load applied to a cloud server, the load applied to the end of a network, or all load applied to both a cloud server and the end of a network. For example, a load balancer can synchronize packet connection information between each load balancer and monitor the status of each connection to ensure that the connection status is always maintained (high availability). For example, a load balancer can be located between a client and a cloud server, and manage traffic so that the load is not concentrated on a single server, thereby enabling each server to perform optimally. For example, a load balancer can be used in a distributed processing system that provides network services with multiple servers. For example, a load balancer can enable keep-alive to reuse established connections. This can reduce the cost of disconnecting existing connections, thereby enabling faster communication.
[0052] According to various embodiments, a cloud controller manager (CCM) 330 can control the connection status between cloud servers and load balancers on a master node. For example, the cloud controller manager (CCM) (330) may correspond to a Loxi-ccm solution. For example, the cloud controller manager (330) can act as the brain of a cluster composed of multiple servers, performing tasks such as container scheduling, service management, and API request processing.
[0053] According to various embodiments, the node component (340) may manage and monitor the status of a container runtime on a worker node to execute a workload scheduled to the node. The node component (340) may route communication between pods on different nodes on the worker node or network traffic between pods and the Internet. The node component (340) may start or stop containers on the worker node and handle communication between containers.
[0054] According to various embodiments, a pod is the basic unit of work in a cluster and may specify a single container or a group of containers to be scheduled.
[0055] In various embodiments, a service can route traffic to its pods in the cluster via IP addresses or DNS names.
[0056] FIG. 3 is a schematic diagram illustrating a load balancer according to various embodiments of the present invention.
[0057] According to various embodiments, the first load balancer (310) may include a first eBPF module (411) of the kernel plane (410) and a first synchronization module (421) of the user plane (420). For example, the eBPF module may refer to an extended Berkeley Packet Filter module and may refer to a technology for applying user-defined code on the kernel. The eBPF module may execute user-written code on the kernel plane based on a hook predefined within the kernel code or a kprobe, uprobe, tracepoint, etc.
[0058] According to various embodiments, the second load balancer (320) may include a second eBPF module (413) of the kernel plane (410) and a second synchronization module (423) of the user plane (420).
[0059] According to various embodiments, the eBPF module may be located at “kprobe / htab_map_update_elem” and “kprobe / htab_map_delete_elem” to search for eBPF map updates. For example, the eBPF module may add an entry to the CT map (ConnTrack map, connection information / packet path) when new untracked traffic arrives. For example, the eBPF module may report the added entry to the synchronization module of the user plane.
[0060] According to various embodiments, the synchronization module can verify entries through map updates in the user plane (420) and filter entries from the CT map. For example, the synchronization module can detect new untracked connections once new untracked traffic is tracked (established) in the eBPF data path. For example, the synchronization module can update all members of the cluster once the connection is tracked.
[0061] FIG. 4 is a diagram illustrating a method for tracking new connections of a load balancer according to various embodiments of the present invention.
[0062] According to various embodiments, the first synchronization module (421) of the user plane (420) may periodically detect whether a newly reported untracked connection has been established. For example, the first synchronization module (421) may synchronize a long-lived connection that has been maintained for at least 10 seconds. Specifically, the first synchronization module (421) may only synchronize a long-lived connection that has been maintained for at least 10 seconds.
[0063] FIG. 5 is a diagram illustrating a method for a load balancer to synchronize with another load balancer according to various embodiments of the present invention.
[0064] According to various embodiments, the first synchronization module (421) of the first load balancer (310) can confirm a new established connection from the first eBPF module (411).
[0065] According to various embodiments, the first load balancer (310) can synchronize the newly established connection with other members of the cluster including the first load balancer. For example, the first load balancer (310) can synchronize the newly established connection with the second load balancer (320). For example, each event occurring in the cluster can be updated in the CT map of the eBPF module. That is, traffic occurring in the first load balancer (310) can be updated in the CT map of the second eBPF module (413) of the second load balancer (320).
[0066] FIG. 6 is a diagram schematically illustrating the traffic flow of a first load balancer according to various embodiments of the present invention.
[0067] According to various embodiments, in operation 711, the first eBPF module (411) may attach "kprobe / htab_map_update_elem" and "kprobe / htab_map_delete_elem" to search for eBPF map updates. According to various embodiments, in operation 721, the first synchronization module (421) may configure a cluster between load balancers (health check).
[0068] According to various embodiments, in operation 713, the first eBPF module (411) may update connection information in the CT map when a new packet arrives. For example, the connection information may include information such as SIP, DIP, Sport, Dport, Protocol, and status. For example, the status may include untracked and tracked. For example, untracked may mean that a connection has not yet been established, and tracked may mean that a connection has been successfully established, i.e., a network session is connected.
[0069] According to various embodiments, in operation 715, the first eBPF module (411) may report new connection information that has not been previously tracked to the first synchronization module (421). According to various embodiments, in operation 723, the first synchronization module (421) may transmit new connection information that has not been tracked and periodically monitor the connection information from the first eBPF module (411). For example, the first synchronization module (421) may set a time condition to periodically check only for conntrack entries that have been connected for a certain period of time or longer. For example, the first synchronization module (421) may only check long live connections, and may process short-term connections such as rest as noise, and may be set to periodically check only for connections that have been connected for at least 10 seconds or longer.
[0070] According to various embodiments, in operation 717, the first eBPF module (411) may update the status of new connection information based on monitoring by the first synchronization module (421). For example, the first eBPF module (411) may update the status of new connection information from untracked to tracked.
[0071] According to various embodiments, in operation 725, the first synchronization module (421) may transmit CT (ConnTrack) map information to a load balancer in the cluster. For example, ConnTrack may refer to a Linux module that manages network connection status.
[0072] FIG. 7 is a diagram schematically illustrating the traffic flow of a second load balancer according to various embodiments of the present invention.
[0073] According to various embodiments, in operation 811, the second eBPF module (413) may attach "kprobe / htab_map_update_elem" and "kprobe / htab_map_delete_elem" to search for eBPF map updates. According to various embodiments, in operation 821, the second synchronization module (423) may configure (health check) a cluster between load balancers.
[0074] According to various embodiments, in operation 823, the second synchronization module (423) may receive new tracked connection information through the first synchronization module (421) of the first load balancer (310) within the cluster.
[0075] According to various embodiments, in operation 825, the second synchronization module (423) may request the second eBPF module (413) to update the CT map.
[0076] According to various embodiments, in operation 813, the second eBPF module (413) may add a Conntrack of the same path in response to a request from the second synchronization module (423). That is, a synchronized session performing the same function within the cluster may be created through a series of operations.
[0077] FIG. 8 is a diagram illustrating a high-availability network connection of a network system according to various embodiments of the present invention.
[0078] According to various embodiments, when the first load balancer (310) within the cluster is in a state requiring maintenance (down for maintenance), the second load balancer (320) within the cluster can be used to process traffic without delay or loss.
[0079] Figure 9 is a diagram showing a conventional network system.
[0080] FIG. 10 is a diagram illustrating a network system using eBPF according to various embodiments of the present invention.
[0081] According to various embodiments, a connection without delay or loss can be implemented by synchronizing traffic through an eBPF module on the kernel plane instead of synchronizing using a conventional legacy network.
[0082] According to various embodiments, a method of an electronic device may include: receiving, in a first eBPF module, new untracked traffic from a client; adding, in the first eBPF module, an entry corresponding to the new traffic to a ConnTrack map in response to the receiving of the new traffic; reporting, in the first eBPF module, the addition of the entry to a first synchronization module; and monitoring, in the first synchronization module, a first connection corresponding to the new traffic.
[0083] The electronic device may include an operation of transmitting information corresponding to the first connection to a second synchronization module of an external electronic device through the first synchronization module.
[0084] The act of adding the above entry may include the act of updating the ConnTrack map with at least one of SIP, DIP, Sport, Dport, Protocol or Status corresponding to the new traffic.
[0085] The above monitoring operation may include an operation of monitoring the first connection corresponding to the new traffic if the entry is maintained for a predetermined period of time or longer.
[0086] The electronic device may include an operation of receiving, through the first synchronization module, information corresponding to a second connection of traffic different from the new traffic from the second synchronization module of the external electronic device.
[0087] The first synchronization module may be located in the user plane, and the first eBPF module may be located in the kernel plane.
[0088] The above specified time may be at least 10 seconds or more.
[0089] According to various embodiments, a method of an external electronic device may include: receiving first connection information from a first synchronization module of an electronic device within a cluster through a second synchronization module of the external electronic device; requesting a second eBPF module of the external electronic device to update the first connection information in a Conntrack map of the external electronic device; and updating the first connection information in the Conntrack map by the second eBPF module.
[0090] According to various embodiments, a cluster system including a client, an electronic device, an external electronic device, and a cloud server may include: an operation in which the electronic device receives new, untracked traffic from the client; an operation in which the electronic device adds an entry corresponding to the new traffic; an operation in which the electronic device transmits connection information corresponding to the entry to an external electronic device; and an operation in which the external electronic device stores the connection information and synchronizes it with the electronic device.
[0091] The cloud server may include an operation for processing the connection information via the external electronic device when the electronic device is not operating.
Claims
1. In the method of an electronic device, In the first eBPF module, the action of receiving new untracked traffic from the client; In the first eBPF module, in response to an operation of receiving the new traffic, an operation of adding an entry corresponding to the new traffic to the ConnTrack map; In the first eBPF module, an action of reporting the addition of the entry to the first synchronization module; A method of an electronic device, comprising an operation of monitoring a first connection corresponding to the new traffic in the first synchronization module.
2. In paragraph 1, A method of an electronic device, comprising an operation of transmitting information corresponding to the first connection to a second synchronization module of an external electronic device through the first synchronization module.
3. In paragraph 2, The action of adding the above entry is: A method of an electronic device comprising the action of updating at least one of SIP, DIP, Sport, Dport, Protocol or status corresponding to said new traffic to said ConnTrack map.
4. In paragraph 3, The above monitoring action is, A method of an electronic device comprising an operation of monitoring the first connection corresponding to the new traffic if the entry is maintained for a predetermined period of time or longer.
5. In paragraph 4, A method of an electronic device, comprising: receiving, through the first synchronization module, information corresponding to a second connection of traffic different from the new traffic from the second synchronization module of the external electronic device.
6. In paragraph 5, A method of an electronic device, wherein the first synchronization module is located in a user plane and the first eBPF module is located in a kernel plane.
7. In paragraph 6, A method of an electronic device wherein the above-mentioned specified time is at least 10 seconds.
8. In the method of an external electronic device, An operation of receiving first connection information from a first synchronization module of an electronic device within a cluster, through a second synchronization module of the external electronic device; An action of the second synchronization module requesting the second eBPF module of the external electronic device to update the first connection information in the Conntrack map of the external electronic device; A method of an electronic device comprising the second eBPF module updating the first connection information to the Conntrack map.
9. In a cluster system including a client, an electronic device, an external electronic device, and a cloud server, The act of an electronic device receiving new, untracked traffic from a client; An operation of the electronic device adding an entry corresponding to the new traffic; An operation in which the electronic device transmits connection information corresponding to the entry to an external electronic device; A cluster system including an operation in which the external electronic device stores the connection information and synchronizes it with the electronic device.
10. In paragraph 9, A cluster system including an operation for processing the connection information through the external electronic device when the electronic device is not operating.
Citation Information
Patent Citations
Solar power system
KR1020240080998A
Non-oriented electrical steel sheet and method of manufacturing the same
KR1020240143582A
Program container monitoring
KR102281827B1
Security for container networks
KR102451237B1
Methods and systems for synchronizing state amongst monitoring nodes
US20220272071A1
