CN112333245A - Protocol communication method, device, equipment and storage medium - Google Patents

Protocol communication method, device, equipment and storage medium Download PDF

Info

Publication number
CN112333245A
CN112333245A CN202011112825.4A CN202011112825A CN112333245A CN 112333245 A CN112333245 A CN 112333245A CN 202011112825 A CN202011112825 A CN 202011112825A CN 112333245 A CN112333245 A CN 112333245A
Authority
CN
China
Prior art keywords
protocol
interface
protocol communication
layer
driving
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.)
Withdrawn
Application number
CN202011112825.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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011112825.4A priority Critical patent/CN112333245A/en
Publication of CN112333245A publication Critical patent/CN112333245A/en
Withdrawn 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/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/329Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the application layer [OSI layer 7]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)

Abstract

The application discloses a protocol communication method, a device, equipment and a storage medium. The method comprises the following steps: receiving a protocol communication request transmitted by an application layer; acquiring a comprehensive function interface; the comprehensive function interface is encapsulated with a protocol interface corresponding to a driving protocol in a driving layer; and calling a target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish a protocol communication relationship between the application layer and the drive layer. The method does not need a developer to frequently set the calling function of the driving protocol for each function when developing the application program, and also does not need to additionally set the calling function of the driving protocol in the function of the application program when needing to add the driving protocol to the application program in the process of maintaining the application program, thereby relatively ensuring the development efficiency of the application program and reducing the complexity when maintaining the application program. In addition, the application also provides a protocol communication device, equipment and a storage medium, and the beneficial effects are as described above.

Description

