CN109889521B - Memory, communication channel multiplexing implementation method, device and equipment - Google Patents

Memory, communication channel multiplexing implementation method, device and equipment Download PDF

Info

Publication number
CN109889521B
CN109889521B CN201910129581.1A CN201910129581A CN109889521B CN 109889521 B CN109889521 B CN 109889521B CN 201910129581 A CN201910129581 A CN 201910129581A CN 109889521 B CN109889521 B CN 109889521B
Authority
CN
China
Prior art keywords
protocol
data
client
communication
processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910129581.1A
Other languages
Chinese (zh)
Other versions
CN109889521A (en
Inventor
丁祖军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hangxing Yongzhi Technology Co ltd
Original Assignee
Beijing Hangxing Yongzhi 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 Beijing Hangxing Yongzhi Technology Co ltd filed Critical Beijing Hangxing Yongzhi Technology Co ltd
Priority to CN201910129581.1A priority Critical patent/CN109889521B/en
Publication of CN109889521A publication Critical patent/CN109889521A/en
Application granted granted Critical
Publication of CN109889521B publication Critical patent/CN109889521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method, a device and equipment for realizing multiplexing of a memory and a communication channel, wherein the method comprises the steps of establishing monitoring for acquiring communication data of a client at a preset port; pre-loading a plurality of registered protocol processors; carrying out protocol identification on the acquired request data of the client, and acquiring an adaptive target protocol processor from a plurality of protocol processors according to an identification result; decoding communication data of the client through a target protocol processor; after the decoded communication data are processed by service logic, the result data are sent to a target protocol processor; encoding the result data by the target protocol processor; and sending the coded result data to the client through a preset port. The invention can realize the requirements of different service communication by installing a set of software products and using one service port, thereby effectively reducing the operation difficulty and the working intensity of workers.

Description

Memory, communication channel multiplexing implementation method, device and equipment
Technical Field
The invention relates to the field of internet communication, in particular to a method, a device and equipment for realizing multiplexing of a memory and a communication channel.
Background
When a project of a multi-service system is deployed, each service generally needs to be provided with a corresponding PORT (PORT) to form a corresponding communication channel between a client and a server; such as WEB services, electronic file access services, streaming media services, search engine services, OCR services, and reporting services. Thus, a corresponding software system needs to be installed for each service to enable it to provide network services.
In the prior art, when a project of a multi-service system is deployed, not only how to avoid conflicts between a port required by a currently installed service and other necessary services already installed, but also mutual calling and cooperation among a plurality of services need to be considered; in addition, consideration is given to how to coordinate configuration with security devices such as network firewalls in the deployment environment.
The inventor finds that at least the following defects exist in the prior art through research:
the deployment of a multi-service system project often needs to be verified and tested in a complex way to enable the services to be mutually invoked and cooperated, so that the technical requirement on technical personnel is high, and the deployment can be realized by simultaneously matching a plurality of personnel who are skilled in various services, and the personnel cost of the project deployment is too high.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
The invention aims to provide a method, a device and equipment for realizing multiplexing of a memory and a communication channel, thereby overcoming the defect of overhigh personnel cost when a project of a multi-service system is deployed.
In order to achieve the above object, according to a first aspect of the present invention, the present invention provides a method for implementing multiplexing of communication channels, which includes, at a server, the steps of:
establishing monitoring for acquiring communication data of a client at a preset port; the communication data comprises request data;
pre-loading a plurality of registered protocol processors, wherein the plurality of protocol processors are respectively used for coding and decoding communication data of services of different protocols;
carrying out protocol identification on the acquired request data of the client, and acquiring an adaptive target protocol processor from a plurality of protocol processors according to an identification result;
decoding, by the target protocol processor, communication data of the client;
after the service logic processing is carried out on the decoded communication data, the result data is sent to the target protocol processor;
encoding, by the target protocol processor, the result data;
and sending the coded result data to the client through the preset port.
Further, in the foregoing technical solution, the performing protocol identification on the obtained request data of the client and obtaining an adaptive target protocol processor from the plurality of protocol processors according to an identification result includes:
and scheduling the protocol processors in sequence from the plurality of protocol processors to respectively verify whether the message headers in the request data meet the protocol standard of the current protocol processor until a target protocol processor adaptive to the request data is obtained.
Further, in the above technical solution, the decoding the communication data of the client includes:
the network byte stream is converted into a business object.
Further, in the above technical solution, the encoding the result data includes:
the business object is converted into a network byte stream.
According to a second aspect of the present invention, the present invention further provides a device for implementing multiplexing of communication channels, which includes, at a server side:
the monitoring unit is used for establishing monitoring for acquiring communication data of the client at a preset port; the communication data comprises request data;
the device comprises a preloading unit, a communication unit and a control unit, wherein the preloading unit is used for preloading a plurality of registered protocol processors which are respectively used for coding and decoding communication data of services of different protocols;
the protocol routing unit is used for carrying out protocol identification on the acquired request data of the client and acquiring an adaptive target protocol processor from the plurality of protocol processors according to an identification result;
the decoding unit is used for controlling the target protocol processor to decode the communication data of the client;
the service processing unit is used for carrying out service logic processing on the decoded communication data and then sending result data to the target protocol processor;
the coding unit is used for controlling the target protocol processor to code the result data;
and the data sending unit is used for sending the coded result data to the client through the preset port.
Further, in the foregoing technical solution, the protocol routing unit includes a determining module, and the determining module is configured to sequentially schedule the protocol processors from the plurality of protocol processors to respectively verify whether the message header in the request data meets the protocol standard of the current protocol processor, until a target protocol processor adapted to the request data is obtained.
Further, in the above technical solution, the decoding the communication data of the client includes:
the network byte stream is converted into a business object.
Further, in the above technical solution, the encoding the result data includes:
the business object is converted into a network byte stream.
To solve the above technical problems, embodiments of the present invention also provide a memory, which includes a non-transitory computer-readable storage medium storing computer-executable instructions for performing the method according to the above aspects and achieving the same technical effects.
To solve the above technical problem, an embodiment of the present invention further provides a communication channel multiplexing implementation apparatus, including a computer program stored on a memory, where the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is caused to execute the method in the above aspects and implement the same technical effects.
Advantageous effects
The memory, the communication channel multiplexing implementation method, the device and the equipment provided by the embodiment of the invention have the advantages that a preset port is arranged to carry out data interaction on multiple services between a server and a client through a unified communication channel; specifically, after the server side acquires the communication data of the client side through a preset port, a protocol processor adapted to the communication data is determined according to the analysis of the communication data for decoding; therefore, after the communication data is processed by the service logic, the result data can be returned to the corresponding client through the preset port by the encoding of the protocol processor.
According to the embodiment of the invention, when a project of a multi-service system is deployed, a plurality of sets of software products are not required to be installed, and the requirement of communication of different services can be realized by using one service port through installing one set of software product, so that complex check on whether the port has conflict or not is not required during deployment, complicated calling relations among different services are not required to be configured manually, and in addition, the configuration of safety equipment such as a firewall and the like can be completed in one step, so that the operation difficulty and the working strength of workers can be effectively reduced.
Furthermore, when the communication channel multiplexing implementation method in the embodiment of the present invention deploys a multi-service system project, multiple services are in one software product, so that multiple services can be set to a uniform standard, and the usage amount of middleware or services of a third party can be effectively reduced, thereby reducing the technical dependence on a third party service provider, and further reducing the control difficulty and control risk of the deployed project.
Furthermore, the communication channel multiplexing implementation method in the embodiment of the invention is used for deploying multi-service system projects, only one software product needs to be installed, one of the services can be deployed on different nodes respectively, and in addition, a plurality of services can be deployed on one node; therefore, the embodiment of the invention can be used for deploying the multi-service system project, can flexibly adjust the deployment mode according to the actual situation of the client, can be suitable for small clients with lower hardware configuration, and can also meet the actual requirements of large clients in a distributed deployment mode.
Other features and aspects of the present invention will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic step diagram of a communication channel multiplexing implementation method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a communication channel multiplexing implementation apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of a device for implementing multiplexing of communication channels according to an embodiment of the present invention.
Detailed Description
The following detailed description of the present invention is provided in conjunction with the accompanying drawings, but it should be understood that the scope of the present invention is not limited to the specific embodiments.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present invention. It will be understood by those skilled in the art that the present invention may be practiced without some of these specific details. In some instances, methods, means, elements well known to those skilled in the art have not been described in detail so as not to obscure the present invention.
Example 1
Fig. 1 is a flowchart illustrating a method for implementing multiplexing of communication channels according to an embodiment of the present invention, where the method may be executed by an electronic device, such as a network device, a terminal device, or a server device. In other words, the method may be performed by software or hardware installed in a network device, a terminal device, or a server device. The server includes but is not limited to: a single server, a cluster of servers, etc. Referring to fig. 1, the method includes the following steps.
S11, establishing monitoring for acquiring communication data of the client at a preset port; the communication data includes request data;
the communication channel multiplexing implementation method is based on a TCP/IP protocol, and a computer program for implementing the method is installed and arranged at a server end; the communication channel multiplexing means that the server establishes a communication channel with the client by using one port (server port), and the communication channel can provide data interaction for a plurality of services.
In the embodiment of the invention, a preset port is determined as a common port for establishing each service communication channel; then, monitoring is established at the preset port to acquire communication data of each client; when a client initially requests to establish a data connection with a server, the communication data of the client generally includes the requested data.
S12, pre-loading a plurality of registered protocol processors, wherein the plurality of protocol processors are respectively used for coding and decoding communication data of services of different protocols;
in the embodiment of the present invention, it is necessary to implement data communication using one port to implement multiple services, where the multiple services respectively use different protocols (e.g., HTTP protocol, HTTPs protocol, and some customized protocols); for this purpose, a corresponding protocol processor is set for each service, and communication data of different protocol services are coded and decoded respectively.
It should be noted that the protocol processor and the protocol service in the embodiment of the present invention need to be implemented according to a preset design standard.
S13, carrying out protocol identification on the acquired request data of the client, and acquiring an adaptive target protocol processor from the plurality of protocol processors according to the identification result;
in the embodiment of the invention, after receiving the request data of the client according to the monitoring of the preset port, the protocol identification is firstly carried out on the request data to determine the protocol processor which should be used by the request data.
In practical applications, the way of determining the protocol processor that should be used for requesting data may be: and scheduling the protocol processors from the plurality of protocol processors in sequence to respectively verify whether the message headers in the request data meet the protocol standard of the current protocol processor until a target protocol processor adaptive to the request data is obtained.
Specifically, a client sends request data for realizing a certain set service to a server, and the server can monitor and acquire the request data through a preset port; when the server side just acquires the request data of the client side, the server side does not know which protocol is used by the request data; at this time, a protocol router adapted to the request data needs to be determined by using a protocol processor to analyze the request header; in this way, by means of sequentially and respectively verifying whether the message header in the request data meets the protocol standard of the current protocol processor, the target protocol processor can be determined from the plurality of protocol processors, so that the connection of the set service between the server and the client can be established.
If all the protocol processors are traversed and the target protocol processor adapted to the request data cannot be obtained, the connection with the corresponding client can be disconnected.
S14, decoding the communication data of the client through a target protocol processor;
after a target protocol processor is determined according to request data of a client, communication data which are sent by the client and used for realizing set service are delivered to the corresponding target protocol processor for decoding, and therefore the network byte stream is converted into a service object.
S15, after the service logic processing is carried out on the decoded communication data, the result data is sent to the target protocol processor;
the protocol service can process the specific business logic of the set service and generate result data; then, in order to use the communication channel established by the common preset port, the corresponding processing of the target protocol processor is also required.
S16, encoding the result data through the target protocol processor;
the result data for implementing the set service needs to be encoded by the corresponding target protocol processor, i.e. the business object is converted into a network byte stream.
And S17, sending the coded result data to the client through a preset port.
And finally, returning the result data in the form of the network byte stream to the corresponding client.
Through the above steps S11 to S17, the process of data interaction between the server and the client when implementing the preset service is completed.
The working principle of the embodiment of the invention is illustrated below:
in a multi-service system deployed at a server, services that can be realized include HTTP service, HTTPs service, HFES service (custom file service), HMTP service (custom media service), and the like; in the embodiment of the present invention, the HTTP service uses 80 ports by default, and the HTTPs service uses 443 ports by default, and in the embodiment of the present invention, the two services use 4567 ports on the server side (that is, the preset port is set as 4567 port). In addition, the 4567 port is used for the HFES service and the HMTP service of the custom protocol of the enterprise.
Besides the processing protocol service for performing business logic, a plurality of protocol processors (such as an HTTP protocol processor, an HTTPs protocol processor, an HFES protocol processor, an HMTP protocol processor, and the like) corresponding to the protocols of the various services are provided at the server side, and the protocol processors to which the communication data belong can be identified by means of verifying the communication data respectively; in addition, each protocol processor can also carry out coding and decoding on communication data corresponding to the protocol processor.
After the client sends request data including an HTTP service request, the server acquires the request data through a 4567 port; by analyzing a Request Header (Request Header) of the Request data, a target protocol processor which can acquire the Request data is an HTTP protocol processor;
after that, the HTTP service communication data (network byte stream) sent by the client is delivered to an HTTP protocol processor to be decoded into business object data;
decoding the communication data into business object data, processing corresponding business logic by a protocol service, and generating result data (business object data form); then, the HTTP protocol processor decodes the result data in the form of the service object data into a network byte stream; the resulting data in the form of a network byte stream is then returned to the client through the 4567 port.
In summary, in the embodiment of the present invention, a preset port is set to perform data interaction between multiple services between a server and a client through a unified communication channel; specifically, after the server side acquires the communication data of the client side through a preset port, a protocol processor adapted to the communication data is determined according to the analysis of the communication data for decoding; therefore, after the communication data is processed by the service logic, the result data can be returned to the corresponding client through the coding of the protocol processor.
According to the embodiment of the invention, when a project of a multi-service system is deployed, a plurality of sets of software products are not required to be installed, and the requirement of communication of different services can be realized by using one service port through installing one set of software product, so that complex check on whether the port has conflict or not is not required during deployment, complicated calling relations among different services are not required to be configured manually, and in addition, the configuration of safety equipment such as a firewall and the like can be completed in one step, so that the operation difficulty and the working strength of workers can be effectively reduced.
Furthermore, when the communication channel multiplexing implementation method in the embodiment of the present invention deploys a multi-service system project, multiple services are in one software product, so that multiple services can be set to a uniform standard, and the usage amount of middleware or services of a third party can be effectively reduced, thereby reducing the technical dependence on a third party service provider, and further reducing the control difficulty and control risk of the deployed project.
Furthermore, the communication channel multiplexing implementation method in the embodiment of the invention is used for deploying multi-service system projects, only one software product needs to be installed, one of the services can be deployed on different nodes respectively, and in addition, a plurality of services can be deployed on one node; therefore, the embodiment of the invention can be used for deploying the multi-service system project, can flexibly adjust the deployment mode according to the actual situation of the client, can be suitable for small clients with lower hardware configuration, and can also meet the actual requirements of large clients in a distributed deployment mode.
Example 2
Fig. 2 is a schematic structural diagram of a communication channel multiplexing implementation apparatus according to an embodiment of the present invention, where the verification code implementation apparatus is an apparatus corresponding to the communication channel multiplexing implementation method in embodiment 1, that is, the communication channel multiplexing implementation method in embodiment 1 is implemented by using a virtual apparatus, and each virtual module constituting the communication channel multiplexing implementation apparatus may be executed by an electronic device, such as a network device, a terminal device, or a server.
Specifically, the communication channel multiplexing implementation apparatus in the embodiment of the present invention includes:
the monitoring unit 01 is used for establishing monitoring for acquiring communication data of the client at a preset port; the communication data comprises request data;
the preloading unit 02 is configured to preload a plurality of registered protocol processors, and the plurality of protocol processors are respectively configured to encode and decode communication data of services of different protocols;
the protocol routing unit 03 is configured to perform protocol identification on the acquired request data of the client, and acquire an adapted target protocol processor from the plurality of protocol processors according to an identification result;
the decoding unit 04 is configured to control the target protocol processor to decode communication data of the client;
the service processing unit 05 is configured to perform service logic processing on the decoded communication data, and then send result data to the target protocol processor;
the encoding unit 06 is configured to control the target protocol processor to encode the result data;
the data sending unit 07 is configured to send the encoded result data to the client through the preset port.
Preferably, in this embodiment of the present invention, the protocol routing unit 03 includes a determining module (not shown in the figure), and the determining module is configured to sequentially schedule the protocol processors from the plurality of protocol processors to respectively verify whether the message headers in the request data satisfy the protocol standards of the current protocol processor, until a target protocol processor adapted to the request data is obtained.
Preferably, in the embodiment of the present invention, the encoding unit 06 is configured to convert the network byte stream into a service object, and convert the service object into the network byte stream.
Since the operation principle and the advantageous effects of the communication channel multiplexing implementation apparatus in the embodiment of the present invention have been described and illustrated in the communication channel multiplexing implementation method in embodiment 1, they may be referred to each other.
Example 3
Embodiments of the present invention provide a memory, which may be a non-transitory (non-volatile) computer storage medium, where computer-executable instructions are stored, and the computer-executable instructions may perform each step of the communication channel multiplexing implementation method in any of the above method embodiments, and implement the same technical effect.
Example 4
The embodiment of the present invention provides a communication channel multiplexing implementation device, wherein a memory included in the communication channel multiplexing implementation device includes a corresponding computer program product, and when a program instruction included in the computer program product is executed by a computer, the computer can execute the communication channel multiplexing implementation method in the above aspects, and implement the same technical effect.
Fig. 3 is a schematic diagram of a hardware structure of a communication channel multiplexing implementation device as an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the device includes one or more processors 610, a memory 620, and a communication module 630. Take a processor 610 as an example. The apparatus may further include: an input-output device 640.
The processor 610, the memory 620, the communication module 630 and the input/output device 640 may be connected by a bus or other means, and fig. 3 illustrates the connection by a bus as an example.
The memory 620, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules. The processor 610 executes various functional applications and data processing of the electronic device, i.e., the processing method of the above-described method embodiment, by executing the non-transitory software programs, instructions and modules stored in the memory 620.
The memory 620 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data and the like. Further, the memory 620 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 620 optionally includes memory located remotely from the processor 610, which may be connected to the processing device over a network via the communication module 630. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input/output device 640 may receive input digital or character information and generate signal input, and the input/output device 640 may further include a display device such as a display screen.
The one or more modules are stored in the memory 620 and, when executed by the one or more processors 610, perform:
establishing monitoring for acquiring communication data of a client at a preset port; the communication data comprises request data;
pre-loading a plurality of registered protocol processors, wherein the plurality of protocol processors are respectively used for coding and decoding communication data of services of different protocols;
carrying out protocol identification on the acquired request data of the client, and acquiring an adaptive target protocol processor from a plurality of protocol processors according to an identification result;
decoding, by the target protocol processor, communication data of the client;
after the service logic processing is carried out on the decoded communication data, the result data is sent to the target protocol processor;
encoding, by the target protocol processor, the result data;
and sending the coded result data to the client through the preset port.
The product can execute the method provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
The electronic device of the embodiments of the present invention exists in various forms including, but not limited to, the following devices.
(1) Mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) The server is similar to a general computer architecture, but has higher requirements on processing capability, stability, reliability, safety, expandability, manageability and the like because of the need of providing highly reliable services.
(5) And other electronic devices with data interaction functions.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions substantially or contributing to the related art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for realizing communication channel multiplexing is characterized in that a service end comprises the following steps:
establishing monitoring for acquiring communication data of a client at a preset port; the communication data comprises request data;
pre-loading a plurality of registered protocol processors, wherein the plurality of protocol processors are respectively used for coding and decoding communication data of services of different protocols;
carrying out protocol identification on the acquired request data of the client, and acquiring an adaptive target protocol processor from a plurality of protocol processors according to an identification result;
decoding, by the target protocol processor, communication data of the client;
after the service logic processing is carried out on the decoded communication data, the result data is sent to the target protocol processor;
encoding, by the target protocol processor, the result data;
sending the coded result data to the client through the preset port;
when the multi-service system project is deployed, a plurality of services are in one software product, and the plurality of services are set to be a uniform standard.
2. The method for implementing communication channel multiplexing according to claim 1, wherein the performing protocol identification on the obtained request data of the client and obtaining an adapted target protocol processor from the plurality of protocol processors according to the identification result includes:
and scheduling the protocol processors in sequence from the plurality of protocol processors to respectively verify whether the message headers in the request data meet the protocol standard of the current protocol processor until a target protocol processor adaptive to the request data is obtained.
3. The method of claim 1, wherein the decoding the communication data of the client comprises:
the network byte stream is converted into a business object.
4. The method of claim 1, wherein said encoding the result data comprises:
the business object is converted into a network byte stream.
5. A communication channel multiplexing implementation apparatus, characterized in that, at a service end, the apparatus comprises:
the monitoring unit is used for establishing monitoring for acquiring communication data of the client at a preset port; the communication data comprises request data;
the device comprises a preloading unit, a communication unit and a control unit, wherein the preloading unit is used for preloading a plurality of registered protocol processors which are respectively used for coding and decoding communication data of services of different protocols;
the protocol routing unit is used for carrying out protocol identification on the acquired request data of the client and acquiring an adaptive target protocol processor from the plurality of protocol processors according to an identification result;
the decoding unit is used for controlling the target protocol processor to decode the communication data of the client;
the service processing unit is used for carrying out service logic processing on the decoded communication data and then sending result data to the target protocol processor;
the coding unit is used for controlling the target protocol processor to code the result data;
the data sending unit is used for sending the coded result data to the client through the preset port;
when the multi-service system project is deployed, a plurality of services are in one software product, and the plurality of services are set to be a uniform standard.
6. The apparatus according to claim 5, wherein the performing protocol identification on the obtained request data of the client and obtaining an adapted target protocol processor from the plurality of protocol processors according to the identification result includes:
and scheduling the protocol processors in sequence from the plurality of protocol processors to respectively verify whether the message headers in the request data meet the protocol standard of the current protocol processor until a target protocol processor adaptive to the request data is obtained.
7. The apparatus of claim 5, wherein the decoding the communication data of the client comprises:
the network byte stream is converted into a business object.
8. The apparatus of claim 5, wherein said encoding the result data comprises:
the business object is converted into a network byte stream.
9. A memory comprising a set of instructions adapted to be executed by a processor to perform the steps of the method of any one of claims 1 to 4.
10. A communication channel multiplexing implementation device comprising a bus, a communication module, a processor, and a memory as claimed in claim 9;
the bus is used for connecting the memory, the communication module and the processor;
the communication module is used for communicating with a client;
the processor is configured to execute a set of instructions in the memory.
CN201910129581.1A 2019-02-21 2019-02-21 Memory, communication channel multiplexing implementation method, device and equipment Active CN109889521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910129581.1A CN109889521B (en) 2019-02-21 2019-02-21 Memory, communication channel multiplexing implementation method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910129581.1A CN109889521B (en) 2019-02-21 2019-02-21 Memory, communication channel multiplexing implementation method, device and equipment

