Method and system for agentless protocol

The agentless controller intercepts and injects client information, which solves the problem of client information loss in the presence of an agent, realizes direct communication and efficient packet processing between the client and the destination server, supports client-specific policies, and avoids the need for agents. High cost of modifying traffic.

CN117397232BActive Publication Date: 2024-08-30GOOGLE LLC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202280038005.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-22
Publication Date
2024-08-30
Estimated Expiration
2042-03-22

AI Technical Summary

Technical Problem

In a multi-layer network service architecture, the existence of proxies leads to the loss of client information, making it difficult to apply client-specific policies such as accounting, auditing, and access control lists, and third-party solutions require proxies to modify traffic, resulting in technical obstacles and inability to Leverage the power of software-defined networking (SDN).

Method used

The agentless controller intercepts the client's TCP connection request, injects client information into the TCP connection between the client and the destination server, uses the updated sequence number to establish a connection with the destination server, and communicates without modifying the data packet to avoid This reduces the cost of high throughput and enables near line rate packet processing.

Benefits of technology

It realizes direct communication between the client and the destination server without modifying the network architecture, provides client-specific policy support, avoids the high cost of proxy modification of traffic, and ensures efficient packet processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117397232B_ABST
    Figure CN117397232B_ABST
Patent Text Reader

Abstract

The method (400) includes intercepting a first TCP connection request (210) from a client (102), the first TCP connection request (210) requesting to establish a TCP connection between the client and a proxy to route data to a destination server (110). The request includes client information (104) and a first sequence number (212). The method also includes sending a second TCP connection request to the destination server to establish a TCP connection between the client and the destination server. The second request includes a second sequence number that is less than the first sequence number. The method also includes intercepting a confirmation message (220) from the destination server, the confirmation message (220) indicating confirmation of the second TCP connection request, and sending a proxy protocol header message (230) with client information to the destination server. The method also includes generating a new confirmation message and sending it to the client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to proxyless protocols, such as proxy protocols for proxyless applications. Background Art

[0002] In a multi-tiered network service architecture, communication between clients and servers often occurs through one or more proxies. A proxy is a server application or device that acts as an intermediary or gateway between a client and one or more destinations. That is, instead of connecting directly to a destination device to access resources, the client sends a request to the proxy, which evaluates the request based on the rules governing the behavior of the proxy. Because the proxy acts as an intermediary, the destination device may not be able to obtain information about the client. Summary of the invention

[0003] One aspect of the present invention provides a computer-implemented method for a proxyless protocol, which, when executed by data processing hardware, causes the data processing hardware to perform operations. The operations include intercepting a first transmission control protocol TCP connection request from a client, the first TCP connection request requesting to establish a first TCP connection between the client and a proxy server to route data to a destination server through the proxy server. The first TCP connection request includes client information and a first sequence number. The method also includes sending a second TCP connection request to the destination server, the second TCP connection request requesting to establish a second TCP connection between the client and the destination server. The second TCP connection request includes a second sequence number less than the first sequence number. The method includes intercepting a confirmation message from the destination server, the confirmation message indicating confirmation of the second TCP connection request; and sending a data packet including a proxy protocol header message to the destination server, the proxy protocol header message including the client information. The method also includes generating a new confirmation message using the first TCP connection request; and sending the new confirmation message to the client.

[0004] Embodiments of the present disclosure may include one or more of the following optional features. In some embodiments, the operation further includes, before intercepting the TCP connection request from the client, obtaining client configuration data, the client configuration data indicating the client's intention to communicate with the proxy server. In some examples, the client configuration data includes a destination identifier that identifies the destination server. In these examples, the operation further includes, after intercepting the TCP connection request from the client, determining that the client intends to communicate with the proxy server using the destination identifier.

[0005] Optionally, the destination identifier comprises an Internet Protocol (IP) address. Intercepting the first TCP connection request from the client comprises determining that a SYN flag is set within the first TCP connection request. In some embodiments, the difference between the first sequence number and the second sequence number is equal to the size of the proxy protocol header message.

[0006] The confirmation message includes connection configuration information. The new confirmation message includes the same connection configuration information as the confirmation message. In some examples, after sending the new confirmation message to the client, the client and the destination server communicate directly. The client can be far away from the destination server, and the first TCP connection request is intercepted at the client. The client can be far away from the destination server, and the first TCP connection request is intercepted at the destination server.

