Multi-dimensional identification network protocol base and intelligent customization development method thereof
By employing a modular design and intelligent customized development method for the multidimensional identifier network protocol foundation, the flexibility and adaptability issues of existing network protocols are resolved, resulting in an efficient and flexible network communication solution that reduces system complexity and improves maintainability and adaptability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NANJING UNIV OF POSTS & TELECOMM
- Filing Date
- 2024-05-24
- Publication Date
- 2026-06-30
Smart Images

Figure CN118474203B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer network communication, and in particular to a multidimensional identifier network protocol foundation and its intelligent customized development method. Background Technology
[0002] With the rapid development of internet technology, network communication protocols, as the foundation supporting data transmission and communication, are increasingly impacting the performance and flexibility of the entire network system. Existing network protocols typically employ a single, closed architecture, lacking sufficient modularity and flexibility, making it difficult to adapt to changing network environments and business needs. This often necessitates large-scale modifications to the protocols when developing new network applications or adjusting existing ones, increasing development costs and maintenance complexity.
[0003] Furthermore, existing technologies typically employ fixed serialization algorithms when processing network communication, lacking support for multiple serialization algorithms. This limits the adaptability and efficiency of network protocols in different application scenarios. Simultaneously, protocol execution strategies are often static, lacking dynamic management and optimization capabilities, and unable to adaptively adjust to changes in the network environment, thus impacting communication efficiency and stability. Summary of the Invention
[0004] Purpose of the invention: The purpose of this invention is to provide a multidimensional identifier network protocol foundation and its intelligent customized development method, which can reduce the overall complexity of the system, improve the maintainability and scalability of the system, and improve the efficiency of data processing and the stability of network communication.
[0005] Technical solution: A multidimensional identifier network protocol foundation, including a protocol definition module, a distributed configuration module and an open interface module. When communication parties A and B in the multidimensional identifier network start to establish communication, the two parties first send a call request to the open interface module. Then, the distributed configuration module interacts with the protocol definition module according to the current network status and service type, and determines the multidimensional identifier data packet transmission protocol used for this communication between A and B.
[0006] The protocol definition module consists of a custom protocol plugin development submodule, a dynamic serialization algorithm selection submodule, a session state management submodule, and an interaction submodule. It is responsible for protocol development between different terminals and provides reliable network connection and information transmission functions.
[0007] Furthermore, the custom protocol plugin development submodule develops and installs custom protocol plugins according to the specific needs of both communicating parties;
[0008] The dynamic serialization algorithm selection submodule is responsible for data serialization and deserialization operations to adapt to different data transmission requirements;
[0009] The session state management submodule is responsible for managing and maintaining the state of the communication session and introduces a timeout mechanism to ensure the activity of the connection.
[0010] The interaction submodule is responsible for interacting with the distributed configuration module, sending protocol configuration requests and receiving serialization algorithm configurations.
[0011] Furthermore, the distributed configuration module interacts with the protocol definition module by providing configuration access interfaces and cancellation configuration access interfaces to realize the distributed configuration service sub-module;
[0012] By managing and loading configuration information, it supports selecting and applying different serialization algorithms by modifying configuration files, thus realizing a distributed configuration management submodule;
[0013] A configuration service interface rewriting mechanism is introduced to encapsulate configuration access interfaces and unconfiguration access interfaces for different business requests, thereby implementing annotation-driven configuration access interface functionality.
[0014] Through struct definition and annotation, the sending end can explicitly specify which methods can be called, and the receiving end can automatically obtain the configuration access interface through the open interface module.
[0015] An intelligent custom development method for implementing any of the above-mentioned multidimensional identifier network protocol foundations:
[0016] The protocol definition module determines the connection status of the two communicating parties by introducing a timeout mechanism, supports multiple serialization algorithms, and realizes data encapsulation and decapsulation.
[0017] The distributed configuration module formulates the protocol execution strategy, provides distributed management capabilities, and realizes service-centric protocol adaptation.
[0018] The open interface module supports both synchronous and asynchronous calling methods to adapt to different business scenarios.
[0019] Furthermore, the specific implementation process of the custom protocol plugin development submodule is as follows:
[0020] By defining the protocol plugin interface, the methods and properties implemented by the multidimensional identifier data packet transmission protocol plugin are specified;
[0021] The plugin manager is responsible for loading, uninstalling, updating, and managing protocol plugins to ensure their correct installation and operation.
[0022] Design a plugin registration mechanism to allow newly developed plugins to register in the protocol definition module so that they can be called when needed;
[0023] The dynamic sequence algorithm selection submodule is responsible for data serialization and deserialization operations, and its implementation steps are as follows:
[0024] Define a serialization algorithm interface, which receives various serialization algorithm classes from the distributed configuration management submodule. Each class implements the serialization algorithm interface and supports serialization and deserialization operations for various data formats.
[0025] Develop an algorithm selector that dynamically selects the most suitable serialization algorithm based on the data type, network conditions, and performance requirements of the multidimensional identifier data packet;
[0026] The session state management submodule is responsible for managing and maintaining the state of the communication session and introduces a timeout mechanism.
[0027] Furthermore, the session state management submodule is responsible for managing and maintaining the state of the communication session, and the specific implementation process is as follows:
[0028] Record key information from both communicating parties during the communication process;
[0029] Define a timeout threshold T M The threshold timeout T M This indicates how long a session is considered inactive when there is no communication activity between the two parties;
[0030] Both communicating parties A and B send an activity signal ack to each other at time intervals t0 to indicate their respective online status; each time an ack is sent or received, the last activity time t is updated. l The current time;
[0031] Both communicating parties A and B maintain a timer T_cnt to track the time interval since the last activity; when T_cnt > T_C, the communication continues. M When a timeout event is triggered, it is determined that the other party is offline, and the session with the other party is terminated. Tcnt represents the interval time, T M Indicates the timeout threshold;
[0032] When the session state management submodule confirms that the session between the two communicating parties is unavailable, it will set the session state of both parties to terminate through the distributed configuration management submodule and release all resources allocated to the session.
[0033] Furthermore, the specific implementation of the algorithm selector is as follows:
[0034] Define a serialization algorithm interface that includes the choose Algorithm method, and develop an AlgorithmSelector class that implements the serialization algorithm interface and encapsulates the selection logic;
[0035] The Algorithm Selector class defines several specific serialization and deserialization algorithm classes to implement the interface of the serialization algorithm and implement the serialization and deserialization process of the corresponding specific algorithm.
[0036] Furthermore, the open interface module supports both synchronous and asynchronous calling methods, as follows:
[0037] For synchronous calls, a message body structure is defined to encapsulate the request information, and deserialization is performed through the open interface module. The call status and result are returned using the principle of reflection.
[0038] For asynchronous calls, the request information is encapsulated in a message body structure, and the request is initiated through the interface provided by the open interface module. At the same time, a listener object is constructed to wait for the response.
[0039] Furthermore, for asynchronous calls, a timeout threshold is set; if no response is received within the specified time, the API call request is terminated.
[0040] Compared with the prior art, the significant advantages of this invention are as follows:
[0041] 1. Modular Design Concept: The modular design of this invention is not limited to decomposing the processing flow into independent modules, but also includes the high flexibility and composability between modules; users can freely combine the various modules as needed to realize customized network processing flows without being restricted by a fixed structure; each module has clear interfaces and specifications, making module replacement and upgrades easier, reducing the overall complexity of the system, helping to quickly respond to ever-changing needs, and improving the maintainability and scalability of the system.
[0042] 2. Distributed Configuration and Management: The DCM module of this invention not only realizes the distributed configuration and management of the multidimensional identifier network protocol, but also introduces intelligent algorithms and mechanisms. Through the DCM module, network devices can make intelligent decisions based on real-time network status and service requirements, and dynamically adjust configuration parameters to optimize network performance and resource utilization. The DCM module also supports flexible policy distribution and dynamic adjustment, enabling network operators to better adapt to changes in requirements under different scenarios, and improving the flexibility and adaptability of the network.
[0043] 3. Optimized data processing and traffic management strategies: The PDM module of this invention provides highly customizable protocol processing logic, allowing users to define data processing flows and traffic management strategies according to specific needs. This customization capability enables network devices to better adapt to different protocols and application scenarios, improving the versatility and scalability of the network.
[0044] 4. Flexible multi-interface support: The Open Interface Module (OIM) enables flexible combination and efficient deployment of multi-dimensional identification network protocols, providing personalized options for different network applications and services through a unified access channel; users can select suitable business modules and services according to their own needs, customize their own network processing flow, meet specific business requirements, improve network performance, and enhance security. Attached Figure Description
[0045] Figure 1 This is an overall block diagram of the multidimensional identification network protocol foundation of the present invention;
[0046] Figure 2 This is a functional logic diagram of the protocol definition module of the present invention;
[0047] Figure 3 This is a functional logic diagram of the distributed configuration module of the present invention;
[0048] Figure 4 This is a functional logic diagram of the open interface module of the present invention. Detailed Implementation
[0049] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments.
[0050] To address the problems existing in the prior art, this invention provides a multi-dimensional identifier network protocol foundation and its intelligent customization development method, so as to achieve a technical solution that can provide a highly modular, flexible, customizable, and easily expandable solution, while supporting multiple serialization algorithms and dynamic policy management to adapt to the ever-changing network environment and business needs.
[0051] like Figure 1 The diagram shows the overall block diagram of the multidimensional identifier network protocol foundation, which consists of a Protocol Definition Module (PDM), a Distributed Configuration Module (DCM), and an Open Interface Module (OIM). When communication parties A and B in the multidimensional identifier network begin to establish communication, both parties first send a call request to the Open Interface Module. Then, the Distributed Configuration Module interacts with the Protocol Definition Module based on the current network status and service type to determine the multidimensional identifier data packet transmission protocol to be used for this communication between A and B.
[0052] In this embodiment, the functional logic diagram of the Protocol Definition Module (PDM) is as follows: Figure 2As shown, the serialization manager, implemented by the dynamic serialization algorithm selection submodule, is responsible for data serialization; the deserialization manager, implemented by the deserialization algorithm selection submodule, is responsible for data deserialization. The Protocol Definition Module (PDM) consists of a custom protocol plugin development submodule, a dynamic serialization algorithm selection submodule, a session state management submodule, and an interaction submodule. It is responsible for protocol development between different terminals, providing reliable network connectivity and information transmission capabilities. A timeout mechanism is introduced to determine the connection status of both communicating parties, supporting multiple serialization algorithms and achieving efficient data encapsulation and decapsulation. The specific implementation process is as follows:
[0053] C1, Custom Protocol Plugin Development Submodule
[0054] The custom protocol plugin development submodule allows for the development and installation of custom protocol plugins based on the specific needs of both communicating parties. The implementation steps are as follows:
[0055] Step C11: Define the Protocol Plugin Interface (PPI). Use object-oriented programming to create a new interface PPI, specifying the methods and properties implemented by the multidimensional identifier packet transmission protocol plugin.
[0056] Step C12 involves implementing the Plugin Manager, responsible for loading, unloading, updating, and managing protocol plugins to ensure their correct installation and operation. This is achieved by having all protocol plugin classes implement the PPI interface or by using this interface to implement the Plugin Manager. The Plugin Manager initializes the plugin's internal state and resources and performs plugin updates or uninstallation operations by forcibly implementing the `init()`, `process()`, and `terminate()` methods.
[0057] Step C13: Design a plugin registration mechanism that allows newly developed plugins to register in the protocol definition module for use when needed. Define a plugin registry to manage plugin instances and metadata. When a plugin is loaded in the plugin manager, it is registered in the registry and can be invoked by the protocol definition module through a query interface. Furthermore, the registration mechanism includes plugin lifecycle management to ensure plugins are correctly initialized, used, and uninstalled. Throughout this process, an event notification system notifies relevant components of changes in plugin status to facilitate overall system coordination and updates.
[0058] C2, Dynamic Serialization and Deserialization Algorithm Selection Submodule
[0059] The dynamic serialization and deserialization algorithm selection submodule implements the functions of the serialization manager and deserialization manager, responsible for data serialization and deserialization operations to adapt to different data transmission requirements. The implementation steps are as follows:
[0060] Step C21 defines the Serialization Algorithm Interface (SAI), which includes two abstract methods: serialization and deserialization. SAI can accept various serialization algorithm classes from the distributed configuration management submodule, such as JSONSerializer and XMLSerializer. Each class implements the SAI interface and supports serialization and deserialization operations for various data formats.
[0061] Step C22 involves developing an algorithm selector. This selector dynamically selects the most suitable serialization algorithm based on the data type of the multidimensional identifier data packet, network conditions, and performance requirements. The specific implementation of the algorithm selector is as follows:
[0062] Step C221: Define an ASI interface containing the choose Algorithm method, develop an Algorithm Selector class that implements the ASI interface and encapsulates the selection logic.
[0063] Step C222: Define multiple specific serialization and deserialization algorithm classes in the Algorithm Selector class to implement the interface of the serialization algorithm and implement the serialization and deserialization process of the corresponding specific algorithm.
[0064] C3, Session State Management Submodule
[0065] The session state management submodule is responsible for managing and maintaining the state of communication sessions and introduces a timeout mechanism to ensure connection activity. Real-time monitoring of the session state between communicating parties by the session state management submodule can significantly improve network resource utilization. The specific implementation steps are as follows:
[0066] Step C31: Record key information of both communicating parties during the communication process, such as session ID, connection status, and last active time t. l etc. The last activity time refers to the last time point in the communication between the two parties to exchange data packets.
[0067] Step C32, define a timeout threshold T M This value indicates how long a session is considered inactive when there is no communication activity between the two parties.
[0068] Step C33, the communicating parties A and B communicate at time interval t0 (t0 <T MEach entity sends an ACK (acknowledgment signal) to the other to indicate its online status. Each time an ACK is sent or received, the last active time t is updated. l The current time (last activity time t) l This indicates the last time point in the exchange of data packets between the two parties.
[0069] Step C34: Both communicating parties A and B maintain a timer Tcnt, representing the time since their last activity t. l The time interval up to the current time. When the interval time T... cnt (Indicates the time since the last activity t) l The time interval to the current time exceeds the set timeout threshold T. M That is, T cnt >T M If a timeout event is triggered, it will determine that the other party is offline and terminate the session with the other party.
[0070] Step C35: Once the session state management submodule confirms that the session between the two communicating parties is unavailable, it sets the session state of both parties to terminated through the distributed configuration management submodule and releases all resources allocated to the session.
[0071] C4, Interactive Submodule
[0072] The interaction submodule uses the gRPC communication protocol to interact with the distributed configuration module, sending protocol configuration requests and receiving serialization algorithm configurations.
[0073] In this implementation, the functional logic diagram of the Distributed Configuration Module (DCM) is as follows: Figure 3 As shown, the distributed configuration module defines the protocol execution strategy, provides distributed management capabilities, and achieves service-centric protocol adaptation. The specific implementation process is as follows:
[0074] Step D1, the distributed configuration service submodule, provides configuration access interfaces and deconfiguration access interfaces to interact with the protocol definition module (PDM) so that both communicating parties can obtain and release protocol configuration information. Specifically, the configuration access interface is primarily provided to the receiving end for external communication entities to obtain protocol configuration information; the deconfiguration access interface is provided to the initiating end for releasing the invoked interface when communication ends or the communication request times out, enabling end-to-end monitoring to prevent blocking.
[0075] Step D2, the distributed configuration management submodule, is responsible for managing and loading configuration information, and supports selecting and applying different serialization algorithms by modifying the configuration file. It manages the configuration through the configuration service submodule and retrieves and loads configuration information from it. To adapt to various application scenarios, the configuration management submodule provides multiple serialization algorithms for the protocol definition module, and the choice of which serialization algorithm to use is made by modifying the configuration service submodule file.
[0076] In this embodiment, the functional logic diagram of the Open Interface Module (OIM) is as follows: Figure 4 As shown,
[0077] The foundational platform based on the multidimensional identifier network protocol designed in this invention can support a variety of scenarios and services. Therefore, an open interface module is designed and implemented to support both synchronous and asynchronous calling methods to adapt to different business scenario changes.
[0078] The implementation is as follows:
[0079] The synchronous invocation method used by the open interface module means that after the initiating thread at both ends of the communication initiates the call, the initiating thread will be blocked and remain in a waiting state until the receiving thread completes its task and returns the result to the initiating thread. Only then can the initiating thread proceed to the next operation. A message body structure is defined, encapsulating information such as the request number and method parameters. This structure is then deserialized using the open interface module. By leveraging reflection to return the call status and result, the synchronous invocation method can be achieved.
[0080] The asynchronous calling method used by the open interface module means that after the initiating thread makes a call, it will not be blocked but will obtain a future object and perform the next operation based on the future object. When the response result returned by the receiving thread is obtained, the result will be cached by the open interface module and the distributed configuration module. The initiating thread will actively retrieve the cached result when it needs to block. Similarly, the request information is encapsulated using a message body structure and the request is initiated through the interface provided by the open interface module. At the same time, a listener object is constructed to wait for the response.
[0081] The open interface module implements a timeout mechanism. For asynchronous calls, a timeout threshold is set. If no response is received within the specified time, the interface call request is terminated to avoid the thread being blocked for a long time.
Claims
1. An intelligent custom development method for a multi-dimensional identification network protocol base, wherein, The multidimensional identifier network protocol foundation includes a protocol definition module, a distributed configuration module, and an open interface module. When communication parties A and B in the multidimensional identifier network begin to establish communication, the two parties first send a call request to the open interface module. Then, the distributed configuration module interacts with the protocol definition module according to the current network status and service type to determine the multidimensional identifier data packet transmission protocol used for this communication between A and B. The protocol definition module consists of a custom protocol plugin development submodule, a dynamic serialization algorithm selection submodule, a session state management submodule, and an interaction submodule. It is responsible for protocol development between different terminals and provides reliable network connection and information transmission functions. The custom protocol plugin development submodule develops and installs custom protocol plugins according to the specific needs of both communicating parties. The dynamic serialization algorithm selection submodule is responsible for data serialization and deserialization operations to adapt to different data transmission requirements; The session state management submodule is responsible for managing and maintaining the state of the communication session and introduces a timeout mechanism to ensure the activity of the connection. The interaction submodule is responsible for interacting with the distributed configuration module, sending protocol configuration requests and receiving serialization algorithm configurations. The distributed configuration module interacts with the protocol definition module by providing configuration access interface and cancel configuration access interface, thereby realizing the distributed configuration service sub-module; By managing and loading configuration information, it supports selecting and applying different serialization algorithms by modifying configuration files, thus realizing a distributed configuration management submodule; A configuration service interface rewriting mechanism is introduced to encapsulate configuration access interfaces and unconfiguration access interfaces for different business requests, thereby implementing annotation-driven configuration access interface functionality. Through struct definition and annotation, the sending end can explicitly specify which methods can be called, and the receiving end can automatically obtain the configuration access interface through the open interface module; Its features are: The protocol definition module determines the connection status of the two communicating parties by introducing a timeout mechanism, supports multiple serialization algorithms, and realizes data encapsulation and decapsulation. The distributed configuration module formulates the protocol execution strategy, provides distributed management capabilities, and realizes service-centric protocol adaptation. The open interface module supports both synchronous and asynchronous calling methods to adapt to different business scenarios.
2. The method according to claim 1, wherein, The specific implementation process of the custom protocol plugin development submodule is as follows: By defining the protocol plugin interface, the methods and properties implemented by the multidimensional identifier data packet transmission protocol plugin are specified; The plugin manager is responsible for loading, uninstalling, updating, and managing protocol plugins to ensure their correct installation and operation. Design a plugin registration mechanism to allow newly developed plugins to register in the protocol definition module so that they can be called when needed; The dynamic sequence algorithm selection submodule is responsible for data serialization and deserialization operations, and its implementation steps are as follows: Define a serialization algorithm interface, which receives various serialization algorithm classes from the distributed configuration management submodule. Each class implements the serialization algorithm interface and supports serialization and deserialization operations for various data formats. Develop an algorithm selector that dynamically selects the most suitable serialization algorithm based on the data type, network conditions, and performance requirements of the multidimensional identifier data packet; The session state management submodule is responsible for managing and maintaining the state of the communication session and introduces a timeout mechanism.
3. The method of claim 1, wherein the method further comprises: The session state management submodule is responsible for managing and maintaining the state of communication sessions. The specific implementation process is as follows: Record key information from both communicating parties during the communication process; Define a timeout threshold The threshold timed out. This indicates how long a session is considered inactive when there is no communication activity between the two parties; The two communicating parties, A and B, use time intervals. Send an activity signal (ACK) to the other party to indicate their respective online status; update the last active time each time an ACK is sent or received. The current time; Both communicating parties A and B maintain a timer. Used to track the time interval since the last activity; when > If a timeout event is triggered, it will determine that the other party is offline and terminate the session with them. Indicates the interval time. Indicates the timeout threshold; When the session state management submodule confirms that the session between the two communicating parties is unavailable, it will set the session state of both parties to terminate through the distributed configuration management submodule and release all resources allocated to the session.
4. The intelligent customized development method according to claim 1, characterized in that, The specific implementation of the algorithm selector is as follows: Define a serialization algorithm interface that includes the choose Algorithm method, and develop an Algorithm Selector class that implements the serialization algorithm interface and encapsulates the selection logic; The Algorithm Selector class defines several specific serialization and deserialization algorithm classes to implement the interface of the serialization algorithm and implement the serialization and deserialization process of the corresponding specific algorithm.
5. The intelligent customized development method according to claim 1, characterized in that, The open interface module supports both synchronous and asynchronous calling methods, and the implementation process is as follows: For synchronous calls, a message body structure is defined to encapsulate the request information, and deserialization is performed through the open interface module. The call status and result are returned using the principle of reflection. For asynchronous calls, the request information is encapsulated in a message body structure, and the request is initiated through the interface provided by the open interface module. At the same time, a listener object is constructed to wait for the response.
6. The intelligent customized development method according to claim 5, characterized in that, For asynchronous calls, set a timeout threshold; if no response is received within the specified time, terminate the API call request.