CN113630348A - Method and system for forwarding multi-route data - Google Patents
Method and system for forwarding multi-route data Download PDFInfo
- Publication number
- CN113630348A CN113630348A CN202111092980.9A CN202111092980A CN113630348A CN 113630348 A CN113630348 A CN 113630348A CN 202111092980 A CN202111092980 A CN 202111092980A CN 113630348 A CN113630348 A CN 113630348A
- Authority
- CN
- China
- Prior art keywords
- forwarding
- data
- target
- client
- route
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/252—Store and forward routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
-
- 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/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a forwarding method of multi-route data, which comprises the following steps: acquiring a forwarding request of a client, editing and forming a target data packet according to the forwarding request and determining a data receiving type of the target client; calling a corresponding route configuration template according to the data receiving type of the target client, and configuring the route configuration template according to the forwarding request so as to establish a forwarding channel with the target client; and sending the target data packet to the target client through the forwarding channel. The invention effectively solves the problem of difficult multi-route data forwarding, and the forwarding method can forward different data types, shorten the forwarding time, accelerate the forwarding speed and improve the forwarding efficiency.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method and a system for forwarding multi-route data.
Background
The internet of things is connected with everything, the internet of things platform continuously receives massive reported data from various internet of things sensing devices, and information contained in the data is frequently required to be forwarded to a manager, a server or other third parties so as to be subjected to further analysis processing and decision management.
Different applications, different scenes and different clients often need to forward the internet of things data to different routes in different formats and different modes, and great challenges are brought to project implementation and information management.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a system for forwarding multi-route data, which solve the problem of difficulty in forwarding multi-route data.
The technical scheme for realizing the purpose is as follows:
the invention provides a method for forwarding multi-route data, which comprises the following steps:
acquiring a forwarding request of a client, editing and forming a target data packet according to the forwarding request and determining a data receiving type of the target client;
calling a corresponding route configuration template according to the data receiving type of the target client, and configuring the route configuration template according to the forwarding request so as to establish a forwarding channel with the target client;
and sending the target data packet to the target client through the forwarding channel.
The invention provides a method for forwarding multi-route data, which is characterized in that a plurality of route configuration modules are established in advance, a corresponding route configuration template is called according to a forwarding request of a client and is configured, so that a forwarding channel is established with a target client, and a target data packet is sent to the target client through the forwarding channel, thereby solving the problem of difficulty in forwarding multi-route data.
The forwarding method of the multi-route data is further improved in that the forwarding request comprises forwarding contents and a data receiving type of a target client;
and editing and forming a target data packet according to the forwarding content.
The forwarding method of the multi-route data is further improved in that the data receiving type of the target client comprises WeChat, short Message, mail, HTTP/REST or Message Queue.
The present invention further improves the forwarding method of multi-route data, wherein before receiving the forwarding request of the client, the method further comprises:
and respectively establishing a routing configuration template corresponding to the data receiving type of the WeChat, the short Message, the mail, the HTTP/REST or the Message Queue.
The forwarding method of the multi-route data of the invention is further improved in that the method further comprises the following steps:
and establishing a content configuration template, and configuring the content configuration template according to the forwarding request to form a target data packet.
The present invention further improves the forwarding method of multi-route data, wherein before receiving the forwarding request of the client, the method further comprises:
and respectively establishing a content configuration template corresponding to the data receiving types of the WeChat, the short Message, the mail, the HTTP/REST or the Message Queue.
The forwarding method of the multi-route data is further improved in that the forwarding request of the client is obtained through an OpenAPI open interface.
The invention also provides a forwarding system of the multi-route data, which comprises:
the acquisition module is used for acquiring the forwarding request of the client and determining the data receiving type of the target client;
the editing module is used for editing and forming a target data packet according to the forwarding request;
the route configuration module is used for calling a corresponding route configuration template according to the data receiving type of the target client and configuring the route configuration template so as to establish a forwarding channel with the target client; and
and the transmission module is used for sending the target data packet to the target client through the forwarding channel.
The multi-route data forwarding system is further improved in that the data receiving type of the target client comprises WeChat, short Message, mail, HTTP/REST or Message Queue;
the forwarding system also comprises a routing template establishing module which is used for respectively establishing routing configuration templates corresponding to the data receiving types of the target clients.
The multi-route data forwarding system of the invention is further improved in that the system also comprises a content template establishing module which respectively establishes a content configuration template according to the data receiving type of the corresponding target client, and an editing module configures the content configuration template according to the forwarding request to form a target data packet.
Drawings
Fig. 1 is a flowchart of a method for forwarding multi-route data according to the present invention.
Detailed Description
The invention is further described with reference to the following figures and specific examples.
Referring to fig. 1, the present invention provides a method and a system for forwarding multi-route data, wherein a plurality of route configuration modules are pre-established, and then a corresponding route configuration template is called according to a forwarding request of a client and configured to establish a forwarding channel with a target client, so as to send a target data packet to the target client through the forwarding channel, thereby solving the problem of difficulty in forwarding multi-route data. The following describes a method and a system for forwarding multi-route data according to the present invention with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for forwarding multi-route data according to the present invention. The following describes the forwarding method of multi-route data and the system thereof according to the present invention with reference to fig. 1.
As shown in fig. 1, the present invention provides a method for forwarding multiple route data, including the following steps:
acquiring a forwarding request of a client, editing and forming a target data packet according to the forwarding request and determining a data receiving type of the target client;
calling a corresponding route configuration template according to the data receiving type of the target client, and configuring the route configuration template according to the forwarding request so as to establish a forwarding channel with the target client;
and sending the target data packet to the target client through the forwarding channel.
Specifically, the forwarding request includes forwarding content and a data receiving type of the target client;
and editing and forming a target data packet according to the forwarding content.
Preferably, the data receiving type of the target client comprises WeChat, SMS, email, HTTP/REST or Message Queue.
Specifically, a forwarding request of the client is obtained through an OpenAPI open interface.
As a preferred embodiment of the present invention, before receiving the forwarding request from the client, the method further includes:
and respectively establishing a routing configuration template corresponding to the data receiving type of the WeChat, the short Message, the mail, the HTTP/REST or the Message Queue.
Further, the method also comprises the following steps:
and establishing a content configuration template, and configuring the content configuration template according to the forwarding request to form a target data packet.
Preferably, before receiving the forwarding request from the client, the method further includes:
and respectively establishing content configuration templates corresponding to the data receiving types of the WeChat, the short Message, the mail, the HTTP/REST or the Message Queue, namely the content configuration templates can be the same or different data receiving types corresponding to the same or different data receiving types.
Preferably, the route configuration template corresponding to the WeChat comprises an enterprise number and an enterprise key;
the route configuration template corresponding to the mobile phone short message comprises a server URL, a submission mode (POST/GET), an extension parameter and a parameter value;
the route configuration template corresponding to the mail comprises a server address, a server port, a sender, a user name, a password, an expansion parameter and a parameter value;
the routing configuration template corresponding to the HTTP/REST comprises a server URL, a submission mode, an expansion parameter and a parameter value;
the route configuration template corresponding to the Message Queue comprises a server address and port, a producer and a Message subject.
The specific embodiment of the invention is as follows:
pre-establishing a plurality of commonly used routing configuration templates of data receiving types, wherein the routing configuration templates can be respectively established corresponding to data receiving types such as WeChat, short Message, email, HTTP/REST or Message Queue and the like;
the method comprises the steps of pre-establishing a content configuration template, wherein one content configuration template can be established, and the content configuration templates can also be respectively established corresponding to different data receiving types;
acquiring a forwarding request of a client through an OpenAPI open interface, determining a data receiving type of a target client, calling a corresponding content configuration template, and configuring the content configuration template according to data content in the forwarding request to form a target data packet;
calling a corresponding route configuration template, and configuring the route configuration module to establish a forwarding channel;
the target data packet is sent to the target client through the forwarding channel, and in the mode, the corresponding route configuration template is established in advance without programming for each receiving type, and the data forwarding can be realized only by modifying the parameters.
The invention also provides a forwarding system of multi-route data, which comprises:
the acquisition module is used for acquiring the forwarding request of the client and determining the data receiving type of the target client;
the editing module is used for editing and forming a target data packet according to the forwarding request;
the route configuration module is used for calling a corresponding route configuration template according to the data receiving type of the target client and configuring the route configuration template so as to establish a forwarding channel with the target client; and
and the transmission module is used for sending the target data packet to the target client through the forwarding channel.
Further, the data receiving type of the target client comprises WeChat, short Message, mail, HTTP/REST or Message Queue;
the forwarding system also comprises a routing template establishing module which is used for respectively establishing routing configuration templates corresponding to the data receiving types of the target clients.
The system further comprises a content template establishing module for respectively establishing content configuration templates corresponding to the data receiving types of the target clients, and an editing module for configuring the content configuration templates according to the forwarding request to form a target data packet.
The operation mode of the practical implementation of the system provided by the invention is as follows:
the route template establishing module establishes a plurality of route configuration templates of common data receiving types in advance, wherein the route configuration templates can be respectively established corresponding to data receiving types such as WeChat, short Message, mail, HTTP/REST or Message Queue and the like;
the content template establishing module establishes content configuration templates in advance, wherein one content configuration template can be established, and the content configuration templates can also be respectively established corresponding to different data receiving types;
the obtaining module obtains a forwarding request of a client through an OpenAPI open interface, determines a data receiving type of a target client, and the editing module calls a corresponding content configuration template and configures the content configuration template according to data content in the forwarding request to form a target data packet;
the route configuration module calls a corresponding route configuration template and configures the route configuration module to establish a forwarding channel;
and the transmission module sends the target data packet to the target client through the forwarding channel.
While the present invention has been described in detail and with reference to the embodiments thereof as illustrated in the accompanying drawings, it will be apparent to one skilled in the art that various changes and modifications can be made therein. Therefore, certain details of the embodiments are not to be interpreted as limiting, and the scope of the invention is to be determined by the appended claims.
Claims (10)
1. A forwarding method of multi-route data is characterized by comprising the following steps:
acquiring a forwarding request of a client, editing and forming a target data packet according to the forwarding request and determining a data receiving type of the target client;
calling a corresponding routing configuration template according to the data receiving type of the target client, and configuring the routing configuration template according to the forwarding request so as to establish a forwarding channel with the target client;
and sending the target data packet to the target client through the forwarding channel.
2. The forwarding method of multi-route data according to claim 1, wherein the forwarding request includes forwarding content and a data reception type of a target client;
and editing and forming the target data packet according to the forwarding content.
3. The method for forwarding multi-route data according to claim 1, wherein the data reception type of the target client comprises WeChat, SMS, email, HTTP/REST or Message Queue.
4. The method for forwarding multiple routing data according to claim 3, wherein before receiving the forwarding request from the client, the method further comprises:
and respectively establishing a routing configuration template corresponding to the data receiving type of the WeChat, the short Message, the mail, the HTTP/REST or the Message Queue.
5. The method for forwarding multiple route data according to claim 3, further comprising:
and establishing a content configuration template, and configuring the content configuration template according to the forwarding request to form the target data packet.
6. The method for forwarding multiple routing data according to claim 5, wherein before receiving the forwarding request from the client, the method further comprises:
and respectively establishing a content configuration template corresponding to the data receiving types of the WeChat, the short Message, the mail, the HTTP/REST or the Message Queue.
7. The method for forwarding multiple routing data according to claim 1, wherein the forwarding request of the client is obtained through an OpenAPI open interface.
8. A forwarding system for multiple routes of data, comprising:
the acquisition module is used for acquiring the forwarding request of the client and determining the data receiving type of the target client;
the editing module is used for editing and forming a target data packet according to the forwarding request;
the route configuration module is used for calling a corresponding route configuration template according to the data receiving type of the target client and configuring the route configuration template so as to establish a forwarding channel with the target client; and
and the transmission module is used for sending the target data packet to the target client through the forwarding channel.
9. The forwarding system of multiple routing data of claim 8, wherein the data reception type of the target client comprises WeChat, SMS, email, HTTP/REST, or Message Queue;
the forwarding system also comprises a route template establishing module which is used for respectively establishing the route configuration templates according to the data receiving types of the corresponding target clients.
10. The system of claim 9, further comprising a content template creating module for creating content configuration templates corresponding to the data receiving types of the target clients, respectively, wherein the editing module configures the content configuration templates according to the forwarding request to form the target data packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111092980.9A CN113630348A (en) | 2021-09-17 | 2021-09-17 | Method and system for forwarding multi-route data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111092980.9A CN113630348A (en) | 2021-09-17 | 2021-09-17 | Method and system for forwarding multi-route data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113630348A true CN113630348A (en) | 2021-11-09 |
Family
ID=78390382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111092980.9A Withdrawn CN113630348A (en) | 2021-09-17 | 2021-09-17 | Method and system for forwarding multi-route data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113630348A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014186963A1 (en) * | 2013-05-23 | 2014-11-27 | 华为技术有限公司 | Service routing system, device and method |
CN105577602A (en) * | 2014-10-08 | 2016-05-11 | 阿里巴巴集团控股有限公司 | Data pushing method and data pushing device based on open application programming interface |
US20200053204A1 (en) * | 2018-08-10 | 2020-02-13 | Somos, Inc. | Toll-free telecommunications data management interface |
CN112398941A (en) * | 2020-11-10 | 2021-02-23 | 北京达佳互联信息技术有限公司 | Data processing method and device, electronic equipment and storage medium |
-
2021
- 2021-09-17 CN CN202111092980.9A patent/CN113630348A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014186963A1 (en) * | 2013-05-23 | 2014-11-27 | 华为技术有限公司 | Service routing system, device and method |
CN105577602A (en) * | 2014-10-08 | 2016-05-11 | 阿里巴巴集团控股有限公司 | Data pushing method and data pushing device based on open application programming interface |
US20200053204A1 (en) * | 2018-08-10 | 2020-02-13 | Somos, Inc. | Toll-free telecommunications data management interface |
CN112398941A (en) * | 2020-11-10 | 2021-02-23 | 北京达佳互联信息技术有限公司 | Data processing method and device, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
刘璐: "wIMS的网络架构和部署策略", 《通讯世界》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9215238B2 (en) | System and method for transmitting and utilizing attachments | |
CN101317474B (en) | Message conversion equipment, system and conversion method | |
US20140207953A1 (en) | Methods and Apparatus for Enabling a Dynamic Network of Interactors According to Personal Trust Levels Between Interactors | |
EP2232390B1 (en) | Method of forwarding messages over a network and system for implementing the method | |
US11336734B1 (en) | System and method for aggregating communication connections | |
US20050038892A1 (en) | Method for wireless communication and apparatus for conducting the same | |
WO2023000940A1 (en) | Data processing method and apparatus, and network element device, storage medium and program product | |
CN107241379B (en) | Content delivery across heterogeneous networks | |
WO2023000936A1 (en) | Data processing method, function device and readable storage medium | |
US10129360B2 (en) | Unified data networking across heterogeneous networks | |
US7945248B2 (en) | Mobile communications device employing multiple data storage locations for electronic messages | |
WO2012022083A1 (en) | Method for transmitting expression file and terminal equipment | |
US10153993B2 (en) | RCS origination forking | |
US7543030B2 (en) | Peer-to-peer communication for instant messaging between different instant message application types | |
CN113630348A (en) | Method and system for forwarding multi-route data | |
US9596577B1 (en) | Relaying mobile communications | |
US8731532B2 (en) | Method for delivering electronic documents using mobile telephony identifiers in a secure manner in conjunction with internet protocols and address systems | |
US10237212B2 (en) | RCS origination forking | |
JP4480698B2 (en) | COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM | |
US20220353217A1 (en) | Online meeting phone and chat connectivity | |
CN111988261B (en) | Information transmission method, receiving method, device and terminal | |
Vetriselvi et al. | E-mail application on named data networking using long lived interest | |
CN116669132A (en) | Data transmission method, network equipment and user equipment | |
WO2015131478A1 (en) | Information processing method and apparatus, im server, convergence gateway, and storage medium | |
CN108076454B (en) | Information processing method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20211109 |
|
WW01 | Invention patent application withdrawn after publication |