CN114025005B - Data communication method, system, electronic equipment and storage medium - Google Patents

Data communication method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN114025005B
CN114025005B CN202111166381.7A CN202111166381A CN114025005B CN 114025005 B CN114025005 B CN 114025005B CN 202111166381 A CN202111166381 A CN 202111166381A CN 114025005 B CN114025005 B CN 114025005B
Authority
CN
China
Prior art keywords
data
topic
request
application program
operation request
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.)
Active
Application number
CN202111166381.7A
Other languages
Chinese (zh)
Other versions
CN114025005A (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.)
Beijing Senxinwei Computer Technology Co ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center 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 Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202111166381.7A priority Critical patent/CN114025005B/en
Publication of CN114025005A publication Critical patent/CN114025005A/en
Application granted granted Critical
Publication of CN114025005B publication Critical patent/CN114025005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1042Peer-to-peer [P2P] networks using topology management mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a data communication method, which comprises the following steps of; starting a router service in target FC node equipment, and creating a monitoring service by using the router service; monitoring other FC node devices in the FC network through the monitoring service, and establishing an FC network topology structure according to a monitoring result; if an operation request of a target application program is received, processing the operation request; the target application program runs on the target FC node equipment; and generating communication data according to the processing result of the operation request, and broadcasting the communication data to other FC node devices by utilizing the router service according to the FC network topology structure. The method and the device can improve data transmission efficiency between the application programs. The application also discloses a data communication system, electronic equipment and a storage medium, which have the beneficial effects.

Description

Data communication method, system, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of network communication technologies, and in particular, to a data communication method, a system, an electronic device, and a storage medium.
Background
The DDS (Data Distribution Service ) is a standard technology for describing data content/interaction behavior and service quality requirements in a network environment, and is widely applied to the fields of national defense, civil aviation, industrial control and the like at present, and becomes a standard solution for data publishing/subscribing in a distributed real-time system.
In the related art, a message queue is generally used to transmit messages between application programs APP using a data distribution service, but the above-described transmission of data using a message queue is inefficient.
Therefore, how to improve the data transmission efficiency between the application programs is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a data communication method, a system, electronic equipment and a storage medium, which can improve the data transmission efficiency between application programs.
In order to solve the above technical problems, the present application provides a data communication method, which includes:
starting a router service in target FC node equipment, and creating a monitoring service by using the router service;
monitoring other FC node devices in the FC network through the monitoring service, and establishing an FC network topology structure according to a monitoring result;
If an operation request of a target application program is received, processing the operation request; the target application program runs on the target FC node equipment;
and generating communication data according to the processing result of the operation request, and broadcasting the communication data to other FC node devices by utilizing the router service according to the FC network topology structure.
Optionally, if an operation request of the target application program is received, processing the operation request includes:
if a login operation request of a target application program is received, determining a user to be logged in corresponding to the login operation request;
judging whether the user to be logged in is logged in on an application program running in FC node equipment of the FC network;
if yes, rejecting the login operation request, and returning prompt information of login failure;
if not, allowing the login operation request;
correspondingly, generating communication data according to the processing result of the operation request, and broadcasting the communication data to the other FC node devices according to the FC network topology structure by utilizing the router service, wherein the method comprises the following steps:
and if the processing result of the operation request is that the user to be logged in is allowed to log in the target application program, setting the information logged in by the user to be logged in on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Optionally, if an operation request of the target application program is received, processing the operation request includes:
if a theme release request of a target application program is received, determining a theme to be released corresponding to the theme release request;
judging whether the theme to be issued is already issued on an application program running in FC node equipment of the FC network;
if yes, rejecting the topic release request, and returning prompt information of topic release failure;
if not, allowing the subject to issue a request;
correspondingly, generating communication data according to the processing result of the operation request, and broadcasting the communication data to the other FC node devices according to the FC network topology structure by utilizing the router service, wherein the method comprises the following steps:
and if the processing result of the operation request is that the to-be-issued subject is allowed to be issued on the target application program, setting the information issued by the to-be-issued subject on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Optionally, if an operation request of the target application program is received, processing the operation request includes:
If a topic subscription request of a target application program is received, determining a topic to be subscribed corresponding to the topic subscription request;
judging whether the topic to be subscribed is subscribed on an application program running in FC node equipment of the FC network;
if yes, rejecting the topic subscription request, and returning prompt information of topic subscription failure;
if not, allowing the topic subscription request;
correspondingly, generating communication data according to the processing result of the operation request, and broadcasting the communication data to the other FC node devices according to the FC network topology structure by utilizing the router service, wherein the method comprises the following steps:
and if the processing result of the operation request is that the topic to be subscribed is allowed to be subscribed on the target application program, setting the information subscribed by the topic to be subscribed on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Optionally, if an operation request of the target application program is received, processing the operation request includes:
if a subject data release request of a target application program is received, determining a released subject corresponding to the subject data release request;
Judging whether the published subject has been published on an application running in an FC node device of the FC network and has been subscribed to by the target application;
if yes, rejecting the topic data release request, and returning prompt information of topic data release failure;
if not, allowing the subject data to issue a request;
correspondingly, generating communication data according to the processing result of the operation request, and broadcasting the communication data to the other FC node devices according to the FC network topology structure by utilizing the router service, wherein the method comprises the following steps:
and if the processing result of the operation request is that the topic data release request is allowed, setting target topic data corresponding to the topic data release request as communication data, and broadcasting the communication data to other FC node devices subscribing the released topic according to the FC network topological structure.
Optionally, broadcasting the communication data to the other FC node devices according to the FC network topology by using the router service includes:
and broadcasting the communication data to the other FC node devices by using the router service in a character string mode according to the FC network topology structure.
Optionally, after starting the router service in the target FC node device, the method further includes:
starting the target application program, and registering a program ID and a session port of the target application program in the router service;
broadcasting the program ID and the session port of the target application program to the other FC node devices.
The application also provides a data communication system, which comprises:
the service creation module is used for starting a router service in the target FC node equipment and creating a monitoring service by using the router service;
the monitoring module is used for monitoring other FC node devices in the FC network through the monitoring service and establishing an FC network topology structure according to a monitoring result;
the request processing module is used for processing the operation request of the target application program if the operation request is received; the target application program runs on the target FC node equipment;
and the data communication module is used for generating communication data according to the processing result of the operation request and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topology structure.
The present application also provides a storage medium having stored thereon a computer program which, when executed, performs the steps of the data communication method described above.
The application also provides electronic equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps executed by the data communication method when calling the computer program in the memory.
The application provides a data communication method, which comprises the following steps: starting a router service in target FC node equipment, and creating a monitoring service by using the router service; monitoring other FC node devices in the FC network through the monitoring service, and establishing an FC network topology structure according to a monitoring result; if an operation request of a target application program is received, processing the operation request; the target application program runs on the target FC node equipment; and generating communication data according to the processing result of the operation request, and broadcasting the communication data to other FC node devices by utilizing the router service according to the FC network topology structure.
The method and the device for monitoring the FC network topology structure start the router service in the target FC node device, establish the monitoring service by using the router service, and monitor other FC node devices in the FC network by using the monitoring service to obtain the FC network topology structure. After receiving an operation request of a target application program, generating communication data according to a processing result of the operation request, and broadcasting the communication data to other FC node devices by a router service according to the FC network topology structure. The application program data communication scheme based on the FC network realizes topology management of a communication architecture through router service and can improve data transmission efficiency between application programs. The application also provides a data communication system, an electronic device and a storage medium, which have the beneficial effects and are not described herein.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a data communication method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a communication architecture based on an FC network according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating a process of a user login request according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a user log-out request processing procedure according to an embodiment of the present application;
FIG. 5 is a flowchart of a process for issuing a request for a topic according to an embodiment of the present application;
FIG. 6 is a flowchart of a process for canceling a topic issue request according to an embodiment of the present application;
FIG. 7 is a flow chart illustrating a process of a topic subscription request provided by an embodiment of the present application;
FIG. 8 is a flowchart of a process for canceling a topic subscription request provided by an embodiment of the present application;
FIG. 9 is a flowchart of a process for issuing a request for topic data according to an embodiment of the present application;
Fig. 10 is a flowchart of a process for receiving a request for theme data according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, fig. 1 is a flowchart of a data communication method according to an embodiment of the present application.
The specific steps may include:
s101: starting a router service in target FC node equipment, and creating a monitoring service by using the router service;
the method and the system can be applied to target FC node equipment in an FC network, wherein the FC network also comprises other node equipment, and application programs are run on the target FC node equipment and the other node equipment. The FC network is a new high-speed network which is parallel to the traditional TCP/IP network, and has own address allocation and network system. Referring to fig. 2, fig. 2 is a schematic diagram of a communication architecture based on an FC network provided in the embodiments of the present application, in fig. 2 dev_ A, DEV _ B, DEV _c is an FC node device in the FC network, and each node device is running a plurality of application programs APP, a routing service router, an operating system OS, and a driver FC driver, and each FC node device is connected to an FC switch through an FC port, where P1, P2, and P3 … … P13 represent the FC port. As shown in fig. 2, this embodiment proposes an architecture based on the FC (FC-AE-ASM protocol) network and communication between different APPs, to solve the problem that different APP developers want to exchange data with each other. By the scheme of the invention, the development period of an application developer can be obviously shortened. The configuration function in the architecture mainly completes the setting of key parameters of a protocol, such as the version of software, authors, node addresses in an FC network, port ids, published topic ids, subscribed topic ids, execution strategies corresponding to topics and the like. The service provided by the software corresponding to the architecture mainly comprises the following two aspects: (1) The router root service is provided, and the main function is to monitor the states (up/down, and error codes) of all hardware nodes of the FC network, monitor the states (up/down, subscribe/publish, and forward data) of the APP in the current device. (2) The client lib is provided, and the main function is to provide a set of standard API interfaces, and a user can communicate with other applications by using the API interfaces.
Before the step, a router service can be set in the self-starting script of each FC node device as the self-starting service, and after the router service in each FC node device is started, a corresponding monitoring service is created according to the configuration information of the config file.
S102: monitoring other FC node devices in the FC network through the monitoring service, and establishing an FC network topology structure according to a monitoring result;
in this embodiment, data monitoring and/or status monitoring may be performed on other FC node devices in the FC network by using a monitoring service, so as to complete discovery work of each node in the FC network, and implement establishment of an FC network topology structure.
Further, after the router service is started, the FC node device may start an application APP of the user, where the application APP registers an ID with the router and applies to create a session port session, and the router service in each device node broadcasts the ID of the application APP and session port session information to other device nodes in the FC network, thereby implementing sharing of APP information. Specifically, after the router service in the target FC node device is started, a target application program of the target FC node device may be started, a program ID and a session port of the target application program may be registered in the router service, and the program ID and the session port of the target application program may be broadcast to the other FC node devices. The above operation may also be performed by other FC node devices in the FC network, and the program ID and the session port of the application running on the FC node device may be broadcasted, so that the FC node devices in the FC network all have the program ID and the session port of the application of the FC node device.
S103: if an operation request of a target application program is received, processing the operation request;
the target application program runs on the target FC node device, and the operation request of the target application program may include any one or a combination of any of a Login operation (logic) request, a log-out operation (logo) request, a topic publication (Pub) request, a cancel topic publication (hensub) request, a topic subscription (Sub) request, a cancel topic subscription (un) request, a topic data publication (Send) request, and a topic data reception (Recv) request. The target FC node device may process the operation request of the target application according to information shared by all FC node devices in the FC network. The topic data publishing operation Send can only Send and publish topic data, and if no topic is published, the data cannot be sent. The topic data receiving operation Recv can only receive subscribed topic data, and topic data without subscription cannot be received.
S104: and generating communication data according to the processing result of the operation request, and broadcasting the communication data to other FC node devices by utilizing the router service according to the FC network topology structure.
After the operation request is processed, a corresponding processing result can be obtained, and camping communication data is generated based on the processing result. For example, after the login operation is allowed, the corresponding relationship between the login user name and the target application program can be used as communication data. According to the method and the device, the communication data can be broadcast to the other FC node devices according to the FC network topology structure, so that all the FC node devices in the FC network can store the processing results, and the application programs running on different FC power saving devices can share information. Specifically, the embodiment may broadcast the communication data to the other FC node devices according to the FC network topology by using the router service in a string form.
The embodiment starts a router service in the target FC node device, and creates a monitoring service by using the router service, wherein the target FC node device can monitor other FC node devices in the FC network by using the monitoring service to obtain an FC network topology structure. After receiving an operation request of a target application program, generating communication data according to a processing result of the operation request, and broadcasting the communication data to other FC node devices by a router service according to the FC network topology structure. The embodiment provides an application program data communication scheme based on an FC network, which realizes topology management of a communication architecture through router service and can improve data transmission efficiency between application programs.
Several schemes for processing the operation request of the target application program and synchronizing the processing result of the operation request are provided below:
(1) Login operation request
If a login operation request of a target application program is received, determining a user to be logged in corresponding to the login operation request; judging whether the user to be logged in is logged in on an application program running in FC node equipment of the FC network; if yes, rejecting the login operation request, and returning prompt information of login failure; and if not, allowing the login operation request. By the method, the same user can be prevented from repeatedly logging in, and only users which are not logged in on the application programs running in all FC node devices of the FC network can log in on the target application program.
Further, if the processing result of the operation request is that the user to be logged in is refused to log in on the target application program, the communication data of the operation result may not be broadcasted. And if the processing result of the operation request is that the user to be logged in is allowed to log in the target application program, setting the information logged in by the user to be logged in on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Referring to fig. 3, fig. 3 is a flowchart of a processing of a user login request provided by an embodiment of the present application, where in fig. 3, a recv_app_msg interface is used to receive a user login request sent by an application program, an fc_send_msg interface is used to transmit information to each node in an Fc network, and a recv_fc_msg interface is used to receive information transmitted by each node in the Fc network, and return represents a rejection request. The procedure for the application program to realize the login operation logic is as follows: after the router service receives the information message (such as a user name) corresponding to the user login request, local security check is performed to determine whether the same user exists, and if the router service checks that the user with the same name exists, the user login request of the application program returns failure. And if the router service does not check that the user with the same name exists, allowing the user to log in the request, adding information logged in by the user on the target application program to an application program Tree APP Tree, and broadcasting information logged in the application program by the user to FC equipment nodes marked in a config file.
(2) Logout operation request
If a logout operation request of a target application program is received, determining a user to be logged out corresponding to the logout operation request; judging whether the user to be logged out is logged in on an application program running in FC node equipment of the FC network; if not, rejecting the log-out operation request, and returning prompt information of log-out failure; and if yes, allowing the log-out operation request.
Further, if the processing result of the operation request is that the user to be logged out is refused to log out on the target application program, the communication data of the operation result may not be broadcasted. And if the processing result of the operation request is that the user to be logged out is allowed to log out on the target application program, setting the information logged out by the user to be logged out on the target application program as the communication data, and broadcasting the communication data to the other FC node devices according to the FC network topological structure by utilizing the router service.
Referring to fig. 4, fig. 4 is a flowchart of a user logout request processing provided in an embodiment of the present application, where an application implements logout operation logo, a router receives the message and performs local security check to check whether the user exists, if the user does not exist, return failure, and if the user exists, the router service deletes user related information from an APP Tree.
(3) Topic issue request
If a theme release request of a target application program is received, determining a theme to be released corresponding to the theme release request; judging whether the theme to be issued is already issued on an application program running in FC node equipment of the FC network; if yes, rejecting the topic release request, and returning prompt information of topic release failure; and if not, allowing the subject to issue a request. By the method, repeated release of the same theme can be avoided, and only the theme which is not released on the application programs running in all FC node devices of the FC network can be released on the target application program.
Further, if the processing result of the operation request is that the to-be-issued subject is allowed to be issued on the target application program, setting information issued by the to-be-issued subject on the target application program as the communication data, and broadcasting the communication data to the other FC node devices according to the FC network topological structure by utilizing the router service.
Referring to fig. 5, fig. 5 is a flowchart of a process of a topic issuing request provided in an embodiment of the present application, where Add in fig. 5 represents adding a new topic into a topic Tree Pub Tree, an application implements a topic issuing operation Pub, a router receives the message and performs a local security check to check whether a topic identifier topic id of the topic issuing operation Pub exists, and if so, the topic issuing operation Pub fails; if the topic identification topic id does not exist, the topic issuing operation pub succeeds, and the router service broadcasts the topic identification topic id of the topic issuing operation pub to all FC device nodes configured by config.
(4) Canceling topic issue requests
If a theme canceling release request of a target application program is received, determining a theme to be canceled corresponding to the theme canceling release request; judging whether the theme to be canceled is already issued on an application program running in FC node equipment of the FC network; if not, rejecting the request for canceling the topic release, and returning prompt information of failure in canceling the topic release; and if yes, allowing the cancellation subject to issue a request.
Further, if the processing result of the operation request is that the to-be-cancelled theme is allowed to cancel release on the target application program, setting information that the to-be-released theme is cancelled from release on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Referring to fig. 6, fig. 6 is a flowchart of a process of canceling a theme release request provided in an embodiment of the present application, where Del in fig. 6 indicates that a theme existing in a theme Tree Pub Tree is deleted, an application implements canceling the theme release operation unpub, and a router service receives the message and performs a local security check to check whether a theme id of the canceling theme release operation unpub exists, if so, it is determined that the canceling theme release operation unpub fails, if not, it is determined that the canceling theme release operation unpub succeeds, and the router service broadcasts the theme id of the canceling theme release operation unpub to all FC device nodes configured by config.
(5) Topic subscription request
If a topic subscription request of a target application program is received, determining a topic to be subscribed corresponding to the topic subscription request; judging whether the topic to be subscribed is subscribed on an application program running in FC node equipment of the FC network; if yes, rejecting the topic subscription request, and returning prompt information of topic subscription failure; and if not, allowing the topic to subscribe to the request. By the method, repeated subscription of the same theme can be avoided, and only the theme published on the application programs running in all FC node devices of the FC network can be subscribed on the target application program.
And if the processing result of the operation request is that the topic to be subscribed is allowed to be subscribed on the target application program, setting the information subscribed by the topic to be subscribed on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Referring to fig. 7, fig. 7 is a flowchart of a process of a topic subscription request provided in an embodiment of the present application, where add in fig. 7 represents adding a topic to be subscribed to a topic subscription Tree Sub Tree, an application APP implements a topic subscription operation Sub, a router service receives the message and performs a local security check, checks whether a topic representation topic id of the topic subscription operation Sub exists, records a topic of the topic subscription operation Sub if not exists, and if so, the topic subscription succeeds.
(6) Canceling topic subscription requests
If a topic subscription canceling request of a target application program is received, determining a topic to be subscribed corresponding to the topic subscription canceling request; judging whether the topic to be subscribed is subscribed on an application program running in FC node equipment of the FC network; if not, rejecting the request for canceling the topic subscription, and returning prompt information of failure in canceling the topic subscription; and if yes, allowing the topic subscription cancellation request.
And if the processing result of the operation request is that the topic to be unsubscribed is allowed to unsubscribe from the target application program, setting the information of unsubscribing from the topic to be unsubscribed from the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Referring to fig. 8, fig. 8 is a flowchart of a process for canceling a topic subscription request provided in an embodiment of the present application, where un in fig. 8 indicates that a topic to be subscribed is deleted from a topic Tree Pub Tree, and Del indicates that a topic to be subscribed is deleted from a topic subscription Tree Sub Tree. The application program realizes the topic subscription canceling operation un-sub, the router service receives the message and performs local security check to check whether the topic identification topic id of the topic subscription canceling operation un-sub exists, if not, the topic subscription canceling operation un-sub is judged to fail, and if so, the topic subscription canceling operation un-sub is judged to be successful.
(7) Topic data issue request
If a subject data release request of a target application program is received, determining a released subject corresponding to the subject data release request; judging whether the published subject has been published on an application running in an FC node device of the FC network and has been subscribed to by the target application; if yes, rejecting the topic data release request, and returning prompt information of topic data release failure; and if not, allowing the subject data to issue a request. By the method, repeated release of the same subject data can be avoided, and only the subject released on the application programs running in all FC node devices of the FC network can release corresponding subject data on the target application program.
And if the processing result of the operation request is that the topic data release request is allowed, setting target topic data corresponding to the topic data release request as communication data, and broadcasting the communication data to other FC node devices subscribing the released topic according to the FC network topological structure.
Referring to fig. 9, fig. 9 is a flowchart of a process of publishing a topic data request provided in an embodiment of the present application, where "checking" in fig. 9 indicates whether to query from a topic Tree Pub Tree whether to publish a corresponding topic, and further indicates whether to check from a topic subscription table appSubList of an application program whether to subscribe to the corresponding topic. The application program APP realizes a topic data issuing operation send, the router service receives the message and performs local security check to check whether a topic identification topic id of the topic exists, if not, the current topic data issuing operation send is judged to be failed, if so, the current topic data issuing operation send is judged to be successful, and the router sends data to corresponding equipment according to the appsublist of the topic tree pub.
(8) Topic data reception request
If a theme data receiving request of a target application program is received, determining a published theme corresponding to the theme data receiving request; judging whether the published subject has been published on an application running in an FC node device of the FC network and has been subscribed to by the target application; if not, rejecting the theme data receiving request, and returning prompt information of failure of theme data receiving; and if yes, allowing the subject data to receive the request.
And if the processing result of the operation request is that the topic data receiving request is allowed, setting target topic data corresponding to the topic data receiving request as communication data, and broadcasting the communication data to other FC node devices subscribing the published topic according to the FC network topological structure.
Referring to fig. 10, fig. 10 is a flowchart of a process of receiving a theme data request provided by an embodiment of the present application, an application APP implements a theme data receiving operation rev, a router service receives the send message and performs a local security check to check whether a theme identifier topic id of the theme subscription tree exists, and if so, the theme identifier topic id is forwarded to a corresponding application APP.
The communication protocol used in the data communication process defines the commands and responses required by the system to communicate from the establishment of the topology to the access of the resources. To facilitate protocol expansion, a data frame is transmitted in the form of a string, which includes a header, commands, data, and a trailer. Referring to table 1, table 1 is a command and data definition table, in table 1, appname represents an application name, recvMailBoxid represents a receiving mailbox identifier, sendMailBoxid represents a sending mailbox identifier, pubTopicId identifier issues a theme identifier, elementNum represents the number of elements, and examples of data frames are as follows:
<<Login,appname,recvMailBoxId,SendMailBoxId,>>
<<send,appname,pubTopicId,elementNum,data_a,data_b,..,>>
Frame header: frame header to synchronize frame data, fixed format <.
A command: the specific function of the data frame is shown in table 1, and can be extended as required.
Data: the form "a, b,".
End of frame: > A method for producing a high-performance liquid crystal display device.
TABLE 1 Command and data definition Table
Figure BDA0003291451620000141
The embodiment provides a solution based on mutual communication between FC network applications, opens up communication barriers between application programs in equipment nodes of the FC network, and solves the problem that a single application in the FC (FC-AE-ASM protocol) network monopolizes an FC port and other applications cannot use the FC network. In the embodiment, compared with the shared memory, the client lib+router architecture is adopted to realize the synchronization between processes, so that the parallelism of development work is improved, the project period is effectively shortened, and the efficiency is high by thousands of times.
The data communication system provided in the embodiment of the application may include:
the service creation module is used for starting a router service in the target FC node equipment and creating a monitoring service by using the router service;
the monitoring module is used for monitoring other FC node devices in the FC network through the monitoring service and establishing an FC network topology structure according to a monitoring result;
the request processing module is used for processing the operation request of the target application program if the operation request is received; the target application program runs on the target FC node equipment;
And the data communication module is used for generating communication data according to the processing result of the operation request and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topology structure.
The embodiment starts a router service in the target FC node device, and creates a monitoring service by using the router service, wherein the target FC node device can monitor other FC node devices in the FC network by using the monitoring service to obtain an FC network topology structure. After receiving an operation request of a target application program, generating communication data according to a processing result of the operation request, and broadcasting the communication data to other FC node devices by a router service according to the FC network topology structure. The embodiment provides an application program data communication scheme based on an FC network, which realizes topology management of a communication architecture through router service and can improve data transmission efficiency between application programs.
Further, the request processing module includes:
a login operation request processing unit, configured to determine a user to be logged in corresponding to a login operation request if the login operation request of a target application program is received; the method is also used for judging whether the user to be logged in is logged in on an application program running in FC node equipment of the FC network; if yes, rejecting the login operation request, and returning prompt information of login failure; if not, allowing the login operation request;
Correspondingly, the data communication module comprises:
and the first communication unit is used for setting the information of the user to be logged in on the target application program as the communication data if the processing result of the operation request is that the user to be logged in is allowed to log in on the target application program, and broadcasting the communication data to the other FC node equipment by utilizing the router service according to the FC network topological structure.
Further, the request processing module includes:
the system comprises a theme release request processing unit, a theme release request processing unit and a theme release processing unit, wherein the theme release request processing unit is used for determining a theme to be released corresponding to a theme release request if the theme release request of a target application program is received; the method is also used for judging whether the theme to be issued is already issued on an application program running in FC node equipment of the FC network; if yes, rejecting the topic release request, and returning prompt information of topic release failure; if not, allowing the subject to issue a request;
correspondingly, the data communication module comprises:
and the second communication unit is used for setting the information of the to-be-issued subject issued on the target application program as the communication data if the processing result of the operation request is that the to-be-issued subject is allowed to be issued on the target application program, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Further, the request processing module includes:
the topic subscription request processing unit is used for determining a topic to be subscribed corresponding to a topic subscription request if the topic subscription request of a target application program is received; the method is also used for judging whether the topic to be subscribed is subscribed on an application program running in FC node equipment of the FC network; if yes, rejecting the topic subscription request, and returning prompt information of topic subscription failure; if not, allowing the topic subscription request;
correspondingly, the data communication module comprises:
and the third communication unit is used for setting the information subscribed by the topic to be subscribed on the target application program as the communication data if the processing result of the operation request is that the topic to be subscribed is allowed to be subscribed on the target application program, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Further, the request processing module includes:
the system comprises a topic data release request processing unit, a topic data release request processing unit and a target application program, wherein the topic data release request processing unit is used for determining a released topic corresponding to a topic data release request if the topic data release request of the target application program is received; and further for determining whether the published subject matter has been published on an application running in an FC node device of the FC network and has been subscribed to by the target application; if yes, rejecting the topic data release request, and returning prompt information of topic data release failure; if not, allowing the subject data to issue a request;
Correspondingly, the data communication module comprises:
and the fourth communication unit is used for setting target topic data corresponding to the topic data release request as communication data if the processing result of the operation request is that the topic data release request is allowed, and broadcasting the communication data to other FC node devices subscribed to the released topic according to the FC network topological structure.
Further, the data communication module is configured to broadcast the communication data to the other FC node devices according to the FC network topology by using the router service in a string form.
Further, the method further comprises the following steps:
the information synchronization module is used for starting the target application program after starting the router service in the target FC node equipment, and registering the program ID and the session port of the target application program in the router service; and broadcasting the program ID and session port of the target application program to the other FC node devices.
Since the embodiments of the system portion and the embodiments of the method portion correspond to each other, the embodiments of the system portion refer to the description of the embodiments of the method portion, which is not repeated herein.
The present application also provides a storage medium having stored thereon a computer program which, when executed, performs the steps provided by the above embodiments. The storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The application also provides an electronic device, which may include a memory and a processor, where the memory stores a computer program, and the processor may implement the steps provided in the foregoing embodiments when calling the computer program in the memory. Of course the electronic device may also include various network interfaces, power supplies, etc.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. 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 apparatus that comprises the element.

