CN117336382A - RMI-based cross-network multi-protocol chain transmission method - Google Patents
RMI-based cross-network multi-protocol chain transmission method Download PDFInfo
- Publication number
- CN117336382A CN117336382A CN202311432974.2A CN202311432974A CN117336382A CN 117336382 A CN117336382 A CN 117336382A CN 202311432974 A CN202311432974 A CN 202311432974A CN 117336382 A CN117336382 A CN 117336382A
- Authority
- CN
- China
- Prior art keywords
- channel
- request
- link
- server
- information
- 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
- 230000005540 biological transmission Effects 0.000 title claims abstract description 32
- 238000000034 method Methods 0.000 title claims abstract description 16
- 230000006854 communication Effects 0.000 abstract description 16
- 238000004891 communication Methods 0.000 abstract description 10
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
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/14—Multichannel or multilink protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
- H04L67/145—Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a cross-network multi-protocol chain transmission method based on RMI, which is characterized in that: the client registers the channel, and the link and channel information configured in advance, and the request between the server ends is transmitted according to the preset link information and through the registered channel; in communication transmission, the client forwards the request to the corresponding server according to the configured link information, the server judges whether the channel link is finished according to the link information, if not, the request is forwarded to the next-stage server, otherwise, the local request is executed and the result is returned. The invention links the service communication process, pulls the communication process away from the service, does not need to care about the specific realization principle, and can realize the cross-network communication by configuring the transmission link and the channel information.
Description
Technical Field
The invention relates to the field of network data transmission, in particular to a cross-network multi-protocol chain transmission method based on RMI.
Background
There are some solutions to cross-network service communication in the prior art, for example, patent application publication CN101374154a discloses a method and apparatus for processing a remote procedure call request by allocating one of a plurality of RPC transmission channels established in advance to an RPC request; and encapsulating the RPC request into a protocol message, and transmitting the protocol message to a server through an allocated RPC transmission channel. However, the existing transmission method only supports single channel transmission, has single use scene, cannot meet the service requirements of multiple scenes, and cannot realize the application of multi-link communication transmission.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention aims to provide a cross-network multi-protocol chained transmission method based on RMI, which solves the problem of cross-network transmission by adopting a multi-channel link connection mode and realizes service call transmission service among different networks.
In order to achieve the above purpose, the invention adopts the following technical scheme:
a cross-network multi-protocol chain transmission method based on RMI, the method comprising:
the client registers the channel, configures the link and channel information in advance, and transmits the request between the server ends according to the preset link information and through the registered channel;
the client initiates a request, and forwards the request to the target server through at least one intermediate server according to the configured link information;
each server judges whether the channel link is finished according to the link information, if not, the server continues to forward the request to the next-stage server, otherwise, the server executes the local request and returns the result.
When only one-way access is allowed between the two service ends, the sending service end temporarily stores the information to be transmitted in the queue, waits for the receiving service end to send a request in the form of network heartbeat, and then sequentially takes out data from the queue and returns the data through the corresponding value of the network.
The channels of client registration include an HTTP channel, a Kafka channel, and a cross-link channel of HTTP and Kafka.
After the scheme is adopted, the service communication process is chained, the service is extracted from the communication process, the specific implementation principle is not required to be concerned, and the cross-network communication can be realized by configuring the transmission link and the channel information. And the invention uses the heartbeat mechanism to solve the problem that the network cannot communicate bidirectionally.
Drawings
FIG. 1 is a macroscopic flow chart of the present invention;
FIG. 2 is a flow chart of the program execution of the present invention.
Detailed Description
The invention discloses a cross-network multi-protocol chained transmission method based on RMI (remote method invocation), which realizes communication transmission service among different networks through registered channels and configured link information.
Specifically, as shown in fig. 1 and 2, the client registers the channel and configures link and channel information in advance, and the request between services is transmitted according to predetermined link information and through the registered channel. In communication transmission, a Client (Client) forwards a request to a corresponding Server (Server) according to configured link information, and the Server judges whether a channel link is finished according to the link information, if not, the Client forwards the request to a next-level Server, otherwise, the Client executes the local request and returns a result. When only one-way access is allowed between two services, the sending end temporarily stores the information to be transmitted in the queue, waits for the receiving end to send a request in the form of network heartbeat, and then sequentially takes out data from the queue and returns the data through the corresponding value of the network.
The invention supports two transmission channels of HTTP and Kafka at the same time, in a single transmission flow, allows the mixed integration of the HTTP and Kafka, and needs to change corresponding channel types at corresponding nodes in a channel registration configuration file. Aiming at the possible unidirectional communication problem among different networks, a heartbeat mechanism is introduced in HTTP channel transmission to realize the purpose of chained communication. Meanwhile, a channel information encryption mode is provided for data in a transmission channel so as to ensure information security.
In summary, the invention links the service communication process, pulls the communication process away from the service, and can realize the cross-network communication by configuring the transmission link and the channel information without paying attention to the specific implementation principle. And the invention uses the heartbeat mechanism to solve the problem that the network cannot communicate bidirectionally.
The HTTP channel and the Kafka transmission channel in the application proposal are characterized by allowing multi-channel and multi-type combined link transmission service, namely, the cross link channel transmission of HTTP and Kafka, and allowing the two channel types to be simultaneously contained in a single link.
The channel verification rule defines the encryption mode and key of the channel information, the channel connection configuration information and the validity verification of the channel field, and verifies the validity of the channel link and the configuration of the encryption information before the channel is established. The channel transmission information supports encryption of third and fourth national ciphers, and information such as an encryption key needs to be registered and configured together with a link channel.
The foregoing embodiments of the present invention are not intended to limit the technical scope of the present invention, and therefore, any minor modifications, equivalent variations and modifications made to the above embodiments according to the technical principles of the present invention still fall within the scope of the technical proposal of the present invention.
Claims (3)
1. A cross-network multi-protocol chain transmission method based on RMI is characterized in that: the method comprises the following steps:
the client registers the channel, configures the link and channel information in advance, and transmits the request between the server ends according to the preset link information and through the registered channel;
the client initiates a request, and forwards the request to the target server through at least one intermediate server according to the configured link information;
each server judges whether the channel link is finished according to the link information, if not, the server continues to forward the request to the next-stage server, otherwise, the server executes the local request and returns the result.
2. The RMI-based cross-network multi-protocol chain transmission method of claim 1, wherein: when only one-way access is allowed between the two service ends, the sending service end temporarily stores the information to be transmitted in the queue, waits for the receiving service end to send a request in the form of network heartbeat, and then sequentially takes out data from the queue and returns the data through the corresponding value of the network.
3. The RMI-based cross-network multi-protocol chain transmission method of claim 1, wherein: the channels of client registration include an HTTP channel, a Kafka channel, and a cross-link channel of HTTP and Kafka.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311432974.2A CN117336382A (en) | 2023-10-31 | 2023-10-31 | RMI-based cross-network multi-protocol chain transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311432974.2A CN117336382A (en) | 2023-10-31 | 2023-10-31 | RMI-based cross-network multi-protocol chain transmission method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117336382A true CN117336382A (en) | 2024-01-02 |
Family
ID=89275559
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311432974.2A Pending CN117336382A (en) | 2023-10-31 | 2023-10-31 | RMI-based cross-network multi-protocol chain transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117336382A (en) |
-
2023
- 2023-10-31 CN CN202311432974.2A patent/CN117336382A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111247777B (en) | Data transmitting/receiving apparatus and method of operating data transmitting/receiving apparatus | |
US20080016161A1 (en) | Methods and apparatus for using electronic envelopes to configure parameters | |
US20080016248A1 (en) | Method and apparatus for time synchronization of parameters | |
EP2627056B1 (en) | Method, gateway, proxy and system for implementing mobile internet services | |
US20230300726A1 (en) | Data processing method and apparatus, network element device, storage medium, and program product | |
CN109417548B (en) | Efficient transport of encapsulated media traffic over datagram-based transport layers | |
CN110808948B (en) | Remote procedure calling method, device and system | |
US20040001512A1 (en) | Method and apparatus for peer to peer bandwidth sharing | |
CN104993979A (en) | Network connection monitoring method, terminal equipment and communication system | |
US20230300106A1 (en) | Data processing method, network element device and readable storage medium | |
CN106970843B (en) | Remote calling method and device | |
CN110995829B (en) | Instance calling method and device and computer storage medium | |
CN108093041A (en) | Single channel VDI proxy servers and implementation method | |
KR20210088379A (en) | Method and apparatus for suporting fully-distributed time sensitive networking in a mobile system | |
CN110771117B (en) | Session layer communication using ID-oriented network | |
CN110809263A (en) | Internet of things communication method, Internet of things communication system and Internet of things equipment | |
US20070130312A1 (en) | Web service provision apparatus and method and web service request apparatus and method | |
WO2022151420A1 (en) | Method, apparatus, and system for transmitting data packet | |
WO2021068937A1 (en) | Service binding method and apparatus | |
CN117336382A (en) | RMI-based cross-network multi-protocol chain transmission method | |
CN109936603B (en) | Non-direct connection network communication method based on HTTP | |
CN114363415B (en) | Cross-domain video scheduling method, system, device and local area network server | |
CN116896546B (en) | Visual intercom method, system and storage medium based on SRT communication protocol | |
CN107276787A (en) | A kind of data communications method and system | |
EP3534586B1 (en) | Techniques for interaction between network protocols |
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 |