Protocol communication method, device, equipment and storage medium
Technical Field
The present application relates to the field of data communications, and in particular, to a protocol communication method, apparatus, device, and storage medium.
Background
Due to the diversity of the current communication technology, a plurality of types of driving protocols exist in a driving layer of the bottom layer communication device, and the driving protocols needed by the application program to execute different functions are often different according to different communication requirements of the application program under different functions.
The basis of the normal calling of the driving protocol by the current application program is to set a calling function of an interface corresponding to the driving protocol in a function of the application program, so that when the functions of the application program are more and each function uses the corresponding driving protocol, a developer is required to frequently set the calling function of the driving protocol for each function, and in the process of maintaining the application program, when the driving protocol needs to be added to the application program, the calling function of the driving protocol still needs to be additionally set in the function of the application program, the development efficiency of the application program is difficult to ensure, and the complexity in maintaining the application program is increased.
Therefore, it is a problem to be solved by those skilled in the art to provide a protocol communication method to relatively ensure the development efficiency of the application program and reduce the complexity of maintaining the application program.
Disclosure of Invention
The application aims to provide a protocol communication method, a device, equipment and a storage medium, so as to relatively ensure the development efficiency of an application program and reduce the complexity when the application program is maintained.
In order to solve the above technical problem, the present application provides a protocol communication method, including:
receiving a protocol communication request transmitted by an application layer;
acquiring a comprehensive function interface; the comprehensive function interface is encapsulated with a protocol interface corresponding to a driving protocol in a driving layer;
and calling a target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish a protocol communication relationship between the application layer and the drive layer.
Preferably, the step of calling a target protocol interface corresponding to the protocol communication request in the integrated function interface to establish a protocol communication relationship between the application layer and the driver layer includes:
initiating a protocol communication request to a protocol interface in the comprehensive function interface;
feeding back an instruction message fed back by the protocol interface based on the protocol communication request to an application layer through a comprehensive function interface;
and forwarding a response message generated by the application layer according to the target instruction message to a target protocol interface corresponding to the target instruction message in the comprehensive function interface so as to establish a protocol communication relationship between the application layer and the drive layer.
Preferably, the step of calling a target protocol interface corresponding to the protocol communication request in the integrated function interface to establish a protocol communication relationship between the application layer and the driver layer includes:
and calling a target protocol interface corresponding to the protocol communication request in the comprehensive function interface through a working thread which has a unique corresponding relation with the CPU core to establish a protocol communication relation between the application layer and the drive layer.
Preferably, obtaining the synthesis function interface includes:
acquiring protocol interfaces corresponding to all driving protocols in a driving layer respectively;
and adding each protocol interface to a preset class library to obtain a comprehensive function interface.
Preferably, the driving protocol includes one or more of FC protocol, NTB protocol, SCSI protocol, SAS protocol, and PCI protocol.
In addition, the present application also provides a protocol communication apparatus, including:
the request receiving module is used for receiving a protocol communication request transmitted by an application layer;
the interface acquisition module is used for acquiring a comprehensive function interface; the comprehensive function interface is encapsulated with a protocol interface corresponding to a driving protocol in a driving layer;
and the communication establishing module is used for calling a target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish a protocol communication relation between the application layer and the driving layer.
Preferably, the communication establishing module comprises:
the request initiating module is used for initiating a protocol communication request to a protocol interface in the comprehensive function interface;
the instruction feedback module is used for feeding back the instruction message fed back by the protocol interface based on the protocol communication request to the application layer through the comprehensive function interface;
and the response forwarding module is used for forwarding a response message generated by the application layer according to the target instruction message to a target protocol interface corresponding to the target instruction message in the comprehensive function interface so as to establish a protocol communication relationship between the application layer and the driving layer.
Preferably, the communication establishing module comprises:
and the thread establishing module is used for calling a target protocol interface corresponding to the protocol communication request in the comprehensive function interface through a working thread which has the unique corresponding relation with the CPU core to establish the protocol communication relation between the application layer and the driving layer.
In addition, the present application also provides a protocol communication device, including:
a memory for storing a computer program;
a processor for implementing the steps of the protocol communication method as described above when executing the computer program.
Furthermore, the present application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the protocol communication method as described above.
According to the protocol communication method, firstly, a protocol communication request transmitted by an application layer is received, a comprehensive function interface which encapsulates a protocol interface corresponding to a driving protocol in a driving layer is obtained, and then a target protocol interface corresponding to the protocol communication request in the comprehensive function interface is called to establish a protocol communication relation between the application layer and the driving layer, so that the purpose that an application program calls the driving protocol in a device driving layer through the application layer to execute a corresponding function is achieved. The method encapsulates the protocol interfaces corresponding to the drive protocols in the drive layers based on the comprehensive function interfaces, so that the calling of all the encapsulated protocol interfaces can be realized by calling the comprehensive function interfaces through the application layers, developers do not need to frequently set the calling functions of the drive protocols for each function when developing the application programs, and in the process of maintaining the application programs, when the drive protocols are required to be added to the application programs, the calling functions of the drive protocols do not need to be additionally set in the function functions of the application programs, so that the development efficiency of the application programs is relatively ensured, and the complexity of maintaining the application programs is reduced. In addition, the application also provides a protocol communication device, equipment and a storage medium, and the beneficial effects are as described above.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a protocol communication method disclosed in an embodiment of the present application;
fig. 2 is a flowchart of a specific protocol communication method disclosed in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a protocol communication apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The basis of the normal calling of the driving protocol by the current application program is to set a calling function of an interface corresponding to the driving protocol in a function of the application program, so that when the functions of the application program are more and each function uses the corresponding driving protocol, a developer is required to frequently set the calling function of the driving protocol for each function, and in the process of maintaining the application program, when the driving protocol needs to be added to the application program, the calling function of the driving protocol still needs to be additionally set in the function of the application program, the development efficiency of the application program is difficult to ensure, and the complexity in maintaining the application program is increased.
Therefore, the core of the application is to provide a protocol communication method to relatively ensure the development efficiency of the application program and reduce the complexity when maintaining the application program.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present application discloses a protocol communication method, including:
step S10: an incoming protocol communication request by an application layer is received.
The application layer in this step, also called application entity, is composed of several application-specific service elements and one or more common application service elements. Each service element provides specific application services such as file transport access and management, electronic message processing, virtual terminal protocols, and the like. The common application service element provides a common set of application services, such as a contact control service element, a reliable transport service element, and a remote operations service element. The application layer is a protocol layer that the application program directly interacts with when implementing the application function, and when the application function of the application program needs to execute protocol communication based on the driver protocol of the driver layer, the application layer needs to define a protocol that the process of the application program follows when communicating based on the application layer in a manner of interacting with the driver layer.
The protocol communication request is a communication request initiated by the application layer to establish a protocol communication relationship with the driver layer under a specific protocol.
Step S11: and acquiring a comprehensive function interface.
And the comprehensive function interface is encapsulated with a protocol interface corresponding to a driving protocol in the driving layer.
It should be noted that there are often one or more driving protocols in the driving layer, and the driving layer is provided with a corresponding protocol interface for each driving protocol, so as to ensure that the corresponding driving protocol in the driving layer can be called based on the protocol interface.
Furthermore, the integrated function interface obtained in this step refers to an interface encapsulated with a protocol interface corresponding to a driving protocol in the driving layer, that is, the integrated function interface includes all protocol interfaces of the driving layer, and then the integrated function interface can call the protocol interfaces of each driving protocol in the driving layer.
In addition, it should be emphasized that there is no execution sequence between the process of acquiring the integrated function interface and the process of receiving the protocol communication request transmitted by the application layer, and the processes may also be executed simultaneously, which is not limited herein.
It should be noted that the execution subject of this embodiment may be understood as a common interface platform established between the application layer and the driver layer, and is intended to unify the protocol interfaces of the driver protocols in the driver layer to obtain a comprehensive function interface, so as to further establish an interface access relationship between the application layer and the driver layer based on the comprehensive function interface.
Step S12: and calling a target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish a protocol communication relationship between the application layer and the drive layer.
It should be noted that, after receiving the protocol communication request transmitted by the application layer and acquiring the comprehensive function interface, the step further calls a target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish a protocol communication relationship between the application layer and the driver layer, so as to establish a protocol communication relationship of a specific driver protocol between the application layer and the driver layer.
According to the protocol communication method, firstly, a protocol communication request transmitted by an application layer is received, a comprehensive function interface which encapsulates a protocol interface corresponding to a driving protocol in a driving layer is obtained, and then a target protocol interface corresponding to the protocol communication request in the comprehensive function interface is called to establish a protocol communication relation between the application layer and the driving layer, so that the purpose that an application program calls the driving protocol in a device driving layer through the application layer to execute a corresponding function is achieved. The method encapsulates the protocol interfaces corresponding to the drive protocols in the drive layers based on the comprehensive function interfaces, so that the calling of all the encapsulated protocol interfaces can be realized by calling the comprehensive function interfaces through the application layers, developers do not need to frequently set the calling functions of the drive protocols for each function when developing the application programs, and in the process of maintaining the application programs, when the drive protocols are required to be added to the application programs, the calling functions of the drive protocols do not need to be additionally set in the function functions of the application programs, so that the development efficiency of the application programs is relatively ensured, and the complexity of maintaining the application programs is reduced.
On the basis of the above embodiment, as a preferred implementation, invoking a target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish a protocol communication relationship between the application layer and the driver layer includes:
and calling a target protocol interface corresponding to the protocol communication request in the comprehensive function interface through a working thread which has a unique corresponding relation with the CPU core to establish a protocol communication relation between the application layer and the drive layer.
It should be noted that the important point of this embodiment is to use the working thread having the unique corresponding relationship with the CPU core to execute an operation of calling a target protocol interface corresponding to the protocol communication request in the integrated function interface to establish the protocol communication relationship between the application layer and the driver layer. The stability of the process of establishing the protocol communication relationship between the application layer and the drive layer can be further ensured because the operation resources of the CPU core can be all called by the working thread when the unique corresponding relationship exists between the working thread and the CPU core.
On the basis of the foregoing embodiment, as a preferred implementation, acquiring a comprehensive function interface includes:
acquiring protocol interfaces corresponding to all driving protocols in a driving layer respectively;
and adding each protocol interface to a preset class library to obtain a comprehensive function interface.
In this embodiment, the manner of obtaining the comprehensive function interface specifically is to obtain protocol interfaces corresponding to all driving protocols in the driving layer, and further add each protocol interface to the preset class library, so as to set the preset class library including each protocol interface as the comprehensive function interface. In this embodiment, the comprehensive function interface is generated based on a protocol interface of a Class Library encapsulation driver protocol, where a Class Library (Class Library) refers to a set of comprehensive object-oriented reusable types, and the types include: interfaces, abstract classes, and concrete classes. The class library can solve a series of common programming tasks and can also solve a plurality of special development tasks. The method and the device further ensure the usability of the comprehensive function interface, and further ensure the overall reliability of the protocol communication relationship establishing process.
Referring to fig. 2, an embodiment of the present application discloses a protocol communication method, including:
step S20: an incoming protocol communication request by an application layer is received.
Step S21: and acquiring a comprehensive function interface.
And the comprehensive function interface is encapsulated with a protocol interface corresponding to a driving protocol in the driving layer.
Step S22: and initiating a protocol communication request to a protocol interface in the integrated function interface.
It should be noted that, in the process of calling a target protocol interface corresponding to a protocol communication request in the comprehensive function interface to establish a protocol communication relationship between the application layer and the driver layer, the present embodiment first initiates a protocol communication request to each protocol interface in the comprehensive function interface, so that in the subsequent step, the application layer selectively responds according to an instruction message fed back by each protocol interface, thereby implementing establishment of a protocol communication relationship of a specific driver protocol between the application layer and the driver layer.
Step S23: and feeding back the instruction message fed back by the protocol interface based on the protocol communication request to the application layer through the comprehensive function interface.
After a protocol communication request is initiated to a protocol interface in the comprehensive function interface, the step further feeds back an instruction message fed back by the protocol interface based on the protocol communication request to the application layer through the comprehensive function interface, so that the application layer selectively corresponds to the protocol interface according to the instruction message of each protocol interface, and a protocol communication relation with a driving protocol corresponding to the corresponding protocol interface is established.
Step S24: and forwarding a response message generated by the application layer according to the target instruction message to a target protocol interface corresponding to the target instruction message in the comprehensive function interface so as to establish a protocol communication relationship between the application layer and the drive layer.
After the instruction message fed back by the protocol interface based on the protocol communication request is fed back to the application layer through the comprehensive function interface, the step further forwards a response message generated by the application layer according to the target instruction message to a target protocol interface corresponding to the target instruction message in the comprehensive function interface, so that the purpose that the application layer responds to the target instruction message in each instruction message is achieved, and the protocol communication relationship of the driving protocol corresponding to the target instruction message in the application layer and the driving layer is established.
The embodiment further ensures the flexibility and the reliability of the protocol communication relationship establishment process in the process of calling the target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish the protocol communication relationship between the application layer and the drive layer.
Based on the above series of embodiments, as a preferred implementation, the driving protocol includes one or more protocols of an FC protocol, an NTB protocol, a SCSI protocol, an SAS protocol, and a PCI protocol.
It should be noted that, the FC (fibre channel) protocol is a light protocol, the NTB (Non-Transparent Bridge) protocol is a Non-Transparent Bridge protocol, the SCSI (small Computer System interface) protocol is a small Computer System interface protocol, the SAS (serial Attached SCSI) protocol is a serial SCSI protocol, and the PCI (peripheral Component interconnect) protocol is a peripheral Component interconnect standard protocol, and since the FC protocol, the NTB protocol, the SCSI protocol, the SAS protocol, and the PCI protocol all have communication reliability, the present embodiment can relatively ensure reliability of protocol communication relationship.
Referring to fig. 3, an embodiment of the present application provides a protocol communication apparatus, including:
a request receiving module 10, configured to receive a protocol communication request incoming from an application layer;
an interface obtaining module 11, configured to obtain a comprehensive function interface; the comprehensive function interface is encapsulated with a protocol interface corresponding to a driving protocol in a driving layer;
and a communication establishing module 12, configured to invoke a target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish a protocol communication relationship between the application layer and the driver layer.
Further, as a preferred embodiment, the communication establishing module 12 includes:
the request initiating module is used for initiating a protocol communication request to a protocol interface in the comprehensive function interface;
the instruction feedback module is used for feeding back the instruction message fed back by the protocol interface based on the protocol communication request to the application layer through the comprehensive function interface;
and the response forwarding module is used for forwarding a response message generated by the application layer according to the target instruction message to a target protocol interface corresponding to the target instruction message in the comprehensive function interface so as to establish a protocol communication relationship between the application layer and the driving layer.
Further, as a preferred embodiment, the communication establishing module 12 includes:
and the thread establishing module is used for calling a target protocol interface corresponding to the protocol communication request in the comprehensive function interface through a working thread which has the unique corresponding relation with the CPU core to establish the protocol communication relation between the application layer and the driving layer.
The protocol communication device provided by the application receives a protocol communication request transmitted by an application layer, acquires a comprehensive function interface which is packaged with a protocol interface corresponding to a driving protocol in a driving layer, and then calls a target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish a protocol communication relation between the application layer and the driving layer, so that the purpose that an application program calls the driving protocol in a device driving layer to execute a corresponding function through the application layer is achieved. Because the device encapsulates the protocol interfaces corresponding to the driving protocols in the driving layer based on the comprehensive function interface, the integrated function interface can be invoked by the application layer to call all the protocol interfaces encapsulated by the integrated function interface, developers do not need to frequently set the calling function of the driving protocol for each functional function when developing the application program, and in the process of maintaining the application program, when the driving protocols need to be added to the application program, the calling functions of the driving protocols do not need to be additionally set in the functional functions of the application program, so that the development efficiency of the application program is relatively ensured, and the complexity of maintaining the application program is reduced.
In addition, the present application also provides a protocol communication device, including:
a memory for storing a computer program;
a processor for implementing the steps of the protocol communication method as described above when executing the computer program.
The protocol communication equipment provided by the application receives a protocol communication request transmitted by an application layer, acquires a comprehensive function interface packaged with a protocol interface corresponding to a driving protocol in a driving layer, and then calls a target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish a protocol communication relation between the application layer and the driving layer, so that the purpose that an application program calls the driving protocol in the equipment driving layer to execute a corresponding function through the application layer is achieved. The device encapsulates the protocol interfaces corresponding to the driving protocols in the driving layers based on the comprehensive function interfaces, so that all protocol interfaces encapsulated by the device can be invoked by invoking the comprehensive function interfaces through the application layers, developers do not need to frequently set the invoking functions of the driving protocols for each function when developing the application program, and in the process of maintaining the application program, when the driving protocols need to be added to the application program, the invoking functions of the driving protocols do not need to be additionally set in the function functions of the application program, so that the development efficiency of the application program is relatively ensured, and the complexity of maintaining the application program is reduced.
Furthermore, the present application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the protocol communication method as described above.
The computer-readable storage medium provided by the application receives a protocol communication request transmitted by an application layer, acquires a comprehensive function interface packaged with a protocol interface corresponding to a driving protocol in a driving layer, and then calls a target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish a protocol communication relationship between the application layer and the driving layer, so that the purpose that an application program calls the driving protocol in a device driving layer through the application layer to execute a corresponding function is achieved. The computer readable storage medium encapsulates the protocol interfaces corresponding to the drive protocols in the drive layers based on the comprehensive function interface, so that all protocol interfaces encapsulated by the comprehensive function interface can be invoked by invoking the comprehensive function interface through the application layer, developers do not need to frequently set a call function of the drive protocol for each function when developing the application program, and in the process of maintaining the application program, when the drive protocols need to be added to the application program, the call functions of the drive protocols do not need to be additionally set in the function functions of the application program, so that the development efficiency of the application program is relatively ensured, and the complexity of maintaining the application program is reduced.
A protocol communication method, a device and a storage medium provided by the present application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A protocol communication method, comprising:
receiving a protocol communication request transmitted by an application layer;
acquiring a comprehensive function interface; the comprehensive function interface is encapsulated with a protocol interface corresponding to a driving protocol in the driving layer;
and calling a target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish a protocol communication relationship between the application layer and the drive layer.
2. The protocol communication method according to claim 1, wherein the invoking of the target protocol interface corresponding to the protocol communication request in the comprehensive function interface establishes a protocol communication relationship between the application layer and the driver layer, and includes:
initiating the protocol communication request to the protocol interface in the integrated function interface;
feeding back the instruction message fed back by the protocol interface based on the protocol communication request to the application layer through the comprehensive function interface;
and forwarding a response message generated by the application layer according to a target instruction message to the target protocol interface corresponding to the target instruction message in the comprehensive function interface so as to establish the protocol communication relationship between the application layer and the drive layer.
3. The protocol communication method according to claim 1, wherein the invoking of the target protocol interface corresponding to the protocol communication request in the comprehensive function interface establishes a protocol communication relationship between the application layer and the driver layer, and includes:
and calling a target protocol interface corresponding to the protocol communication request in the comprehensive function interface through a working thread which has a unique corresponding relation with a CPU core to establish the protocol communication relation between the application layer and the drive layer.
4. The protocol communication method according to claim 1, wherein the obtaining an integrated function interface comprises:
acquiring protocol interfaces corresponding to all the driving protocols in the driving layer respectively;
and adding each protocol interface to a preset class library to obtain the comprehensive function interface.
5. The protocol communication method according to any one of claims 1 to 4, wherein the driving protocol comprises one or more of FC protocol, NTB protocol, SCSI protocol, SAS protocol and PCI protocol.
6. A protocol communication apparatus, comprising:
the request receiving module is used for receiving a protocol communication request transmitted by an application layer;
the interface acquisition module is used for acquiring a comprehensive function interface; the comprehensive function interface is encapsulated with a protocol interface corresponding to a driving protocol in the driving layer;
and the communication establishing module is used for calling a target protocol interface corresponding to the protocol communication request in the comprehensive function interface to establish a protocol communication relation between the application layer and the driving layer.
7. The protocol communication device of claim 6, wherein the communication establishing module comprises:
a request initiating module, configured to initiate the protocol communication request to the protocol interface in the integrated function interface;
the instruction feedback module is used for feeding back the instruction message fed back by the protocol interface based on the protocol communication request to the application layer through the comprehensive function interface;
and the response forwarding module is used for forwarding a response message generated by the application layer according to a target instruction message to the target protocol interface corresponding to the target instruction message in the comprehensive function interface so as to establish the protocol communication relationship between the application layer and the drive layer.
8. The protocol communication device of claim 6, wherein the communication establishing module comprises:
and the thread establishing module is used for calling a target protocol interface corresponding to the protocol communication request in the comprehensive function interface through a working thread which has a unique corresponding relation with the CPU core to establish the protocol communication relation between the application layer and the drive layer.
9. A protocol communication device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the protocol communication method according to any of claims 1 to 5 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the protocol communication method according to any one of claims 1 to 5.
CN202011112825.4A 2020-10-16 2020-10-16 Protocol communication method, device, equipment and storage medium Withdrawn CN112333245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011112825.4A CN112333245A (en) 2020-10-16 2020-10-16 Protocol communication method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011112825.4A CN112333245A (en) 2020-10-16 2020-10-16 Protocol communication method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112333245A true CN112333245A (en) 2021-02-05

