A self-adaptive communication method and device based on TCP protocol
Through the adaptive communication method based on the TCP protocol, banks can effectively solve the complexity of communication interaction with different partners, realize unified and efficient management of system docking, reduce operation and maintenance costs, and improve system stability.
Patent Information
- Application Number
- CN202310127280.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-02
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2043-02-02
AI Technical Summary
There are differences in communication interactions between banks and different partners, resulting in complex system docking, requiring a lot of manpower and material investment. As time accumulates, the system complexity increases, and the difficulty of operation and maintenance increases, affecting system stability and business continuity.
Adaptive communication method based on TCP protocol is adopted to build a business communication model by analyzing data packets in the business communication field, perform code development and deployment, complete protocol adaptation and message analysis, and realize communication interaction with partners.
It realizes unified communication and interaction between banks and different partners, reduces human resources costs, improves interaction efficiency, reduces system complexity, and improves system stability and business continuity.
Smart Images

Figure CN116074400B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication interaction technology, and specifically, relates to a self-adaptive communication method and device based on the TCP protocol. Background Art
[0002] With the rapid development of Internet financial services, banks are communicating and interacting with more and more partners such as institutions and enterprises. In terms of system docking, banks mainly connect with partners through dedicated systems within the bank or direct connections. There is cross-docking between bank applications and partners, and the actual situation cannot standardize and require banks and partners to connect uniformly according to agreed standards. The communication methods, message formats, and interactive interfaces between different partners and banks vary greatly. Every time a bank adds a partner to interact, it needs to invest a lot of manpower and material resources to carry out system transformation and interface docking; in order to be compatible with partners and meet the special needs and personalized designs of partners, banks often need to adjust or transform existing systems or architectures, which will have an impact on the existing technical architecture, causing system instability and business impact; and as time accumulates, the complexity of the system makes operation and maintenance very difficult, which hinders the long-term development plan of the bank's system architecture.
[0003] To solve such problems, banks decouple the businesses of different partners and carry out customized development for different partners. However, the problem they face is that they cannot reuse existing functions, and the cost of repeated development is high, the investment is high, and the operation and maintenance cost is high. On the other hand, the integration and unification of some standardized functions brings the problem of the coexistence of standardized and non-standardized modes. Many partners are unable to develop according to bank standards based on their own system architecture considerations. This also leads to management complexity and increased development costs, and cannot fundamentally solve the problem. Summary of the invention
[0004] The present application provides a self-adaptive communication method and device based on the TCP protocol to at least solve the business communication problem between a bank and different partners.
[0005] According to a first aspect of the present application, there is provided a TCP-based self-adaptive communication method, comprising:
[0006] According to the preset requirements, the business communication model is constructed by analyzing the acquired business communication data packets;
[0007] Develop and deploy code based on business communication models and preset requirements;
[0008] Complete protocol adaptation and message parsing through deployed code;
[0009] Complete the communication interaction with the partner based on the parsed message.
[0010] In one embodiment, a business communication model is constructed by analyzing the acquired business communication domain data messages, including:
[0011] Extract keywords from data messages in the business communication field;
[0012] Train business communication models based on keywords.
[0013] In one embodiment, code development and deployment are performed according to the business communication model and preset requirements, including:
[0014] Determine configuration rules based on business communication models and preset requirements; configuration rules include configuration protocols and message communication processing rules;
[0015] Orchestrate components according to configuration rules to complete code development and deployment.
[0016] In one embodiment, components are arranged according to configuration rules to complete code development and deployment, including:
[0017] Select components according to configuration rules and connect adapter components to combine to meet the requirements of message processing and communication adaptation;
[0018] Compile and deploy the adaptation component to the runtime engine sub-device.
[0019] In one embodiment, protocol adaptation and message parsing are completed by deploying the code, including:
[0020] Unified reception and adaptation of communication messages sent by partners;
[0021] The adapted message is flow-distributed according to the information preset in the TCP data part;
[0022] Process the messages assigned to the process.
[0023] In one embodiment, the adapted message is flow-allocated according to information preset in the TCP data part, including:
[0024] According to the information preset in the TCP data part, it is allocated to the corresponding process for processing according to the preset allocation rules.
[0025] In one embodiment, processing the message after the process is assigned includes:
[0026] Process the communication messages assigned by the process according to the construction combination, including: protocol conversion, message splitting and combination, and encryption and decryption;
[0027] The processed communication messages are adapted and forwarded to the corresponding applications.
[0028] According to another aspect of the present application, there is also provided a self-adaptive communication device based on the TCP protocol, comprising:
[0029] A model building unit, used to build a business communication model by analyzing the acquired business communication field data messages according to preset requirements;
[0030] Development and deployment unit, used to develop and deploy code according to the business communication model and preset requirements;
[0031] The adaptation and parsing unit is used to complete protocol adaptation and message parsing through the deployed code;
[0032] The interaction unit is used to complete the communication interaction with the partner according to the parsed message.
[0033] In one embodiment, the model building unit includes:
[0034] Keyword extraction module, used to extract keywords from data messages in the business communication field;
[0035] The training module is used to train the business communication model based on keywords.
[0036] In one embodiment, the development and deployment unit includes:
[0037] A configuration rule determination module is used to determine configuration rules according to the business communication model and preset requirements; the configuration rules include configuration protocols and message communication processing rules;
[0038] The development and deployment module is used to orchestrate components according to configuration rules to complete code development and deployment.
[0039] In one embodiment, the development and deployment module includes:
[0040] The component combination and splicing module is used to select components according to the configuration rules and connect the adaptation components to meet the requirements of message processing and communication adaptation;
[0041] The deployment and operation module is used to compile the adaptation component and deploy it to the operation engine sub-device.
[0042] In one embodiment, the adaptation and parsing unit includes:
[0043] The message adaptation module is used to uniformly receive and adapt the communication messages sent by the partners;
[0044] A process allocation module is used to allocate the adapted message to a process according to the information preset in the TCP data part;
[0045] The message processing module is used to process the messages after the process is assigned.
[0046] In one embodiment, the process allocation module includes:
[0047] The processing module is used to distribute the information preset in the TCP data part to the corresponding process for processing according to the preset distribution rules.
[0048] In one embodiment, the message processing module includes:
[0049] The allocation processing module is used to process the communication messages allocated by the process according to the construction combination, and the processing includes: protocol conversion, message splitting and combination, and encryption and decryption;
[0050] The forwarding module is used to adapt and forward the processed communication messages to the corresponding applications.
[0051] The present application provides a device and method for a self-adaptive communication protocol based on TCP / IP. It takes the basic communication protocol TCP / IP as the starting point. Although there are many different communication methods, interface rules, and message formats between institutions, enterprises, and banks, it is essentially based on the basic communication protocol TCP / IP. Based on this feature, the self-adaptive device can uniformly receive the data message inflow from outside the bank, and the device can perform adaptation conversion and message distribution. Its adaptation conversion and distribution functions are highly automated, and abstract encapsulation is performed for different communication methods and processing modes. In addition, low-code development is used to achieve flexible assembly and orchestration of components to meet the needs of protocol conversion and message processing, thereby meeting the needs of unified docking and interaction between the bank and various partner systems, flexible development, rapid online launch, and efficient management, reducing human resource costs and improving external interaction and docking efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 This application provides a self-adaptive communication method based on the TCP protocol.
[0054] Figure 2 The invention discloses a self-adaptive communication method based on TCP protocol and is applicable to a self-adaptive communication system based on TCP protocol.
[0055] Figure 3 Build a business communication model for the business communication field data messages obtained through analysis.
[0056] Figure 4Develop and deploy code based on business communication models and preset requirements.
[0057] Figure 5 To complete code development and deployment by orchestrating components according to configuration rules.
[0058] Figure 6 To complete protocol adaptation and message parsing through the deployed code.
[0059] Figure 7 To process the messages assigned to the process.
[0060] Figure 8 To identify and establish relevant authority, communication, data and process model diagrams.
[0061] Fig. 9 The structure diagram of a self-adaptive communication device based on TCP protocol.
[0062] Fig.10 Create a structural block diagram of the unit for the model.
[0063] Fig.11 This is a structural block diagram of the development and deployment unit.
[0064] Fig.12 A structural block diagram of the development and deployment module.
[0065] Fig.13 This is a structural block diagram of the adaptation parsing unit.
[0066] Fig.14 This is the structural block diagram of the message processing module.
[0067] Fig.15 A specific implementation of an electronic device provided in this application. DETAILED DESCRIPTION
[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0069] The solution within the bank is to decouple by business, integrate functional categories, and develop a dedicated communication docking system. This can only optimize from the management aspect and partially alleviate the complexity brought about by the interaction of heterogeneous systems, but it cannot fundamentally solve the problem of heterogeneous system docking between different partners. As time accumulates and the number of partners increases, the system becomes more complex, the development cost is higher, and the system maintenance becomes more complicated.
[0070] Therefore, in order to solve the above technical problems, the present application provides a self-adaptive communication method based on TCP protocol, such as Figure 1 As shown, including:
[0071] S101: Building a business communication model by analyzing the acquired business communication domain data messages according to preset requirements;
[0072] S102: Develop and deploy code based on the business communication model and preset requirements;
[0073] S103: Complete protocol adaptation and message parsing through the deployed code;
[0074] S104: Complete the communication interaction with the partner according to the parsed message.
[0075] In a specific embodiment, the TCP-based adaptive communication method is applicable to a TCP-based adaptive communication system, such as Figure 2 As shown, it includes a bank partner 101, an in-bank application 301, and an adaptive communication device 201 for interaction between the two, wherein the bank partner 101 includes multiple partners 102 and 103 of different institutions or departments, the in-bank application 301 includes multiple applications 302 and 303 of different business lines in the bank, and the adaptive communication device includes a running engine sub-device 201 and a low-code development sub-device 217. When the bank partner 101 needs to communicate and connect with the in-bank application 301, the bank partner 101 determines the specific interaction requirements by connecting and communicating with the in-bank application 301. The in-bank application 301 is modeled according to the requirements through the model building unit 218 of the low-code development sub-device 217, including permission modeling 219, data modeling 220, communication modeling 221, and process modeling 222. The development and deployment unit 223 generates and deploys corresponding codes according to the model established by the model building unit 218, specifically including creating configuration rules 226, component arrangement 227, generating code 224, and building and compiling 225.
[0076] After being deployed to the running engine sub-device 202, the running engine sub-device 202 is responsible for scheduling and management, and uses the TCP / IP protocol adapter unit 203 to adapt the TCP message sent by the bank partner 101. Since the TCP message segment format is fixed, it is only necessary to distinguish different ports to use a unified TCP / IP adapter unit for communication message adaptation, which is also an important difference between the present disclosure and traditional or other systems. After uniformly receiving the message, the TCP / IP protocol adapter unit 203 parses the content of the customized reserved space in the TCP data part through the message parsing unit 204, such as parsing out the component combination code 401, the processing model code 402, the access adaptation code 403, the reserved part 404 and the bank application address code 405 of the received message, as shown in the specific example. Figure 2 As shown, according to the TCP / IP protocol message model format, the TCP data part in the TCP protocol message segment format reserves the corresponding information codes of various components, processing models and access adapters required for the self-adaptive communication device 201 message processing for parsing by the message parsing unit 204. The process allocation unit 205 determines the corresponding component combination 207 or component combination 208 in the component unit 206, the corresponding processing model 210 or processing model 211 in the processing unit 209, the corresponding access adapter 213 or access adapter 214 in the access unit 212, and the corresponding bank application 302 or bank application 303 in the bank application 301 according to the component combination code 401, processing model code 402, access adapter code 403 and bank application address code 405 parsed by the message parsing unit 204. Among them, component combination 207 and component combination 208 are different combinations based on components determined by the development and deployment unit 223 of the low-code development sub-device 217 according to the needs of the previous connection between the external bank partner 101 and the bank's internal application 301, and are respectively suitable for the connection between different partners and bank applications; similarly, processing model 210 and processing model 211, access adapter 213 and access adapter 214 are all determined by the development and deployment unit 223 of the low-code development sub-device 217 according to the needs of the previous connection between the external bank partner 101 and the bank's internal application 301, and are respectively suitable for the connection between different partners and bank applications.
[0077] In addition, the monitoring unit 215 is used for abnormal monitoring and alarming during the operation of the engine sub-device 202 and abnormal monitoring and alarming of each logical processing unit in the engine sub-device 202, such as the TCP / IP protocol adapter unit 203 and the message parsing unit 204; the log unit 216 is used for log output records of the engine sub-device 202 and each logical processing unit therein. The monitoring unit 215 and the log unit 216 jointly ensure the stable operation of the engine sub-device 202.
[0078] In one embodiment, a business communication model is constructed by analyzing the acquired business communication domain data messages, such as Figure 3 As shown, including:
[0079] S301: extracting keywords from data messages in the business communication field;
[0080] S302: Training a business communication model based on keywords.
[0081] In a specific embodiment, the bank partner 101 and the bank's internal application 301 must first communicate with each other before developing the system to determine the specific interaction requirements and make division of labor arrangements. The specific design and development is completed by the bank's internal application. The partner only needs to confirm that its communication mode is based on the TCP / IP protocol specification and can add the agreed-upon related coding information in front of the TCP data part of the application layer.
[0082] The bank application 301 builds a business communication domain-related model by analyzing the data messages in the bank's communication business domain and its partners according to the determined needs, and determines and establishes relevant authority, communication, data and process models with the help of the model building unit 218. Figure 8 As shown, these models are used for process code generation and combination of related components.
[0083] In one embodiment, code development and deployment are performed according to the business communication model and preset requirements, such as Figure 4 As shown, including:
[0084] S401: Determine configuration rules according to the business communication model and preset requirements; the configuration rules include configuration protocols and message communication processing rules;
[0085] S402: Arrange components according to configuration rules to complete code development and deployment.
[0086] In a specific embodiment, the in-bank application 301 determines the corresponding configuration rules 226 based on the constructed model and the determined interaction requirements, including the configuration protocols and the communication processing rules of the messages (such as protocol conversion from https to http, message splitting and combination from xml format to json, etc.); according to the determined configuration rules, the components are arranged 227, and then the components used (such as variable operation components, message splitting components, data mapping components, etc.) are selected and arranged and combined with the adapter components to meet the requirements of message processing and communication adaptation, so that they meet the business requirements, and the corresponding logic running code or combination is generated in a codeless and low-code manner, and then built, compiled and deployed to the running engine sub-device.
[0087] In one embodiment, components are arranged according to configuration rules to complete code development and deployment, such as Figure 5 As shown, including:
[0088] S501: Select components according to configuration rules and connect adaptation components to combine to meet the requirements of message processing and communication adaptation;
[0089] S502: Compile the adaptation component and deploy it to the runtime engine sub-device.
[0090] In a specific embodiment, the communication messages sent by the partners are uniformly received and adapted by the TCP / IP protocol adapter unit 203 provided by the self-adaptive communication device. The bank partner 101 sends a TCP / IP protocol message to the self-adaptive communication device 201, and all network messages that conform to the TCP / IP protocol message model can be received if the permission requirements (determined by permission modeling) are met.
[0091] In one embodiment, protocol adaptation and message parsing are completed by deploying the code after deployment, such as Figure 6 As shown, including:
[0092] S601: uniformly receiving and adapting the communication messages sent by the partner;
[0093] S602: The adapted message is flow-allocated according to the information preset in the TCP data part;
[0094] S603: Process the message after the process is assigned.
[0095] In a specific embodiment, the process allocation unit 205 allocates the acquired relevant coding information according to a predetermined allocation rule (the allocation rule is provided and improved by the self-adaptive communication device 201) and allocates it to the corresponding process (corresponding to the corresponding component combination, processing model and access adaptation) for processing.
[0096] In one embodiment, the adapted message is flow-allocated according to information preset in the TCP data part, including:
[0097] According to the information preset in the TCP data part, it is allocated to the corresponding process for processing according to the preset allocation rules.
[0098] In one embodiment, the message after the process is assigned is processed, such as Figure 7 As shown, including:
[0099] S701: Process the communication message after the process is assigned according to the construction combination, and the processing includes: protocol conversion, message splitting and combination, and encryption and decryption;
[0100] S702: The processed communication message is adapted and forwarded to a corresponding application.
[0101] In one embodiment, the allocated communication messages are processed accordingly based on the corresponding component combination, processing model and access adapter, and the processing process mainly includes protocol conversion (such as TCP protocol socket to http), message splitting and combination (split xml message into json message), encryption and decryption, etc. The processed communication message is adapted for access, and the corresponding access adapter is selected to be forwarded to the corresponding bank application 301. The communication message is sent to the bank, and the bank application performs corresponding business processing and returns the business processing results to the partner. At the same time, the monitoring unit 215 and the log unit 216 perform related abnormal monitoring alarms and log records in the whole process.
[0102] Based on the same inventive concept, the embodiment of the present application also provides a self-adaptive communication device based on the TCP protocol, which can be used to implement the method described in the above embodiment, as described in the following embodiment. Since the principle of solving the problem by the self-adaptive communication device based on the TCP protocol is similar to the self-adaptive communication method based on the TCP protocol, the implementation of the self-adaptive communication device based on the TCP protocol can refer to the implementation of the self-adaptive communication method based on the TCP protocol, and the repetitions are not repeated. As used below, the term "unit" or "module" can implement a combination of software and / or hardware of a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0103] According to another aspect of the present application, a self-adaptive communication device based on the TCP protocol is also provided. Fig. 9 As shown, including:
[0104] The model building unit 901 is used to build a business communication model by analyzing the acquired business communication field data messages according to preset requirements;
[0105] Development and deployment unit 902, used to develop and deploy code according to the business communication model and preset requirements;
[0106] Adaptation and parsing unit 903, used to complete protocol adaptation and message parsing through the deployed code;
[0107] The interaction unit 904 is used to complete the communication interaction with the partner according to the parsed message.
[0108] In one embodiment, if Fig.10 As shown, the model building unit 901 includes:
[0109] The keyword extraction module 1001 is used to extract keywords from data messages in the business communication field;
[0110] The training module 1002 is used to train the business communication model according to keywords.
[0111] In one embodiment, if Fig.11 As shown, the development and deployment unit 902 includes:
[0112] Configuration rule determination module 1101, used to determine configuration rules according to the business communication model and preset requirements; the configuration rules include configuration protocols and message communication processing rules;
[0113] The development and deployment module 1102 is used to arrange components according to configuration rules to complete code development and deployment.
[0114] In one embodiment, if Fig.12 As shown, the development and deployment module 1102 includes:
[0115] Component combination and splicing module 1201, used to select components according to configuration rules and connect adaptation components to combine to meet the requirements of message processing and communication adaptation;
[0116] The deployment and operation module 1202 is used to compile the adaptation component and deploy it to the operation engine sub-device.
[0117] In one embodiment, if Fig.13 As shown, the adaptation and parsing unit 903 includes:
[0118] The message adaptation module 1301 is used to uniformly receive and adapt the communication messages sent by the partner;
[0119] A process allocation module 1302 is used to allocate the adapted message to a process according to information preset in the TCP data part;
[0120] The message processing module 1303 is used to process the message after the process is allocated.
[0121] In one embodiment, the process allocation module includes:
[0122] The processing module is used to distribute the information preset in the TCP data part to the corresponding process for processing according to the preset distribution rules.
[0123] In one embodiment, if Fig.14 As shown, the message processing module 1303 includes:
[0124] The allocation processing module 1401 is used to process the communication message after the process allocation according to the construction combination, and the processing includes: protocol conversion, message splitting and combining, and encryption and decryption;
[0125] The forwarding module 1402 is used to adapt and forward the processed communication message to the corresponding application.
[0126] The present application provides a device and method for a self-adaptive communication protocol based on TCP / IP. It takes the basic communication protocol TCP / IP as the starting point. Although there are many different communication methods, interface rules, and message formats between institutions, enterprises, and banks, it is essentially based on the basic communication protocol TCP / IP. Based on this feature, the self-adaptive device can uniformly receive the data message inflow from outside the bank, and the device can perform adaptation conversion and message distribution. Its adaptation conversion and distribution functions are highly automated, and abstract encapsulation is performed for different communication methods and processing modes. In addition, low-code development is used to achieve flexible assembly and orchestration of components to meet the needs of protocol conversion and message processing, thereby meeting the needs of unified docking and interaction between the bank and various partner systems, flexible development, rapid online launch, and efficient management, reducing human resource costs and improving external interaction and docking efficiency.
[0127] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0128] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0129] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0130] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0131] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
[0132] The embodiments of the present application also provide a specific implementation of an electronic device that can implement all the steps in the method in the above embodiments, see Fig.15 , the electronic device specifically includes the following contents:
[0133] Processor 1501, memory 1502, communication interface 1503, bus 1504 and non-volatile memory 1505;
[0134] The processor 1501, memory 1502, and communication interface 1503 communicate with each other via the bus 1504;
[0135] The processor 1501 is used to call the computer program in the memory 1502 and the non-volatile memory 1505. When the processor executes the computer program, all the steps in the method in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0136] S101: Building a business communication model by analyzing the acquired business communication domain data messages according to preset requirements;
[0137] S102: Develop and deploy code based on the business communication model and preset requirements;
[0138] S103: Complete protocol adaptation and message parsing through the deployed code;
[0139] S104: Complete the communication interaction with the partner according to the parsed message.
[0140] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps of the method in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps of the method in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0141] S101: Building a business communication model by analyzing the acquired business communication domain data messages according to preset requirements;
[0142] S102: Develop and deploy code based on the business communication model and preset requirements;
[0143] S103: Complete protocol adaptation and message parsing through the deployed code;
[0144] S104: Complete the communication interaction with the partner according to the parsed message.
[0145] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Although the embodiment of this specification provides the method operation steps described in the embodiment or flow chart, more or less operation steps can be included based on conventional or non-creative means. The order of steps listed in the embodiment is only one way of executing the order of many steps, and does not represent the only execution order. When the device or terminal product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiment or the accompanying drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, product or device. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or device including the elements. For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the embodiments of this specification, the functions of each module can be implemented in the same one or more software and / or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The present invention is described with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0146] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, the embodiments of this specification may be in the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the embodiments of this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment. In the description of this specification, the description of the reference term "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of this specification.
[0147] In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradicting each other. The above is only an embodiment of the embodiment of this specification and is not intended to limit the embodiment of this specification. For those skilled in the art, the embodiment of this specification may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiment of this specification shall be included in the scope of the claims of the embodiment of this specification.
Claims
1. A self-adaptive communication method based on TCP protocol, characterized in that: include: According to preset requirements, a business communication model is constructed by analyzing the acquired business communication domain data messages, wherein the business communication model includes authority, communication, data and process models; Code development and deployment are performed according to the business communication model and preset requirements, wherein configuration rules are determined according to the business communication model and preset requirements; the configuration rules include configuration protocols and communication processing rules for messages; components are arranged according to the configuration rules to complete code development and deployment; Complete protocol adaptation and message parsing through deployed code; Complete the communication interaction with the partner based on the parsed message.
2. The self-adaptive communication method based on TCP protocol according to claim 1, characterized in that: The business communication model is constructed by analyzing the acquired business communication field data messages, including: Extract keywords from data messages in the business communication field; The business communication model is trained based on the keywords.
3. The self-adaptive communication method based on TCP protocol according to claim 1, characterized in that: The step of arranging components according to the configuration rules to complete code development and deployment includes: Select components according to the configuration rules and connect the adaptation components to combine to meet the requirements of message processing and communication adaptation; Compile and deploy the adaptation component.
4. The self-adaptive communication method based on TCP protocol according to claim 1, characterized in that: The protocol adaptation and message parsing are completed by the deployed code, including: Unified reception and adaptation of communication messages sent by partners; The adapted message is flow-distributed according to the information preset in the TCP data part; Process the messages assigned to the process.
5. The self-adaptive communication method based on TCP protocol according to claim 4, characterized in that: The adapted message is flow-distributed according to information preset in the TCP data part, including: According to the information preset in the TCP data part, it is allocated to the corresponding process for processing according to the preset allocation rules.
6. The self-adaptive communication method based on TCP protocol according to claim 4, characterized in that: The processing of the message after the process allocation includes: Process the communication messages assigned by the process according to the construction combination, including: protocol conversion, message splitting and combination, and encryption and decryption; The processed communication messages are adapted and forwarded to the corresponding applications.
7. A self-adaptive communication device based on TCP protocol, characterized in that: include: A model building unit, used to build a business communication model by analyzing the acquired business communication field data messages according to preset requirements, wherein the business communication model includes authority, communication, data and process models; A development and deployment unit, configured to perform code development and deployment according to the business communication model and preset requirements, wherein configuration rules are determined according to the business communication model and preset requirements; the configuration rules include configuration protocols and communication processing rules for messages; and code development and deployment are completed by arranging components according to the configuration rules; The adaptation and parsing unit is used to complete protocol adaptation and message parsing through the deployed code; The interaction unit is used to complete the communication interaction with the partner according to the parsed message.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the self-adaptive communication method based on the TCP protocol described in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the self-adaptive communication method based on the TCP protocol described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Interface adaptation method and device, electronic equipment and computer readable storage medium
CN113051202A