High-availability network connection method and electronic device using the same

eBPF modules are used to track and synchronize connection information across load balancers, addressing the challenge of maintaining high availability in network systems by ensuring efficient traffic management and connection state synchronization.

JP2024169286AActive Publication Date: 2024-12-05NETLOX CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023218912
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-24
Filing Date
2023-12-26
Publication Date
2024-12-05
Estimated Expiration
2043-12-26

AI Technical Summary

Technical Problem

Existing network systems face challenges in maintaining high availability by synchronizing packet connection information between load balancers and monitoring connection states effectively, which can lead to delays or losses in network traffic.

Method used

Utilizing eBPF modules to track new traffic, update connection information in a ConnTrack map, and synchronize this information across load balancers through synchronization modules, ensuring that connection states are maintained and traffic is managed efficiently.

Benefits of technology

This approach enables a highly available network system by ensuring seamless synchronization of connection states and traffic management without delays or losses, even when load balancers are down for maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024169286000001_ABST
    Figure 2024169286000001_ABST
Patent Text Reader

Abstract

To provide a high-availability network connection method to be used to maintain the connection state by using an eBPF to synchronize packet connection information between load balancers and monitor each connection state, and to provide an electronic device using the same.SOLUTION: A traffic flow of a first load balancer comprises: an operation of receiving untracked new traffic from a client using a first eBPF module 411; an operation 713 of adding an entry corresponding to the new traffic to a Conn Track map in response to the operation of receiving the new traffic; an operation 715 of reporting the addition of the entry to a first synchronization module; and an operation 723 of monitoring a first connection corresponding to the new traffic using the first synchronization module.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Various embodiments of the present invention relate to a highly available network connection method and an electronic device using the same. [Background technology]

[0002] In the current hot topic of the fourth industry, various types of data can be hyper-connected through various devices. In this environment, the market for innovative convergence new products and service solutions that reflect user needs may expand, and for this, it may be necessary to build a network infrastructure that can process various types of data without loss. Summary of the Invention [Problem to be solved by the invention]

[0003] Using eBPF, packet connection information between load balancers can be synchronized, each connection status can be monitored, and the connection status can be maintained. Also, the cloud master node can control the load balancer and control packet connections between the cloud and external networks. This allows the creation of a highly available network system. [Means for solving the problem]

[0004] According to various embodiments, a method of an electronic device may include an operation of receiving new untracked traffic from a client in a first eBPF module; an operation of adding an entry corresponding to the new traffic to a ConnTrack map in response to the operation of receiving the new traffic in the first eBPF module; an operation of reporting the addition of the entry to a first synchronization module in the first eBPF module; and an operation of monitoring a first connection corresponding to the new traffic in the first synchronization module.

[0005] According to various embodiments, the method of the external electronic device may include an operation of receiving first connectivity information from a first synchronization module of an electronic device in a cluster via a second synchronization module of the external electronic device; an operation of the second synchronization module requesting a second eBPF module of the external electronic device to update the first connectivity information to a Conntrack map of the external electronic device; and an operation of the second eBPF module updating the first connectivity information to the Conntrack map.

[0006] According to various embodiments, in a cluster system including a client, an electronic device, an external electronic device, and a cloud server, the method may include an operation in which the electronic device receives new untracked traffic from a client; an operation in which the electronic device adds an entry corresponding to the new traffic; an operation in which the electronic device transfers connection information corresponding to the entry to the external electronic device; and an operation in which the external electronic device stores the connection information and synchronizes it with the electronic device. Effect of the Invention

[0007] According to various embodiments of the present invention, the load balancer can use eBPF to synchronize packet connection information between the load balancers, monitor each connection state, and maintain the connection state. Also, the master node of the cloud can control the load balancer and control packet connection between the cloud and an external network. Thus, a highly available network system can be constructed. [Brief description of the drawings]