Family

ID=74313579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011112825.4A Withdrawn CN112333245A (en) 2020-10-16 2020-10-16 Protocol communication method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112333245A (en)

Similar Documents

Publication Publication Date Title
AU2014386583B8 (en) Inter-process communication method based on application layer of android and basic application communication system
CN111176626B (en) Cross-programming-language code calling method and device, medium and equipment
US7877091B2 (en) Method and system for executing a container managed application on a processing device
TWI767182B (en) H5-Based Access Components and Mobile Terminals
US9760583B2 (en) Method for native program to inherit same transaction context when invoked by primary program running in separate environment
RU2523964C2 (en) Method for inter-process interaction between different applications in mobile terminal and corresponding device
CN109240697B (en) Call processing method and device and storage medium
CN110971591B (en) Method and system for multi-process access to trusted application
CN110933075B (en) Service calling method and device, electronic equipment and storage medium
WO2020248383A1 (en) Cross-platform-based data processing method and apparatus, and computer device
CN112416453B (en) Method for integrating domestic external equipment unified data under trusted environment and storage equipment
TWI418178B (en) Technique for controlling external communication of embedded device using proxy server
CN112835615B (en) Plug-in processing method and device for software development kit and electronic equipment
CN112596931B (en) Cross-process communication method and device, electronic equipment and storage medium
CN106294119B (en) Test scheduling system and method and terminal equipment
WO2021093671A1 (en) Task processing method, system, apparatus and device, and computer readable storage medium
CN112333245A (en) Protocol communication method, device, equipment and storage medium
WO2021097683A1 (en) Android system starting method and apparatus, device, and storage medium
CN107491330B (en) Method for improving running speed of embedded browser
CN114741275A (en) Equipment debugging method, device and equipment
CN112905273A (en) Service calling method and device
CN113971073A (en) Data calling method and device, electronic equipment and computer storage medium
CN114253634A (en) Intelligent equipment hardware interaction system based on PISA
KR100494827B1 (en) Distributed object model based radio server with hardware-independent communication interface and communication control method using the same
CN107463438B (en) Information processing method, device and system for multi-Openstack environment

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210205

WW01 Invention patent application withdrawn after publication