Claims (10)

1. A method of data communication, comprising:
starting a router service in target FC node equipment, and creating a monitoring service by using the router service;
monitoring other FC node devices in the FC network through the monitoring service, and establishing an FC network topology structure according to a monitoring result;
If an operation request of a target application program is received, processing the operation request; the target application program runs on the target FC node equipment;
and generating communication data according to the processing result of the operation request, and broadcasting the communication data to other FC node devices by utilizing the router service according to the FC network topology structure.
2. The data communication method according to claim 1, wherein if an operation request of a target application is received, processing the operation request includes:
if a login operation request of a target application program is received, determining a user to be logged in corresponding to the login operation request;
judging whether the user to be logged in is logged in on an application program running in FC node equipment of the FC network;
if yes, rejecting the login operation request, and returning prompt information of login failure;
if not, allowing the login operation request;
correspondingly, generating communication data according to the processing result of the operation request, and broadcasting the communication data to the other FC node devices according to the FC network topology structure by utilizing the router service, wherein the method comprises the following steps:
And if the processing result of the operation request is that the user to be logged in is allowed to log in the target application program, setting the information logged in by the user to be logged in on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
3. The data communication method according to claim 1, wherein if an operation request of a target application is received, processing the operation request includes:
if a theme release request of a target application program is received, determining a theme to be released corresponding to the theme release request;
judging whether the theme to be issued is already issued on an application program running in FC node equipment of the FC network;
if yes, rejecting the topic release request, and returning prompt information of topic release failure;
if not, allowing the subject to issue a request;
correspondingly, generating communication data according to the processing result of the operation request, and broadcasting the communication data to the other FC node devices according to the FC network topology structure by utilizing the router service, wherein the method comprises the following steps:
And if the processing result of the operation request is that the to-be-issued subject is allowed to be issued on the target application program, setting the information issued by the to-be-issued subject on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
4. The data communication method according to claim 1, wherein if an operation request of a target application is received, processing the operation request includes:
if a topic subscription request of a target application program is received, determining a topic to be subscribed corresponding to the topic subscription request;
judging whether the topic to be subscribed is subscribed on an application program running in FC node equipment of the FC network;
if yes, rejecting the topic subscription request, and returning prompt information of topic subscription failure;
if not, allowing the topic subscription request;
correspondingly, generating communication data according to the processing result of the operation request, and broadcasting the communication data to the other FC node devices according to the FC network topology structure by utilizing the router service, wherein the method comprises the following steps:
And if the processing result of the operation request is that the topic to be subscribed is allowed to be subscribed on the target application program, setting the information subscribed by the topic to be subscribed on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
5. The data communication method according to claim 1, wherein if an operation request of a target application is received, processing the operation request includes:
if a subject data release request of a target application program is received, determining a released subject corresponding to the subject data release request;
judging whether the published subject has been published on an application running in an FC node device of the FC network and has been subscribed to by the target application;
if yes, rejecting the topic data release request, and returning prompt information of topic data release failure;
if not, allowing the subject data to issue a request;
correspondingly, generating communication data according to the processing result of the operation request, and broadcasting the communication data to the other FC node devices according to the FC network topology structure by utilizing the router service, wherein the method comprises the following steps:
And if the processing result of the operation request is that the topic data release request is allowed, setting target topic data corresponding to the topic data release request as communication data, and broadcasting the communication data to other FC node devices subscribing the released topic according to the FC network topological structure.
6. The data communication method according to claim 1, wherein broadcasting the communication data to the other FC node devices in accordance with the FC network topology using the router service includes:
and broadcasting the communication data to the other FC node devices by using the router service in a character string mode according to the FC network topology structure.
7. The data communication method according to claim 1, further comprising, after starting a router service in the target FC node device:
starting the target application program, and registering a program ID and a session port of the target application program in the router service;
broadcasting the program ID and the session port of the target application program to the other FC node devices.
8. A data communication system, comprising:
the service creation module is used for starting a router service in the target FC node equipment and creating a monitoring service by using the router service;
The monitoring module is used for monitoring other FC node devices in the FC network through the monitoring service and establishing an FC network topology structure according to a monitoring result;
the request processing module is used for processing the operation request of the target application program if the operation request is received; the target application program runs on the target FC node equipment;
and the data communication module is used for generating communication data according to the processing result of the operation request and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topology structure.
9. An electronic device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the data communication method according to any of claims 1 to 7 when the computer program in the memory is invoked by the processor.
10. A storage medium having stored therein computer executable instructions which when loaded and executed by a processor perform the steps of the data communication method according to any of the preceding claims 1 to 7.
CN202111166381.7A 2021-09-30 2021-09-30 Data communication method, system, electronic equipment and storage medium Active CN114025005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111166381.7A CN114025005B (en) 2021-09-30 2021-09-30 Data communication method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111166381.7A CN114025005B (en) 2021-09-30 2021-09-30 Data communication method, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114025005A CN114025005A (en) 2022-02-08
CN114025005B true CN114025005B (en) 2023-06-16