Publications (2)

Publication Number Publication Date
CN109889521A CN109889521A (en) 2019-06-14
CN109889521B true CN109889521B (en) 2021-11-19

Family

ID=66928764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910129581.1A Active CN109889521B (en) 2019-02-21 2019-02-21 Memory, communication channel multiplexing implementation method, device and equipment

Country Status (1)

Country Link
CN (1) CN109889521B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311567B (en) * 2019-07-26 2022-04-05 华为技术有限公司 Communication method and device
CN112751812A (en) * 2019-10-31 2021-05-04 北京京东振世信息技术有限公司 Method and device for self-adapting application protocol
CN111738543A (en) * 2020-05-13 2020-10-02 浙江口碑网络技术有限公司 Object making system and information processing method for object making
CN113783957A (en) * 2021-09-10 2021-12-10 西安热工研究院有限公司 Network port multiplexing method, system, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852296A (en) * 2005-09-30 2006-10-25 华为技术有限公司 Multiprotocol support system and method
CN101674321A (en) * 2008-09-12 2010-03-17 华为技术有限公司 Method, device and system for processing message
CN101944033A (en) * 2009-07-09 2011-01-12 中兴通讯股份有限公司 Device and method for dynamically supporting multiple protocols in embedded system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2630938C (en) * 2007-09-19 2016-10-04 Kevin Gerard Boyce Method and system for dynamic protocol decoding and analysis
CN103607373A (en) * 2013-10-18 2014-02-26 尚思卓越(北京)科技有限公司 Method enabling single service port to realize multiple network protocol agents
CN106060012A (en) * 2016-05-17 2016-10-26 北京神州绿盟信息安全科技股份有限公司 Multiplexing method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852296A (en) * 2005-09-30 2006-10-25 华为技术有限公司 Multiprotocol support system and method
CN101674321A (en) * 2008-09-12 2010-03-17 华为技术有限公司 Method, device and system for processing message
CN101944033A (en) * 2009-07-09 2011-01-12 中兴通讯股份有限公司 Device and method for dynamically supporting multiple protocols in embedded system

