A port subscription type data forwarding method for on-demand processing of data transceiving

CN121486471BActive Publication Date: 2026-08-28JIANGSU JARI GROUP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511704978.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-20
Publication Date
2026-08-28
Estimated Expiration
2045-11-20

AI Technical Summary

Technical Problem

[0002]网络端口数据转发技术广泛应用于远程访问、多系统协同等场景,但现有方案难以满足灵活适配需求

Benefits of technology

[0012] Compared with existing technologies, this invention provides a more flexible and convenient method for port data forwarding and data processing by providing port, processing program and subscription relationship configuration functions, realizing data forwarding between many-to-many, one-to-many, many-to-one and different communication methods, and at the same time, it can flexibly process data when receiving and subscribing to data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121486471B_ABST
    Figure CN121486471B_ABST
Patent Text Reader

Abstract

The application discloses a port subscription type data forwarding method for data transceiving on-demand processing, which comprises the following steps: firstly, adding ports on demand, setting the communication mode and data processing program of the ports, and then configuring the data subscription relationship between the ports; when the ports receive data through the data transceiving module, the data is submitted to the data processing module for processing after being de-duplicated according to the line identifier; if the data needs to be notified to other ports after being processed, the data is submitted to the data subscription module of the corresponding port through the data distribution module; when the ports subscribe to the data through the data subscription module, the data is submitted to the data processing module for processing; if the data needs to be forwarded after being processed, the data is sent through the data sending module. The application can provide a more flexible and convenient method for port data forwarding and data processing, realize the data forwarding between ports in a many-to-many, one-to-many, many-to-one and different communication mode, and can flexibly process the data when the data is received and subscribed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of UDP data forwarding technology, and in particular to a port subscription-based data forwarding method for on-demand data transmission and reception. Background Technology

[0002] Network port data forwarding technology is widely used in scenarios such as remote access and multi-system collaboration, but existing solutions struggle to meet the demands for flexible adaptation. Mainstream international tools like ngrok and frp only support basic port mapping and cannot achieve automatic data flow through subscription relationships; some solutions, while introducing simple data filtering, lack dynamic scalability and cannot load processing logic on demand. Domestic tools like nat123 simplify the configuration process, but port linkage requires custom development and lacks data processing interfaces; integration solutions in government and finance rely on foreign frameworks, resulting in poor dynamic adaptability, requiring repeated rule development for new ports, and low efficiency. Both domestic and international technologies generally suffer from inflexible port subscription configuration and insufficient data processing scalability.

[0003] Therefore, it is becoming increasingly important to study a port subscription-based data forwarding method that enables on-demand data transmission and reception. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to address the shortcomings of the prior art by providing a port subscription-based data forwarding method for on-demand data transmission and reception. By providing port, processing program and subscription relationship configuration functions, it provides a more flexible and convenient method for port data forwarding and data processing, realizing data forwarding between many-to-many, one-to-many, many-to-one and different communication methods, and at the same time, it can flexibly process the data when receiving and subscribing to data.

[0005] The technical problem to be solved by this invention is achieved through the following technical solution. This invention is a port subscription-based data forwarding method for on-demand data transmission and reception. First, ports are added as needed, and the communication mode and data processing program of the ports are set. Then, the data subscription relationship between ports is configured as needed. When a port receives data through the data transceiver module, it is deduplicated according to the line identifier and first submitted to the data processing module for processing. If, after processing, it needs to notify other ports, the data is submitted to the data subscription module of the corresponding port through the data distribution module. When a port subscribes to data through the data subscription module, it is first submitted to the data processing module for processing. If, after processing, it needs to be forwarded, the data is sent through the data sending module.

[0006] The technical problem to be solved by this invention can also be further achieved through the following technical solution: For the port subscription-based data forwarding method for on-demand data transmission and reception described above, the specific steps of the method are as follows: (1) Add a new port and set the port information such as the communication method and data processing program; (2) Configure data subscription relationships between ports as needed; (3) Receive data through the data transceiver module. After receiving the data, determine whether other ports with the same line identifier have received the data. If they have received the data, end directly; otherwise, proceed to step (4). (4) If the port is configured with a data processing program, the received data is processed by the data processing module and then proceeds to step (5); otherwise, proceed directly to step (6). (5) If the data needs to be distributed, proceed to step (6); otherwise, end directly. (6) Distribute data to the corresponding port's data subscription module through the data distribution module; (7) After the port subscribes to the data through the data subscription module, if the port is configured with a data processing program, proceed to step (8); otherwise, proceed to step (9). (8) Process the subscribed data through the data processing module. If the data needs to be forwarded, proceed to step (9); otherwise, end directly. (9) Forward data through the data sending module.

