[go: up one dir, main page]

CN110445826B - Session information acquisition method, device and server - Google Patents

Session information acquisition method, device and server Download PDF

Info

Publication number
CN110445826B
CN110445826B CN201810421410.1A CN201810421410A CN110445826B CN 110445826 B CN110445826 B CN 110445826B CN 201810421410 A CN201810421410 A CN 201810421410A CN 110445826 B CN110445826 B CN 110445826B
Authority
CN
China
Prior art keywords
session information
connection
server
session
storage medium
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.)
Active
Application number
CN201810421410.1A
Other languages
Chinese (zh)
Other versions
CN110445826A (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810421410.1A priority Critical patent/CN110445826B/en
Publication of CN110445826A publication Critical patent/CN110445826A/en
Application granted granted Critical
Publication of CN110445826B publication Critical patent/CN110445826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

本申请提供一种会话信息获取方法、装置及服务器,该方法包括:网卡驱动模块获取会话信息,并将所述会话信息存储到第一存储介质;所述网卡驱动模块向会话信息采集模块发送第一事件指令;所述会话信息采集模块根据所述第一事件指令从所述第一存储介质中获取所述会话信息。通过本申请的技术方案,可以解决采集周期不易确定和会话信息遗漏等问题,可以获取到所有会话信息,解决了会话信息丢失的问题。

Figure 201810421410

The present application provides a method, device and server for acquiring session information. The method includes: a network card driver module acquires session information, and stores the session information in a first storage medium; the network card driver module sends the first session information to a session information collection module. an event instruction; the session information collection module acquires the session information from the first storage medium according to the first event instruction. Through the technical solution of the present application, the problems of difficulty in determining the collection period and omission of session information can be solved, all session information can be obtained, and the problem of session information loss can be solved.

Figure 201810421410

Description

Session information acquisition method, device and server
Technical Field
The present application relates to the field of internet, and in particular, to a method, an apparatus, and a server for acquiring session information.
Background
In the conventional TCP (Transmission Control Protocol)/IP technology, a large amount of server resources and memory bus bandwidth are occupied by an operating system and other software layers during data Processing, data is copied and moved back and forth among a system memory, a processor cache and a network controller cache, heavy burden is imposed on a CPU (Central Processing Unit) and a memory, and especially network bandwidth, mismatching between processor speed and memory bandwidth and network delay effect are further aggravated.
Therefore, an RDMA (Remote Direct Memory Access) technology is proposed, which is a Direct Memory Access technology and can directly transmit data from a Memory of one server to another server without intervention of operating systems of both parties and causing any influence on the operating systems. RDMA can be understood simply as: by using hardware and network technology, the network card of the server 1 can directly read and write the memory of the server 2, and finally the effects of high bandwidth, low delay and low resource utilization rate are achieved, and the application program does not need to participate in the data transmission process, and only needs to specify the memory read-write address, start transmission and wait for the completion of the transmission.
The session information is an important parameter of the RDMA technology, and the network connection state and the activity degree of network flow can be analyzed by collecting the session information, so that the functions of helping to position network hotspots, assisting in troubleshooting and the like are achieved. The conventional collection method is to collect session information periodically, for example, collecting session information once every 1 minute, however, the conventional collection method has the problems that the collection period is not easy to determine, the session information is omitted, and the like. For example, if the acquisition period is too short, the processing pressure of the server is increased by frequently acquiring the session information, the load of the server is increased, and even the processing of the normal service is affected, and if the acquisition period is too long, the session information is missed.
Disclosure of Invention
The application provides a session information acquisition method, which is applied to a server, wherein the server comprises a network card driving module and a session information acquisition module, and the method comprises the following steps:
the network card driving module acquires session information and stores the session information to a first storage medium;
the network card driving module sends a first event instruction to the session information acquisition module;
and the session information acquisition module acquires the session information from the first storage medium according to the first event instruction.
The application provides a session information acquisition method, which is applied to a server and comprises the following steps:
when the server establishes connection with another server, establishing a session corresponding to the connection;
acquiring session information corresponding to the session, and storing the session information to a first storage medium;
receiving a first event instruction aiming at the session information, determining that new session information is added in the first storage medium according to the first event instruction, and acquiring the new session information from the first storage medium.
The application provides a session information acquisition method, which is applied to a server adopting an RDMA mode to establish connection, wherein the server comprises a network card driving module and a session information acquisition module, and the method comprises the following steps:
the network card driving module acquires session information corresponding to at least two types of connections and stores the acquired session information into a first storage medium; wherein the at least two types of connections comprise connections established based on an application programming interface kernel module and connections established based on a connection management interface kernel module;
the session information acquisition module acquires session information from the first storage medium.
The application provides a session information acquisition device, is applied to the server, includes:
the network card driving module is used for acquiring session information, storing the session information into a first storage medium and sending a first event instruction to the session information acquisition module;
and the session information acquisition module is used for acquiring the session information from the first storage medium according to the first event instruction.
The application provides a session information acquisition device, is applied to the server, includes:
the establishment module is used for establishing a session corresponding to the connection and acquiring session information corresponding to the session when the server establishes the connection with another server;
the storage module is used for storing the session information to a first storage medium;
and the acquisition module is used for receiving a first event instruction aiming at the session information, determining that new session information is added in the first storage medium according to the first event instruction, and acquiring the new session information from the first storage medium.
The application provides a session information acquisition device, which is applied to a server adopting an RDMA mode to establish connection, and the device comprises:
the network card driving module is used for acquiring session information corresponding to at least two types of connections and storing the acquired session information into a first storage medium; wherein the at least two types of connections comprise connections established based on an application programming interface kernel module and connections established based on a connection management interface kernel module;
and the session information acquisition module is used for acquiring session information from the first storage medium.
The present application provides a server comprising: a processor and a machine-readable storage medium having stored thereon a plurality of computer instructions, the processor when executing the computer instructions performs: acquiring session information through a network card driving module, and storing the session information to a first storage medium; sending a first event instruction to a session information acquisition module through a network card driving module; and acquiring the session information from the first storage medium through a session information acquisition module according to the first event instruction.
The present application provides a server comprising: a processor and a machine-readable storage medium having stored thereon a plurality of computer instructions, the processor when executing the computer instructions performs: when the server establishes connection with another server, establishing a session corresponding to the connection; acquiring session information corresponding to the session, and storing the session information to a first storage medium; receiving a first event instruction aiming at the session information, determining that new session information is added in a first storage medium according to the first event instruction, and acquiring the new session information from the first storage medium.
The application provides a server for establishing connection by adopting an RDMA mode, which comprises the following steps: a processor and a machine-readable storage medium having stored thereon a plurality of computer instructions, the processor when executing the computer instructions performs: acquiring session information corresponding to at least two types of connections through a network card driving module, and storing the acquired session information into a first storage medium; wherein the at least two types of connections comprise connections established based on an application programming interface kernel module and connections established based on a connection management interface kernel module; and acquiring the session information from the first storage medium through a session information acquisition module.
Based on the above technical scheme, in the embodiment of the application, after the network card driving module acquires the session information, the network card driving module may store the session information in the first storage medium, and send the first event instruction to the session information acquisition module. The session information acquisition module acquires the session information from the first storage medium after receiving the first event instruction, rather than acquiring the session information periodically, so that the problems that the acquisition period is not easy to determine, the session information is omitted and the like can be solved. For example, the session information collection module does not need to determine the collection period, and there is no problem in determining the collection period. In addition, when the session information changes every time, the network card driving module sends a first event instruction to the session information acquisition module to trigger the session information acquisition module to acquire the session information, namely, each change of the session information triggers the session information acquisition module to acquire the session information, so that all the session information can be acquired, the problem of session information loss is solved, the accuracy and the integrity of the session information are improved, the granularity and the timeliness of acquiring the session information are improved, and the influence on a service system is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present application.
FIGS. 1A-1C are schematic diagrams of an application scenario in an embodiment of the present application;
fig. 2A and fig. 2B are flowcharts illustrating a session information obtaining method according to an embodiment of the present application;
fig. 3 is a flowchart of a session information acquisition method according to another embodiment of the present application;
fig. 4 is a block diagram of a session information acquisition apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a session information acquisition apparatus according to another embodiment of the present application.
Detailed Description
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
The embodiment of the application provides a session information acquisition method, which can be applied to a server, wherein the server can acquire data from another server by adopting an RDMA (remote direct memory access) technology, the RDMA technology is a direct memory access technology, the data can be directly transmitted from a memory of one server to another server, the intervention of operating systems of two parties is not needed, the influence on the operating systems is avoided, zero copy and kernel bypass can be realized through hardware, the participation of a CPU (central processing unit) is not needed, and high-performance data access can be provided.
In one example, the server may include, but is not limited to: the device comprises a network card driving module and a session information acquisition module. The network card driver module may be a driver (referred to as a device driver) for implementing communication between the operating system and the hardware device, and is equivalent to an interface of the hardware device, and the operating system can only control the operation of the hardware device through the driver. The session information acquisition module is used for acquiring session information and providing the session information for the upper layer application, so that the upper layer application analyzes the network connection state and the activity degree of network flow according to the session information, and the functions of helping to position network hotspots, assisting in troubleshooting and the like are achieved.
Referring to fig. 1A, which is a schematic view of an application scenario in the embodiment of the present application, a server may include, but is not limited to: the device comprises a network card driving module, a session information acquisition module, an application programming interface kernel module and a connection management interface kernel module. The application programming interface can be Verbs, and the Verbs are the bottom application programming interface defined by the RDMA technology and can provide the most basic management and transmission interface; the application programming interface kernel module is a kernel module for realizing the application programming interface function and can be controlled by an application program. In addition, the connection management interface kernel module can be rdmacm, and the rdmacm is a connection management interface defined by the RDMA technology, and can provide management interfaces for creating and destroying connections; the connection management interface kernel module is a kernel module for realizing the function of the connection management interface and can be controlled by an application program.
Referring to fig. 1B, the connection management interface kernel module may record session information of all sessions established by the application program through the connection management interface, and the connection management interface kernel module may provide a query interface to the session information collection module. Further, the session information collection module may collect the session information from the connection management interface kernel module periodically, for example, once every 1 minute, by accessing the query interface periodically.
However, the above-described method has the following problems: the acquisition period is not easy to determine and the session information is omitted. For example, if the collection period is too short, frequent collection of session information may increase the processing pressure of the server, increase the load of the server, and even affect the processing of normal services. If the acquisition period is too large, the session information is missed; for example, the session information collection module collects session information at time a and time B, and if a piece of session information is created after time a and deleted before time B, the session information collection module cannot collect the session information, so that session information between two collection operations is omitted.
In addition, the session information collection module can only collect session information from the connection management interface kernel module, and cannot collect all session information. For example, if an application program does not use the connection management interface to establish a session, but uses the application programming interface to establish a session, session information of the session is recorded in the application programming interface kernel module, and since the application programming interface kernel module does not provide a query interface to the session information collection module, the session information collection module cannot collect the session information from the application programming interface kernel module.
Different from the above manner, referring to fig. 1C, all session information (for example, without limitation, session information generated when a session is established using a connection management interface, session information generated when a session is established using an application programming interface, and the like) may be acquired by the network card driver module, and may be stored in the first storage medium. Moreover, when the session information changes each time, the network card driving module can send an event instruction to the session information acquisition module to indicate that the session information changes. After receiving the event instruction, the session information acquisition module may determine that the session information changes, and acquire the session information from the first storage medium.
Whether a session is established with another server by using the connection management interface or the application programming interface, the session needs to be established with another server by the network card driving module of the server. Based on this, the network card driver module may obtain all session information (e.g., session information when a session is established using the connection management interface, session information when a session is established using the application programming interface, etc.).
When the network card driving module stores the session information to the first storage medium, the session information may be stored to the first storage medium in a file format; therefore, the session information directly uses the file interface and is stored in the first storage medium in a directory and file mode, and the transparency of the session information is increased. Of course, the network card driver module may also store the session information in the first storage medium in other manners, which is not limited to this.
When the session information acquisition module acquires the session information from the first storage medium, the session information in the file format is acquired from the first storage medium, that is, the session information acquisition module can access the session information through a standard file interface, so that the application range of the session information acquisition module is expanded.
The session information acquisition module may monitor the network card driver module, determine that the session information changes (for example, session information of a newly-built session is added or an existing session is deleted) once an event instruction sent by the network card driver module is monitored, and acquire the session information from the first storage medium.
In the above embodiment, the first storage medium may include, but is not limited to, a memory of the server, and it is considered that the session information in the memory is deleted after power failure, therefore, after the session information acquisition module acquires the session information from the first storage medium, the session information may also be stored in the second storage medium, and the second storage medium may include, but is not limited to, a magnetic disk of the server, so as to ensure that the session information is not deleted due to power failure.
The disk of the server may further include, but is not limited to: a Solid State Drive (SSD), a Hybrid Hard Drive (HHD), a Hard Disk Drive (HDD), or the like, but may also be a phase change memory type Disk, a quantum memory type Disk, a graphene memory type Disk, or the like, and the type of the Disk is not limited.
In one example, protocols that support RDMA techniques may include, but are not limited to: IB (InfiniBand ), RoCE (RDMA over Converged Ethernet), iWARP (Internet Wide Area RDMA Protocol), etc., which are not limited to this, in this embodiment, RoCE is taken as an example for description, and the processing manner of other protocols is similar. In the RDMA technique based on the RoCE, the session information may also be referred to as RoCE session information.
In one example, a session refers to a mechanism that is established by both ends of a network through a transport layer and can be used for data exchange, and represents an end-to-end connection established through a RoCE technology, and all information corresponding to the session is called session information. The session information is an important parameter of RDMA, and the network connection state and the activity degree of network flow can be analyzed through the session information, so that the functions of helping to position network hotspots, assisting in troubleshooting and the like are achieved.
For example, if a connection is established between the server 1 and the server 2, the session information of the session corresponding to the connection may include, but is not limited to: session identifier, IP address of server 1, IP address of server 2, session state (such as establishment state, use state, destruction state, etc.), QP (Queue Pairs) information (such as QP number identifier, etc.) of server 1, QP information of server 2, etc. Of course, the above-mentioned session information is only an example of the present application, and the content of the session information is not limited in detail.
The RoCE is a standard of RDMA over ethernet, and may include two transmission modes, one mode is an RC (Reliable Connection) transmission mode, and the other mode is an UD (Unreliable data transmission) transmission mode. The RC transmission mode is a reliable transmission technology oriented to connection, and needs to ensure the reliability of transmission through mechanisms such as response and order preservation. The UD transmission mode is a non-connection-oriented data transmission technology, and mechanisms such as response and order preservation do not need to be provided to ensure the reliability of transmission. Based on this, the connection established between the server 1 and the server 2 may be an RC connection or an UD connection.
Wherein, QP (Queue Pairs) resources are basic resources for sending and receiving messages, and may include a sending Queue and a receiving Queue, each QP resource has a unique QP number identifier, and the QP resources are allocated and managed by network card hardware. For example, for a certain service 1 between the server 1 and the server 2, the server 1 allocates a QP resource a for the service 1, and the server 2 allocates a QP resource B for the service 1, so that when a connection is established between the server 1 and the server 2, the QP resource a of the server 1 is used to establish a connection with the QP resource B of the server 2, the QP information of the server 1 may be a QP number identifier of the QP resource a, and the QP information of the server 2 may be a QP number identifier of the QP resource B.
In an example, when establishing a connection between the QP resource a of the server 1 and the QP resource B of the server 2 to establish an RC connection or an UD connection, the server 1 may further send the QP number identifier of the QP resource a to the server 2, and the server 2 establishes a correspondence between the QP number identifier of the QP resource a and the QP number identifier of the QP resource B; similarly, the server 2 may also send the QP number identifier of the QP resource B to the server 1, and the server 1 establishes a correspondence between the QP number identifier of the QP resource B and the QP number identifier of the QP resource a. Of course, the above establishment procedure is only one example of establishing an RC connection or an UD connection, and the establishment procedure of the RC connection or the UD connection is not limited.
In the application scenario, referring to fig. 2A, a flowchart of a session information obtaining method provided in the embodiment of the present application is shown, where the method may be applied to a server, and the server may include but is not limited to: the method comprises the following steps of:
step 201, the network card driver module obtains the session information and stores the session information in a first storage medium.
The network card driving module of the server can establish a session with another server no matter whether the connection management interface is used for establishing the session with another server or the application programming interface is used for establishing the session with another server. Based on this, the network card driver module may obtain all session information (e.g., session information when a session is established using the connection management interface, session information when a session is established using the application programming interface, etc.).
The network card driver module obtains the session information, which may include but is not limited to: when the server establishes a connection with another server through the network card driving module, the network card driving module can establish a session corresponding to the connection and acquire session information corresponding to the session, and the session information acquisition process is not limited.
In one example, the server establishes a connection with another server through the network card driver module, which may include but is not limited to: in the first mode, the network card driving module can acquire the connection information of another server from the application programming interface kernel module, and establish connection with the connection information of another server by using the connection information of the server. And in the second mode, the network card driving module can acquire the connection information of the other server from the connection management interface kernel module and establish connection with the connection information of the other server by using the connection information of the server.
For the first mode, if the server uses the application programming interface to establish the session, the application programming interface kernel module may obtain the connection information of another server (e.g., the IP address and QP information of another server) from another server, and provide the connection information of another server to the network card driver module. Based on this, the network card driver module may obtain the connection information of another server from the application programming interface kernel module, and obtain the connection information of the server (such as the IP address and QP information of the server), and the obtaining manner is not limited. Then, the network card driving module may establish a connection, such as an RC connection or an UD connection, with connection information of another server by using the connection information of the server, without limitation to the establishment process.
After the network card driving module establishes connection with the connection information of another server by using the connection information of the server, a session corresponding to the connection can be established, and session information corresponding to the session, such as a session identifier, an IP address of the server, an IP address of another server, a session state (such as an establishment state, a use state, a destruction state, and the like), QP information of the server, QP information of another server, and the like, can be acquired.
In order to obtain the connection information of the other server from the other server, the api kernel module may establish a TCP connection or a UDP (User Datagram Protocol) connection with the other server, and obtain the connection information of the other server from the other server through the TCP connection or the UDP connection, which is not limited to this process.
For the second mode, if the server uses the connection management interface to establish the session, the connection management interface kernel module may read the connection information of another server (e.g., the IP address and QP information of another server) from the user mode repository, and provide the connection information of another server to the network card driver module. Based on this, the network card driver module may obtain the connection information of another server from the connection management interface kernel module, and obtain the connection information of the server (such as the IP address and QP information of the server), and the obtaining manner is not limited. Then, the network card driving module may establish a connection, such as an RC connection or an UD connection, with connection information of another server by using the connection information of the server, without limitation to the establishment process.
After the network card driving module establishes connection with the connection information of another server by using the connection information of the server, a session corresponding to the connection can be established, and session information corresponding to the session, such as a session identifier, an IP address of the server, an IP address of another server, a session state (such as an establishment state, a use state, a destruction state, and the like), QP information of the server, QP information of another server, and the like, can be acquired.
The reading, by the connection management interface kernel module, connection information of another server from the user mode repository may include: receiving connection information of another server input by a user, and storing the connection information of the other server in a user mode storage library; or capturing the connection information of another server from all the data and storing the connection information of the other server into the user state storage library. The process is not limited as long as the connection information of another server can be obtained and stored in the user state repository. Based on this, the connection management interface kernel module may read connection information of another server from the user state repository.
In one example, the network card driver module stores the session information to the first storage medium, which may include but is not limited to: the network card driving module stores the session information to a first storage medium in a file format; that is, the session information can be directly saved in the first storage medium in a directory and file manner using the file interface, thereby increasing the transparency of the session information. Of course, the network card driving module may also store the session information in the first storage medium by using other manners, such as a picture format, and the storage format is not limited.
In an example, the network card driver module may further add a record locally, which indicates that a session is established between the server and another server, and the content of the record is not limited.
Step 202, the network card driving module sends a first event instruction to the session information collecting module.
In one example, since the network card driving module can acquire all session information, when the session information changes each time, the network card driving module can acquire the change event and can send a first event instruction to the session information acquisition module to indicate that the session information has changed.
In step 203, the session information collection module obtains session information from the first storage medium according to the first event instruction. After receiving the first event instruction sent by the network card driving module, the session information acquisition module may determine that the session information changes, and acquire the session information from the first storage medium.
The session information acquisition module may monitor the network card driving module, determine that the session information changes (for example, session information for adding a new session) once a first event instruction sent by the network card driving module is monitored, and may acquire the session information for adding the new session from the first storage medium.
When the session information acquisition module acquires the session information from the first storage medium according to the first event instruction, the session information in the file format is acquired from the first storage medium according to the first event instruction, that is, the session information acquisition module can access the session information through a standard file interface, so that the application range of the session information acquisition module is expanded.
In the above embodiment, the first storage medium may include, but is not limited to, a memory of the server, and it is considered that the session information in the memory is deleted after power failure, therefore, after the session information acquisition module acquires the session information from the first storage medium according to the first event instruction, the session information may also be stored in the second storage medium, and the second storage medium may include, but is not limited to, a disk of the server, so as to ensure that the session information is not deleted due to power failure.
In an example, the execution sequence is only an example given for convenience of description, and in practical applications, the execution sequence between steps may also be changed, and the execution sequence is not limited. Moreover, in other embodiments, the steps of the respective methods do not have to be performed in the order shown and described herein, and the methods may include more or less steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps for description in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
Referring to fig. 2B, another flowchart of a session information obtaining method is shown, where the method may be applied to a server, and the server may include a network card driving module and a session information collecting module, and the method may include:
in step 211, the network card driver module deletes the session corresponding to the session information recorded in the first storage medium.
The session deletion method includes that the network card drive module records a session corresponding to the session information in the first storage medium, and may include, but is not limited to: when the server is disconnected from another server through the network card driving module, the network card driving module may release the session corresponding to the connection, query session information corresponding to the session from the first storage medium, and record that the session corresponding to the session information is deleted in the first storage medium.
In one example, when the server is disconnected from another server, the network card driver module of the server may disconnect from the other server, and the network card driver module may release the session corresponding to the connection, and further, the network card driver module may query the session information corresponding to the session from the first storage medium, and record the session corresponding to the session information in the first storage medium and delete the session.
The network card driver module records that the session corresponding to the session information is deleted in the first storage medium, and may include but is not limited to: the network card driving module adds data in the session information of the first storage medium, where the data is used to indicate that the session corresponding to the session information is deleted, and the content of the data is not limited. Or, the network card driver module deletes the session information from the first storage medium, and after the session information is deleted, it may indicate that the session corresponding to the session information is deleted. Of course, the above-described manner is merely an example, and is not limited thereto.
In one example, after the network card driver module releases a session, a record may be added locally to indicate that the session between the server and another server is deleted, and the content of the record is not limited.
In step 212, the network card driver module sends a second event instruction to the session information collection module.
Because the network card driving module can know that the session is deleted, the network card driving module can send a second event instruction to the session information acquisition module to indicate that the session is deleted every time the session is deleted.
In step 213, the session information collection module obtains the session information of the deleted session from the first storage medium according to the second event instruction. After receiving the second event instruction sent by the network card driving module, the session information acquisition module may determine that the session is deleted, that is, the session corresponding to the session information is deleted, and therefore, the session information of the deleted session may be acquired from the first storage medium.
For example, if data is added to the session information of the first storage medium and the data indicates that the session corresponding to the session information is deleted, the session information collection module determines that the session information is the session information of the session that has been deleted by analyzing the data. Or, if the session information is deleted from the first storage medium, the session information that has been deleted is determined by comparing the current session information with the last session information.
The session information acquisition module can monitor the network card drive module, determine that a session is deleted once a second event instruction sent by the network card drive module is monitored, and can acquire session information of the deleted session from the first storage medium.
In an example, after the session information acquisition module acquires the session information of the session that has been deleted from the first storage medium according to the second event instruction, the session corresponding to the session information may also be recorded in the second storage medium to be deleted, and the recording manner is similar to the manner in which the session is recorded in the first storage medium to be deleted, and is not described herein again.
Based on the above technical scheme, in the embodiment of the application, after the network card driving module acquires the session information, the network card driving module may store the session information in the first storage medium, and send the first event instruction to the session information acquisition module. The session information acquisition module acquires the session information from the first storage medium after receiving the first event instruction, rather than acquiring the session information periodically, so that the problems that the acquisition period is not easy to determine, the session information is omitted and the like can be solved. For example, the session information collection module does not need to determine the collection period, and there is no problem in determining the collection period. In addition, when the session information changes every time, the network card driving module sends a first event instruction to the session information acquisition module to trigger the session information acquisition module to acquire the session information, namely, each change of the session information triggers the session information acquisition module to acquire the session information, so that all the session information can be acquired, the problem of session information loss is solved, the accuracy and the integrity of the session information are improved, the granularity and the timeliness of acquiring the session information are improved, and the influence on a service system is reduced.
Based on the same application concept as the above method, another session information acquisition method is also proposed in the embodiment of the present application, and referring to fig. 3, the method is a flowchart of the session information acquisition method proposed in the embodiment of the present application, and the method may be applied to a server, and the method may include the following steps:
step 301, when a server establishes a connection with another server, a session corresponding to the connection is established.
The server establishes a connection with another server, and the method can include: acquiring the connection information of another server from an application programming interface kernel module of the server, and establishing connection with the connection information of the other server by using the connection information of the server; or acquiring the connection information of another server from the connection management interface kernel module of the server, and establishing connection with the connection information of the other server by using the connection information of the server.
Step 302, session information corresponding to the session is obtained, and the session information is stored in a first storage medium.
Step 303, receiving a first event instruction for the session information, determining to add new session information to the first storage medium according to the first event instruction, and acquiring new session information from the first storage medium.
For example, when a server establishes a connection with another server, the network card driving module establishes a session corresponding to the connection, acquires session information corresponding to the session, stores the session information in a first storage medium, and sends a first event instruction for the session information to the session information acquisition module. Further, after receiving the first event instruction for the session information, the session information collection module may determine that new session information is added to the first storage medium, and may obtain the new session information from the first storage medium.
The processing in steps 301 to 303 can be referred to as step 201 and 203, and will not be described herein.
In one example, when the server is disconnected from another server, the session corresponding to the connection may be released, the session information corresponding to the session is queried from the first storage medium, and the session corresponding to the session information is recorded in the first storage medium to be deleted; and receiving a second event instruction aiming at the session information, and acquiring the session information of the deleted session from the first storage medium according to the second event instruction. For example, when the server is disconnected from another server, the network card driving module releases the session corresponding to the connection, queries session information corresponding to the session from the first storage medium, records that the session corresponding to the session information is deleted in the first storage medium, and sends a second event instruction for the session information to the session information acquisition module. And after receiving a second event instruction aiming at the session information, the session information acquisition module acquires the session information of the deleted session from the first storage medium.
The processing of the above process can be referred to as step 211-213, which is not described herein again.
Based on the same application concept as the method, another session information acquisition method is also provided in the embodiment of the present application, and the method can be applied to a server that establishes a connection in an RDMA manner, where the server includes a network card driver module and a session information acquisition module, and the method includes:
the network card driving module acquires session information corresponding to at least two types of connections and stores the acquired session information into a first storage medium; wherein the at least two types of connections include a connection established based on an application programming interface kernel module and a connection established based on a connection management interface kernel module.
The session information acquisition module acquires session information from the first storage medium.
The session information acquisition module acquires session information from the first storage medium, which may include but is not limited to: the session information acquisition module acquires session information from the first storage medium according to a first event instruction; the first event instruction is sent to the session information acquisition module by the network card driving module after the session information is stored in the first storage medium.
For the above process, reference may be made to the session information obtaining method in the above embodiment, which is not described herein again.
Based on the same application concept as the method, an embodiment of the present application further provides a session information obtaining apparatus, applied to a server, as shown in fig. 4, and being a structural diagram of the apparatus, where the apparatus includes:
the network card driving module 401 is configured to acquire session information, store the session information in a first storage medium, and send a first event instruction to the session information acquisition module;
a session information collecting module 402, configured to obtain the session information from the first storage medium according to the first event instruction.
When the network card driver module 401 acquires the session information, it is specifically configured to: when the network card driving module establishes connection with another server, establishing a session corresponding to the connection, and acquiring session information corresponding to the session; the device also comprises an application programming interface kernel module and/or a connection management interface kernel module; when the network card driving module 401 establishes a connection with another server, it is specifically configured to: acquiring the connection information of another server from an application programming interface kernel module, and establishing connection with the connection information of the another server by using the connection information of the server; or acquiring the connection information of another server from the connection management interface kernel module, and establishing connection with the connection information of the other server by using the connection information of the server.
Based on the same application concept as the method, an embodiment of the present application provides a server, including a processor and a machine-readable storage medium, where the machine-readable storage medium has a plurality of computer instructions stored thereon, and when the processor executes the computer instructions, the processor performs the following processing: acquiring session information through a network card driving module, and storing the session information to a first storage medium; sending a first event instruction to a session information acquisition module through a network card driving module; and acquiring the session information from the first storage medium through a session information acquisition module according to the first event instruction.
Based on the same application concept as the method, the embodiment of the present application further provides a machine-readable storage medium, where a plurality of computer instructions are stored on the machine-readable storage medium, and when executed, the computer instructions perform the following processes: acquiring session information through a network card driving module, and storing the session information to a first storage medium; sending a first event instruction to a session information acquisition module through a network card driving module; and acquiring the session information from the first storage medium through a session information acquisition module according to the first event instruction.
Based on the same application concept as the method, an embodiment of the present application further provides a session information obtaining apparatus, applied to a server, as shown in fig. 5, which is a structural diagram of the apparatus, where the apparatus includes:
an establishing module 501, configured to establish a session corresponding to a connection when the server establishes the connection with another server, and acquire session information corresponding to the session;
a storage module 502, configured to store the session information in a first storage medium;
the obtaining module 503 is configured to receive a first event instruction for the session information, determine, according to the first event instruction, to add new session information to the first storage medium, and obtain new session information from the first storage medium.
Based on the same application concept as the method, an embodiment of the present application provides a server, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores a plurality of computer instructions, and when the processor executes the computer instructions, the processor performs the following processing: when the server establishes connection with another server, establishing a session corresponding to the connection; acquiring session information corresponding to the session, and storing the session information to a first storage medium; receiving a first event instruction aiming at the session information, determining that new session information is added in a first storage medium according to the first event instruction, and acquiring the new session information from the first storage medium.
Based on the same application concept as the method, the embodiment of the present application further provides a machine-readable storage medium, where a plurality of computer instructions are stored on the machine-readable storage medium, and when executed, the computer instructions perform the following processes: when the server establishes connection with another server, establishing a session corresponding to the connection; acquiring session information corresponding to the session, and storing the session information to a first storage medium; receiving a first event instruction aiming at the session information, determining that new session information is added in a first storage medium according to the first event instruction, and acquiring the new session information from the first storage medium.
Based on the same application concept as the method described above, an embodiment of the present application further provides a session information obtaining apparatus, which is applied to a server that establishes a connection in an RDMA manner, where the apparatus includes:
the network card driving module is used for acquiring session information corresponding to at least two types of connections and storing the acquired session information into a first storage medium; wherein the at least two types of connections comprise connections established based on an application programming interface kernel module and connections established based on a connection management interface kernel module;
and the session information acquisition module is used for acquiring session information from the first storage medium.
Based on the same application concept as the method described above, an embodiment of the present application provides a server that establishes a connection in an RDMA manner, including a processor and a machine-readable storage medium, where a plurality of computer instructions are stored on the machine-readable storage medium, and when the processor executes the computer instructions, the processor performs the following processing: acquiring session information corresponding to at least two types of connections through a network card driving module, and storing the acquired session information into a first storage medium; wherein the at least two types of connections comprise connections established based on an application programming interface kernel module and connections established based on a connection management interface kernel module; and acquiring the session information from the first storage medium through a session information acquisition module.
Based on the same application concept as the method, the embodiment of the present application further provides a machine-readable storage medium, where a plurality of computer instructions are stored on the machine-readable storage medium, and when executed, the computer instructions perform the following processes: acquiring session information corresponding to at least two types of connections through a network card driving module, and storing the acquired session information into a first storage medium; wherein the at least two types of connections comprise connections established based on an application programming interface kernel module and connections established based on a connection management interface kernel module; and acquiring the session information from the first storage medium through a session information acquisition module.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (22)

1.一种会话信息获取方法,其特征在于,应用于服务器,所述服务器包括网卡驱动模块和会话信息采集模块,所述方法包括:1. a session information acquisition method, is characterized in that, is applied to the server, and described server comprises network card driver module and session information acquisition module, and described method comprises: 所述网卡驱动模块获取会话信息,并将所述会话信息存储到第一存储介质;The network card driver module obtains session information, and stores the session information in the first storage medium; 所述网卡驱动模块向所述会话信息采集模块发送第一事件指令;The network card driver module sends a first event instruction to the session information collection module; 所述会话信息采集模块根据所述第一事件指令从所述第一存储介质中获取所述会话信息。The session information collection module acquires the session information from the first storage medium according to the first event instruction. 2.根据权利要求1所述的方法,其特征在于,2. The method according to claim 1, wherein 所述网卡驱动模块获取会话信息,包括:The network card driver module obtains session information, including: 在所述网卡驱动模块与另一服务器建立连接时,所述网卡驱动模块建立与所述连接对应的会话,并获取与所述会话对应的会话信息。When the network card driver module establishes a connection with another server, the network card driver module establishes a session corresponding to the connection, and acquires session information corresponding to the session. 3.根据权利要求2所述的方法,其特征在于,所述服务器还包括应用编程接口内核模块;所述网卡驱动模块与另一服务器建立连接,包括:3. The method according to claim 2, wherein the server further comprises an application programming interface kernel module; the network card driver module establishes a connection with another server, comprising: 所述网卡驱动模块从所述应用编程接口内核模块获取另一服务器的连接信息,并利用所述服务器的连接信息与所述另一服务器的连接信息建立连接。The network card driver module obtains connection information of another server from the application programming interface kernel module, and establishes a connection with the connection information of the other server by using the connection information of the server. 4.根据权利要求3所述的方法,其特征在于,所述网卡驱动模块从所述应用编程接口内核模块获取另一服务器的连接信息之前,还包括:所述应用编程接口内核模块从所述另一服务器中获取所述另一服务器的连接信息。4. The method according to claim 3, wherein before the network card driver module obtains the connection information of another server from the application programming interface kernel module, it further comprises: the application programming interface kernel module The connection information of the other server is obtained from the other server. 5.根据权利要求2所述的方法,其特征在于,所述服务器还包括连接管理接口内核模块;所述网卡驱动模块与另一服务器建立连接,包括:5. The method according to claim 2, wherein the server further comprises a connection management interface kernel module; the network card driver module establishes a connection with another server, comprising: 所述网卡驱动模块从所述连接管理接口内核模块获取另一服务器的连接信息,并利用所述服务器的连接信息与所述另一服务器的连接信息建立连接。The network card driver module obtains the connection information of another server from the connection management interface kernel module, and establishes a connection with the connection information of the other server by using the connection information of the server. 6.根据权利要求5所述的方法,其特征在于,所述网卡驱动模块从所述连接管理接口内核模块获取另一服务器的连接信息之前,还包括:所述连接管理接口内核模块从用户态存储库中读取所述另一服务器的连接信息。6. The method according to claim 5, characterized in that, before the network card driver module obtains the connection information of another server from the connection management interface kernel module, the method further comprises: the connection management interface kernel module from the user mode The connection information of the other server is read from the repository. 7.根据权利要求1所述的方法,其特征在于,7. The method of claim 1, wherein, 所述网卡驱动模块将所述会话信息存储到第一存储介质,包括:所述网卡驱动模块以文件格式将所述会话信息存储到所述第一存储介质;The network card driver module storing the session information in the first storage medium includes: the network card driver module storing the session information in the first storage medium in a file format; 所述会话信息采集模块根据所述第一事件指令从所述第一存储介质中获取所述会话信息,包括:所述会话信息采集模块根据所述第一事件指令从所述第一存储介质中获取文件格式的会话信息。The session information collection module acquires the session information from the first storage medium according to the first event instruction, including: the session information collection module obtains the session information from the first storage medium according to the first event instruction Get session information in file format. 8.根据权利要求1所述的方法,其特征在于,所述会话信息采集模块根据所述第一事件指令从所述第一存储介质中获取所述会话信息之后,还包括:8. The method according to claim 1, wherein after the session information collection module acquires the session information from the first storage medium according to the first event instruction, the method further comprises: 所述会话信息采集模块将所述会话信息存储到第二存储介质。The session information collection module stores the session information in the second storage medium. 9.根据权利要求1所述的方法,其特征在于,所述方法还包括:所述网卡驱动模块在所述第一存储介质中记录所述会话信息对应的会话被删除;9. The method according to claim 1, wherein the method further comprises: the session corresponding to the session information recorded by the network card driver module in the first storage medium is deleted; 所述网卡驱动模块向所述会话信息采集模块发送第二事件指令;The network card driver module sends a second event instruction to the session information collection module; 所述会话信息采集模块根据所述第二事件指令从所述第一存储介质中获取已经被删除的会话的所述会话信息。The session information collection module acquires the session information of the deleted session from the first storage medium according to the second event instruction. 10.根据权利要求9所述的方法,其特征在于,所述网卡驱动模块在所述第一存储介质中记录所述会话信息对应的会话被删除,包括:10. The method according to claim 9, wherein the network card driver module records that the session corresponding to the session information is deleted in the first storage medium, comprising: 在所述网卡驱动模块与另一服务器断开连接时,所述网卡驱动模块释放与所述连接对应的会话,并从所述第一存储介质中查询到与所述会话对应的会话信息,并在所述第一存储介质中记录所述会话信息对应的会话被删除。When the network card driver module is disconnected from another server, the network card driver module releases the session corresponding to the connection, and queries the session information corresponding to the session from the first storage medium, and The session corresponding to the session information recorded in the first storage medium is deleted. 11.根据权利要求9所述的方法,其特征在于,11. The method of claim 9, wherein: 所述会话信息采集模块根据所述第二事件指令从所述第一存储介质中获取已经被删除的会话的所述会话信息之后,所述方法还包括:所述会话信息采集模块在第二存储介质中记录所述会话信息对应的会话被删除。After the session information collection module acquires the session information of the deleted session from the first storage medium according to the second event instruction, the method further includes: the session information collection module stores the session information in a second storage medium. The session corresponding to the session information recorded in the medium is deleted. 12.一种会话信息获取方法,其特征在于,应用于服务器,所述方法包括:12. A method for acquiring session information, characterized in that, applied to a server, the method comprising: 在所述服务器与另一服务器建立连接时,建立与所述连接对应的会话;when the server establishes a connection with another server, establishing a session corresponding to the connection; 获取与所述会话对应的会话信息,并将所述会话信息存储到第一存储介质;acquiring session information corresponding to the session, and storing the session information in a first storage medium; 接收针对所述会话信息的第一事件指令,并根据所述第一事件指令确定第一存储介质中增加新的会话信息,并从所述第一存储介质中获取新的会话信息。A first event instruction for the session information is received, new session information is determined to be added to the first storage medium according to the first event instruction, and new session information is acquired from the first storage medium. 13.根据权利要求12所述的方法,其特征在于,13. The method of claim 12, wherein 所述服务器与另一服务器建立连接,包括:The server establishes a connection with another server, including: 从所述服务器的应用编程接口内核模块获取另一服务器的连接信息,并利用所述服务器的连接信息与所述另一服务器的连接信息建立连接;或者,Obtain the connection information of another server from the application programming interface kernel module of the server, and use the connection information of the server to establish a connection with the connection information of the other server; or, 从所述服务器的连接管理接口内核模块获取另一服务器的连接信息,并利用所述服务器的连接信息与所述另一服务器的连接信息建立连接。The connection information of another server is acquired from the connection management interface kernel module of the server, and a connection is established with the connection information of the other server by using the connection information of the server. 14.根据权利要求12所述的方法,其特征在于,所述方法还包括:14. The method of claim 12, wherein the method further comprises: 在所述服务器与所述另一服务器断开连接时,释放与所述连接对应的会话,从所述第一存储介质中查询到与所述会话对应的会话信息,并在所述第一存储介质中记录所述会话信息对应的会话被删除;When the server is disconnected from the other server, the session corresponding to the connection is released, the session information corresponding to the session is queried from the first storage medium, and stored in the first storage medium. The session corresponding to the session information recorded in the medium is deleted; 接收针对所述会话信息的第二事件指令,并根据所述第二事件指令从所述第一存储介质中获取已经被删除的会话的会话信息。A second event instruction for the session information is received, and session information of the deleted session is acquired from the first storage medium according to the second event instruction. 15.一种会话信息获取方法,其特征在于,应用于采用RDMA方式建立连接的服务器,所述服务器包括网卡驱动模块和会话信息采集模块,该方法包括:15. A method for acquiring session information, characterized in that, it is applied to a server using RDMA mode to establish a connection, the server comprising a network card driver module and a session information acquisition module, the method comprising: 所述网卡驱动模块获取至少两种类型的连接对应的会话信息,并将获取的会话信息存储到第一存储介质;其中,所述至少两种类型的连接包括基于应用编程接口内核模块建立的连接和基于连接管理接口内核模块建立的连接;The network card driver module acquires session information corresponding to at least two types of connections, and stores the acquired session information in the first storage medium; wherein, the at least two types of connections include connections established based on the application programming interface kernel module and the connection established based on the connection management interface kernel module; 所述会话信息采集模块根据第一事件指令从所述第一存储介质中获取会话信息;其中,所述第一事件指令是所述网卡驱动模块在将会话信息存储到所述第一存储介质后,发送给所述会话信息采集模块的。The session information collection module acquires session information from the first storage medium according to a first event instruction; wherein, the first event instruction is that after the network card driver module stores the session information in the first storage medium , which is sent to the session information collection module. 16.一种会话信息获取装置,其特征在于,应用于服务器,包括:16. An apparatus for acquiring session information, characterized in that, applied to a server, comprising: 网卡驱动模块,用于获取会话信息,并将所述会话信息存储到第一存储介质,并向会话信息采集模块发送第一事件指令;a network card driver module, configured to acquire session information, store the session information in the first storage medium, and send a first event instruction to the session information collection module; 会话信息采集模块,用于根据所述第一事件指令从所述第一存储介质中获取所述会话信息。A session information collection module, configured to acquire the session information from the first storage medium according to the first event instruction. 17.根据权利要求16所述的装置,其特征在于,所述网卡驱动模块获取会话信息时具体用于:在所述网卡驱动模块与另一服务器建立连接时,则建立与所述连接对应的会话,并获取与所述会话对应的会话信息;17 . The device according to claim 16 , wherein when the network card driver module acquires the session information, it is specifically used for: when the network card driver module establishes a connection with another server, then establishes a corresponding connection to the connection. 18 . session, and obtain session information corresponding to the session; 所述装置还包括应用编程接口内核模块和/或连接管理接口内核模块;所述网卡驱动模块与另一服务器建立连接时具体用于:从应用编程接口内核模块获取另一服务器的连接信息,并利用所述服务器的连接信息与所述另一服务器的连接信息建立连接;或者,从连接管理接口内核模块获取另一服务器的连接信息,并利用所述服务器的连接信息与所述另一服务器的连接信息建立连接。The device further includes an application programming interface kernel module and/or a connection management interface kernel module; when the network card driver module establishes a connection with another server, it is specifically used for: acquiring the connection information of the other server from the application programming interface kernel module, and Use the connection information of the server to establish a connection with the connection information of the other server; or obtain the connection information of the other server from the connection management interface kernel module, and use the connection information of the server to communicate with the connection information of the other server. Connection information establishes a connection. 18.一种会话信息获取装置,其特征在于,应用于服务器,包括:18. An apparatus for acquiring session information, characterized in that, applied to a server, comprising: 建立模块,用于在所述服务器与另一服务器建立连接时,建立与所述连接对应的会话,并获取与所述会话对应的会话信息;an establishment module, configured to establish a session corresponding to the connection when the server establishes a connection with another server, and obtain session information corresponding to the session; 存储模块,用于将所述会话信息存储到第一存储介质;a storage module, configured to store the session information in the first storage medium; 获取模块,用于接收针对所述会话信息的第一事件指令,并根据所述第一事件指令确定第一存储介质中增加新的会话信息,并从所述第一存储介质中获取新的会话信息。an acquisition module, configured to receive a first event instruction for the session information, and determine to add new session information to the first storage medium according to the first event instruction, and acquire a new session from the first storage medium information. 19.一种会话信息获取装置,其特征在于,应用于采用RDMA方式建立连接的服务器,所述装置包括:19. An apparatus for acquiring session information, characterized in that it is applied to a server that establishes a connection in an RDMA manner, the apparatus comprising: 网卡驱动模块,用于获取至少两种类型的连接对应的会话信息,并将获取的会话信息存储到第一存储介质;其中,所述至少两种类型的连接包括基于应用编程接口内核模块建立的连接和基于连接管理接口内核模块建立的连接;A network card driver module, configured to acquire session information corresponding to at least two types of connections, and store the acquired session information to the first storage medium; wherein, the at least two types of connections include those established based on the application programming interface kernel module. connections and connections established based on the connection management interface kernel module; 会话信息采集模块,用于根据第一事件指令从所述第一存储介质中获取会话信息;其中,所述第一事件指令是所述网卡驱动模块在将会话信息存储到所述第一存储介质后,发送给所述会话信息采集模块的。a session information collection module, configured to acquire session information from the first storage medium according to a first event instruction; wherein the first event instruction is that the network card driver module is storing the session information in the first storage medium and then sent to the session information collection module. 20.一种服务器,其特征在于,包括:处理器和机器可读存储介质,所述机器可读存储介质上存储有若干计算机指令,所述处理器执行所述计算机指令时进行如下处理:通过网卡驱动模块获取会话信息,将所述会话信息存储到第一存储介质;通过网卡驱动模块向会话信息采集模块发送第一事件指令;通过会话信息采集模块根据所述第一事件指令从第一存储介质中获取会话信息。20. A server, comprising: a processor and a machine-readable storage medium, where several computer instructions are stored on the machine-readable storage medium, and the processor performs the following processing when executing the computer instructions: The network card driver module obtains the session information, and stores the session information in the first storage medium; sends a first event instruction to the session information collection module through the network card driver module; through the session information collection module according to the first event instruction from the first storage medium Get session information from the media. 21.一种服务器,其特征在于,包括:处理器和机器可读存储介质,所述机器可读存储介质上存储有若干计算机指令,所述处理器执行所述计算机指令时进行如下处理:在所述服务器与另一服务器建立连接时,建立与所述连接对应的会话;获取与所述会话对应的会话信息,并将所述会话信息存储到第一存储介质;接收针对所述会话信息的第一事件指令,根据所述第一事件指令确定第一存储介质中增加新的会话信息,从所述第一存储介质中获取新的会话信息。21. A server, comprising: a processor and a machine-readable storage medium, where several computer instructions are stored on the machine-readable storage medium, and the processor performs the following processing when executing the computer instructions: When the server establishes a connection with another server, a session corresponding to the connection is established; session information corresponding to the session is acquired, and the session information is stored in the first storage medium; The first event instruction determines that new session information is added to the first storage medium according to the first event instruction, and acquires the new session information from the first storage medium. 22.一种采用RDMA方式建立连接的服务器,其特征在于,包括:处理器和机器可读存储介质,所述机器可读存储介质上存储有若干计算机指令,所述处理器执行所述计算机指令时进行如下处理:通过网卡驱动模块获取至少两种类型的连接对应的会话信息,并将获取的会话信息存储到第一存储介质;其中,所述至少两种类型的连接包括基于应用编程接口内核模块建立的连接和基于连接管理接口内核模块建立的连接;通过会话信息采集模块根据第一事件指令从所述第一存储介质中获取会话信息;其中,所述第一事件指令是所述网卡驱动模块在将会话信息存储到所述第一存储介质后,发送给所述会话信息采集模块的。22. A server for establishing a connection by using an RDMA method, characterized in that it comprises: a processor and a machine-readable storage medium, where several computer instructions are stored on the machine-readable storage medium, and the processor executes the computer instructions The following processing is performed when the network card driver module is used to obtain session information corresponding to at least two types of connections, and store the obtained session information in the first storage medium; wherein, the at least two types of connections include application programming interface based kernels. The connection established by the module and the connection established based on the connection management interface kernel module; the session information acquisition module obtains session information from the first storage medium according to the first event instruction; wherein, the first event instruction is the network card driver The module sends the session information to the session information collection module after storing the session information in the first storage medium.
CN201810421410.1A 2018-05-04 2018-05-04 Session information acquisition method, device and server Active CN110445826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810421410.1A CN110445826B (en) 2018-05-04 2018-05-04 Session information acquisition method, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810421410.1A CN110445826B (en) 2018-05-04 2018-05-04 Session information acquisition method, device and server

Publications (2)

Publication Number Publication Date
CN110445826A CN110445826A (en) 2019-11-12
CN110445826B true CN110445826B (en) 2021-11-30

Family

ID=68427184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810421410.1A Active CN110445826B (en) 2018-05-04 2018-05-04 Session information acquisition method, device and server

Country Status (1)

Country Link
CN (1) CN110445826B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113297110B (en) * 2021-05-17 2024-06-18 阿里巴巴创新公司 Data acquisition system, method and device
CN113923797A (en) * 2021-09-26 2022-01-11 深圳市广和通无线通信软件有限公司 Session establishment method, apparatus, client device, and computer storage medium
CN116302618B (en) * 2023-05-17 2023-09-12 上海云脉芯联科技有限公司 Session information processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101690304A (en) * 2007-07-11 2010-03-31 艾利森电话股份有限公司 Method and apparatus for determining service performance
CN103733218A (en) * 2011-08-19 2014-04-16 微软公司 Synchronizing conversation structures in web-based email systems
US8990329B1 (en) * 2012-08-12 2015-03-24 Google Inc. Access control list for a multi-user communication session
CN106663015A (en) * 2014-08-27 2017-05-10 谷歌公司 Resuming session states
CN106790420A (en) * 2016-11-30 2017-05-31 华为技术有限公司 A kind of many session channel method for building up and system
CN106933500A (en) * 2015-12-29 2017-07-07 伊姆西公司 Access the method and system of storage data object within the storage system

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6862689B2 (en) * 2001-04-12 2005-03-01 Stratus Technologies Bermuda Ltd. Method and apparatus for managing session information
JP2005157494A (en) * 2003-11-20 2005-06-16 Aruze Corp Conversation control device and conversation control method
US8346910B2 (en) * 2004-11-30 2013-01-01 American Express Travel Related Services Company, Inc. Method and apparatus for managing an interactive network session
US8626926B2 (en) * 2008-02-26 2014-01-07 Qualcomm Incorporated Method and apparatus for performing session info query for user plane location
CN101668043A (en) * 2009-07-25 2010-03-10 高维海 Method and system for acquiring communication session group
US9104452B2 (en) * 2009-07-27 2015-08-11 Microsoft Technology Licensing, Llc Hybrid remote sessions
US20130054635A1 (en) * 2011-08-30 2013-02-28 Verizon Patent And Licensing Inc. Procuring communication session records
US8880935B2 (en) * 2012-06-12 2014-11-04 International Business Machines Corporation Redundancy and load balancing in remote direct memory access communications
US10681157B2 (en) * 2015-09-11 2020-06-09 International Business Machines Corporation Adaptive event management framework for resource-constrained environments
US10341205B2 (en) * 2016-02-09 2019-07-02 GlassBox Ltd. System and method for recording web sessions
CN106973065A (en) * 2017-04-28 2017-07-21 武汉票据交易中心有限公司 A kind of server event processing system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101690304A (en) * 2007-07-11 2010-03-31 艾利森电话股份有限公司 Method and apparatus for determining service performance
CN103733218A (en) * 2011-08-19 2014-04-16 微软公司 Synchronizing conversation structures in web-based email systems
US8990329B1 (en) * 2012-08-12 2015-03-24 Google Inc. Access control list for a multi-user communication session
CN106663015A (en) * 2014-08-27 2017-05-10 谷歌公司 Resuming session states
CN106933500A (en) * 2015-12-29 2017-07-07 伊姆西公司 Access the method and system of storage data object within the storage system
CN106790420A (en) * 2016-11-30 2017-05-31 华为技术有限公司 A kind of many session channel method for building up and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Evaluating High Performance Data Transfer with RDMA-based Protocols in Wide-Area Networks;Ezra Kissel等;《Evaluating High Performance Data Transfer with RDMA-based Protocols in Wide-Area Networks》;20121212;全文 *
iSCSI协议研究与实现;戴志敏;《计算机应用与软件》;20050712;全文 *
基于Nginx的在线教育平台架构优化研究;张康;《中国优秀硕士学位论文全文数据库 信息科技辑》;20170315;全文 *
基于动态信息同步的防火墙双机热备研究;孔平;《中国新通信》;20160205;全文 *

Also Published As

Publication number Publication date
CN110445826A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
KR101801432B1 (en) Providing transparent failover in a file system
US10382380B1 (en) Workload management service for first-in first-out queues for network-accessible queuing and messaging services
CN114201421B (en) A data stream processing method, storage control node and readable storage medium
US8019963B2 (en) Systems and methods for transferring data in a block-level storage operation
US8275752B2 (en) Data backup method through distributed network, involves generating data segment copies to transmit to peer storage servers based on metadata with segment distribution matrix by calculating redundancy corresponding to data segments
US20190332522A1 (en) Microservice platform with messaging system
US20230409535A1 (en) Techniques for resource utilization in replication pipeline processing
US20200204632A1 (en) Transmission Control of Protocol State Exchange for Dynamic Stateful Service Insertion
JP2011501254A (en) Method and system for handling failover in a distributed environment using session affinity
WO2020098654A1 (en) Data storage method and device based on cloud storage, and storage medium
US9723064B1 (en) Hybrid quorum policies for durable consensus in distributed systems
US20100306387A1 (en) Network interface device
US10341277B2 (en) Providing video to subscribers of a messaging system
CN103533087A (en) Cloud service platform middleware and cloud uploading method
CN106648903A (en) Method and system for calling distributed file system
CN110445826B (en) Session information acquisition method, device and server
US20150261622A1 (en) Ephemeral remote data store for dual-queue systems
CN106034113A (en) Data processing method and data processing device
CN112003963A (en) A method, system, device and medium for mounting a volume on a bare metal server
CN103763368A (en) Cross-data-center data synchronism method
CA2923896A1 (en) Email webclient notification queuing
US9578120B1 (en) Messaging with key-value persistence
CN115017167A (en) Blockchain system and information update method and device
CN111400213A (en) Method, device and system for transmitting data
CN106599323A (en) Method and apparatus for realizing distributed pipeline in distributed file system

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
GR01 Patent grant
GR01 Patent grant