[0007] Another aspect of the present disclosure provides a system for a proxyless protocol. The system includes data processing hardware and memory hardware in communication with the data processing hardware. The memory hardware stores instructions that, when executed on the data processing hardware, cause the data processing hardware to perform operations. The operations include intercepting a first transmission control protocol TCP connection request from a client, the first TCP connection request requesting to establish a first TCP connection between the client and a proxy server to route data to a destination server through the proxy server. The first TCP connection request includes client information and a first sequence number. The method also includes sending a second TCP connection request to the destination server, the second TCP connection request requesting to establish a second TCP connection between the client and the destination server. The second TCP connection request includes a second sequence number less than the first sequence number. The method includes intercepting a confirmation message from the destination server, the confirmation message indicating confirmation of the second TCP connection request, and sending a data packet including a proxy protocol header message to the destination server, the proxy protocol header message including the client message. The method also includes generating a new confirmation message using the first TCP connection request, and sending the new confirmation message to the client.

[0008] This aspect may include one or more of the following optional features. In some embodiments, the operation also includes, before intercepting the TCP connection request from the client, obtaining client configuration data, the client configuration data indicating the client's intention to communicate with the proxy server. In some examples, the client configuration data includes a destination identifier that identifies the destination server. In these examples, the operation also includes, after intercepting the TCP connection request from the client, determining that the client intends to communicate with the proxy server using the destination identifier.

[0009] Optionally, the destination identifier comprises an Internet Protocol (IP) address. Intercepting the first TCP connection request from the client comprises determining that a SYN flag is set within the first TCP connection request. In some embodiments, the difference between the first sequence number and the second sequence number is equal to the size of the proxy protocol header message.

[0010] The confirmation message may include connection configuration information. The new confirmation message includes the same connection configuration information as the confirmation message. In some examples, after sending the new confirmation message to the client, the client and the destination server communicate directly. The client may be far away from the destination server, and the first TCP connection request is intercepted at the client. The client may be far away from the destination server, and the first TCP connection request is intercepted at the destination server.

[0011] The details of one or more embodiments of the disclosure are set forth in the accompanying drawings and the description below. Other aspects, features, and advantages will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a schematic diagram of an example system that provides a proxy-free protocol.

[0013] Figure 2A yes Figure 1 An exemplary sequence diagram of a system.

[0014] Figure 2B yes Figure 1 Another exemplary sequence diagram of a system.

[0015] Figure 3 yes Figure 1 Schematic diagram of exemplary components of a system.

[0016] Figure 4 is a flow diagram of an example arrangement of operations for a method providing a proxy-free protocol.

[0017] Figure 5is a schematic diagram of an exemplary computing device that can be used to implement the systems and methods described herein.

[0018] Like reference numbers in the various drawings represent like elements. DETAILED DESCRIPTION

[0019] In a multi-layer network service architecture, communication between clients and servers is often carried out through one or more proxies. Some proxies (e.g., load balancers) terminate the Transmission Control Protocol (TCP) connection and use a new session to proxy data from the client to the destination device (e.g., server). Therefore, the TCP session processed by the destination server contains the Internet Protocol (IP) address and other identifiers of the proxy, rather than the identifier of the original client that initiated the connection. This information loss usually makes it difficult for servers and other destinations to apply client-specific policies, such as billing, auditing, access control lists, etc. Some protocols (e.g., proxy protocols) attempt to solve this problem by allowing client-side identification information to be transmitted to the server. For example, some protocols enable the proxy to preset the client-side information in the payload of the new TCP connection established by the proxy and the server (or the next-hop proxy). The client-side information of the TCP connection is usually the original 5-tuple, but it can be expanded (augment) according to the usage. The preamble (also called the header) can be encoded in a human-readable format or a binary format.

[0020] In modern software-defined networks (SDNs), network proxies are called control plane constructs and have no physical hops through which traffic is routed. The main advantages of this are that single points of failure are eliminated and resiliency, performance, and scalability are provided. On the other hand, the lack of physical proxies creates significant challenges for supporting third-party solutions that require client information (e.g., through a proxy protocol). These third-party solutions expect proxies on the data plane to modify traffic explicitly, which is not the case. Many cloud customers require the ability to “lift and shift” existing workloads between different deployments (i.e., move workloads to different deployments without requiring reconfiguration). When the original deployment relies on proxies, this can become a technical barrier to performing the transition without major modifications to the network architecture, or provide a crippled solution that does not fully leverage the full power of SDN.

[0021] The embodiments herein are intended to be agentless controllers that simulate the presence of agents for preconfigured workloads without sacrificing the advantages of SDN. The agentless controller intercepts a TCP connection request from a client that is configured to communicate with an agent. The TCP connection request includes a first sequence number. The agentless controller injects client information into a TCP connection between the client and a destination server, thereby providing client identification data to the destination server instead of the agent. The agentless controller uses a second sequence number based on the first sequence number provided by the client to establish a connection with the destination server. The agentless controller sends an acknowledgment to the client based on the updated sequence number, so that the client and the destination server communicate without modifying each packet. This avoids the very high throughput cost caused by such modifications and allows the agentless controller to provide packet processing close to line rate. Although the examples here discuss implementations regarding TCP connections, the same principles can also be used to implement other connection-oriented protocols.

[0022] refer to Figure 1 In some implementations, the example system 100 includes a client device 102 (also referred to herein as a client 102), which is part of a computing system 140 or in communication with the computing system 140 (e.g., via a network). The client device 102 can correspond to any computing device, such as a desktop workstation, a laptop workstation, a server, or a mobile device (i.e., a smartphone). The client device 102 includes computing resources 108 (e.g., data processing hardware) and / or storage resources 106 (e.g., memory hardware). The client 102 is associated with client information 104. The client information 104 may include any information identifying the client 102, such as an IP address, a source port, a destination port, an identification number, etc.

[0023] The computing system 140 can be a single computer, multiple computers, or a distributed system (e.g., a cloud environment) with scalable / elastic computing resources 144 (e.g., data processing hardware) and / or storage resources 142 (e.g., memory hardware). Data storage 146 (i.e., remote storage device 146) can be overlaid on the storage resource 142 to allow one or more clients or computing resources 144 to scalably use the storage resource 142.

[0024] The client 102 is configured to communicate with a destination server 110 or other networked computing device via a proxy. The destination server 110 includes computing resources 118 (e.g., data processing hardware) and / or storage resources 116 (e.g., memory hardware). In order to communicate with the destination server 110, the client 102 attempts to send a first TCP connection request 210, 210A to the proxy.

[0025] The computing system 140 executes the agentless controller 150, which intercepts the TCP connection request 210A. In some examples, the client 102 executes on the computing system 140, so the agentless controller 150 can access the client's network traffic, thereby allowing the agentless controller 150 to intercept the TCP connection request 210A. In other examples, the destination server 110 executes on the computing system 140, and the client 102 directs the TCP connection request 210A to the computing system 140, which allows the agentless controller 150 to intercept the TCP connection request 210A. In other examples, the client 102 and the destination server 110 execute on the computing system 140 (e.g., as part of a distributed system), which also allows the agentless controller 150 to intercept the TCP connection request 210A. Optionally, the computing system 140 operates as a network address translation (NAT) device (i.e., an ingress NAT and / or an egress NAT) for one or both of the client 102 and the destination server 110.

[0026] When intercepting the TCP connection request 210A, the agentless controller 150 may determine that the TCP connection request 210A is a new connection attempting to connect to a proxy (e.g., a virtual TCP endpoint or other intermediary). Optionally, the TCP connection request 210A from the client 102 establishes a connection with the virtual TCP endpoint (i.e., no physical host exists). In some examples, before the client 102 initiates the TCP connection request 210A, the owner of the client 102 provides configuration data to the computing system 140 so that the computing system 140 recognizes that the TCP connection request 210A is from the client 102 and that it intends to connect to a proxy. For example, the owner of the client 102 may provide configuration information to identify the source IP address or the destination IP address of the TCP connection request 210A, and when the agentless controller 150 receives or intercepts the TCP connection request 210A, the agentless controller 150 may compare the source or destination IP address (or any other parameter) with the configuration information to determine that the TCP connection request 210A is for a proxy.

[0027] The TCP connection request 210A includes a first sequence number 212, 212A. All bytes in the TCP connection are numbered, starting with a randomly selected initial sequence number 212 (i.e., ISN). After the initial SYN packet, the sequence number 212 is incremented for each data byte transmitted between the source and the destination. Thus, the sequence number 212 represents the first byte number of the first data byte in the TCP data packet. The receiver acknowledges the message by responding with an acknowledgment number 222 that matches the sequence number 212 of the next byte that the receiver expects to receive.

[0028] After intercepting the first TCP connection request 210A and determining the client's intention to establish a connection with the proxy, the agentless controller 150 sends a second TCP connection request 210, 210B to the destination server 110, the second TCP connection request 210, 210B requesting to establish a TCP connection between the client 102 and the destination server 110. The second TCP connection request 210B includes a second sequence number 212, 212B. As discussed in more detail below, the second sequence number 212B is less than (i.e., smaller than) the first sequence number 212A. In some examples, the second TCP connection request 210B is the first TCP connection request 210A with a modified sequence number 212 (i.e., the sequence number 212 is smaller). That is, in some examples, the agentless controller "hijacks" the first TCP connection request 210A and replaces the first TCP connection request 210A with the second TCP connection request 210B (which may be a modified form of the first TCP connection request 210A).

[0029] The agentless controller 150 intercepts or receives a first confirmation message 220, 220A from the destination server 110, the first confirmation message 220, 220A indicating confirmation of the second TCP connection request 210B. The first confirmation message 220A may include a first confirmation number 222, 222A associated with the second sequence number 212B. For example, the first confirmation number 222A is one greater than the second sequence number 212B, indicating that the destination server 110 has confirmed the second TCP connection request 210B.

[0030] After receiving the first confirmation message 220A from the destination server 110, the agentless controller 150 sends the client information 104 to the destination server 110. For example, the agentless controller 150 sends a proxy protocol header 230 (FIG. 2) data packet (or other similar data packet) to the destination server 110. The proxy protocol header 230 may include some or all of the client information 104 in the data payload. The proxy protocol header 230 is merely exemplary, and the agentless controller 150 may "inject" any data in any format into the destination server 110 to facilitate the network connection. The destination server 110 responds to the proxy protocol header 230 (FIG. 2) with a second confirmation message 220B. Figure 2A ). In some examples, the agentless controller 150 updates a first acknowledgment message 220A previously received from the destination server 110 based on the first sequence number 212A, and sends an updated acknowledgment message 220C having an updated sequence number 212C to the client 102. The updated sequence number 212C corresponds to the sequence number that the client 102 expects to receive in response to the first TCP connection request 210A. In other examples, the agentless controller 150 updates a different acknowledgment message 220 (e.g., a second acknowledgment message 220B) or generates an entirely new acknowledgment message 220, rather than modifying or updating the previously received acknowledgment message 220. Importantly, all of these solutions are equivalent as long as the acknowledgment message 220 sent by the agentless controller 150 to the client 102 includes any necessary information (e.g., TCP options) of the previous acknowledgment message 220 received from the destination server 110, the sequence number 212 expected by the client 102, and the acknowledgment number 222 last sent by the destination server 110. Thus, when generating the acknowledgment message 220C, the agentless controller may use portions of the TCP connection request 210A (eg, sequence number 212) and / or previous acknowledgment messages 220A, 220B (eg, any TCP options, acknowledgment number 222, etc.).

[0031] In some examples, the agentless controller 150 may retransmit and / or regenerate any messages that are dropped or otherwise lost between the client 102 and the destination 110. When packets are dropped or lost, the agentless controller 150 may replay the payload from the lost packet.

[0032] Reference now Figure 2A, sequence diagram 200a provides an exemplary series of messages between client 102, agentless controller 150, and destination server 110. First, client 102 attempts to send a first TCP connection request 210A to the proxy, however, agentless controller 150 receives or intercepts TCP connection request 210A. Agentless controller 150 may determine based on previously received configuration information that client 102 intends to establish a connection with the proxy to communicate with destination server 110. In response, agentless controller 150 sends a second TCP connection request 210B to destination server 110. Destination server 110 responds to second TCP connection request 210B with an acknowledgment message 220A (i.e., SYN|ACK). In response to acknowledgment message 220A, agentless controller 150 sends proxy protocol header 230 to destination server 110, providing client information 104 to destination server 110, enabling destination server 110 to provide client-specific policies (e.g., access control lists, etc.).

[0033] The destination server 110 acknowledges the proxy protocol header 230 with another acknowledgement message 220B. In response to the second acknowledgement message 220B, the agentless controller 150 generates a new acknowledgement message or updates the first (or second or newly generated) acknowledgement message 220A, and sends the new or updated acknowledgement message 220C to the client 102. The new acknowledgement message 220C includes an updated acknowledgement number 222C. After receiving the appropriate acknowledgement for its TCP connection request 210A, the client 102 continues to communicate with the destination server 110 via the data packet 250. In this case, the client may be configured and / or expected to communicate with the destination server 110 via a proxy, and the destination server 110 may also be configured and / or expected to communicate with the client 102 via a proxy, but in fact the client 102 and the destination server 110 communicate without a proxy.

[0034] Sequence diagram 200a is exemplary only, and the order and number of messages may vary depending on the implementation needs of a particular system. For example, client 102 may use TCP fast open to include a data payload in the original TCP connection request 210A. In this case, agentless controller 150 may initially discard the data payload and replay the data to destination server 110 after the TCP connection is established by appropriately adjusting sequence number 212B.