[0008] [Figure 1] 1 is a block diagram of an electronic device in a network environment according to various embodiments of the present invention. [Diagram 2] 1 is a diagram of a highly available network system according to various embodiments of the present invention. [Diagram 3] 1 is a schematic diagram of a load balancer according to various embodiments of the present invention; [Figure 4] 11 is a diagram illustrating a method for tracking new connections of a load balancer according to various embodiments of the present invention. [Diagram 5] 1 is a diagram illustrating a method for a load balancer to synchronize with another load balancer according to various embodiments of the present invention. [Figure 6] 4 is a diagram illustrating a traffic flow of a first load balancer according to various embodiments of the present invention. [Figure 7] 4 is a diagram illustrating a traffic flow of a second load balancer according to various embodiments of the present invention. [Figure 8] 1 illustrates a high availability network connection of a network system according to various embodiments of the present invention. [Figure 9] 1 is a diagram showing a conventional network system. [Figure 10] 1 is a diagram illustrating a network system using eBPF according to various embodiments of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] FIG. 1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments. Referring to FIG. 1, in the network environment 100, the electronic device 101 can communicate with an electronic device 102 via a first network 198 (e.g., a short-range wireless communication network) or with an 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 can communicate with the electronic device 104 via the server 108. According to one embodiment, the electronic device 101 can 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 identity 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 include one or more other components. In some embodiments, some of these components may be implemented as a single integrated circuit. For example, the sensor module 176 (e.g., a fingerprint sensor, an iris sensor, or an illuminance sensor) may be implemented as embedded in the display device 160 (e.g., a display).

[0010] The processor 120 may, for example, execute software (e.g., program 140) to control at least one other component (e.g., hardware or software component) of the electronic device 101 coupled to the processor 120, and 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 instructions or data received from other components (e.g., the sensor module 176 or the communication module 190) into the volatile memory 132, process the instructions or data stored in the volatile memory 132, and store the result data in the non-volatile memory 134. According to one embodiment, the processor 120 may include a main processor 121 (e.g., a central processing unit or application processor) and an auxiliary 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 with the main processor 121. Additionally or alternatively, the auxiliary processor 123 may be configured to use less power than the main processor 121 or to be dedicated to a designated function. The auxiliary processor 123 may be embodied separately from the main processor 121 or as part of it.

[0011] For example, the auxiliary processor 123 may control at least a part of the functions or states associated with at least one of the components of the electronic device 101 (e.g., the display device 160, the sensor module 176, or the communication module 190) in place 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. According to one embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be embodied as a part of another component (e.g., the camera module 180 or the communication module 190) to which it is functionally related.

[0012] The memory 130 may store a variety of data used by at least one component (e.g., the processor 120 or the sensor module 176) of the electronic device 101. The data may include, for example, input data or output data for software (e.g., the program 140) and associated instructions. The memory 130 may include a volatile memory 132 or a non-volatile memory 134.

[0013] The programs 140 may be stored as software in the memory 130 and may include, for example, an operating system 142 , a middleware 144 , or an application 146 .

[0014] The input device 150 can receive instructions or data from outside (e.g., a user) of the electronic device 101 for use by a component (e.g., the processor 120) of the electronic device 101. The input device 150 can include, for example, a microphone, a mouse, or a keyboard.

[0015] The audio output device 155 can output an audio signal 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 and playback, and the receiver can be used to receive incoming calls. According to an embodiment, the receiver can be embodied separately from the speaker or as a part thereof.

[0016] The display device 160 may visually provide information to an outside (e.g., a user) of the electronic device 101. The display device 160 may include, for example, a display, a holographic device, or a projector and control circuitry for controlling the device. According to one embodiment, the display device 160 may include touch circuitry configured to sense a touch or a sensor circuit (e.g., a pressure sensor) configured to measure the strength of a force generated by the touch.

[0017] The audio module 170 can convert sound into an electrical signal or vice versa. According to an embodiment, the audio module 170 can obtain sound via the input device 150 or output sound via the audio output device 155 or an external electronic device (e.g., electronic device 102) (e.g., a speaker or headphones) directly or wirelessly coupled to the electronic device 101.

[0018] The sensor module 176 may sense an operating state (e.g., power or temperature) of the electronic device 101 or an external environmental state (e.g., a user state) and generate an electrical signal or data value corresponding to the sensed state. According to one embodiment, the sensor module 176 may 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 biosensor, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0019] The interface 177 may support one or more specified protocols that may be used to directly or wirelessly couple the electronic device 101 to an external electronic device (e.g., the electronic device 102). According to 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.

[0020] 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., the electronic device 102). According to one embodiment, the connection terminal 178 may include, for example, an HDMI (registered trademark) connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0021] Haptic module 179 can convert electrical signals into mechanical (e.g., vibration or movement) or electrical stimuli that a user can perceive through touch or kinesthetic sensation. According to one embodiment, haptic module 179 can include, for example, a motor, a piezoelectric element, or an electrical stimulator.

[0022] The camera module 180 can capture still and video images and, according to one embodiment, can include one or more lenses, an image sensor, an image signal processor, or a flash.

[0023] The power management module 188 may manage the power provided to the electronic device 101. According to one embodiment, the power management module 188 may be embodied, for example, as at least a part of a power management integrated circuit (PMIC).

[0024] The battery 189 can provide power to at least one component of the electronic device 101. According to one embodiment, the battery 189 can include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

[0025] The communication module 190 can support establishing a direct (e.g., wired) or 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 performing communication via the established communication channel. The communication module 190 can include one or more communication processors that operate independently of the processor 120 (e.g., application processor) and support the direct (e.g., wired) or wireless communication. According to one embodiment, the communication module 190 can 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). The 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 IrDA (infrared data association)) 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., LAN or WAN)). These various communication modules may be integrated into one component (e.g., a single chip) or may be embodied as multiple separate components (e.g., a receiver chip). The wireless communication module 192 may use the subscriber information (e.g., International Mobile Subscriber Identity (IMSI)) stored in the subscriber identification module 196 to identify and authenticate the electronic device 101 in a communication network such as the first network 198 or the second network 199.

[0026] The antenna module 197 can transmit or receive signals or power to or from the outside (e.g., an external electronic device). According to an 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 a first network 198 or a second network 199, can be selected, for example, by the communication module 190. Signals or power can be transmitted or received between the communication module 190 and an external electronic device via the selected at least one antenna.

[0027] At least some of the components are connected to each other via a peripheral communication method (e.g., a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and can exchange signals (e.g., commands or data) between each other.

[0028] According to an embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 via a server 108 coupled to the second network 199. Each of the electronic devices 102, 104 may be the same or another type of device as the electronic device 101. According to an embodiment, all or part of the operations performed by the electronic device 101 may be performed by one or more of the external electronic devices 102, 104, or 108. For example, when the electronic device 101 must perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 may request one or more external electronic devices to perform at least a part of the function or service instead of or in addition to performing the function or service itself. The one or more external electronic devices receiving the request may perform at least a part 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 it is or additionally and provide it as at least a part of a response to the request. For this purpose, for example, cloud computing, distributed computing, or client-server computing technologies can be utilized.

[0029] 2 is a block diagram 200 of the program 140 according to various embodiments. According to one embodiment, the program 140 may include an operating system 142 for controlling one or more resources of the electronic device 101, middleware 144, or an application 146 executable on the operating system 142. The operating system 142 may include, for example, Android™, iOS™, Windows™, Symbian™, Tizen™, or Bada™. At least some of the programs 140 may be preloaded into the electronic device 101 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 a user's environment.

[0030] The operating system 142 may 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, such as the input device 150, the audio output device 155, the display device 160, the audio module 170, the sensor module 176, the interface 177, the haptic module 179, the camera module 180, the power management module 188, the battery 189, the communication module 190, the subscriber identity module 196, or the antenna module 197.

[0031] The middleware 144 may 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 may 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 may manage the life cycle of the application 146, for example. The window manager 203 may manage GUI resources used on a screen, for example. The multimedia manager 205 may grasp a format required for playing a media file, and perform encoding or decoding of the media file using a codec corresponding to the corresponding format. The resource manager 207 may manage source code or memory space of the application 146, for example. The power manager 209 may, for example, manage the capacity, temperature, or power source of a battery and use the relevant information to determine or provide power information required for operation of the electronic device 101. According to one embodiment, the power manager 209 may interface with a basic input / output system (BIOS).

[0032] The database manager 211 may, for example, create, search, or modify a database used by the application 146. The package manager 213 may, for example, manage the installation or update of an application distributed in the form of a package file. The connectivity manager 215 may, for example, manage wireless or wired connections between the electronic device 101 and an external electronic device. The notification manager 217 may, 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 may, for example, manage location information of the electronic device 101. The graphics manager 221 may, for example, manage graphic effects or user interfaces associated therewith that are provided to a user. The security manager 223 may, for example, provide system security or user authentication. The telephony manager 225 may, for example, manage a voice call or video call function of the electronic device 101. For example, the voice recognition manager 227 may transmit voice data of a user 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 an embodiment, the middleware 144 may dynamically delete some of the existing components or add new components. According to an embodiment, at least a portion of the middleware 144 may be included as a part of the operating system 142 or may be implemented as software separate from the operating system 142.

[0033] The applications 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 exercise or blood glucose, etc.), or an environmental information 281 (e.g., air pressure, humidity, or temperature information) application. According to an embodiment, the applications 146 may further include an information exchange application (not shown) that may assist in 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., calls, messages, or alarms) to the external electronic device, or a device management application for managing the external electronic device. The notification relay application can, for example, transmit notification information corresponding to an event (e.g., mail reception) occurring in another application (e.g., email application 269) of electronic device 101 to an external electronic device, or receive notification information from an external electronic device and provide it to a user of electronic device 101. The device management application can, for example, control the power (e.g., turn on or turn off) or functions (e.g., brightness, resolution, or focus of display device 160 or camera module 180) of an external electronic device or some of its components (e.g., display device 160 or camera module 180) that communicate with electronic device 101. The device management application can additionally or alternatively support the installation, removal, or updating of applications running on the external electronic device.

[0034] The electronic devices according to the various embodiments disclosed herein may be devices of various forms. The electronic devices may include, for example, a portable communication device (e.g., a smartphone), a computing device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a consumer electronic device. The electronic devices according to the embodiments disclosed herein are not limited to the aforementioned devices.

[0035] Various embodiments and terms used herein are not intended to limit the technical features described herein to a specific embodiment, but should be understood to include various modifications, equivalents, or alternatives 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 item, unless the relevant 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 of the phrase. Terms such as "first," "second," or "firstly" or "secondarily" may be used simply to distinguish a corresponding component from other corresponding components, and do not limit the corresponding component in other aspects (e.g., importance or order). When a (e.g., first) component is referred to as being "coupled" or "connected" to another (e.g., second) component, with or without the terms "functionally" or "communicatively," it means that the component can be coupled to the other component directly (e.g., by wire), wirelessly, or through a third component.

[0036] 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 integrated component or the smallest 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).

[0037] Various embodiments of this document may be embodied as software (e.g., program 140) including one or more commands stored in a storage medium (e.g., internal memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). For example, a processor (e.g., processor 120) of the machine (e.g., electronic device 101) may call and execute at least one instruction of the one or more commands stored in the storage medium. This allows the machine to be operated to perform at least one function according to the at least one command that has been called. The one or more commands may include code generated by a compiler or code that can be executed by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, "non-transitory" only means that the storage medium is a tangible device and does not include a signal (e.g., electromagnetic waves), and this term does not distinguish between a case where data is stored semi-permanently and a case where data is stored temporarily in the storage medium.

[0038] According to an embodiment, the method according to the various embodiments disclosed herein may be provided in a computer program product. The computer program product may be traded between a seller and a buyer as a commodity. The computer program product may be distributed in the form of a device-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 at least temporarily stored or temporarily generated in a device-readable storage medium such as the memory of a manufacturer's server, an application store server, or an intermediate server.

[0039] According to various embodiments, each of the components described above (e.g., modules or programs) may include one or more entities. According to various embodiments, one or more of the components described above may be omitted or one or more other components or operations may be added. Alternatively or additionally, multiple components (e.g., modules or programs) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the multiple components in a manner that is the same or similar to that performed by the corresponding component of the multiple components prior to the integration. According to various embodiments, operations performed by a module, program, or other component may be performed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be performed in a different order, omitted, or one or more other operations may be added.

[0040] FIG. 2 is a diagram of a highly available network system according to various embodiments of the present invention.

[0041] 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 .

[0042] According to various embodiments, a load balancer may refer to a device that distributes loads applied to a cloud server, loads applied to an end of a network, or all loads applied to a cloud server and an end of a network. For example, the load balancer may synchronize packet connection information between each load balancer and monitor each connection state to ensure high availability. For example, the load balancer may be located between a client and a cloud server, and may manage traffic so that the load is not concentrated on one server, allowing each server to perform optimally. For example, the load balancer may be used in a distributed processing system that provides network services by placing multiple servers. For example, the load balancer may activate keep-alive to reuse a connection that has been created. Resources are consumed to disconnect a connection that has already been created, so this cost may be reduced to enable faster communication.

[0043] According to various embodiments, a cloud controller manager (CCM, 330) can control the connection state between the cloud server and the load balancer as a master node. For example, the cloud controller manager 330 can correspond to the Loxi-ccm solution. For example, the cloud controller manager 330 can act as the brain of a cluster composed of multiple servers and perform tasks such as container scheduling, service management, and API request processing.

[0044] According to various embodiments, the node component 340 may manage container runtimes and monitor states on a worker node to perform workloads reserved for the node. The node component 340 may route network traffic between pods on different nodes and between pods and the Internet on a worker node. The node component 340 may start or stop containers and handle communications between containers on a worker node.

[0045] According to various embodiments, a pod corresponds to a basic unit of work in a cluster and can specify a single container or a group of containers to be scheduled.

[0046] According to various embodiments, a service can route traffic to a corresponding pod in a cluster via an IP address or DNS name.

[0047] FIG. 3 is a schematic diagram of a load balancer according to various embodiments of the present invention.

[0048] According to various embodiments, the first load balancer 310 may include a first eBPF module 411 in the kernel plane 410 and a first synchronization module 421 in the user plane 420. For example, the eBPF module may mean an extended Berkeley Packet Filter module, which may mean a technology for applying user-defined code on the kernel. The eBPF module may execute user-created code on the kernel plane based on predefined hooks, kprobes, uprobes, tracepoints, etc. in the kernel code.

[0049] According to various embodiments, the second load balancer 320 may include a second eBPF module 413 in the kernel plane 410 and a second synchronization module 423 in the user plane 420 .

[0050] According to various embodiments, the eBPF module can locate 'kprobe / htab_map_update_elem' and 'kprobe / htab_map_delete_elem' to search for eBPF map updates. For example, the eBPF module can add an entry to the CT map (ConnTrack map, connection information / packet path) when new untracked traffic arrives. For example, the eBPF module can report the added entry to a user plane synchronization module.

[0051] According to various embodiments, the synchronization module can check for entries via map updates in the user plane 420 and filter the entries in the CT map. For example, the synchronization module can search for new untracked connections once new untracked traffic is tracked in the eBPF data path. For example, the synchronization module can update all members of the cluster once the connection is tracked.

[0052] FIG. 4 is a diagram 500 illustrating a method for tracking new connections to a load balancer according to various embodiments of the present invention.

[0053] According to various embodiments, the first synchronization module 421 of the user plane 420 may periodically search for 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.

[0054] FIG. 5 is a diagram 600 illustrating how a load balancer may synchronize with other load balancers according to various embodiments of the invention.

[0055] 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.

[0056] According to various embodiments, the first load balancer 310 may synchronize the newly established connection with other members of the cluster in which the first load balancer is included. For example, the first load balancer 310 may synchronize the newly established connection with the second load balancer 320. For example, each event occurring in the cluster may be updated to the CT map of the eBPF module. That is, traffic generated in the first load balancer 310 may be updated to the CT map of the second eBPF module 413 of the second load balancer 320.

[0057] FIG. 6 is a diagram 700 illustrating a schematic traffic flow of a first load balancer according to various embodiments of the present invention.

[0058] According to various embodiments, the first eBPF module 411 may attach "kprobe / htab_map_update_elem" and "kprobe / htab_map_delete_elem" to search for eBPF map updates at operation 711. According to various embodiments, the first synchronization module 421 may perform a health check on a cluster between the load balancers at operation 721.

[0059] According to various embodiments, in operation 713, the first eBPF module 411 can update connectivity information in the CT map when a new packet arrives. For example, the connectivity information can include information such as SIP, DIP, Sport, Dport, Protocol, and status. For example, the status can include untracked and tracked. For example, untracked can mean that a connection has not yet been established, and tracked can mean that a connection has been successfully established, i.e., a network session is connected.

[0060] According to various embodiments, in operation 715, the first eBPF module 411 may report new connection information in an untracked state to the first synchronization module 421. According to various embodiments, in operation 723, the first synchronization module 421 may transmit new connection information in an untracked state and periodically monitor the corresponding connection information from the first eBPF module 411. For example, the first synchronization module 421 may be configured to periodically check only conntrack entries that have been connected for a certain period of time or more by setting a time condition. For example, the first synchronization module 421 may check only long-lived connections, but may treat short-lived connections such as rest as noise, and may be configured to periodically check only connections of at least 10 seconds or more.

[0061] According to various embodiments, in operation 717, the first eBPF module 411 may update the state of the new connection information based on monitoring of the first synchronization module 421. For example, the first eBPF module 411 may update the state of the new connection information from untracked to tracked.

[0062] According to various embodiments, the first synchronization module 421 may transmit ConnTrack (CT) map information to load balancers in the cluster in operation 725. For example, ConnTrack may refer to a Linux® module that manages network connection status.

[0063] FIG. 7 is a diagram 800 illustrating traffic flow of a secondary load balancer according to various embodiments of the present invention.

[0064] According to various embodiments, the second eBPF module 413 may attach "kprobe / htab_map_update_elem" and "kprobe / htab_map_delete_elem" to search for eBPF map updates at operation 811. According to various embodiments, the second synchronization module 423 may perform a health check of the cluster between the load balancers at operation 821.

[0065] According to various embodiments, in operation 823, the second synchronization module 423 may receive newly tracked connectivity information via the first synchronization module 421 of the first load balancer 310 in the cluster.

[0066] According to various embodiments, at operation 825, the second synchronization module 423 can request the second eBPF module 413 to update the CT map.

[0067] According to various embodiments, in operation 813, the second eBPF module 413 can add Conntrack of the same route in response to a request from the second synchronization module 423. That is, through a series of operations, synchronized sessions that perform the same function within the cluster can be created.

[0068] FIG. 8 is a diagram 900 illustrating high availability network connections in a network system according to various embodiments of the present invention.

[0069] According to various embodiments, when a first load balancer 310 in a cluster is down for maintenance, a second load balancer 320 in the cluster can be used to process traffic without delay or loss.

[0070] FIG. 9 shows a conventional network system.

[0071] FIG. 10 illustrates a network system using eBPF according to various embodiments of the present invention.

[0072] According to various embodiments, instead of synchronization using a conventional legacy network, traffic can be synchronized through an eBPF module on the kernel plane to implement a connection without delay or loss.