Also Published As

Publication number Publication date
CN109889521A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109889521B (en) Memory, communication channel multiplexing implementation method, device and equipment
US9467650B2 (en) Method and apparatus for transmitting media stream in video conference
CN106162062B (en) Obtain the method and system of monitor video
US20170163478A1 (en) Method,electronic device and system for updating client configuration in key-value pair database
US9015822B2 (en) Automatic invocation of DTN bundle protocol
KR101533489B1 (en) Method and system for implementing integrated voice over internet protocol in a cloud-based network
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
CN111432158B (en) Load balancing method and device for media nodes, storage medium and electronic device
CN110177128B (en) Data transmission system and method for establishing VPN connection, terminal and VPN proxy thereof
CN111464627A (en) Data processing method, edge server, center server and processing system
CN104010001A (en) Method and system for carrying out connection communication on same networking requests in mobile terminal
US20150067066A1 (en) Provisioning Communication Services using Proxy Server in a Cloud
CN114938713A (en) WLAN perception measurement method and device, electronic equipment and storage medium
US20140207888A1 (en) Information processing method and device in instant messaging
CN105323537A (en) Video conferencing with mobile platform
CN112202739B (en) Flow monitoring method and device
CN110572476B (en) Remote control method, device and equipment
CN105306577A (en) Data sharing system and method between handheld devices based on APP
CN105656994B (en) A kind of business acceleration method and device
CN110830419B (en) Access control method and device for internet protocol camera
CN109286665B (en) Real-time mobile game long link processing method and device
CN105939317B (en) The analysis method and device of SSL handshake message
WO2021082945A1 (en) Remote management method and system, terminal device and server
CN111212253B (en) Monitoring processing method and device in video conference, electronic equipment and storage medium
CN109040040B (en) Information sending method and device, storage medium and electronic 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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Memory and communication channel multiplexing implementation method, device and equipment

Effective date of registration: 20220713

Granted publication date: 20211119

Pledgee: Beijing Chenguang prosperity financing Company limited by guarantee

Pledgor: Beijing Hangxing Yongzhi Technology Co.,Ltd.

Registration number: Y2022980010343

PE01 Entry into force of the registration of the contract for pledge of patent right