[0007] The technical problem to be solved by the present invention can also be further realized by the following technical solutions. For the port subscription data forwarding method for on-demand data transmission and reception described above, in step (1), the port information includes port identifier, port name, line identifier, communication method, local network address, local network port, remote network address, remote network port, TTL, and data processing program dynamic library file path.

[0008] The technical problem to be solved by the present invention can also be further achieved through the following technical solution: for the port subscription data forwarding method for on-demand data transmission and reception described above, the communication method supports UDP unicast, broadcast and multicast.

[0009] The technical problem to be solved by the present invention can also be further achieved through the following technical solution: For the port subscription data forwarding method for on-demand data transmission and reception described above, the line identifier is used to aggregate multiple ports into one port. When ports with the same line identifier receive the same data, processing is only performed on the first receipt.

[0010] The technical problem to be solved by the present invention can also be further realized through the following technical solutions. For the port subscription data forwarding method for on-demand data transmission and reception described above, in step (1), the data processing program refers to the data processing dynamic library, which supports dynamic loading. Each port can be configured with a data processing dynamic library, which provides processing functions for data received from the data receiving module and subscribed to from the data subscription module, and supports discarding data on demand.

[0011] The technical problem to be solved by the present invention can also be further realized by the following technical solutions. For the port subscription data forwarding method for on-demand data transmission and reception described above, in steps (4) and (8), when the data processing module processes the data, it can modify the original data and choose whether to transfer the data to the subsequent steps.

[0012] Compared with existing technologies, this invention provides a more flexible and convenient method for port data forwarding and data processing by providing port, processing program and subscription relationship configuration functions, realizing data forwarding between many-to-many, one-to-many, many-to-one and different communication methods, and at the same time, it can flexibly process data when receiving and subscribing to data. Attached Figure Description

[0013] Figure 1 This is a functional diagram of one method of the present invention; Figure 2 This is a schematic diagram of the data receiving process at the port of the present invention. Figure 3 This is a schematic diagram of the port subscription data processing flow of the present invention. Detailed Implementation

[0014] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0015] Reference Figure 1A port subscription-based data forwarding method for on-demand data transmission and reception mainly involves port data reception, data processing, data distribution, data subscription, and data transmission. First, ports are added as needed, and their communication methods and data processing programs are set. Then, data subscription relationships between ports are configured as needed. When a port receives data through the data transceiver module, it deduplicates data based on the line identifier and submits it to the data processing module for processing. If, after processing, it needs to notify other ports, the data is submitted to the corresponding port's data subscription module through the data distribution module. When a port subscribes to data through the data subscription module, it first submits it to the data processing module for processing. If, after processing, it needs to forward the data, the data is sent through the data transmission module.

[0016] The method includes the following steps: Step 1: Add a new port and set the port information such as communication method and data processing program.

[0017] Port information includes port identifier, port name, line identifier, communication method, local network address, local network port, remote network address, remote network port, TTL, and path to the dynamic library file of the data processing program. The communication method supports UDP unicast, broadcast, and multicast.

[0018] Line identifiers are used to aggregate multiple ports into one port. When ports with the same line identifier receive the same data, processing is only performed on the first receipt.

[0019] The data processing program refers to the data processing dynamic library, which supports dynamic loading. Each port can be configured with one data processing dynamic library, which provides processing functions for data received from the data receiving module and subscribed to from the data subscription module, and supports discarding data as needed.

[0020] Step 2: Configure the data subscription relationship between ports as needed.

[0021] Step 3: Receive data through the data transceiver module. After receiving the data, check whether other ports with the same line identifier have received the data. If they have, the process ends directly; otherwise, proceed to Step 4.

[0022] Step 4: If the port is configured with a data processing program, the received data will be processed by the data processing module before proceeding to Step 5; otherwise, proceed directly to Step 6.

[0023] When processing data, the data processing module can modify the original data and choose whether to transfer the data to subsequent steps.

[0024] Step 5: If the data needs to be distributed, proceed to Step 6; otherwise, end the process directly.

[0025] Step 6: Distribute the data to the corresponding port's data subscription module through the data distribution module.

[0026] Step 7: After the port subscribes to data through the data subscription module, if the port is configured with a data processing program, proceed to step 8; otherwise, proceed to step 9.

[0027] Step 8: Process the subscribed data through the data processing module. If the data needs to be forwarded, proceed to step 9; otherwise, end the process directly.

[0028] When processing data, the data processing module can modify the original data and choose whether to transfer the data to subsequent steps.

[0029] Step 9: Forward data through the data sending module.

[0030] Reference Figure 2 A port subscription-based data forwarding method for on-demand data transmission and reception, wherein the data reception process at the port includes the following steps: Step 1: Receive data through the port data receiving module. After receiving the data, proceed to Step 2. Step 2: Determine if other ports with the same line identifier have already received the same data. If so, end directly; otherwise, proceed to Step 3. Step 3: Determine if a data processing program is configured. If yes, proceed to Step 4; otherwise, proceed to Step 5. Step 4: Process the data through the data processing module. If the data is ignored, the process ends directly; otherwise, proceed to Step 5. Step 5: Push data to other ports according to the subscription relationship through the data distribution module.

[0031] Reference Figure 3 A port subscription-based data forwarding method for on-demand data transmission and reception, wherein the processing flow of port subscription data includes the following steps: Step 1: Subscribe to data through the data subscription module. After subscribing to the data, proceed to Step 2. Step 2: Determine if a handler is configured. If yes, proceed to Step 3; otherwise, proceed to Step 4. Step 3: Process the data through the data processing module. If the data is ignored, the process ends directly; otherwise, proceed to Step 4. Step 4: Send data through the data sending module.

[0032] Examples of practical application scenarios I. Industrial Internet of Things Monitoring System In the industrial IoT monitoring system of a large factory, there are many different types of sensor devices, such as temperature sensors, pressure sensors, and speed sensors. These devices are distributed in various areas of the factory, and each sensor device can be regarded as a data transmission port.

[0033] 1. Port settings and subscription configuration First, based on the actual layout of the factory and monitoring needs, add multiple ports as needed. For example, set up a port for the main production equipment area of ​​each workshop to receive data from the sensor devices in that area. Set the communication method of the port to UDP unicast, because UDP unicast can accurately send data to the specified port, which is suitable for this point-to-point data transmission scenario. At the same time, configure the corresponding data processing program dynamic library file path for each port. This dynamic library can perform preliminary parsing and verification of sensor data, such as checking whether the temperature data is within a reasonable range. Configure data subscription relationships between ports as needed. For example, if the central monitoring room of the factory needs to receive data from all workshop ports, then the port corresponding to the central monitoring room will subscribe to the data from all workshop ports. However, the control room of a specific workshop may only need to subscribe to the data from some key sensor ports within that workshop.

[0034] 2. Data Reception and Processing When the sensor devices in the workshop send data through their corresponding ports, the ports receive the data through the data transceiver module. Based on the line identifier, if other ports with the same line identifier have already received the same data (for example, the same group of sensor devices sends the same data to multiple ports at the same time), the processing ends directly to avoid duplicate processing. If a port is configured with a data processing program, the received data is processed by the data processing module. For example, after parsing the temperature data, it is determined whether it exceeds a set threshold. If the data needs to be further communicated to other ports (such as the central monitoring room port), the processed data is submitted to the data subscription module of the corresponding port through the data distribution module.

[0035] 3. Data Subscription and Forwarding After the central monitoring room port subscribes to the data from each workshop port through the data subscription module, if a data processing program is configured, the data is processed again. For example, the temperature data of all workshops is summarized and analyzed to determine the temperature distribution of the entire factory. If the processed data needs to be forwarded to other systems (such as the factory's management information system), the data is sent out through the data sending module to achieve data sharing and further utilization.

[0036] II. Multimedia Content Delivery Network (CDN) In a multimedia content delivery network, there are a large number of content server nodes. These nodes need to obtain content from the source server and distribute the content to user terminals. Each content server node can be regarded as a port.

[0037] 1. Port settings and subscription configuration Add new content server node ports as needed, and set the communication mode of the ports to UDP multicast. Multicast can efficiently send content to multiple subscribed nodes simultaneously, making it suitable for large-scale distribution of multimedia content. Configure a data processing program for each port to perform preprocessing operations such as decoding and format conversion on the received multimedia content. Configure data subscription relationships between ports. For example, the content server port of an edge node subscribes to the content server port of the central node to obtain the latest multimedia resources. Simultaneously, the port corresponding to the user terminal can also subscribe to the content of the edge node port.

[0038] 2. Data Reception and Processing When the central node content server port receives multimedia content data sent by the source server through the data transceiver module, it deduplicates the data based on the line identifier to avoid receiving the same content repeatedly. The data processing module then decodes and converts the received content to adapt it to the needs of different user terminals. If the processed content needs to be distributed to edge node ports, the data distribution module submits the content to the data subscription module of the corresponding edge node port.

[0039] 3. Data Subscription and Forwarding After the edge node content server port subscribes to the content of the central node port through the data subscription module, the content is further optimized through the data processing module, such as adjusting the bitrate of the content according to network conditions. If the processed content needs to be forwarded to the user terminal, the data sending module will send the content to the user terminal, thus achieving efficient distribution of multimedia content.

[0040] As can be seen from the above practical application scenarios, the port subscription-based data forwarding method for on-demand data transmission and reception of the present invention can flexibly adapt to different network environments and business needs, and improve the efficiency of data transmission and processing.

Claims

1. A port subscription-based data forwarding method for on-demand data transmission and reception, characterized in that: First, add ports as needed, set the communication method and data processing program for the ports, and then configure the data subscription relationship between ports as needed. When a port receives data through the data transceiver module, it deduplicates the data based on the line identifier and submits it to the data processing module for processing. If it needs to notify other ports after processing, it submits the data to the data subscription module of the corresponding port through the data distribution module. When a port subscribes to data through the data subscription module, it submits it to the data processing module for processing. If it needs to forward the data after processing, it sends the data through the data sending module. The specific steps of this method are as follows: (1) Add a new port and set the communication method and port information of the data processing program for the port; (2) Configure data subscription relationships between ports as needed; (3) Receive data through the data transceiver module. After receiving the data, determine whether other ports with the same line identifier have received the data. If they have received the data, end directly; otherwise, proceed to step (4). (4) If the port is configured with a data processing program, the received data is processed by the data processing module and then proceeds to step (5); otherwise, proceed directly to step (6). (5) If the data needs to be distributed, proceed to step (6); otherwise, end directly. (6) Distribute data to the corresponding port's data subscription module through the data distribution module; (7) After the port subscribes to the data through the data subscription module, if the port is configured with a data processing program, proceed to step (8); otherwise, proceed to step (9). (8) Process the subscribed data through the data processing module. If the data needs to be forwarded, proceed to step (9); otherwise, end directly. (9) Forward data through the data sending module.

2. The port subscription-based data forwarding method for on-demand data transmission and reception according to claim 1, characterized in that: In step (1), the port information includes port identifier, port name, line identifier, communication method, local network address, local network port, remote network address, remote network port, TTL, and path to the dynamic library file of the data processing program.

3. The port subscription-based data forwarding method for on-demand data transmission and reception according to claim 2, characterized in that: The communication method supports UDP unicast, broadcast, and multicast.

4. The port subscription-based data forwarding method for on-demand data transmission and reception according to claim 2, characterized in that: The line identifier is used to aggregate multiple ports into one port. When ports with the same line identifier receive the same data, processing is only performed on the first receipt.

5. The port subscription-based data forwarding method for on-demand data transmission and reception according to claim 1, characterized in that: In step (1), the data processing program refers to the data processing dynamic library, which supports dynamic loading. Each port can be configured with a data processing dynamic library, which provides processing functions for data received from the data receiving module and subscribed to from the data subscription module, and supports discarding data as needed.

6. The port subscription-based data forwarding method for on-demand data transmission and reception according to claim 1, characterized in that: In steps (4) and (8), when the data processing module processes the data, it can modify the original data and choose whether to transfer the data to subsequent steps.

Citation Information

Patent Citations

  • Data parallel distribution method and system based on middleware of information system structure

    CN106790402A