[0073] According to various embodiments, a method of an electronic device may include an operation of receiving new untracked traffic from a client in a first eBPF module; an operation of adding an entry corresponding to the new traffic to a ConnTrack map in response to the operation of receiving the new traffic in the first eBPF module; an operation of reporting the addition of the entry to a first synchronization module in the first eBPF module; and an operation of monitoring a first connection corresponding to the new traffic in the first synchronization module.

[0074] 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 via the first synchronization module.

[0075] Adding the entry may include updating at least one of a SIP, DIP, Sport, Dport, Protocol, or State corresponding to the new traffic in the ConnTrack map.

[0076] The monitoring operation may include monitoring the first connection corresponding to the new traffic if the entry is maintained for a pre-specified period of time or more.

[0077] The electronic device may include an operation of receiving, via 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.

[0078] The first synchronization module may be located in a user plane, and the first eBPF module may be located in a kernel plane.

[0079] The specified time period may be at least 10 seconds.

[0080] According to various embodiments, the method of the external electronic device may include an operation of receiving first connectivity information from a first synchronization module of an electronic device in a cluster via a second synchronization module of the external electronic device; an operation of the second synchronization module requesting a second eBPF module of the external electronic device to update the first connectivity information to a Conntrack map of the external electronic device; and an operation of the second eBPF module updating the first connectivity information to the Conntrack map.

[0081] According to various embodiments, in a cluster system including a client, an electronic device, an external electronic device, and a cloud server, the method may include an operation in which the electronic device receives new untracked traffic from a client; an operation in which the electronic device adds an entry corresponding to the new traffic; an operation in which the electronic device transfers connection information corresponding to the entry to the external electronic device; and an operation in which the external electronic device stores the connection information and synchronizes it with the electronic device.

[0082] The cloud server may include an operation of processing the connection information via the external electronic device when the electronic device is not operational.

Claims

1. 1. A method for an electronic device comprising: receiving, at the first eBPF module, new traffic that is not to be tracked from the client; an operation of adding an entry corresponding to the new traffic to a ConnTrack map in response to the operation of receiving the new traffic, in the first eBPF module; an operation of reporting, in the first eBPF module, the addition of the entry to a first synchronization module; A method of the electronic device including an operation of monitoring, at the first synchronization module, a first connection corresponding to the new traffic.

2. The method of claim 1 , further comprising the step of: transmitting, via the first synchronization module, information corresponding to the first connection to a second synchronization module of an external electronic device.

3. The operation of adding the entry includes:

3. The method of claim 2, further comprising the act of updating at least one of SIP, DIP, Sport, Dport, Protocol or State corresponding to the new traffic in the ConnTrack map.

4. The monitoring operation includes:

4. The method of claim 3, further comprising the act of monitoring the first connection for new traffic if the entry has been maintained for a pre-specified period of time.

5. The method of claim 4, further comprising the step of receiving information corresponding to a second connection of traffic different from the new traffic from the second synchronization module of the external electronic device via the first synchronization module.

6. The method of claim 5 , wherein the first synchronization module is located in a user plane and the first eBPF module is located in a kernel plane.

7. 7. The method of claim 6, wherein the predetermined time is at least 10 seconds.

8. In a method of an external electronic device, receiving first connectivity information from a first synchronization module of an electronic device in the cluster via a second synchronization module of the external electronic device; an operation of the second synchronization module requesting a second eBPF module of the external electronic device to update the first connection information to a Conntrack map of the external electronic device; The method of the electronic device includes an operation of the second eBPF module updating the first connectivity 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 electronic device receiving new untracked traffic from the client; the electronic device adding an entry corresponding to the new traffic; the electronic device transmitting link information corresponding to the entry to an external electronic device; The external electronic device may store and synchronize the connection information with the electronic device.

10. The cluster system of claim 9 , wherein the cloud server further comprises an operation of processing the connection information via the external electronic device when the electronic device is not operational.

Citation Information

Patent Citations

  • Load balancing ipsec tunnel processing with extended berkeley packet filer (EBPF)

    US20190173841A1

  • Method for controlling of accelerating edge platform network and electronic device using the same

    US20220027208A1