CN117478504A - Information transmission method, device, terminal equipment and storage medium - Google Patents

Information transmission method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN117478504A
CN117478504A CN202311774470.9A CN202311774470A CN117478504A CN 117478504 A CN117478504 A CN 117478504A CN 202311774470 A CN202311774470 A CN 202311774470A CN 117478504 A CN117478504 A CN 117478504A
Authority
CN
China
Prior art keywords
change
information transmission
slave system
request
slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311774470.9A
Other languages
Chinese (zh)
Other versions
CN117478504B (en
Inventor
徐泽威
钟国辉
董兴水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Everything Safety Technology Co ltd
Original Assignee
Shenzhen Everything Safety Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Everything Safety Technology Co ltd filed Critical Shenzhen Everything Safety Technology Co ltd
Priority to CN202311774470.9A priority Critical patent/CN117478504B/en
Publication of CN117478504A publication Critical patent/CN117478504A/en
Application granted granted Critical
Publication of CN117478504B publication Critical patent/CN117478504B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0859Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses an information transmission method, a device, a terminal device and a storage medium, wherein the information transmission method is applied to a master system in an information transmission system, the information transmission system further comprises a first slave system and/or a second slave system, and a corresponding change negotiation result is obtained by responding to a change proposal request of the first slave system and executing change negotiation based on the change proposal request; and in response to receiving the change inquiry request of the second slave system, sending the change negotiation result to the second slave system, so that the change negotiation result corresponding to the change request initiated by a certain slave system can be synchronized to other slave systems in time, information transmission between the master system and each slave system is realized, a database is not required to be opened or a large number of API interfaces are not required to be developed, meanwhile, the requirement on computational resources is low, and the safety and convenience of linkage between software systems can be considered.

Description

Information transmission method, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an information transmission method, an information transmission device, a terminal device, and a storage medium.
Background
The linkage among a plurality of software systems is based on information transmission, and the access right of an open database is the most direct information transmission method, but the method has the problems that the internal implementation details are exposed and the data is illegally tampered. Furthermore, the information transmission method of opening only specific API interfaces without opening the database is presented, and the method has the problems that the number of the API interfaces is large, the interfaces need to be connected one by one, developed and debugged, and the interface formats are disordered and diversified. The method also has the problems that a built-in negotiation control mechanism for message content is lacked, an HTTP protocol is not supported, and more resources are consumed in the scene of edge calculation or the Internet of things, so that the linkage between software systems is difficult to consider both safety and convenience.
Therefore, a solution that combines the security and convenience of the linkage between software systems is needed.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide an information transmission method, an information transmission device, terminal equipment and a storage medium, and aims to provide an information transmission method based on change negotiation so as to consider the safety and convenience of linkage between software systems.
To achieve the above object, the present invention provides an information transmission method applied to a master system in an information transmission system further including a first slave system and/or a second slave system, the information transmission method including:
responding to the received change proposal request of the first slave system, and executing change negotiation based on the change proposal request to obtain a corresponding change negotiation result;
and transmitting the change negotiation result to the second slave system in response to receiving the change inquiry request of the second slave system.
Optionally, the step of performing a change negotiation based on the change proposal request to obtain a corresponding change negotiation result includes:
determining a change type according to the change proposal request, wherein the change type comprises at least one of new addition, deletion and modification;
and carrying out change negotiation according to the change type, and outputting and storing a change negotiation result corresponding to the change type, wherein the change negotiation result comprises adopting change and/or refusing change.
Optionally, in response to receiving the request for a change proposal from the first slave system, the step of performing a change negotiation based on the request for a change proposal to obtain a corresponding change negotiation result further includes:
generating first response information corresponding to the change proposal request;
and returning the response information to the first slave system.
Optionally, the step of sending the change negotiation result to the second slave system in response to receiving the change query request of the second slave system includes:
generating second response information corresponding to a change query request in response to receiving the change query request of the second slave system, wherein the change query request is initiated by the second slave system according to a timing task and/or service requirement;
and loading the change negotiation result on the second response information, and sending the second response information to the second slave system.
In addition, to achieve the above object, the present invention also provides an information transmission method applied to a first slave system in an information transmission system further including a master system and/or a second slave system, the information transmission method including the steps of:
and sending a change proposal request to the master system so that the master system executes change negotiation based on the change proposal request to obtain a corresponding change negotiation result, and sending the change negotiation result to the second slave system when receiving the change inquiry request of the second slave system.
Optionally, the step of sending a change proposal request to the host system further includes:
and receiving first response information generated and sent by the main system according to the change proposal request.
Optionally, the change query request is initiated by the first slave system and/or the second slave system according to timing tasks and/or traffic requirements.
In addition, in order to achieve the above object, the present invention provides an information transmission apparatus applied to a master system in an information transmission system further including a first slave system and/or a second slave system, the information transmission apparatus including:
the negotiation module is used for responding to the received change proposal request of the first slave system, executing change negotiation based on the change proposal request and obtaining a corresponding change negotiation result;
and the reply module is used for responding to the received change inquiry request of the second slave system and sending the change negotiation result to the second slave system.
In addition, in order to achieve the above object, the present invention also provides a terminal device including a memory, a processor, and an information transmission program stored on the memory and executable on the processor, the information transmission program implementing the steps of the information transmission method as described above when executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon an information transmission program which, when executed by a processor, implements the steps of the information transmission method as described above.
The information transmission method is applied to a master system in an information transmission system, the information transmission system further comprises a first slave system and/or a second slave system, and a corresponding change negotiation result is obtained by responding to a change proposal request received by the first slave system and executing change negotiation based on the change proposal request; and in response to receiving the change inquiry request of the second slave system, sending the change negotiation result to the second slave system, so that the change negotiation result corresponding to the change request initiated by a certain slave system can be synchronized to other slave systems in time, information transmission between the master system and each slave system is realized, a database is not required to be opened or a large number of API interfaces are not required to be developed, meanwhile, the requirement on computational resources is low, and the safety and convenience of linkage between software systems can be considered.
Drawings
FIG. 1 is a schematic diagram of functional modules of a terminal device to which an information transmission device of the present invention belongs;
FIG. 2 is a flowchart of an exemplary embodiment of an information transmission method according to the present invention;
FIG. 3 is a schematic diagram illustrating a specific flow of step S20 in the embodiment of FIG. 2;
FIG. 4 is a schematic diagram of a system architecture according to an embodiment of the present invention;
fig. 5 is a flowchart of another exemplary embodiment of an information transmission method according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: performing a change negotiation based on a change proposal request by responding to the received change proposal request of the first slave system to obtain a corresponding change negotiation result; and in response to receiving the change inquiry request of the second slave system, sending the change negotiation result to the second slave system, so that the change negotiation result corresponding to the change request initiated by a certain slave system can be synchronized to other slave systems in time, information transmission between the master system and each slave system is realized, a database is not required to be opened or a large number of API interfaces are not required to be developed, meanwhile, the requirement on computational resources is low, and the safety and convenience of linkage between software systems can be considered.
Because the linkage among a plurality of software systems is based on information transmission, and the open database access authority is the most direct information transmission method, the problem that the internal implementation details are exposed and the data is illegally tampered exists. Furthermore, the information transmission method of opening only specific API interfaces without opening the database is presented, and the method has the problems of more API interfaces, need to be connected one by one, develop and debug one by one and chaotic and various interface formats. The method does not need to develop API interfaces one by one because each software system only needs to interface with the API interfaces provided by the unified message queue, but the method has the problems that a built-in negotiation management and control mechanism for message content is lacked, an HTTP protocol is not supported, and more resources are consumed in the scenes of edge calculation or the Internet of things.
In order to solve the above problems, the present invention provides an information transmission method based on change negotiation. The multiple software systems in linkage can be understood as a logical supersystem, wherein one master system and the other slave systems form a star-shaped network topology structure centering on the master system. The slave systems have the lowest authority, are not communicated with each other through a network, only communicate with the master system, and can submit a change proposal to the master system and query a change negotiation result from the master system. The master system has the highest authority, as an information gathering and distributing place, can acquire all the change proposals so as to execute change negotiation (for a certain change proposal, the master system can adopt or reject, which is the meaning of negotiation), and store all the historical change negotiation results, which supports the inquiry request of the slave system.
Specifically, referring to fig. 1, fig. 1 is a schematic functional block diagram of a terminal device to which an information transmission apparatus of the present invention belongs. The information transmission device may be a device independent of the terminal device, capable of transmitting information, which may be carried on the terminal device in the form of hardware or software. The terminal equipment can be an intelligent mobile terminal with a data processing function such as a mobile phone and a tablet personal computer, and can also be a fixed terminal equipment or a server with a data processing function.
In this embodiment, the terminal device to which the information transmission apparatus belongs includes at least an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores an operating system and an information transmission program, and the information transmission device may store information such as a request for a change proposal of the first slave system, a corresponding change negotiation result obtained by performing a change negotiation based on the request for the change proposal, and a received request for a change inquiry of the second slave system in the memory 130; the output module 110 may be a display screen or the like. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein the information transmission program in the memory 130 when executed by the processor implements the steps of:
responding to the received change proposal request of the first slave system, and executing change negotiation based on the change proposal request to obtain a corresponding change negotiation result;
and transmitting the change negotiation result to the second slave system in response to receiving the change inquiry request of the second slave system.
Further, the information transmission program in the memory 130 when executed by the processor also realizes the following steps:
determining a change type according to the change proposal request, wherein the change type comprises at least one of new addition, deletion and modification;
and carrying out change negotiation according to the change type, and outputting and storing a change negotiation result corresponding to the change type, wherein the change negotiation result comprises adopting change and/or refusing change.
Further, the information transmission program in the memory 130 when executed by the processor also realizes the following steps:
generating first response information corresponding to the change proposal request;
and returning the response information to the first slave system.
Further, the information transmission program in the memory 130 when executed by the processor also realizes the following steps:
generating second response information corresponding to a change query request in response to receiving the change query request of the second slave system, wherein the change query request is initiated by the second slave system according to a timing task and/or service requirement;
and loading the change negotiation result on the second response information, and sending the second response information to the second slave system.
Further, the information transmission program in the memory 130 when executed by the processor also realizes the following steps:
and sending a change proposal request to the master system so that the master system executes change negotiation based on the change proposal request to obtain a corresponding change negotiation result, and sending the change negotiation result to the second slave system when receiving the change inquiry request of the second slave system.
Further, the information transmission program in the memory 130 when executed by the processor also realizes the following steps:
and receiving first response information generated and sent by the main system according to the change proposal request.
According to the scheme, in particular, a change negotiation is executed based on a change proposal request in response to receiving the change proposal request of the first slave system, so that a corresponding change negotiation result is obtained; and in response to receiving the change inquiry request of the second slave system, sending the change negotiation result to the second slave system, so that the change negotiation result corresponding to the change request initiated by a certain slave system can be synchronized to other slave systems in time, information transmission between the master system and each slave system is realized, a database is not required to be opened or a large number of API interfaces are not required to be developed, meanwhile, the requirement on computational resources is low, and the safety and convenience of linkage between software systems can be considered.
The method embodiment of the invention is proposed based on the above-mentioned terminal equipment architecture but not limited to the above-mentioned architecture.
The main implementation body of the method of the embodiment may be an information transmission device or a terminal device, and the embodiment is exemplified by the information transmission device.
Referring to fig. 2, fig. 2 is a flowchart of an exemplary embodiment of an information transmission method according to the present invention. The information transmission method is applied to a master system in an information transmission system, the information transmission system further comprises a first slave system and/or a second slave system, and the information transmission method comprises the following steps:
step S10, in response to receiving a change proposal request of the first slave system, executing change negotiation based on the change proposal request to obtain a corresponding change negotiation result;
the embodiment of the invention provides a super system cluster which consists of one or more than one system and is divided into a master system and a slave system, wherein the master system is only one. The number of system members is relatively fixed and is not easy to change.
Optionally, the step of performing a change negotiation based on the change proposal request to obtain a corresponding change negotiation result includes:
determining a change type according to the change proposal request, wherein the change type comprises at least one of new addition, deletion and modification;
and carrying out change negotiation according to the change type, and outputting and storing a change negotiation result corresponding to the change type.
Optionally, the change negotiation result includes accepting the change and/or rejecting the change.
Optionally, the change proposal request refers to the non-tamperable information with a signature submitted to the host system by considering other members that may affect the super system when modifying, adding, deleting, etc. the internal data of the slave system or the host system in order to realize multi-system linkage.
Optionally, the change negotiation refers to a process that after the main system receives the change proposal, a specific management and control mechanism is executed, and the process may be code automatic audit or manual audit, so as to output and store the change negotiation result.
Optionally, in response to receiving the request for a change proposal from the first slave system, the step of performing a change negotiation based on the request for a change proposal to obtain a corresponding change negotiation result further includes:
generating first response information corresponding to the change proposal request;
and returning the response information to the first slave system.
Optionally, the first slave system initiates an HTTP request to change the proposal, and the master system returns an HTTP response (first response information) indicating that the request has been received and is in process.
And step S20, in response to receiving the change inquiry request of the second slave system, sending the change negotiation result to the second slave system.
Optionally, the master system responds to receiving a change query request of the second slave system, and generates second response information corresponding to the change query request, wherein the change query request is initiated by the second slave system according to a timing task or an actual service requirement. And the master system loads the change negotiation result on the second response information and sends the second response information to the second slave system.
In this embodiment, in response to receiving a request for a change proposal from the first slave system, performing a change negotiation based on the request for a change proposal, to obtain a corresponding change negotiation result; and in response to receiving the change inquiry request of the second slave system, sending the change negotiation result to the second slave system, so that the change negotiation result corresponding to the change request initiated by a certain slave system can be synchronized to other slave systems in time, information transmission between the master system and each slave system is realized, a database is not required to be opened or a large number of API interfaces are not required to be developed, meanwhile, the requirement on computational resources is low, and the safety and convenience of linkage between software systems can be considered.
Referring to fig. 3, fig. 3 is a specific flowchart of step S20 in the embodiment of fig. 2. The present embodiment is based on the embodiment shown in fig. 2, and in the present embodiment, the step S20 includes:
step S201, generating second response information corresponding to a change query request in response to receiving the change query request of the second slave system, wherein the change query request is initiated by the second slave system according to a timing task and/or a service requirement;
step S202, loading the change negotiation result on the second response information, and sending the second response information to the second slave system.
Specifically, referring to fig. 4, fig. 4 is a schematic diagram of a system architecture in an embodiment of the present invention, as shown in fig. 4, wherein A1 is an HTTP request for initiating a change proposal from the system 2; a2, returning an HTTP response for the main system, wherein the HTTP response indicates that the request is received and is in the process of being processed; a3, executing change negotiation for the main system, and outputting and storing a change negotiation result; b1 is an HTTP request (timed task initiation, or on demand initiation) to initiate a query from system 1; b2, returning an HTTP response for the main system, wherein the HTTP response comprises a change negotiation result list; c1 is an HTTP request to initiate a query from system 4 (timed task initiation, or on demand initiation); c2 returns an HTTP response for the main system, wherein the HTTP response comprises a change negotiation result list; d1 is an HTTP request to initiate a query from system 3 (timed task initiation, or on demand initiation); d2 returns an HTTP response to the host system, including a change negotiation result list. As can be seen from fig. 4, there are three operations in fig. 4:
operation 1: initiating a change proposal (A1 in the figure) from a system;
operation 2: the main system executes change negotiation (A3 in the figure);
operation 3: the system queries the change negotiation result (B1, C1, D1 in the figure).
Alternatively, operation 2 does not involve interaction between the master and slave systems, i.e., the master system alone determines the negotiation result. The other 2 operations involve interactions between the master and slave systems.
In the embodiment of the present invention, a resource named Asset (a table named Asset) in a certain hypersystem is taken as an example for illustration.
Alternatively, the master system has a full amount of data, and each slave system has only a portion of the data that itself needs to use, and also has care of only the data that itself needs to use.
Alternatively, initiating the A1 request with curl is exemplified as follows:
Curl-X POST http:// { Main System IP }: { Port }/change
-H "Content-Type: application/json"
-H "Accept: application/json"
-d '[{"kind": "modify","spec": {"resource": "Asset","selector": [{"type": "PC"},{"ip": "172.18.1.28"}],"spec": {"name": "computer-1","desc": "This is the office computer of the R&D staff."}}}]'
The content of this change proposal is that it is desired to modify a resource whose resource type is Asset, the selection condition is that the Asset type=pc and ip= 172.18.1.28, the name of the selected Asset is modified to computer-1, and the desc is modified to This is the office computer of the R & D staff.
Alternatively, the response example of A2 is as follows: { "serialNumber": 1810}
The returned content indicates that the request is received, and the sequence number given to the change proposal by the main system is 1810 in the process, which is a monotonically increasing sequence number, and the time relationship between the front and the rear can be identified, the front sequence number is smaller, and the rear sequence number is larger.
Optionally, initiating the B1 request with curl is exemplified as follows:
Curl-X POST http:// { Main System IP }: { Port }/change
-H "Content-Type: application/json"
-H "Accept: application/json"
-d '[{"kind": "query","spec": {"resource": "Asset","selector": [{"type": "PC"}],"ifChangedSince": 1726}}]'
The content of this query is that the resource type is Asset, the selection condition is that the type=pc of the Asset, and only the sequence number 1726 and the subsequent change negotiation results are accepted (only accepted by default). Note in particular that type=pc of the selection condition indicates that whenever a change involves type=pc, return, for example, a certain Asset resource of type=pc is added or deleted, or a field value of Asset resource of certain type=pc is modified, or the type of certain Asset resource is changed from PC to other value, or from other value to PC.
Alternatively, the response of B2 is exemplified as follows:
[{"kind": "modify","serialNumber": 1810,"spec": {"resource": "Asset","selector": [{"type": "PC"}, {"ip": "172.18.1.28"}],"spec": {"name": "computer-1","desc": "This is the office computer of the R&D staff."}}}]
the returned content represents 1 qualified accepted change negotiation result.
Initiating a C1 request with a curl is exemplified as follows:
Curl-X POST http:// { Main System IP }: { Port }/change
-H "Content-Type: application/json"
-H "Accept: application/json"
-d '[{"kind": "query","spec": {"resource": "Asset","selector": [{"type": "Router"}],"ifChangedSince": 1726,"includeRejected": true}}]'
The content of this query is that the resource type is Asset, the selection condition is that the Asset type=router, and only the sequence number 1726 and all subsequent change negotiation results (also including rejected by setting include reject=true) are queried. Note in particular that type=router of the selection condition indicates that whenever a change involves type=router, return, for example, a certain Asset resource of type=router is added or deleted, or a field value of Asset resource of certain type=router is modified, or the type of a certain Asset resource is changed from Router to other value, or from other value to Router.
Optionally, if the response content of B2 is null, it indicates that 0 qualified change negotiation results are queried.
According to the scheme, the second response information corresponding to the change query request is generated in response to receiving the change query request of the second slave system, wherein the change query request is initiated by the second slave system according to the timing task and/or the service requirement; the change negotiation result is carried on the second response information, and the second response information is sent to the second slave system, so that the change negotiation result corresponding to a change request initiated by a certain slave system can be synchronized to other slave systems in time, information transmission between the master system and each slave system is realized, a database is not required to be opened or a large number of API interfaces are not required to be developed, meanwhile, the requirement on computational resources is low, and the safety and convenience of linkage between software systems can be considered.
Referring to fig. 5, fig. 5 is a flowchart illustrating another exemplary embodiment of an information transmission method according to the present invention. The information transmission method is applied to a first slave system in an information transmission system, the information transmission system further comprises a master system and/or a second slave system, and the information transmission method comprises the following steps:
and step A10, a change proposal request is sent to the master system so that the master system executes change negotiation based on the change proposal request to obtain a corresponding change negotiation result, and the change negotiation result is sent to the second slave system when the change inquiry request of the second slave system is received.
Optionally, the step of sending a change proposal request to the host system further includes:
and receiving first response information generated and sent by the main system according to the change proposal request.
Optionally, the change query request is initiated by the first slave system and/or the second slave system according to timing tasks and/or traffic requirements.
The embodiment of the invention provides a super system cluster which consists of one or more than one system and is divided into a master system and a slave system, wherein the master system is only one. The number of system members is relatively fixed and is not easy to change.
Optionally, the change negotiation result includes accepting the change and/or rejecting the change.
Optionally, the change proposal request refers to the non-tamperable information with a signature submitted to the host system by considering other members that may affect the super system when modifying, adding, deleting, etc. the internal data of the slave system or the host system in order to realize multi-system linkage.
Optionally, the change negotiation refers to a process that after the main system receives the change proposal, a specific management and control mechanism is executed, and the process may be code automatic audit or manual audit, so as to output and store the change negotiation result.
Optionally, the first slave system initiates an HTTP request to change the proposal, and the master system returns an HTTP response (first response information) indicating that the request has been received and is in process.
Optionally, a star topology is arranged between the master system and the slave systems, and networks between the slave systems are isolated from each other and only communicate with the master system, so that network configuration and maintenance cost is reduced. In addition, there are two retry mechanisms for a change negotiation request initiated from the system: the first is a fast and immediate retry (e.g., a fast retry 2 times at regular intervals, i.e., give up, retry first after 1 second, retry second after 2 seconds), which aims at the fast retry to cope with network flashovers, still fail after fast retry, add a change negotiation request to the local cache list, and return the result immediately, prompting the user that it is in process. The second is a slow timing retry (e.g., an exponential retry mechanism, retry first after 2 minutes, retry second after 4 minutes, retry third after 8 minutes), which is aimed at slow timing retry until successful, to cope with long-term network failure, and after successful retry, delete the change negotiation request from the local cache list. Based on the two retry mechanisms, the network flash and long-term network faults can be handled, the weak network environment in the scene of the Internet of things is adapted, and the network flash and long-term network faults can be used for communication between the Internet of things equipment in the low-bandwidth and unstable network environment. After the network is restored, the master-slave system gradually and automatically synchronizes until the local cache list of all the slave systems is emptied, the whole super-system cluster achieves write synchronization, and the whole super-system cluster achieves read synchronization along with the gradual flattening of the master node by continuously inquiring the history change negotiation result of each slave system. The information synchronization mechanism with weak consistency can normally operate even if the network is unstable, is disconnected frequently and even is offline.
According to the scheme, the change proposal request is sent to the master system, so that the master system executes change negotiation based on the change proposal request to obtain a corresponding change negotiation result, and when the change inquiry request of the second slave system is received, the change negotiation result is sent to the second slave system, so that the change negotiation result corresponding to the change request initiated by a certain slave system can be synchronized to other slave systems in time, information transmission between the master system and each slave system is realized, a database is not required to be opened or a large number of API interfaces are not required to be developed, meanwhile, the requirement on calculation resources is low, and the linkage safety and convenience between software systems can be considered.
In addition, an embodiment of the present invention further provides an information transmission apparatus, where the information transmission apparatus is applied to a master system in an information transmission system, the information transmission system further includes a first slave system and/or a second slave system, and the information transmission apparatus includes:
the negotiation module is used for responding to the received change proposal request of the first slave system, executing change negotiation based on the change proposal request and obtaining a corresponding change negotiation result;
and the reply module is used for responding to the received change inquiry request of the second slave system and sending the change negotiation result to the second slave system.
Optionally, the information transmission method provided in the embodiment of the present invention may perform information transmission through the following interfaces:
the local cache list query interface provided by the slave system is a reverse query interface (different from the interface provided by the master system), and after the network is recovered, the master system reversely queries the local cache list of the slave system, and all the non-submitted successful change proposal requests are obtained at one time;
the change negotiation result notification callback interface provided by the slave system is a reverse notification interface (different from the interface provided by the master system), and the master system reversely notifies the slave system of a new change negotiation result;
in this embodiment, by proposing an information transmission method based on change negotiation, a plurality of linked software systems are regarded as a logical supersystem, wherein one master system is provided, and the other systems are slave systems, so as to form a star network topology structure centering on the master system. The slave systems have the lowest authority, are not communicated with each other through a network, only communicate with the master system, and can submit a change proposal to the master system and query a change negotiation result from the master system. The master system has the highest authority, as an information gathering and distributing place, can acquire all the change proposals so as to execute the change negotiation, and can adopt or reject a certain change proposal, which is the meaning of negotiation, and store all the historical change negotiation results, which supports the inquiry request of the slave system.
The principle and implementation process of information transmission are realized in this embodiment, please refer to the above embodiments, and the description thereof is omitted here.
In addition, the embodiment of the invention also provides a terminal device, which comprises a memory, a processor and an information transmission program stored on the memory and capable of running on the processor, wherein the information transmission program realizes the steps of the information transmission method when being executed by the processor.
Because the information transmission program is executed by the processor and adopts all the technical schemes of all the embodiments, the information transmission program at least has all the beneficial effects brought by all the technical schemes of all the embodiments and is not described in detail herein.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores an information transmission program, and the information transmission program realizes the steps of the information transmission method when being executed by a processor.
Because the information transmission program is executed by the processor and adopts all the technical schemes of all the embodiments, the information transmission program at least has all the beneficial effects brought by all the technical schemes of all the embodiments and is not described in detail herein.
Compared with the prior art, the information transmission method, the device, the terminal equipment and the storage medium provided by the embodiment of the invention are applied to a master system in an information transmission system, the information transmission system further comprises a first slave system and/or a second slave system, and a corresponding change negotiation result is obtained by responding to a change proposal request of the first slave system and executing change negotiation based on the change proposal request; and in response to receiving the change inquiry request of the second slave system, sending the change negotiation result to the second slave system, so that the change negotiation result corresponding to the change request initiated by a certain slave system can be synchronized to other slave systems in time, information transmission between the master system and each slave system is realized, a database is not required to be opened or a large number of API interfaces are not required to be developed, meanwhile, the requirement on computational resources is low, and the safety and convenience of linkage between software systems can be considered.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. An information transmission method, characterized in that the information transmission method is applied to a master system in an information transmission system, the information transmission system further comprising a first slave system and/or a second slave system, the information transmission method comprising the steps of:
responding to the received change proposal request of the first slave system, and executing change negotiation based on the change proposal request to obtain a corresponding change negotiation result;
and transmitting the change negotiation result to the second slave system in response to receiving the change inquiry request of the second slave system.
2. The information transmission method of claim 1, wherein the step of performing a change negotiation based on the change proposal request to obtain a corresponding change negotiation result comprises:
determining a change type according to the change proposal request, wherein the change type comprises at least one of new addition, deletion and modification;
and carrying out change negotiation according to the change type, and outputting and storing a change negotiation result corresponding to the change type, wherein the change negotiation result comprises adopting change and/or refusing change.
3. The information transmission method according to claim 1, wherein the step of performing a change negotiation based on the change proposal request in response to receiving the change proposal request of the first slave system, and obtaining a corresponding change negotiation result further comprises:
generating first response information corresponding to the change proposal request;
and returning the response information to the first slave system.
4. The information transmission method according to claim 1, wherein the step of transmitting the change negotiation result to the second slave system in response to receiving the change inquiry request of the second slave system includes:
generating second response information corresponding to a change query request in response to receiving the change query request of the second slave system, wherein the change query request is initiated by the second slave system according to a timing task and/or service requirement;
and loading the change negotiation result on the second response information, and sending the second response information to the second slave system.
5. An information transmission method, characterized in that the information transmission method is applied to a first slave system in an information transmission system, the information transmission system further comprising a master system and/or a second slave system, the information transmission method comprising the steps of:
and sending a change proposal request to the master system so that the master system executes change negotiation based on the change proposal request to obtain a corresponding change negotiation result, and sending the change negotiation result to the second slave system when receiving the change inquiry request of the second slave system.
6. The information transmission method according to claim 5, wherein the step of sending a change proposal request to the host system further comprises, after:
and receiving first response information generated and sent by the main system according to the change proposal request.
7. The information transmission method according to claim 5, wherein the change query request is initiated by the first slave system and/or the second slave system according to a timing task and/or a traffic demand.
8. An information transmission apparatus, characterized in that the information transmission apparatus is applied to a master system in an information transmission system, the information transmission system further including a first slave system and/or a second slave system, the information transmission apparatus comprising:
the negotiation module is used for responding to the received change proposal request of the first slave system, executing change negotiation based on the change proposal request and obtaining a corresponding change negotiation result;
and the reply module is used for responding to the received change inquiry request of the second slave system and sending the change negotiation result to the second slave system.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and an information transmission program stored on the memory and executable on the processor, which information transmission program, when executed by the processor, realizes the steps of the information transmission method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an information transmission program which, when executed by a processor, implements the steps of the information transmission method according to any one of claims 1 to 7.
CN202311774470.9A 2023-12-22 2023-12-22 Information transmission method, device, terminal equipment and storage medium Active CN117478504B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311774470.9A CN117478504B (en) 2023-12-22 2023-12-22 Information transmission method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311774470.9A CN117478504B (en) 2023-12-22 2023-12-22 Information transmission method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117478504A true CN117478504A (en) 2024-01-30
CN117478504B CN117478504B (en) 2024-03-29

Family

ID=89623835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311774470.9A Active CN117478504B (en) 2023-12-22 2023-12-22 Information transmission method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117478504B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080288578A1 (en) * 2004-04-01 2008-11-20 Nokia Corporation Method, a Device, and a System for Enabling Data Synchronization Between Multiple Devices
CN102056260A (en) * 2009-10-28 2011-05-11 中兴通讯股份有限公司 Mobile parameter enquiry and negotiation method and system
CN102546779A (en) * 2011-12-27 2012-07-04 Tcl集团股份有限公司 Synchronized method and device of application data across devices
CN104580454A (en) * 2014-12-31 2015-04-29 乐视网信息技术(北京)股份有限公司 Data synchronizing method, device and system
CN105009513A (en) * 2013-12-03 2015-10-28 华为技术有限公司 Method for updating node device in distributed system, node device and distributed system
CN105117423A (en) * 2015-07-31 2015-12-02 中冶南方工程技术有限公司 Independent choice response method of database modification on the basis of intelligent agent
CN110635905A (en) * 2019-09-30 2019-12-31 重庆小雨点小额贷款有限公司 Key management method, related equipment and computer readable storage medium
CN110751480A (en) * 2019-09-24 2020-02-04 中国银联股份有限公司 Information query method, device, equipment and computer readable storage medium
CN110912980A (en) * 2019-11-19 2020-03-24 北京三快在线科技有限公司 Order state synchronization method, system and storage medium
CN114338604A (en) * 2021-12-31 2022-04-12 北京奇艺世纪科技有限公司 DNS configuration updating method and system
CN115516829A (en) * 2020-06-02 2022-12-23 思科技术公司 Provisioning configuration changes with deployment freeze options
CN115550003A (en) * 2022-09-20 2022-12-30 中国建设银行股份有限公司 Data transmission method, device and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080288578A1 (en) * 2004-04-01 2008-11-20 Nokia Corporation Method, a Device, and a System for Enabling Data Synchronization Between Multiple Devices
CN102056260A (en) * 2009-10-28 2011-05-11 中兴通讯股份有限公司 Mobile parameter enquiry and negotiation method and system
CN102546779A (en) * 2011-12-27 2012-07-04 Tcl集团股份有限公司 Synchronized method and device of application data across devices
CN105009513A (en) * 2013-12-03 2015-10-28 华为技术有限公司 Method for updating node device in distributed system, node device and distributed system
CN104580454A (en) * 2014-12-31 2015-04-29 乐视网信息技术(北京)股份有限公司 Data synchronizing method, device and system
CN105117423A (en) * 2015-07-31 2015-12-02 中冶南方工程技术有限公司 Independent choice response method of database modification on the basis of intelligent agent
CN110751480A (en) * 2019-09-24 2020-02-04 中国银联股份有限公司 Information query method, device, equipment and computer readable storage medium
CN110635905A (en) * 2019-09-30 2019-12-31 重庆小雨点小额贷款有限公司 Key management method, related equipment and computer readable storage medium
CN110912980A (en) * 2019-11-19 2020-03-24 北京三快在线科技有限公司 Order state synchronization method, system and storage medium
CN115516829A (en) * 2020-06-02 2022-12-23 思科技术公司 Provisioning configuration changes with deployment freeze options
CN114338604A (en) * 2021-12-31 2022-04-12 北京奇艺世纪科技有限公司 DNS configuration updating method and system
CN115550003A (en) * 2022-09-20 2022-12-30 中国建设银行股份有限公司 Data transmission method, device and system

Also Published As

Publication number Publication date
CN117478504B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
CN108848119B (en) Cross-block-chain interaction method, device, system and electronic equipment
CN108415784B (en) Cross-block-chain interaction method, device, system and electronic equipment
KR101863398B1 (en) Method and system for synchronization mechanism on multi-server reservation system
US8255359B2 (en) System and methods for asynchronous synchronization
CN110990182A (en) Transaction processing method, device, equipment and storage medium
US20050210081A1 (en) Data synchronization method
CN114363407B (en) Message service method and device, readable storage medium and electronic equipment
WO2021088641A1 (en) Data transmission method, data processing method, data reception method and device, and storage medium
CN108509523A (en) Structuring processing method, equipment and the readable storage medium storing program for executing of block chain data
EP4213038A1 (en) Data processing method and apparatus based on distributed storage, device, and medium
JP2023520057A (en) METHOD, APPARATUS, ELECTRONIC DEVICE, SYSTEM AND STORAGE MEDIUM FOR MICROSERVICE COMPOSITION
CN114448983A (en) ZooKeeper-based distributed data exchange method
CN113127564B (en) Parameter synchronization method and device
CN111460038A (en) Quasi-real-time data synchronization method and device
CN109614271A (en) Control method, device, equipment and the storage medium of multiple company-data consistency
WO2023186154A1 (en) Data transmission system and method
CN112632093A (en) Work order processing method, device, system, storage medium and program product
CN117478504B (en) Information transmission method, device, terminal equipment and storage medium
CN112596801A (en) Transaction processing method, device, equipment, storage medium and database
CN111294383B (en) Internet of things service management system
CN110162415B (en) Method, server, device and storage medium for processing data request
CN113051044A (en) Distributed transaction processing method and device based on non-service architecture
CN112800066A (en) Index management method, related device and storage medium
US20140280347A1 (en) Managing Digital Files with Shared Locks
US8150944B2 (en) Electronic apparatus with server device for managing setting data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant