CN116303171A - Data interaction method and device between servers, electronic equipment and medium - Google Patents

Data interaction method and device between servers, electronic equipment and medium Download PDF

Info

Publication number
CN116303171A
CN116303171A CN202310275245.4A CN202310275245A CN116303171A CN 116303171 A CN116303171 A CN 116303171A CN 202310275245 A CN202310275245 A CN 202310275245A CN 116303171 A CN116303171 A CN 116303171A
Authority
CN
China
Prior art keywords
network card
server
data
interface
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310275245.4A
Other languages
Chinese (zh)
Inventor
李承钊
沈卫强
赵武清
柏姗姗
耿新
李科德
李英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Digital Power Grid Group Information Communication Technology Co ltd
Original Assignee
China Southern Power Grid Digital Power Grid Group Information Communication Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Southern Power Grid Digital Power Grid Group Information Communication Technology Co ltd filed Critical China Southern Power Grid Digital Power Grid Group Information Communication Technology Co ltd
Priority to CN202310275245.4A priority Critical patent/CN116303171A/en
Publication of CN116303171A publication Critical patent/CN116303171A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a data interaction method and device between servers, electronic equipment and a medium. The method comprises the following steps: establishing a communication channel between the first network card and the second network card based on the first network card deployed on the first server and the second network card deployed on the second server; acquiring data to be transmitted in a first target application memory based on a first network card, and transmitting the data to be transmitted to a second network card through a preset communication protocol and a communication channel, wherein the first target application memory is a cache of an application program installed on a first server; and transmitting the data to be transmitted to a second target application memory on a second server through a second network card. The method and the system solve the problem that the data interaction of the application program memory on the current server needs to be forwarded through the server system, occupy more resources of the central processing unit of the server, and realize the data interaction between the application program memories without participation of the central processing unit.

Description

Data interaction method and device between servers, electronic equipment and medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a method and apparatus for data interaction between servers, an electronic device, and a medium.
Background
The explosion of the Internet has prompted the growth of ultra-large data centers. Large data centers run a large number of servers and switches, each running a respective complex hierarchical stack. While virtualization and distributed techniques add more complexity to the system running on the server. These complexities place heavy stress on computation, storage, and networking, and place the CPU on a dead load.
At present, the main mode of data interaction between application programs on data between servers is that the servers establish connection through a communication channel, a sender server system accesses the data in an application program memory and sends the data through the communication channel, a receiver server receives the data, and a system of the receiver server stores the received data in the application program memory. Therefore, each time data is transmitted and received, the server is required to allocate some CPU resources for data forwarding and receiving, and the CPU resources cannot be applied to other services of the server, so that the CPU resources of the server occupy more.
Disclosure of Invention
The invention provides a data interaction method, a device, electronic equipment and a medium between servers, so as to realize data interaction between memories of application programs on the servers.
According to an aspect of the present invention, there is provided a data interaction method between servers, including:
establishing a communication channel between a first network card and a second network card based on the first network card deployed on a first server and the second network card deployed on a second server; the first network card and the second network card are intelligent network cards;
acquiring data to be transmitted in a first target application memory based on the first network card, and transmitting the data to be transmitted to the second network card through a preset communication protocol and the communication channel, wherein the first target application memory is a cache of an application program installed on the first server;
and transmitting the data to be transmitted to a second target application memory on the second server through the second network card, wherein the second target server is a cache of an application program installed on the second server.
According to another aspect of the present invention, there is provided a data interaction device between servers, including:
the communication establishing module is used for establishing a communication channel between the first network card and the second network card based on the first network card deployed on the first server and the second network card deployed on the second server; the first network card and the second network card are intelligent network cards;
the data sending module is used for obtaining data to be sent in a first target application memory based on the first network card, and sending the data to be sent to the second network card through a preset communication protocol and the communication channel, wherein the first target application memory is a cache of an application program installed on the first server;
and the data receiving module is used for transmitting the data to be transmitted to a second target application memory on the second server through the second network card, wherein the second target server is a cache of an application program installed on the second server.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a method of data interaction between servers according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a method for data interaction between servers according to any of the embodiments of the present invention.
According to the technical scheme, a communication channel between a first network card and a second network card is established based on the first network card deployed on a first server and the second network card deployed on a second server; the first network card and the second network card are intelligent network cards; acquiring data to be transmitted in a first target application memory based on the first network card, and transmitting the data to be transmitted to the second network card through a preset communication protocol and the communication channel, wherein the first target application memory is a cache of an application program installed on the first server; and transmitting the data to be transmitted to a second target application memory on the second server through the second network card, wherein the second target server is a cache of an application program installed on the second server. The method and the system solve the problem that the data interaction of the application program memory on the current server needs to be forwarded through the server system, occupy more resources of the central processing unit of the server, and realize the data interaction between the application program memories without participation of the central processing unit.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for data interaction between servers according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a data interaction device between servers according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for data interaction between servers according to an embodiment of the present invention, where the method may be performed by a data interaction device between servers, the data interaction device between servers may be implemented in hardware and/or software, and the data interaction device between servers may be configured in a server. As shown in fig. 1, the method includes:
s110, based on a first network card deployed on a first server and a second network card deployed on a second server, establishing a communication channel between the first network card and the second network card.
The first network card and the second network card are intelligent network cards, and the first server and the second server refer to servers needing data interaction.
Specifically, if there is a data interaction requirement between two servers, the intelligent network cards can be deployed on the two servers respectively. Correspondingly, the first network card is deployed on the first server, the second network card is deployed on the second server, and the first network card and the second network card are both intelligent network cards. After the intelligent network cards are deployed, data interaction can be performed between the first server and the second service through the communication channels between the intelligent network cards.
In the embodiment of the present invention, the first network card and the second network card have the same structure, and the first network card includes: the system comprises at least one Ethernet port and a server interface, wherein the server interface is connected with the first server, and the Ethernet port of the first network card is connected with the Ethernet port of the second network card; the first network card internally comprises a field programmable gate array and a central processing unit.
The server interface comprises at least one of a high-speed serial computer expansion bus standard interface and an open service interface.
In practical application, the first network card and the second network card may be intelligent network cards with the same structure and function, and the structure of the first network card is described in detail as follows: the first network card is mainly connected with the first server through a server interface, and the server interface can be a high-speed serial computer expansion bus standard interface (periph eralcomponentinterconnectexpres, PCIE) interface or an Open service (Open ComputeProject, OCP) interface. The first network card also comprises an Ethernet port, the Ethernet port of the first network card and the second network card can be in communication connection through the Ethernet port, and the main framework of the first network card is the combination of a field programmable gate array (FieldProgrammableGateArray, FPGA) and a central processing unit (CentralProcessingUnit, CPU).
On the basis of the above technical solution, the establishing a communication channel between the first network card and the second network card based on the first network card deployed on the first server and the second network card deployed on the second server includes: installing a driver matched with a service interface in the first network card on the first service, and installing a driver matched with the service interface in the second network card on the second server; and establishing a communication channel between the first network card and the second network card based on the Ethernet interface of the first network card and the Ethernet interface of the second network card.
Specifically, corresponding drivers are installed on the server according to different service interfaces, the intelligent network card can forward data on the server, and a communication channel between the first network card and the second network card can be established based on the Ethernet ports of the first network card and the second network card.
S120, acquiring data to be transmitted in a first target application memory based on the first network card, and transmitting the data to be transmitted to the second network card through a preset communication protocol and the communication channel.
The first target application memory is a cache of an application program installed on the first server.
It can be understood that the first network card can directly acquire the data in the target application memory on the first server, that is, the intelligent network card accesses the data in the application memory on the first server, the data can be directly accessed into the application memory without forwarding through a system on the first server or participation of a CPU on any server, the data to be transmitted is used as the data to be transmitted, and the data to be transmitted is transmitted to the second network card through a communication channel between the first network card and the second network card, so that the CPU computing power of the server can be unloaded.
On the basis of the technical scheme, the method further comprises the following steps: the preset communication protocol includes: ethernet remote memory direct access protocol.
The Ethernet remote memory direct access protocol comprises a first protocol and a second protocol.
Specifically, the ethernet memory direct access protocol (Remotedirectmemoryaccess overconvergedEthernet, ROCE) may implement direct access to the memory of an application. The ethernet remote memory direct access protocol includes a first protocol and a second protocol, and two protocols are described below:
RoCEv1: the protocol is defined as rdmaoverethernet header. It uses ethernet type 0x8915, with or without VLAN tags. The conventional ethernet MTU is applicable to RoCE frames.
RoCEv2: a direct extension of the RoCE protocol enables traffic to run in an iplyer 3 environment. This capability is obtained by modifying the RoCE packet format. The IP routable RoCEv2 packet carries an IP header to allow traversing IPL3 routers while carrying a UDP header for use as a stateless encapsulation of RDMA over IP transport protocol packets.
RoCEv2: the packet uses the UDP destination port value to explicitly distinguish the datagram. Like other protocols that use UD P encapsulation, the UDP source port field is used to carry an opaque flow identifier that allows the network device to implement packet forwarding optimization (e.g., ECMP) without regard to details of the protocol header format.
Furthermore, since modifications to the RoCE packets affect only the packet format on the line, and since RDMA semantic packets are generated and used under the AP, the application can run seamlessly over RDMA services in a completely transparent manner.
On the basis of the above technical solution, the obtaining, based on the first network card, data to be sent in a first target application memory, and sending the data to be sent to the second network card through a preset communication protocol and the communication channel includes: accessing data to be transmitted in the first target application memory based on a service interface between a first network card and the first server; and encapsulating the data to be sent according to the preset communication protocol, and sending the encapsulated data to be sent to the second network card through the communication channel.
Specifically, the data to be sent is processed according to a preset communication protocol, for example, the data to be sent is encapsulated, the encapsulated data is sent to the second network card, and the data encapsulated by the protocol can be directly sent to the memory of the application program on the second server without forwarding through the system on the second server.
And S130, transmitting the data to be transmitted to a second target application memory on the second server through the second network card, wherein the second target server is a cache of an application program installed on the second server.
On the basis of the above technical solution, transmitting the data to be sent to a second target application memory on the second server through the second network card includes: receiving the packaged data to be sent based on the second network card, and analyzing the data to be sent to obtain target data; and storing the target data in the second target application memory based on a second network card and the server interface.
After the second network card receives the data, the data can be directly analyzed according to the protocol and stored in the memory of the second target application, so that the data interaction between the application memory on the first server and the application memory on the second server is realized. The CPU on the server is not needed to participate, the CPU pressure of the server is reduced, the data transmission efficiency is improved, and more CPU resources can be provided for the application on the server by the server.
On the basis of the technical scheme, the method further comprises the following steps: the first network card and the second network card are provided with intelligent network card management interfaces and a network card management system; and accessing the network card management system based on the intelligent network card management interface so as to manage the first network card and the second network card based on the network card management system.
In practical application, the first network card and the second network card can be managed, and the specific implementation manner is to install corresponding network card management systems on the first network card and the second network card. The intelligent network card is provided with a corresponding network card management access interface, and the intelligent network card can be accessed through the interface to realize further management of the intelligent network card, such as importing and exporting the message of the intelligent network card, configuring the protocol of the intelligent network card and the like, so that the management of the intelligent network card is greatly facilitated.
In terms of management, a general intelligent network card needs to provide a gigabit management network port so as to manage a network card small system. Meanwhile, in order to ensure the reliability of the network card, the industry also designs a management system on the intelligent network card, and at the moment, the network card needs to access the management system on the network card through an interface.
According to the technical scheme, a communication channel between a first network card and a second network card is established based on the first network card deployed on a first server and the second network card deployed on a second server; the first network card and the second network card are intelligent network cards; acquiring data to be transmitted in a first target application memory based on the first network card, and transmitting the data to be transmitted to the second network card through a preset communication protocol and the communication channel, wherein the first target application memory is a cache of an application program installed on the first server; and transmitting the data to be transmitted to a second target application memory on the second server through the second network card, wherein the second target server is a cache of an application program installed on the second server. The method and the system solve the problem that the data interaction of the application program memory on the current server needs to be forwarded through the server system, occupy more resources of the central processing unit of the server, and realize the data interaction between the application program memories without participation of the central processing unit.
Example two
Fig. 2 is a schematic structural diagram of a data interaction device between servers according to a second embodiment of the present invention. As shown in fig. 2, the apparatus includes:
a communication establishing module 310, configured to establish a communication channel between a first network card deployed on a first server and a second network card deployed on a second server based on the first network card and the second network card; the first network card and the second network card are intelligent network cards;
the data sending module 320 is configured to obtain, based on the first network card, data to be sent in a first target application memory, and send the data to be sent to the second network card through a preset communication protocol and the communication channel, where the first target application memory is a cache of an application program installed on the first server;
and the data receiving module 330 is configured to transmit, through the second network card, the data to be sent to a second target application memory on the second server, where the second target server is a cache of an application program installed on the second server.
According to the technical scheme, a communication channel between a first network card and a second network card is established based on the first network card deployed on a first server and the second network card deployed on a second server; the first network card and the second network card are intelligent network cards; acquiring data to be transmitted in a first target application memory based on the first network card, and transmitting the data to be transmitted to the second network card through a preset communication protocol and the communication channel, wherein the first target application memory is a cache of an application program installed on the first server; and transmitting the data to be transmitted to a second target application memory on the second server through the second network card, wherein the second target server is a cache of an application program installed on the second server. The method and the system solve the problem that the data interaction of the application program memory on the current server needs to be forwarded through the server system, occupy more resources of the central processing unit of the server, and realize the data interaction between the application program memories without participation of the central processing unit.
Optionally, the first network card and the second network card have the same structure, and the first network card includes:
the system comprises at least one Ethernet port and a server interface, wherein the server interface is connected with the first server, and the Ethernet port of the first network card is connected with the Ethernet port of the second network card;
the first network card comprises a field programmable gate array and a central processing unit;
wherein the server interface comprises at least one of a high-speed serial computer expansion bus standard interface and an open service interface.
Optionally, the communication establishment module 310 includes:
the drive installation module is used for installing a drive matched with a service interface in the first network card on the first service and installing a drive matched with the service interface in the second network card on the second server;
the channel establishing module is used for establishing a communication channel between the first network card and the second network card based on the Ethernet interface of the first network card and the Ethernet interface of the second network card.
Optionally, the data sending module 320 includes:
the data access module is used for accessing data to be sent in the first target application memory based on a service interface between a first network card and the first server;
and the data to be transmitted transmitting module is used for packaging the data to be transmitted according to the preset communication protocol and transmitting the packaged data to be transmitted to the second network card through the communication channel.
Optionally, the data receiving module 330 includes:
the target data determining module is used for receiving the packaged data to be sent based on the second network card and analyzing the data to be sent to obtain target data;
and the storage module is used for storing the target data in the second target application memory based on a second network card and the server interface.
Optionally, the data interaction device between the servers further comprises a management module, specifically configured to:
the first network card and the second network card are provided with intelligent network card management interfaces and a network card management system;
and accessing the network card management system based on the intelligent network card management interface so as to manage the first network card and the second network card based on the network card management system.
Optionally, the preset communication protocol includes: an ethernet remote memory direct access protocol; the Ethernet remote memory direct access protocol comprises a first protocol and a second protocol.
The data interaction device between the servers provided by the embodiment of the invention can execute the data interaction method between the servers provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example III
Fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 3, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM12 and the RAM13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the data interaction method between servers.
In some embodiments, the data interaction method between servers may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM12 and/or the communication unit 19. When the computer program is loaded into RAM13 and executed by processor 11, one or more steps of the data interaction method between servers described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the data interaction method between servers in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method of data interaction between servers, comprising:
establishing a communication channel between a first network card and a second network card based on the first network card deployed on a first server and the second network card deployed on a second server; the first network card and the second network card are intelligent network cards;
acquiring data to be transmitted in a first target application memory based on the first network card, and transmitting the data to be transmitted to the second network card through a preset communication protocol and the communication channel, wherein the first target application memory is a cache of an application program installed on the first server;
and transmitting the data to be transmitted to a second target application memory on the second server through the second network card, wherein the second target server is a cache of an application program installed on the second server.
2. The method of claim 1, wherein the first network card and the second network card are the same, the first network card comprising:
the system comprises at least one Ethernet port and a server interface, wherein the server interface is connected with the first server, and the Ethernet port of the first network card is connected with the Ethernet port of the second network card;
the first network card comprises a field programmable gate array and a central processing unit;
wherein the server interface comprises at least one of a high-speed serial computer expansion bus standard interface and an open service interface.
3. The method of claim 2, wherein the establishing a communication channel between the first network card and the second network card based on a first network card deployed on a first server and a second network card deployed on a second server comprises:
installing a driver matched with a service interface in the first network card on the first service, and installing a driver matched with the service interface in the second network card on the second server;
and establishing a communication channel between the first network card and the second network card based on the Ethernet interface of the first network card and the Ethernet interface of the second network card.
4. The method of claim 3, wherein the obtaining, based on the first network card, the data to be sent in the first target application memory, and sending the data to be sent to the second network card through a preset communication protocol and the communication channel, includes:
accessing data to be transmitted in the first target application memory based on a service interface between a first network card and the first server;
and encapsulating the data to be sent according to the preset communication protocol, and sending the encapsulated data to be sent to the second network card through the communication channel.
5. The method of claim 4, wherein transmitting the data to be sent to a second target application memory on the second server via the second network card comprises:
receiving the packaged data to be sent based on the second network card, and analyzing the data to be sent to obtain target data;
and storing the target data in the second target application memory based on a second network card and the server interface.
6. The method as recited in claim 1, further comprising:
the first network card and the second network card are provided with intelligent network card management interfaces and a network card management system;
and accessing the network card management system based on the intelligent network card management interface so as to manage the first network card and the second network card based on the network card management system.
7. The method as recited in claim 1, further comprising:
the preset communication protocol includes: an ethernet remote memory direct access protocol; the Ethernet remote memory direct access protocol comprises a first protocol and a second protocol.
8. A data interaction device between servers, comprising:
the communication establishing module is used for establishing a communication channel between the first network card and the second network card based on the first network card deployed on the first server and the second network card deployed on the second server; the first network card and the second network card are intelligent network cards;
the data sending module is used for obtaining data to be sent in a first target application memory based on the first network card, and sending the data to be sent to the second network card through a preset communication protocol and the communication channel, wherein the first target application memory is a cache of an application program installed on the first server;
and the data receiving module is used for transmitting the data to be transmitted to a second target application memory on the second server through the second network card, wherein the second target server is a cache of an application program installed on the second server.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of data interaction between servers of any of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the method of data interaction between servers of any of claims 1-7.
CN202310275245.4A 2023-03-21 2023-03-21 Data interaction method and device between servers, electronic equipment and medium Pending CN116303171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310275245.4A CN116303171A (en) 2023-03-21 2023-03-21 Data interaction method and device between servers, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310275245.4A CN116303171A (en) 2023-03-21 2023-03-21 Data interaction method and device between servers, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN116303171A true CN116303171A (en) 2023-06-23

Family

ID=86779485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310275245.4A Pending CN116303171A (en) 2023-03-21 2023-03-21 Data interaction method and device between servers, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN116303171A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117749739A (en) * 2024-02-18 2024-03-22 北京火山引擎科技有限公司 Data transmission method, data reception method, device, equipment and storage medium
CN117749739B (en) * 2024-02-18 2024-06-04 北京火山引擎科技有限公司 Data transmission method, data reception method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117749739A (en) * 2024-02-18 2024-03-22 北京火山引擎科技有限公司 Data transmission method, data reception method, device, equipment and storage medium
CN117749739B (en) * 2024-02-18 2024-06-04 北京火山引擎科技有限公司 Data transmission method, data reception method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US8634415B2 (en) Method and system for routing network traffic for a blade server
CN110300081B (en) Data transmission method and equipment
CN106537867B (en) A kind of data transmission method, device and system
CN108471629A (en) The control method of business service quality, equipment and system in transmission network
TWI721103B (en) Cluster accurate speed limiting method and device
CN112787913B (en) Intelligent network card assembly, physical machine, cloud service system and message sending method
KR102383782B1 (en) Tunnel data update process method of data communication
CN113746717A (en) Network equipment communication method and network equipment communication device
CN113285931A (en) Streaming media transmission method, streaming media server and streaming media system
CN115190087B (en) Data transmission method, device, equipment and medium based on two-layer intermediate equipment
WO2023186109A1 (en) Node access method and data transmission system
CN112019492B (en) Access control method, device and storage medium
WO2023173876A1 (en) Data communication method and apparatus, device and medium
US11750525B2 (en) Congestion control for low latency datacenter networks
CN116303171A (en) Data interaction method and device between servers, electronic equipment and medium
US11509593B2 (en) Congestion control for low latency datacenter networks
CN115633037A (en) Method, device, virtual gateway equipment, medium and system for forwarding data packet
CN114928581B (en) CAN message forwarding method, device, equipment and storage medium based on AUTOSAR architecture
CN115086251B (en) Stacked data processing method and device, electronic equipment and storage medium
CN112737915B (en) Intranet tunnel cross-domain gateway forwarding method, system, equipment and medium based on intelligent network card
CN114567687B (en) Message forwarding method, device, equipment, medium and program product
WO2023005723A1 (en) Packet transmission method and communication apparatus
CN115766663A (en) In-band management connection method and device for switch, switch and storage medium
CN118118443A (en) Virtual machine access method, device, equipment and storage medium
WO2022261961A1 (en) Method for forwarding message, and switch and network interface card

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination