Port subscription type data forwarding method for on-demand processing of data receiving and transmitting

By adopting a port subscription-based data forwarding method that processes data transmission and reception on demand, the problem of insufficient flexibility and scalability in port data forwarding in existing technologies is solved, thus achieving flexibility and efficient processing of port data forwarding.

CN121486471APending Publication Date: 2026-02-06JIANGSU JARI GROUP CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511704978.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-20
Publication Date
2026-02-06

AI Technical Summary

Technical Problem

Existing network port data forwarding technologies are difficult to adapt flexibly and lack data processing scalability, failing to meet the dynamic adaptation needs of government and financial sectors. Furthermore, they require repeated rule development, resulting in low efficiency.

Method used

This paper provides a port subscription-based data forwarding method for on-demand data transmission and reception. By adding ports, configuring communication methods and data processing programs, it supports data forwarding between many-to-many, one-to-many, many-to-one and different communication methods, and performs flexible processing when receiving and subscribing to data.

Benefits of technology

It achieves flexibility and convenience in port data forwarding, supports data forwarding for multiple communication methods, and improves the efficiency and adaptability of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121486471A_ABST
    Figure CN121486471A_ABST
Patent Text Reader

Abstract

A port subscription type data forwarding method for on-demand processing of data receiving and transmitting comprises the following steps: firstly, newly adding ports on demand, setting a communication mode and a data processing program of the ports, and then configuring a data subscription relationship between the ports on demand; when the ports receive data through the data receiving and transmitting module, duplicate removal is carried out according to the line identifier, then the data is submitted to the data processing module for processing, and if other ports need to be notified after processing, 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, the data are submitted to the data processing module for processing, and if the data need to be forwarded after being processed, the data are sent through the data sending module. According to the invention, a more flexible and convenient method can be provided for port data forwarding and data processing, data forwarding among many-to-many, one-to-many, many-to-one and different communication modes of ports is realized, and data can be flexibly processed when the data is received and subscribed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application relates to the technical field of UDP data forwarding, and in particular to a port subscription type data forwarding method for on-demand processing of data transmission and reception. BACKGROUND

[0002] Network port data forwarding technology is widely used in remote access, multi-system collaboration and the like, but the existing scheme cannot meet the flexible adaptation requirement. Foreign mainstream tools such as ngrok and frp only support basic port mapping and cannot realize automatic data flow through a subscription relationship. Some schemes introduce simple data filtering but have no dynamic expansion capability and cannot load processing logic on demand. Domestic tools such as nat123 simplify the configuration process, but port linkage needs to be customized and developed, and lack data processing interfaces. Integrated solutions in the government and financial fields rely on foreign frameworks, have poor dynamic adaptability, and need to repeatedly develop rules for new ports, which is low in efficiency. The domestic and foreign technologies generally have the problems of inflexible configuration of port subscription and insufficient data processing expansion.

[0003] Therefore, it is more and more important to study a port subscription type data forwarding method for on-demand processing of data transmission and reception. SUMMARY

[0004] The technical problem to be solved by the application is to provide a port subscription type data forwarding method for on-demand processing of data transmission and reception, which provides a more flexible and convenient method for port data forwarding and data processing by providing port, processing program and subscription relationship configuration functions, realizes data forwarding between multiple ports, one-to-many, many-to-one and different communication modes, and can flexibly process data when receiving and subscribing to data.

[0005] The technical problem to be solved by the application is solved by the following technical scheme. The application is a port subscription type data forwarding method for on-demand processing of data transmission and reception. First, ports are added on demand, the communication mode and data processing program of the ports are set, and then the data subscription relationship between the ports is configured on demand. When the ports receive data through the data transmission and reception module, the data is first submitted to the data processing module for processing after being deduplicated according to the line identifier. If the processed data needs to be notified to other ports, the data is submitted to the data subscription module of the corresponding port through the data distribution module. When the ports subscribe to data through the data subscription module, the data is first submitted to the data processing module for processing. If the processed data needs to be forwarded, the data is sent through the data sending module.

[0006] The technical problem to be solved by the application can be further realized by the following technical scheme. For the port subscription type data forwarding method for on-demand processing of data transmission and reception, the specific steps are as follows: (1) add a port and set port information such as communication mode, data processing program and the like of the port; (2) configure data subscription relationship between ports on demand; (3) receive data through a data transceiving module, and after receiving the data, judge whether other ports with the same line identifier have received data, if yes, directly end, otherwise, go to step (4); (4) if the port is configured with a data processing program, go to step (5) after processing the received data through a data processing module, otherwise, directly go to step (6); (5) if the data needs to be distributed, go to step (6), otherwise, directly end; (6) distribute the data to a data subscription module of a corresponding port through a data distribution module; (7) after the port subscribes to the data through a data subscription module, if the port is configured with a data processing program, go to step (8), otherwise, go to step (9); (8) process the subscribed data through a data processing module, if the data needs to be forwarded, go to step (9), otherwise, directly end; (9) forward the data through a data sending module.

[0007] The technical problem to be solved by the application can be further implemented by the following technical scheme, for the port subscription type data forwarding method of data transceiving and on-demand processing, in step (1), the port information comprises a port identifier, a port name, a line identifier, a communication mode, a local network address, a local network port, a remote network address, a remote network port, TTL, and a data processing program dynamic library file path.

[0008] The technical problem to be solved by the application can be further implemented by the following technical scheme, for the port subscription type data forwarding method of data transceiving and on-demand processing, the communication mode supports UDP unicast, broadcast and multicast.

[0009] The technical problem to be solved by the application can be further implemented by the following technical scheme, for the port subscription type data forwarding method of data transceiving and on-demand processing, the line identifier is used for aggregating multiple ports into one port, and when ports with the same line identifier receive the same data, only the first time of receiving is processed.

[0010] The technical problem solved by the present application can also be further implemented by the following technical solutions, for the port subscription data forwarding method of data transceiving and on-demand processing, in step (1), the data processing program refers to a data processing dynamic library, supports dynamic loading, each port can be configured with a data processing dynamic library, provides processing functions for receiving data from the data receiving module and subscribing data from the data subscription module, and supports discarding data on demand.

[0011] The technical problem solved by the present application can also be further implemented by the following technical solutions, for the port subscription data forwarding method of data transceiving and on-demand processing, in step (4) and step (8), when the data processing module processes data, the original data can be modified, and it can be selected whether the data needs to be transferred to the subsequent step.

[0012] Compared with the prior art, the present application provides a more flexible and convenient method for port data forwarding and data processing by providing port, processing program and subscription relationship configuration function, realizes port many-to-many, one-to-many, many-to-one and data forwarding between different communication modes, and can flexibly process data when receiving and subscribing to data. BRIEF DESCRIPTION OF DRAWINGS

[0013] Figure 1 A method function schematic diagram of the present application; Figure 2 A port data receiving processing flow schematic diagram of the present application; Figure 3 A port data subscription processing flow schematic diagram of the present application. DETAILED DESCRIPTION

[0014] In order to make the purpose, technical scheme and advantages of the embodiments of the present application more clear, the technical scheme in the embodiments of the present application will be described clearly and completely below with reference to the drawings of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.

[0015] REFERENCE Figure 1The application relates to a port subscription type data forwarding method for data transceiving on-demand processing, and mainly relates to data receiving, data processing, data distribution, data subscription and data sending of a port. First, a port is newly added, the communication mode and data processing program of the port are set, and then the data subscription relationship between the ports is configured on-demand; when the port receives data through a data transceiving module, the data is first submitted to a data processing module for processing after being de-duplicated according to a line identifier; if the other ports need to be notified after the processing, the data is submitted to the data subscription module of the corresponding port through a data distribution module; when the port subscribes to data through the data subscription module, the data is first submitted to the data processing module for processing, and then the data is sent through a data sending module if the data needs to be forwarded after the processing.

[0016] The method comprises the following steps: Step 1: a port is newly added, and the communication mode, data processing program and other port information of the port are set.

[0017] The port information comprises a port identifier, a port name, a line identifier, a communication mode, a local network address, a local network port, a remote network address, a remote network port, TTL and a data processing program dynamic library file path, wherein the communication mode supports UDP unicast, broadcast and multicast.

[0018] The line identifier is used to aggregate multiple ports into one port, and when the ports with the same line identifier receive the same data, the processing is only performed at the first time.

[0019] The data processing program refers to a data processing dynamic library, supports dynamic loading, each port can be configured with a data processing dynamic library, provides the processing function of the data received from the data receiving module and the data subscribed from the data subscription module, and supports discarding data on-demand.

[0020] Step 2: the data subscription relationship between the ports is configured on-demand.

[0021] Step 3: data is received through a data transceiving module, and after the data is received, it is judged whether the other ports with the same line identifier have received the data, if the data has been received, the process is directly ended, otherwise, step 4 is entered.

[0022] Step 4: if the port is configured with a data processing program, the received data is processed through the data processing module, and then step 5 is entered, otherwise, step 6 is directly entered.

[0023] When the data processing module processes the data, the original data can be modified, and it can be selected whether the data needs to be transferred to the subsequent step.

[0024] Step 5: if the data needs to be distributed, step 6 is entered, otherwise, the process is directly ended.

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

[0026] Step 7: If the port is configured with a data processing program after subscribing to the data through the data subscription module, go to Step 8, otherwise go to Step 9.

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

[0028] When the data processing module processes the data, the original data can be modified, and it can be selected whether the data needs to be transferred to the subsequent step.

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

[0030] Reference Figure 2 A port subscription type data forwarding method for data transceiving and on-demand processing, the processing flow of the port receiving data includes the following steps: Step 1: Receive data through the port data receiving module. After receiving the data, go to Step 2; Step 2: Determine whether other ports with the same line identifier have received the same data. If yes, end directly, otherwise go to Step 3; Step 3: Determine whether a data processing program is configured. If yes, go to Step 4, otherwise go to Step 5; Step 4: Process the data through the data processing module. If the data is ignored, end directly, otherwise go to Step 5; Step 5: Push the data to other ports according to the subscription relationship through the data distribution module.

[0031] Reference Figure 3 A port subscription type data forwarding method for data transceiving and on-demand processing, the processing flow of the port subscribing data includes the following steps: Step 1: Subscribe to data through the data subscription module. After subscribing to the data, go to Step 2; Step 2: Determine whether a processing program is configured. If yes, go to Step 3, otherwise go to Step 4; Step 3: Process the data through the data processing module. If the data is ignored, end directly, otherwise go to Step 4; Step 4: Send the data through the data sending module.

[0032] Actual application scenario example I. Industrial Internet of Things monitoring system In the industrial Internet of Things monitoring system of a large factory, there are many different types of sensor devices, such as temperature sensors, pressure sensors, speed sensors, etc. These devices are distributed in various areas of the factory, and each sensor device can be regarded as a data sending port.

[0033] 1. Port setting and subscription relationship configuration First, according to the actual layout and monitoring requirements of the factory, multiple ports are added as needed, for example, a port is set for each main production equipment area in the workshop to receive data from sensor devices in that area. The communication method of the port is set to UDP unicast, because UDP unicast can accurately send data to a specified port, which is suitable for this point-to-point data transmission scenario. At the same time, a corresponding data processing program dynamic library file path is configured for each port, which can perform preliminary analysis and verification on sensor data, such as checking whether the temperature data is within a reasonable range. The data subscription relationship between ports is configured as needed, for example, the central monitoring room of the factory needs to receive data from all workshop ports, so the port corresponding to the central monitoring room subscribes to data from all workshop ports, while the control room of a specific workshop may only need to subscribe to data from some key sensor ports in 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. According to 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 simultaneously sends the same data to multiple ports), then the processing is ended directly to avoid repeated processing. If the port is configured with a data processing program, the received data is processed through the data processing module, for example, after analyzing the temperature data, it is determined whether it exceeds the set threshold. If the data needs to be further notified 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 the data processing program is configured, the data is processed again, for example, all workshop temperature data is analyzed and summarized 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 realize data sharing and further utilization.

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

[0037] 1. Port setting and subscription relationship configuration New content server node ports are added on demand, and the communication mode of the ports is set to UDP multicast. Because multicast can efficiently send content to multiple subscribed nodes at the same time, it is suitable for large-scale distribution of multimedia content. A data processing program is configured for each port to perform preprocessing operations such as decoding and format conversion on received multimedia content. The data subscription relationship between ports is configured. For example, the content server port of the edge node subscribes to the content of the content server port of the center node to obtain the latest multimedia resources. At the same time, 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 center node content server port receives multimedia content data sent by the source server through the data transceiver module, the line identifier is used to avoid duplicate reception of the same content. The data processing module decodes and formats the received content to adapt to the needs of different user terminals. If the processed content needs to be distributed to the edge node port, 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 center node port through the data subscription module, the content is optimized by the data processing module, such as adjusting the code rate of the content according to the network status. If the processed content needs to be forwarded to the user terminal, the data sending module sends the content to the user terminal to achieve efficient distribution of multimedia content.

[0040] As can be seen from the above actual application scenarios, the port subscription type data forwarding method of the data transceiver on-demand processing of the present application 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.

2. The port subscription-based data forwarding method for on-demand data transmission and reception according to claim 1, characterized in that: The specific steps of this 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.

3. The port subscription-based data forwarding method for on-demand data transmission and reception according to claim 2, 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.

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

5. The port subscription-based data forwarding method for on-demand data transmission and reception according to claim 3, 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.

6. The port subscription-based data forwarding method for on-demand data transmission and reception according to claim 2, 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.

7. The port subscription-based data forwarding method for on-demand data transmission and reception according to claim 2, 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

  • Message forwarding method and device based on aggregation chain

    CN107566267A

  • Communication method and system for providing block chain application for NDN network

    CN110072196A

  • Cross-network data sharing and exchanging method and system

    CN116633947A

  • System and method for setting status flags for mobile data distribution based on distribution rules

    US20090005065A1