[0035] Reference now Figure 2B, sequence diagram 200b provides the same exemplary message series as sequence diagram 200a, but with additional details regarding sequence number 212 and acknowledgment number 222. Here, client 102 sends a first TCP connection request 210A (i.e., a SYN packet) with sequence number 212A equal to "100". Notably, in response to TCP connection request 210A, client 102 expects acknowledgment number 222 of acknowledgment message 220 equal to "101". Agentless controller 150 receives TCP connection request 210A and determines that client 102 intends to establish a connection to destination server 110 via a proxy. Agentless controller 150 sends a second TCP connection request 210B (i.e., another SYN packet) to destination server 110 with sequence number 212B equal to "80". In this example, the agentless controller 150 determines the second sequence number 212B by rolling back or decrementing the first sequence number 212A (sent by the client 102 in the first TCP connection request 210A) by an amount equal to the amount of data in the proxy protocol header 230. Here, the agentless controller 150 intends to send 20 bytes of data in the proxy protocol header 230 (which includes the client information 104). Therefore, 100 (i.e., the sequence number 212A) minus 20 (i.e., the number of bytes in the proxy protocol header 230) equals "80". The agentless controller 150 can set the second sequence number 212B to any value less than the first sequence number 212A, depending on the amount of data that the agentless controller 150 intends to send to the destination server 110 before confirming the connection to the client 102.

[0036] Next, the agentless controller 150 receives an acknowledgement message 220A (i.e., a SYN|ACK packet) with a sequence number 212 equal to "200" and an acknowledgement number 222 equal to "81". The acknowledgement number 222 of "81" acknowledges the sequence number 212 of "80" previously sent by the agentless controller 150. After receiving the acknowledgement message 220A, the agentless controller 150 proceeds to send the proxy protocol header 230 (and / or any other data that the destination server 110 may desire or require). Here, the sequence number 212 is equal to "81" (matching the previous acknowledgement number 222A), the length is "20" (i.e., 20 bytes), and the acknowledgement number 222 is equal to "201" (matching the sequence number 212 of "200" previously provided by the destination server 110). The destination server 110 acknowledges the proxy protocol header 230 with an acknowledgement message 220B including a sequence number 212 equal to "201" and an acknowledgement number 222 equal to "101".

[0037] The agentless controller 150 updates the acknowledgment message 220A (which may include important connection information required by the client 102) based on the sequence number 212A of the original TCP connection request 210A from the client 102. That is, the agentless controller 150 replaces the original acknowledgment number 222A with the updated acknowledgment number 222, which is what the client 102 expects in response to the TCP connection request 210A. In this example, the agentless controller 150 sends an acknowledgment message 220C (i.e., a SYN packet) with the sequence number 212 equal to "201" (to match the sequence number 212 provided by the acknowledgment message 220B) and the acknowledgment number 222 equal to "101" (to match the acknowledgment number 222 expected by the client 102 in response to the TCP connection request 210A). From this point on, the client 102 and the destination server 110 are free to communicate with the agentless controller 150, with packets 250 only forwarded between the two (i.e., no deep inspection or modification of the required packets is required). For example, client 102 follows up with data packet 250 , which includes sequence number 212 equal to “101” and acknowledgment number 222 equal to “202”, which is consistent with the expectations of destination server 110 .

[0038] Reference now Figure 3 , conventional techniques typically require a proxy (or other intermediary) to continuously modify packets transmitted between a client 102 and a destination server 110. In some examples, the agentless controller 150 includes a cache 310 that caches connection information 320. The connection information 320 identifies a TCP connection between the client 102 and the destination server 110. When a TCP packet 250 (i.e., packet 250) is sent from the client 102 to the destination server 110 (or vice versa), the agentless controller 150 may receive the TCP packet 250 and determine based on the connection information 320 that the TCP packet 250 is part of an existing TCP connection and is destined for the client 102 or the destination server 110. When the agentless controller 150 determines that the TCP packet 250 is part of an existing connection, the agentless controller 150 may forward the TCP packet 250. To avoid reducing throughput, the agentless controller 150 may store the connection information 320 in the cache 310, thereby allowing the agentless controller 150 to quickly and efficiently determine whether the TCP packet 250 is associated with any connection stored in the cache 310. When the connection information 320 confirms that the incoming data packet 250 is part of an existing TCP connection, the agentless controller 150 forwards the data packet 250 to the appropriate destination without further inspecting or modifying the data packet 250 .