Family

ID=80055226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111166381.7A Active CN114025005B (en) 2021-09-30 2021-09-30 Data communication method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114025005B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115296943B (en) * 2022-07-18 2024-04-16 杭州趣链科技有限公司 Message broadcasting method, device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672632A (en) * 2018-12-25 2019-04-23 上海赛治信息技术有限公司 FC-AE-ASM Data Communication in Computer Networks method and system
CN111447091A (en) * 2020-03-25 2020-07-24 深信服科技股份有限公司 Network loop detection method, device, equipment and storage medium
CN111859832A (en) * 2020-07-16 2020-10-30 山东云海国创云计算装备产业创新中心有限公司 Chip simulation verification method and device and related equipment
CN112821952A (en) * 2020-12-07 2021-05-18 沈阳飞机设计研究所扬州协同创新研究院有限公司 Data subscription and distribution method based on FC network
CN112887417A (en) * 2021-02-09 2021-06-01 中国航空无线电电子研究所 Service management framework and method for supporting airborne embedded system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8762453B2 (en) * 2012-02-16 2014-06-24 Sap Ag Consistent interface for feed collaboration group and feed event subscription

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672632A (en) * 2018-12-25 2019-04-23 上海赛治信息技术有限公司 FC-AE-ASM Data Communication in Computer Networks method and system
CN111447091A (en) * 2020-03-25 2020-07-24 深信服科技股份有限公司 Network loop detection method, device, equipment and storage medium
CN111859832A (en) * 2020-07-16 2020-10-30 山东云海国创云计算装备产业创新中心有限公司 Chip simulation verification method and device and related equipment
CN112821952A (en) * 2020-12-07 2021-05-18 沈阳飞机设计研究所扬州协同创新研究院有限公司 Data subscription and distribution method based on FC network
CN112887417A (en) * 2021-02-09 2021-06-01 中国航空无线电电子研究所 Service management framework and method for supporting airborne embedded system

Also Published As

Publication number Publication date
CN114025005A (en) 2022-02-08

Similar Documents

Publication Publication Date Title
US9578081B2 (en) System and method for providing an actively invalidated client-side network resource cache
US7430747B2 (en) Peer-to peer graphing interfaces and methods
US9425973B2 (en) Resource-based synchronization between endpoints in a web-based real time collaboration
US20050120073A1 (en) Method and apparatus for sharing applications using P2P protocol
JP2007188505A (en) Management method of network-enabled devices and medium
CN107528891B (en) Websocket-based automatic clustering method and system
KR20120089591A (en) System and method for managing multiple queues of non-persistent messages in a networked environment
CN112307486A (en) Authority obtaining method, equipment and system
CN114338063B (en) Message queue system, service processing method and computer readable storage medium
CN113867958A (en) Method, device and equipment for pushing task corner mark and readable medium
CN114025005B (en) Data communication method, system, electronic equipment and storage medium
US8725856B2 (en) Discovery of network services
US20140201376A1 (en) Method and system for the handling of redundant long poll
CN111343296B (en) Virtualized application communication method, device, server and storage medium
WO2024103943A1 (en) Service processing method and apparatus, storage medium, and device
US20180081746A1 (en) Application message processing system, method, and application device
EP3416351B1 (en) Implementation method, apparatus and system for remote access
WO2017000256A1 (en) Positioning method and corresponding apparatus
US8521911B2 (en) Apparatus, system and method for executing discovery in network
US20100250684A1 (en) High availability method and apparatus for shared resources
CN102577249A (en) Connected instance group of dynamically addressed hosts
US10108588B2 (en) Method and system for communicating between client pages
CN111541732B (en) Method for avoiding invalid occupation of connection resources by client in P2P network, computer readable storage medium and P2P network
CN111385324A (en) Data communication method, device, equipment and storage medium
CN115102854B (en) Remote procedure call route management control method, system and equipment for micro-service

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
TR01 Transfer of patent right

Effective date of registration: 20240704

Address after: 2324, Building 1, Aosheng Building, No. 1166 Xinluo Street, High tech Zone, Jinan City, Shandong Province, 250000

Patentee after: Inspur Computer Technology Co.,Ltd.

Country or region after: China

Address before: 35th floor, S01 building, Inspur science and Technology Park, 1036 Inspur Road, Jinan area, Jinan pilot Free Trade Zone, Jinan City, Shandong Province

Patentee before: Shandong Yunhai guochuang cloud computing equipment industry innovation center Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240924

Address after: Room 702, 7th Floor, Building 1, No. 15 Lingxiao Road, Haidian District, Beijing 100080

Patentee after: Beijing Senxinwei Computer Technology Co.,Ltd.

Country or region after: China

Address before: 2324, Building 1, Aosheng Building, No. 1166 Xinluo Street, High tech Zone, Jinan City, Shandong Province, 250000

Patentee before: Inspur Computer Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right