CN112751812A - Method and device for self-adapting application protocol - Google Patents
Method and device for self-adapting application protocol Download PDFInfo
- Publication number
- CN112751812A CN112751812A CN201911053647.XA CN201911053647A CN112751812A CN 112751812 A CN112751812 A CN 112751812A CN 201911053647 A CN201911053647 A CN 201911053647A CN 112751812 A CN112751812 A CN 112751812A
- Authority
- CN
- China
- Prior art keywords
- application protocol
- protocol
- request message
- processor
- target application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000013507 mapping Methods 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 10
- 239000000344 soap Substances 0.000 claims description 7
- 238000012423 maintenance Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 14
- 238000004891 communication Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000006978 adaptation Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000003491 array Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/18—Protocol analysers
Abstract
The invention discloses a method and a device for self-adapting an application protocol, and relates to the technical field of computers. One embodiment of the method comprises: receiving a request message; comparing the request message with feature codes preset by each application protocol, and determining a target application protocol corresponding to the request; and determining a target application protocol processor corresponding to the target application protocol, and forwarding the request message to the target application protocol processor. The implementation method can bind various application protocols at the same port, automatically adapt to the corresponding application protocol processor according to the application protocol of the request message, and reduce the management and configuration maintenance cost. The number and the type of the application protocol processors can be selectively expanded, and the expansibility and the universality are good.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for self-adapting an application protocol.
Background
A transport layer protocol corresponds to a plurality of different application protocols, each requiring an application server to deploy a corresponding application. When the application protocols of the service systems are different, the data transmission modes are different, and the service systems need to be connected with different systems through multiple protocols. Taking an application scenario of a supply chain system as an example, application systems among suppliers need to be docked, application protocols used by the suppliers are different, data transmission modes are different, and the supply chain system generally needs to be docked with different systems through multiple protocols.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
deploying an application gateway for each application protocol to interface faces significant challenges in management and configuration maintenance.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for application protocol self-adaptation, which can bind multiple application protocols at the same port, automatically adapt to a corresponding application protocol processor according to an application protocol of a request packet, and reduce management and configuration maintenance costs. The number and the type of the application protocol processors can be selectively expanded, and the expansibility and the universality are good.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method for application protocol self-adaptation, including:
receiving a request message;
comparing the request message with feature codes preset by each application protocol, and determining a target application protocol corresponding to the request;
and determining a target application protocol processor corresponding to the target application protocol, and forwarding the request message to the target application protocol processor.
Optionally, the method further comprises: pre-storing mapping relations between each application protocol and the corresponding feature codes thereof;
comparing the request message with the feature codes preset by each application protocol, wherein the comparing comprises the following steps: and comparing the request message with the mapping relation.
Optionally, the method further comprises: pre-registering mapping relations between each application protocol and the corresponding application protocol processor;
determining a target application protocol processor corresponding to the target application protocol, comprising: and according to the mapping relation, taking an application protocol processor corresponding to the target application protocol as the target application protocol processor.
Optionally, the application protocol is implemented based on a TCP transport layer protocol, and includes at least one of:
FTP,HTTP,SOAP,AS2,SMTP,SFTP,OFSTP。
optionally, the method further comprises: the application protocol processor is provided in a plug-in manner.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for application protocol self-adaptation, including:
the network service module receives the request message;
the protocol identification module is used for comparing the request message with feature codes preset by each application protocol and determining a target application protocol corresponding to the request;
and the protocol registration module is used for determining a target application protocol processor corresponding to the target application protocol and forwarding the request message to the target application protocol processor.
Optionally, the protocol identification module prestores mapping relationships between the application protocols and the feature codes corresponding to the application protocols; comparing the request message with the feature codes preset by each application protocol, wherein the comparing comprises the following steps: and comparing the request message with the mapping relation.
Optionally, the protocol registration module registers in advance a mapping relationship between each application protocol and its corresponding application protocol processor; determining a target application protocol processor corresponding to the target application protocol, comprising: and according to the mapping relation, taking an application protocol processor corresponding to the target application protocol as the target application protocol processor.
Optionally, the application protocol is implemented based on a TCP transport layer protocol, and includes at least one of:
FTP,HTTP,SOAP,AS2,SMTP,SFTP,OFSTP。
optionally, the apparatus further comprises: a processor module for providing the application protocol processor in a plug-in manner.
According to a third aspect of the embodiments of the present invention, there is provided an electronic device for application protocol self-adaptation, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method provided by the first aspect of the embodiments of the present invention.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the method provided by the first aspect of embodiments of the present invention.
One embodiment of the above invention has the following advantages or benefits: the invention binds a plurality of application protocols at the same port, can automatically adapt to the corresponding application protocol processor according to the application protocol of the request message, and reduces the management and configuration maintenance cost. The number and the type of the application protocol processors can be selectively expanded, and the expansibility and the universality are good.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a method of application protocol self-adaptation according to an embodiment of the invention;
FIG. 2 is a schematic diagram illustrating a method for application protocol self-adaptation according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the main modules of an apparatus for applying protocol adaptation in some embodiments of the present invention;
FIG. 4 is a schematic diagram of the main modules of an apparatus for adaptive protocol application according to further embodiments of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
According to an aspect of an embodiment of the present invention, a method for application protocol self-adaptation is provided.
Fig. 1 is a schematic diagram of a main flow of a method for application protocol self-adaptation according to an embodiment of the present invention, and as shown in fig. 1, the method for application protocol self-adaptation includes:
step S101, receiving a request message;
step S102, comparing the request message with feature codes preset by each application protocol, and determining a target application protocol corresponding to the request;
step S103, determining a target application protocol processor corresponding to the target application protocol, and forwarding the request packet to the target application protocol processor.
The feature code refers to a feature of the application protocol. The specific content of the feature code is determined according to the protocol, as long as the feature code can be used for identifying different application protocols. When different application protocols are identified according to the feature codes, the identification can be carried out according to only one feature code or can be carried out by combining a plurality of feature codes.
Fig. 2 is a schematic diagram illustrating a method for application protocol self-adaptation according to an embodiment of the present invention. In this example, an application protocol based on the TCP transport layer protocol is taken as an example. As shown in fig. 2, the web services Layer binds two ports 80 and 443 for receiving TCP requests and requests for SSL (Secure Sockets Layer) connections, respectively. After receiving the request, the network service layer forwards the request message to the protocol identification module to identify a specific application protocol, then the protocol identification module is sent to a corresponding protocol processor to process the request message, and a processing result is sent to the service system. Illustratively, HTTP request messages are handled by an HTTP protocol handler, FTP request messages are handled by an FTP protocol handler, AS2 request messages are handled by an AS2P protocol handler, and SOAP request messages are handled by a SOAP protocol handler.
Optionally, the method further comprises: pre-storing mapping relations between each application protocol and the corresponding feature codes thereof; comparing the request message with the feature codes preset by each application protocol, wherein the comparing comprises the following steps: and comparing the request message with the mapping relation. And the comparison is carried out according to the mapping relation, so that the efficiency is high.
Optionally, the method further comprises: pre-registering mapping relations between each application protocol and the corresponding application protocol processor; determining a target application protocol processor corresponding to the target application protocol, comprising: and according to the mapping relation, taking an application protocol processor corresponding to the target application protocol as the target application protocol processor. And the comparison is carried out according to the mapping relation, so that the efficiency is high.
Optionally, the application Protocol is implemented based on a TCP (Transmission Control Protocol) transport layer Protocol, and includes at least one of: FTP, HTTP, SOAP, AS2, SMTP, SFTP, OFSTP.
The Transport Layer (Transport Layer) is the fourth Layer of an Open System Interconnection (OSI) communication protocol, and is responsible for reliably transmitting data to a corresponding port and realizing end-to-end data transmission. The transport layer protocol includes: transmission control protocol (TCP protocol) and user datagram protocol (UDP protocol). The TCP protocol is a connection-oriented reliable transport protocol. When the TCP protocol is used for communication, a three-step handshake is first performed to establish a connection between two communicating parties. The TCP protocol provides a mechanism for data acknowledgement and data retransmission, and ensures that the transmitted data can reach the opposite party of communication. The UDP protocol is a connectionless, unreliable transport protocol. When the UDP protocol is adopted for communication, connection does not need to be established, data can be directly sent to an IP address, but whether the opposite side can receive the data cannot be guaranteed. The application layer is a seventh layer of an OSI (Open System interconnection) communication protocol, and the application protocol is a protocol specification of the application layer.
In the invention, a plurality of application protocols can be bound on the same port, and when a connection request occurs, a corresponding protocol processor is automatically selected for processing according to an actual request. Optionally, the method further comprises: the application protocol processor is provided in a plug-in manner. Illustratively, an Interface which each application protocol needs to support is defined, and the implementation of each application protocol is provided in the form of JAR (Java Archive, which is a software package file format) package, and is loaded using the technology of SPI (Serial Peripheral Interface)/OSGI (Open Service Gateway Initiative) at the framework level. The application protocol processor supports extension and dynamic plugging and unplugging, and has good universality.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for application protocol self-adaptation.
Fig. 3 is a schematic diagram of the main modules of an apparatus applying protocol adaptation in some embodiments of the present invention. As shown in fig. 3, the apparatus 300 for applying protocol self-adaptation includes:
the network service module 301 receives a request message;
the protocol identification module 302 is used for comparing the request message with feature codes preset by each application protocol and determining a target application protocol corresponding to the request;
the protocol registration module 303 determines a target application protocol processor corresponding to the target application protocol, and forwards the request packet to the target application protocol processor.
The network service module 301 is responsible for monitoring connection requests such as TCP and SSL, and packages specific request contents into a message after receiving the connection request, and forwards the message to the protocol identification module 302.
The protocol identification module can pre-store mapping relations between each application protocol and the corresponding feature codes thereof; comparing the request message with the feature codes preset by each application protocol, wherein the comparing comprises the following steps: and comparing the request message with the mapping relation.
After the protocol identification module determines the target application protocol, the protocol registration module 303 is invoked to determine the target application protocol processor. Optionally, the protocol registration module registers in advance a mapping relationship between each application protocol and its corresponding application protocol processor; determining a target application protocol processor corresponding to the target application protocol, comprising: and according to the mapping relation, taking an application protocol processor corresponding to the target application protocol as the target application protocol processor.
The protocol registration module 303 is used to manage the respective application protocol processors. New application protocol processors may be extended or application protocol processors already registered may be deleted by the registrable module 303.
Optionally, the application protocol is implemented based on a TCP transport layer protocol, and includes at least one of:
FTP,HTTP,SOAP,AS2,SMTP,SFTP,OFSTP。
in an alternative embodiment shown in fig. 4, the apparatus for applying protocol self-adaptation further comprises: a processor module for providing the application protocol processor in a plug-in manner. Referring to the embodiment shown in fig. 4, the apparatus 400 for applying protocol self-adaptation includes: the network service module 401 receives a request message;
the protocol identification module 402 is used for comparing the request message with feature codes preset by each application protocol and determining a target application protocol corresponding to the request;
a protocol registration module 403, configured to determine a target application protocol processor corresponding to the target application protocol, and forward the request packet to the target application protocol processor;
a processor module 404 that provides the application protocol processor in a plug-in manner.
The application protocol processor is provided in a plug-in manner, which facilitates expansion.
For details of the network service module 401, the protocol identification module 402, and the protocol registration module 403, please refer to the network service module 301, the protocol identification module 302, and the protocol registration module 303, which are not described herein again.
At initialization, the protocol identification module 402 predefines and loads the feature codes of the various application protocols. The protocol registration module 403 scans various application protocol processors and loads the corresponding relationship between each application protocol and the application protocol processor. The processor module 404 scans through the system, finds the corresponding application protocol processor and loads it. The network service module 401 is then started and the specific port is bound.
After receiving the connection request, the network service module 401 encapsulates the specific request content into a message (a character string array) and forwards the message to the protocol identification module 402. Specifically, the network service layer sends the character string arrays (these character string arrays are the message content) assembled by the protocol layer to the protocol identification module 402, the protocol identification module 402 identifies the target application protocol according to the feature codes included in the character string arrays, and then establishes the binding between the protocol and the network channel. )
After receiving the message, the protocol identification module 402 compares the feature code identification contained in the message content with the feature code of the registered application protocol, and identifies the target application protocol.
The protocol registration module 403 searches a corresponding target application protocol processor from the registered protocol processors according to the target application protocol. If the current connection can not be found, returning an error message, and disconnecting the current connection; if the message is found, the service interface is called by the target application protocol processor to process the corresponding message, and corresponding information is obtained from the service interface and returned to the client after the processing is finished.
The invention binds a plurality of application protocols at the same port, can automatically adapt to the corresponding application protocol processor according to the application protocol of the request message, and reduces the management and configuration maintenance cost. The number and the type of the application protocol processors can be selectively expanded, and the expansibility and the universality are good.
According to a third aspect of the embodiments of the present invention, there is provided an electronic device for application protocol self-adaptation, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method provided by the first aspect of the embodiments of the present invention.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the method provided by the first aspect of embodiments of the present invention.
Fig. 5 illustrates an exemplary system architecture 500 of a method of application protocol adaptation or an apparatus of application protocol adaptation to which embodiments of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 501, 502, 503. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the method for application protocol self-adaptation provided by the embodiment of the present invention is generally performed by the server 505, and accordingly, the apparatus for application protocol self-adaptation is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface Y05 as necessary. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprising: the network service module receives the request message; the protocol identification module is used for comparing the request message with feature codes preset by each application protocol and determining a target application protocol corresponding to the request; and the protocol registration module is used for determining a target application protocol processor corresponding to the target application protocol and forwarding the request message to the target application protocol processor. Where the names of these modules do not in some cases constitute a limitation on the modules themselves, for example, a web services module may also be described as a "module that determines the target application protocol corresponding to the request".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: receiving a request message; comparing the request message with feature codes preset by each application protocol, and determining a target application protocol corresponding to the request; and determining a target application protocol processor corresponding to the target application protocol, and forwarding the request message to the target application protocol processor.
According to the technical scheme of the embodiment of the invention, multiple application protocols are bound at the same port, the corresponding application protocol processor can be automatically adapted according to the application protocol of the request message, and the management and configuration maintenance cost is reduced. The number and the type of the application protocol processors can be selectively expanded, and the expansibility and the universality are good.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method for application protocol self-adaptation, comprising:
receiving a request message;
comparing the request message with feature codes preset by each application protocol, and determining a target application protocol corresponding to the request;
and determining a target application protocol processor corresponding to the target application protocol, and forwarding the request message to the target application protocol processor.
2. The method of claim 1, further comprising: pre-storing mapping relations between each application protocol and the corresponding feature codes thereof;
comparing the request message with the feature codes preset by each application protocol, wherein the comparing comprises the following steps: and comparing the request message with the mapping relation.
3. The method of claim 1, further comprising: pre-registering mapping relations between each application protocol and the corresponding application protocol processor;
determining a target application protocol processor corresponding to the target application protocol, comprising: and according to the mapping relation, taking an application protocol processor corresponding to the target application protocol as the target application protocol processor.
4. The method of claim 1, wherein the application protocol is implemented based on a TCP transport layer protocol, including at least one of:
FTP,HTTP,SOAP,AS2,SMTP,SFTP,OFSTP。
5. the method of any of claims 1-4, further comprising: the application protocol processor is provided in a plug-in manner.
6. An apparatus for application protocol self-adaptation, comprising:
the network service module receives the request message;
the protocol identification module is used for comparing the request message with feature codes preset by each application protocol and determining a target application protocol corresponding to the request;
and the protocol registration module is used for determining a target application protocol processor corresponding to the target application protocol and forwarding the request message to the target application protocol processor.
7. The apparatus of claim 6, wherein the protocol identification module pre-stores a mapping relationship between each application protocol and its corresponding feature code; comparing the request message with the feature codes preset by each application protocol, wherein the comparing comprises the following steps: and comparing the request message with the mapping relation.
8. The apparatus of any of claims 6-7, further comprising: a processor module for providing the application protocol processor in a plug-in manner.
9. An electronic device that is application protocol self-adaptive, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911053647.XA CN112751812A (en) | 2019-10-31 | 2019-10-31 | Method and device for self-adapting application protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911053647.XA CN112751812A (en) | 2019-10-31 | 2019-10-31 | Method and device for self-adapting application protocol |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112751812A true CN112751812A (en) | 2021-05-04 |
Family
ID=75645620
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911053647.XA Pending CN112751812A (en) | 2019-10-31 | 2019-10-31 | Method and device for self-adapting application protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112751812A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114051060A (en) * | 2022-01-11 | 2022-02-15 | 深圳市明源云科技有限公司 | Multi-protocol shared port proxy forwarding method, device, equipment and storage medium |
CN114500485A (en) * | 2022-01-28 | 2022-05-13 | 北京沃东天骏信息技术有限公司 | Data processing method and device |
CN114640720A (en) * | 2022-03-15 | 2022-06-17 | 北京京东乾石科技有限公司 | Service protocol switching method and device |
CN115208960A (en) * | 2022-06-20 | 2022-10-18 | 平安银行股份有限公司 | Protocol switching method and related equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101202652A (en) * | 2006-12-15 | 2008-06-18 | 北京大学 | Device for classifying and recognizing network application flow quantity and method thereof |
CN101360090A (en) * | 2007-08-01 | 2009-02-04 | 中国科学院声学研究所 | Application protocol recognition method |
CN103024056A (en) * | 2012-12-17 | 2013-04-03 | 山东中创软件商用中间件股份有限公司 | Data processing method, load equalizer and cloud system |
CN105100091A (en) * | 2015-07-13 | 2015-11-25 | 北京奇虎科技有限公司 | Protocol identification method and protocol identification system |
CN106790206A (en) * | 2017-01-05 | 2017-05-31 | 厦门中控生物识别信息技术有限公司 | The protocol analysis method and device of operation system |
CN107181736A (en) * | 2017-04-21 | 2017-09-19 | 湖北微源卓越科技有限公司 | Based on 7 layers of network data packet classification method applied and system |
CN107835178A (en) * | 2017-11-13 | 2018-03-23 | 北京奇艺世纪科技有限公司 | A kind of multi-protocols communication for service method, apparatus and electronic equipment |
CN109889521A (en) * | 2019-02-21 | 2019-06-14 | 北京航星永志科技有限公司 | Memory, communication channel multiplexing implementation method, device and equipment |
CN110324405A (en) * | 2019-05-29 | 2019-10-11 | 北京奇艺世纪科技有限公司 | Message method, device, system and computer readable storage medium |
-
2019
- 2019-10-31 CN CN201911053647.XA patent/CN112751812A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101202652A (en) * | 2006-12-15 | 2008-06-18 | 北京大学 | Device for classifying and recognizing network application flow quantity and method thereof |
CN101360090A (en) * | 2007-08-01 | 2009-02-04 | 中国科学院声学研究所 | Application protocol recognition method |
CN103024056A (en) * | 2012-12-17 | 2013-04-03 | 山东中创软件商用中间件股份有限公司 | Data processing method, load equalizer and cloud system |
CN105100091A (en) * | 2015-07-13 | 2015-11-25 | 北京奇虎科技有限公司 | Protocol identification method and protocol identification system |
CN106790206A (en) * | 2017-01-05 | 2017-05-31 | 厦门中控生物识别信息技术有限公司 | The protocol analysis method and device of operation system |
CN107181736A (en) * | 2017-04-21 | 2017-09-19 | 湖北微源卓越科技有限公司 | Based on 7 layers of network data packet classification method applied and system |
CN107835178A (en) * | 2017-11-13 | 2018-03-23 | 北京奇艺世纪科技有限公司 | A kind of multi-protocols communication for service method, apparatus and electronic equipment |
CN109889521A (en) * | 2019-02-21 | 2019-06-14 | 北京航星永志科技有限公司 | Memory, communication channel multiplexing implementation method, device and equipment |
CN110324405A (en) * | 2019-05-29 | 2019-10-11 | 北京奇艺世纪科技有限公司 | Message method, device, system and computer readable storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114051060A (en) * | 2022-01-11 | 2022-02-15 | 深圳市明源云科技有限公司 | Multi-protocol shared port proxy forwarding method, device, equipment and storage medium |
CN114500485A (en) * | 2022-01-28 | 2022-05-13 | 北京沃东天骏信息技术有限公司 | Data processing method and device |
CN114640720A (en) * | 2022-03-15 | 2022-06-17 | 北京京东乾石科技有限公司 | Service protocol switching method and device |
CN115208960A (en) * | 2022-06-20 | 2022-10-18 | 平安银行股份有限公司 | Protocol switching method and related equipment |
CN115208960B (en) * | 2022-06-20 | 2023-08-18 | 平安银行股份有限公司 | Protocol switching method and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112751812A (en) | Method and device for self-adapting application protocol | |
CN106850402B (en) | Message transmission method and device | |
CN104429037B (en) | For being connected to the method for communication equipment, equipment and system | |
US10999377B2 (en) | Method, device and computer program product for protocol selection | |
US10419968B2 (en) | Dynamic selection of TCP congestion control for improved performances | |
KR20050111361A (en) | Method and apparatus for providing multi-client support in a sip-enabled terminal | |
CN108696899B (en) | SIP message transmitting and receiving method and transmitting and receiving device | |
CN113382062A (en) | Data transmission method, device and system | |
CN109922144B (en) | Method and apparatus for processing data | |
CN102904959A (en) | Network accelerating method and gateway | |
CN111045833A (en) | Interface calling method and device | |
CN113691589B (en) | Message transmission method, device and system | |
US10367894B2 (en) | Information processing apparatus, method for controlling the same, non-transitory computer-readable storage medium, and information processing system | |
WO2023103367A1 (en) | Data transmission method and related device | |
CN113595927A (en) | Method and device for processing mirror flow in bypass mode | |
US20150067066A1 (en) | Provisioning Communication Services using Proxy Server in a Cloud | |
US8416754B2 (en) | Network location based processing of data communication connection requests | |
US9894117B2 (en) | File transfers for virtual conferences | |
CN113328877B (en) | Method and device for determining port protocol | |
CN108989157B (en) | Method and device for controlling intelligent equipment | |
CN113438256A (en) | Data transmission method, system and proxy server based on double-layer SSL | |
WO2012173899A2 (en) | Remotely retrieving information from consumer devices | |
CN111726400A (en) | Reverse connection method, device and server-side system | |
CN109783409A (en) | Method and apparatus for handling data | |
CN113765983A (en) | Site service deployment method and device |
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 |