[0039] Thus, the system provides a proxyless protocol that allows existing proxy-based deployments to switch to agentless deployments (e.g., SDN) without reconfiguration. The system delivers packet processing at or near line rate by requiring minimal packet intervention. Rather than modifying all packets, the system modifies sequence numbers (or other protocol-specific means of tracking data) so that only a small number of packets need to be modified at the beginning of a connection. The system can then use a caching mechanism for ongoing data flows to maintain a high data rate.

[0040] Figure 4 4 is a flowchart of an exemplary arrangement of operations of a method 400 for a proxyless protocol. The method 400 includes, at operation 402, intercepting a first TCP connection request 210A from a client 102 requesting to establish a first TCP connection between the client 102 and a proxy server 142 for routing data to a destination server 110 through the proxy server 142. The first TCP connection request 110A includes client information 104 and a first sequence number 212A. At operation 404, the method 400 includes sending a second TCP connection request 210B to the destination server 110 requesting to establish a second TCP connection between the client 102 and the destination server 110. In some examples, the second TCP connection request 210B is a modified form of the intercepted first TCP connection request 210A. The second TCP connection request 210B includes a second sequence number 212B that is less than the first sequence number 212A. At operation 406, the method 400 includes intercepting a confirmation message 220A from the destination server 110 indicating confirmation of the second TCP connection request 210B. At operation 408, method 400 includes sending a data packet including proxy protocol header 230 including client information 104 to destination server 110. At operation 410, method 400 includes generating a new confirmation message 220C using first TCP connection request 210A and sending the new confirmation message 220C to client 102.

[0041] Figure 5 is a schematic diagram of an exemplary computing device 500 that can be used to implement the systems and methods described in this document. Computing device 500 represents various forms of digital computers, such as laptops, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The components shown here, their connections and relationships, and their functions are merely exemplary and are not intended to limit the embodiments of the inventions described and / or claimed in this document.

[0042] The computing device 500 includes a processor 510, a memory 520, a storage device 530, a high-speed interface / controller 540 connected to the memory 520 and a high-speed expansion port 550, and a low-speed interface / controller 560 connected to a low-speed bus 570 and the storage device 530. Each of the components 510, 520, 530, 540, 550 and 560 is interconnected using various buses and can be appropriately mounted on a common motherboard or otherwise mounted. The processor 510 can process instructions for execution within the computing device 500, including instructions stored in the memory 520 or on the storage device 530, to display graphical information of a graphical user interface (GUI) on an external input / output device (e.g., a display 580 coupled to the high-speed interface 540). In other embodiments, multiple processors and / or multiple buses and multiple memories and multiple types of memories can be used appropriately. In addition, multiple computing devices 500 can be connected, each device providing part of the necessary operations (e.g., as a server library, a blade server group, or a multi-processor system).

[0043] Memory 520 stores information non-transitorily within computing device 500. Memory 520 may be a computer-readable medium, a volatile memory unit, or a non-volatile memory unit. Non-transitory memory 520 may be a physical device used to temporarily or permanently store programs (e.g., sequences of instructions) or data (e.g., program state information) for use by computing device 500. Examples of non-volatile memory include (but are not limited to) flash memory and read-only memory (ROM) / programmable read-only memory (PROM) / erasable programmable read-only memory (EPROM) / electrically erasable programmable read-only memory (EEPROM) (e.g., commonly used for firmware, such as boot programs). Examples of volatile memory include, but are not limited to, random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), phase change memory (PCM), and disk or tape.

[0044] The storage device 530 can provide mass storage for the computing device 500. In some embodiments, the storage device 530 is a computer-readable medium. In various embodiments, the storage device 530 can be a floppy disk device, a hard disk device, an optical disk device, or a tape device, a flash memory or other similar solid-state memory device, or an array of devices, including devices in a storage area network or other configuration. In other embodiments, a computer program product is tangibly contained in an information carrier. The computer program product includes instructions that, when executed, perform one or more methods, such as those described above. The information carrier is a computer or machine-readable medium, such as a memory 520, a storage device 530, or a memory on a processor 510.

[0045] The high-speed controller 540 manages bandwidth-intensive operations of the computing device 500, while the low-speed controller 560 manages less bandwidth-intensive operations. This allocation of responsibilities is exemplary only. In some embodiments, the high-speed controller 540 is coupled to the memory 520, the display 580 (e.g., through a graphics processor or accelerator), and the high-speed expansion port 550, which can accept various expansion cards (not shown). In some embodiments, the low-speed controller 560 is coupled to the storage device 530 and the low-speed expansion port 590. The low-speed expansion port 590 can include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet), and can be coupled to one or more input / output devices, such as a keyboard, a pointing device, a scanner, or a networking device, such as a switch or a router, through a network adapter.

[0046] As shown, computing device 500 can be implemented in a variety of different forms. For example, it can be implemented as a standard server 500a or in a group of such servers 500a, multiple implementations as a laptop 500b, or implemented as part of a rack server system 500c.

[0047] Various implementations of the systems and techniques described herein can be realized in digital electronic and / or optical circuitry, integrated circuits, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementations in one or more computer programs executable and / or interpretable on a programmable system including at least one programmable processor, which may be special purpose or general purpose, coupled to receive data and instructions from and send data and instructions to a storage system, at least one input device, and at least one output device.

[0048] A software application (i.e., software resource) may refer to computer software that enables a computing device to perform tasks. In some examples, a software application may be referred to as an "application," "app," or "program." Example applications include, but are not limited to, system diagnostic applications, system management applications, system maintenance applications, word processing applications, spreadsheet applications, messaging applications, media streaming applications, social networking applications, and gaming applications.

[0049] These computer programs (also referred to as programs, software, software applications or code) include machine instructions for a programmable processor and may be implemented in high-level procedural and / or object-oriented programming languages ​​and / or in assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, non-transitory computer-readable medium, apparatus and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0050] The processes and logic flows described in this specification can be performed by one or more programmable processors (also referred to as data processing hardware), executing one or more computer programs to perform functions by operating on input data and generating outputs. The processes and logic flows can also be performed by dedicated logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application-specific integrated circuits). For example, processors suitable for executing computer programs include general-purpose and special-purpose microprocessors, and any one or more processors of any type of digital computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include or be operably coupled to receive data from or transmit data to one or more mass storage devices, which are used to store data, such as magnetic disks, magneto-optical disks, or optical disks. However, a computer does not have to have such a device. Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices, such as EPROM, EEPROM and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; CD ROM and DVD-ROM disks. The processor and memory may be supplemented by or incorporated in special purpose logic circuits.

[0051] To provide interaction with a user, one or more aspects of the present disclosure may be implemented on a computer having a display device, such as a CRT (cathode ray tube), an LCD (liquid crystal display) screen, or a touch screen for displaying information to the user, and optionally also having a keyboard and a pointing device, such as a mouse or trackball, through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including sound, voice, or tactile input. In addition, the computer may interact with the user by sending documents to and receiving documents from a device used by the user; for example, by sending a web page to a web browser on a user's client device in response to a request received from the web browser.

[0052] A variety of implementations have been described. However, it should be understood that various modifications can be made without departing from the spirit and scope of the present disclosure. Therefore, other implementations are also within the scope of the appended claims.

Claims

1. A method for a proxyless protocol, It is characterized in that When executed by data processing hardware, the data processing hardware is caused to perform the following operations: intercepting a first transmission control protocol (TCP) connection request from a client, wherein the first TCP connection request requests to establish a first TCP connection between the client and a proxy server to route data to a destination server through the proxy server, wherein the first TCP connection request includes client information and a first sequence number; Sending a second TCP connection request to the destination server, wherein the second TCP connection request requests to establish a second TCP connection between the client and the destination server, and the second TCP connection request includes a second sequence number that is smaller than the first sequence number; intercepting a first confirmation message from the destination server, where the first confirmation message indicates confirmation of the second TCP connection request; Sending a data packet to the destination server, the data packet including a proxy protocol header message in a payload of the data packet, the proxy protocol header message including the client information; intercepting a second confirmation message from the destination server, the second confirmation message indicating confirmation of the data packet, the second confirmation message including a first confirmation number; Generate a third confirmation message using the first TCP connection request, the third confirmation message including a second confirmation number based on the first confirmation number; Sending the third confirmation message to the client; storing, at a cache in communication with the data processing hardware, connection information indicating one or more TCP connections between the client and the destination server; as well as After transmitting the third confirmation information: intercepting TCP data packets from the client for the proxy server; retrieving the connection information from the cache; determining that the TCP data packet is associated with a corresponding one of the one or more TCP connections of the retrieved connection information; as well as Based on determining that the TCP data packet is associated with the one or more TCP connections of the connection information, the TCP data packet is forwarded to the destination server without modifying the TCP data packet or reconfiguring the corresponding one of the one or more TCP connections.

2. The method according to claim 1, It is characterized in that The operation also includes, before intercepting a TCP connection request from the client, obtaining client configuration data indicating the client's intention to communicate with the proxy server, the TCP connection request including the first TCP connection request and the second TCP connection request.

3. The method according to claim 2, It is characterized in that The client configuration data includes a destination identifier identifying the destination server; and The operations also include, after intercepting the TCP connection request from the client, determining that the client intends to communicate with the proxy server using the destination identifier.

4. The method according to claim 3, It is characterized in that The destination identifier comprises an Internet Protocol (IP) address.

5. The method according to claim 1, It is characterized in that Intercepting the first TCP connection request from the client includes determining that a SYN flag is set in the first TCP connection request.

6. The method according to claim 1, It is characterized in that A difference between the first sequence number and the second sequence number is equal to a size of the proxy protocol header message.

7. The method according to claim 1, It is characterized in that The first confirmation message includes connection configuration information; and The third confirmation message includes the same connection configuration information as the first confirmation message.

8. The method according to claim 1, It is characterized in that After sending the third confirmation message to the client, the client and the destination server communicate directly without modification by the data processing hardware.

9. The method according to claim 1, It is characterized in that The client is far away from the destination server; and The first TCP connection request is intercepted at the client.

10. The method according to claim 1, It is characterized in that The client is far away from the destination server; and The first TCP connection request is intercepted at the destination server.

11. A system for a proxyless protocol, It is characterized in that include: Data processing hardware; and Memory hardware in communication with the data processing hardware, the memory hardware storing instructions that, when executed on the data processing hardware, cause the data processing hardware to perform the following operations: intercepting a first transmission control protocol TCP connection request from a client, wherein the first TCP connection request requests to establish a first TCP connection between the client and a proxy server so as to route data to a destination server through the proxy server, wherein the first TCP connection request includes client information and a first sequence number; Sending a second TCP connection request to the destination server, wherein the second TCP connection request requests to establish a second TCP connection between the client and the destination server, and the second TCP connection request includes a second sequence number that is smaller than the first sequence number; intercepting a first confirmation message from the destination server, where the first confirmation message indicates confirmation of the second TCP connection request; Sending a data packet to the destination server, the data packet including a proxy protocol header message in a payload of the data packet, the proxy protocol header message including the client information; intercepting a second confirmation message from the destination server, the second confirmation message indicating confirmation of the data packet, the second confirmation message including a first confirmation number; generating a third confirmation message using the first TCP connection request, the third confirmation message including a second confirmation number based on the first confirmation number; Sending the third confirmation message to the client; storing, at a cache in communication with the data processing hardware, connection information indicating one or more TCP connections between the client and the destination server; as well as After transmitting the third confirmation information: intercepting TCP data packets from the client for the proxy server; retrieving the connection information from the cache; determining that the TCP data packet is associated with a corresponding one of the one or more TCP connections of the retrieved connection information; as well as Based on determining that the TCP data packet is associated with the one or more TCP connections of the connection information, the TCP data packet is forwarded to the destination server without modifying the TCP data packet or reconfiguring the corresponding one of the one or more TCP connections.

12. The system according to claim 11, It is characterized in that The operation also includes, before intercepting a TCP connection request from the client, obtaining client configuration data indicating the client's intention to communicate with the proxy server, the TCP connection request including the first TCP connection request and the second TCP connection request.

13. The system according to claim 12, It is characterized in that The client configuration data includes a destination identifier identifying the destination server; and The operations also include, after intercepting the TCP connection request from the client, determining that the client intends to communicate with the proxy server using the destination identifier.

14. The system according to claim 13, It is characterized in that The destination identifier comprises an Internet Protocol (IP) address.

15. The system according to claim 11, It is characterized in that Intercepting the first TCP connection request from the client includes determining that a SYN flag is set in the first TCP connection request.

16. The system according to claim 11, It is characterized in that A difference between the first sequence number and the second sequence number is equal to a size of the proxy protocol header message.

17. The system according to claim 11, It is characterized in that The first confirmation message includes connection configuration information; and The third confirmation message includes the same connection configuration information as the first confirmation message.

18. The system according to claim 11, It is characterized in that After sending the third confirmation message to the client, the client and the destination server communicate directly.

19. The system according to claim 11, It is characterized in that The client is far away from the destination server; and The first TCP connection request is intercepted at the client.

20. The system according to claim 11, It is characterized in that The client is far away from the destination server; and The first TCP connection request is intercepted at the destination server.

Citation Information

Patent Citations

  • Communication connection establishing method and proxy server

    CN109587275A

  • Data transmission method and gateway as well as server and computer-readable storage medium

    US20190191014A1

  • Connection management using connection request transfer protocol

    US9338192B1

  • Method and TCP proxy for supporting communication between a client device and a server node

    WO2015167375A1

  • Data transmission method, system, and proxy server

    WO2020077680A1