CN112738190B - RapidIO communication dynamic management method and system - Google Patents

RapidIO communication dynamic management method and system Download PDF

Info

Publication number
CN112738190B
CN112738190B CN202011554837.2A CN202011554837A CN112738190B CN 112738190 B CN112738190 B CN 112738190B CN 202011554837 A CN202011554837 A CN 202011554837A CN 112738190 B CN112738190 B CN 112738190B
Authority
CN
China
Prior art keywords
rapidio
node
address
information
central node
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
CN202011554837.2A
Other languages
Chinese (zh)
Other versions
CN112738190A (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.)
Hunan Bojiang Information Technology Co Ltd
Original Assignee
Hunan Bojiang Information 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 Hunan Bojiang Information Technology Co Ltd filed Critical Hunan Bojiang Information Technology Co Ltd
Priority to CN202011554837.2A priority Critical patent/CN112738190B/en
Publication of CN112738190A publication Critical patent/CN112738190A/en
Application granted granted Critical
Publication of CN112738190B publication Critical patent/CN112738190B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • 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/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • 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/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Abstract

The application discloses a dynamic RapidIO communication management method and system, which realize dynamic management of RapidIO address information of RapidIO communication under a DDS issuing and subscribing mechanism. The method comprises the following steps: the central node acquires and stores RapidIO information of all physical nodes, wherein the RapidIO information is used for representing address field information which can be used when the corresponding physical nodes carry out RapidIO communication; when a target physical node uses a DDS publish-subscribe function, a central node acquires a publish-subscribe theme and a RapidIO mapping address of the target physical node; and the central node matches the target physical node according to the publish-subscribe theme and distributes RapidIO address information according to the RapidIO mapping address size, so that RapidIO communication is established between the target physical node and the matched physical node according to the RapidIO address information.

Description

RapidIO communication dynamic management method and system
Technical Field
The invention relates to the field of networks, in particular to a RapidIO communication dynamic management method and a RapidIO communication dynamic management system.
Background
The RapidIO technology is a technology mainly applied to open interconnection of embedded systems, is widely applied to high-performance embedded systems, and mainly has two data transmission modes, one is a message transmission mode, and the other is a Direct Memory Access (DMA) transmission mode. The message transmission mode has the advantages of flexible transmission and low transmission efficiency due to the fact that the system needs to frequently respond to message interruption. The DMA transmission mode has the advantages that DMA transmission is adopted in the allocated memory space, so that the efficiency is high, and the defects that the memory space needs to be allocated in advance, so that the hardware resource is highly bound.
In general, a DMA transfer mode is used by a user application to achieve efficient data transfer. The existing Data Distribution Service (DDS) is friendly to the TCP/IP protocol communication support of the network, and RapidIO communication is highly bound to hardware resources, so that RapidIO support is not friendly. Meanwhile, the existing DDS software is complex to implement and is difficult to use in a high-performance embedded system.
Disclosure of Invention
The invention aims to provide a method and a system for dynamically managing RapidIO communication, which realize the dynamic management of RapidIO address information of RapidIO communication under a DDS (direct digital synthesizer) publish-subscribe mechanism.
The invention provides a RapidIO communication dynamic management method, which is applied to a RapidIO communication dynamic management system, wherein the RapidIO communication dynamic management system comprises a central node and at least one physical node, and the method comprises the following steps:
the central node acquires and stores RapidIO information of all physical nodes, wherein the RapidIO information is used for representing address field information which can be used when the corresponding physical nodes carry out RapidIO communication;
when a target physical node issues a subscription function by using a data distribution service DDS, a central node acquires an issuing subscription theme and a RapidIO mapping address of the target physical node;
and the central node matches the target physical node according to the publish-subscribe theme and distributes RapidIO address information according to the RapidIO mapping address size, so that RapidIO communication is established between the target physical node and the matched physical node according to the RapidIO address information.
Further, the central node acquires and stores RapidIO information of all physical nodes, including:
before the current physical node issues a subscription function by using a DDS, initializing the current physical node and obtaining RapidIO information of the current physical node, wherein the RapidIO information is used for representing address field information which can be used when the current physical node carries out RapidIO communication, and the number of the current physical node is at least one;
the current physical node generates a TCP message according to the RapidIO information and sends the TCP message to the central node;
and the central node determines the current physical node and RapidIO information according to the TCP message, and stores the RapidIO information corresponding to the current physical node into a database.
Further, the central node matches the target physical node according to the publish-subscribe topic, and allocates RapidIO address information according to the RapidIO mapping address size, including:
the central node searches whether the published subscription theme is published or not;
if not, the central node generates matching waiting information and sends the matching waiting information to the target physical node;
if yes, the central node determines a physical node which has published and published the subscription subject as a matching node;
and the central node allocates RapidIO address information according to RapidIO information of the target physical node, RapidIO information of the matching node and the RapidIO mapping address size, so that RapidIO communication is established between the target physical node and the matching physical node according to the RapidIO address information.
Further, the central node allocates RapidIO address information according to RapidIO information of the target physical node, RapidIO information of the matching node and RapidIO mapping address size, and the allocation method comprises the following steps:
the central node determines a target address segment of the target physical node capable of carrying out RapidIO communication and a matching address segment of the matching node capable of carrying out RapidIO communication according to the RapidIO information of the target physical node and the RapidIO information of the matching node;
and the central node respectively selects RapidIO address segments from the target address segment and the matched address segment according to the RapidIO mapping address size to obtain RapidIO address information.
Further, the central node selects RapidIO address segments from the target address segment and the matching address segment respectively according to the RapidIO mapping address size to obtain RapidIO address information, and the method comprises the following steps:
the central node slices the target address field and the matched address field to obtain address field slices;
the central node sorts the address segment slices according to the address size according to a preset rule to obtain address segment slice information;
and the central node selects the optimal address segment slice corresponding to the target physical node and the matching node from the address segment slice information according to the mapping address size of RapidIO as a RapidIO address segment, thereby obtaining RapidIO address information.
Further, the method further comprises:
the central node saves the address field slice information to a database, and marks used RapidIO address fields according to the optimal address field slices.
Further, when the RapidIO communication mode is multicast, the method further includes:
the central node pre-allocates RapidIO address information for all the physical nodes which can be allocated.
Further, the method further comprises:
when the target physical node or the matching node stops using the DDS to publish the subscription function, the central node marks an unused RapidIO address segment according to RapidIO address information;
and the central node merges all unused RapidIO address segments according to the merging rule of adjacent continuous address segments and marks the unused RapidIO address segments as unused.
Further, the RapidIO communication dynamic management system further includes a backup node, and the method further includes:
and the central node synchronously stores information to the backup node according to the preset time.
The second aspect of the present invention provides a RapidIO communication dynamic management system, including:
a central node and at least one physical node,
the central node is configured to perform the RapidIO communication dynamic management method of the first aspect above.
Therefore, in the RapidIO communication dynamic management method, the central node acquires and stores RapidIO information of all physical nodes, the RapidIO information is used for representing address field information which can be used when corresponding physical nodes carry out RapidIO communication, when a target physical node uses a DDS (direct digital synthesis) publish-subscribe function, the central node acquires a publish-subscribe theme and a RapidIO mapping address size of the target physical node, the central node matches the target physical node according to the publish-subscribe theme, and distributes the RapidIO address information according to the RapidIO mapping address size, so that the target physical node and the matched physical node establish RapidIO communication according to the RapidIO address information. The dynamic management of RapidIO address information of RapidIO communication under a DDS publish-subscribe mechanism is realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flow chart of an embodiment of a RapidIO communication dynamic management method provided by the present invention;
fig. 2 is a schematic flowchart of another embodiment of a RapidIO communication dynamic management method provided in the present invention;
fig. 3 is a schematic structural diagram of an embodiment of a RapidIO communication dynamic management system provided in the present invention.
Detailed Description
The application discloses a dynamic RapidIO communication management method and system, which realize dynamic management of RapidIO address information of RapidIO communication under a DDS issuing and subscribing mechanism.
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
It should be noted that all the directional indicators (such as up, down, left, right, front, and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indicator is changed accordingly.
In addition, the descriptions related to "first", "second", etc. in the present invention are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "connected," "secured," and the like are to be construed broadly, and for example, "secured" may be a fixed connection, a removable connection, or an integral part; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In addition, the technical solutions in the embodiments of the present invention may be combined with each other, but it must be based on the realization of those skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a dynamic RapidIO communication management method, including:
101. the central node acquires and stores RapidIO information of all physical nodes, wherein the RapidIO information is used for representing address field information which can be used when the corresponding physical nodes carry out RapidIO communication;
102. when a target physical node uses a DDS publish-subscribe function, a central node acquires a publish-subscribe theme and a RapidIO mapping address of the target physical node;
103. and the central node matches the target physical node according to the publish-subscribe theme and distributes RapidIO address information according to the RapidIO mapping address size, so that RapidIO communication is established between the target physical node and the matched physical node according to the RapidIO address information.
In the embodiment of the invention, a DDS-based publish-subscribe mechanism is provided, a user-defined theme topic matching mechanism with a limited length is provided at a system center node, a main center node manages all physical nodes containing RapidIO information, and a plurality of backup nodes can be selected and configured. The central node and the backup node both comprise a lightweight database SQL, each physical node provides a set of uniform and simple interfaces for users to call, a simple object programming model is realized, and the object programming model can create a publisher or a subscriber- > publish data- > terminate the publisher or the subscriber. Publishers publish topics and subscribers subscribe to topics. The method comprises the steps that a central node obtains and stores RapidIO information of all physical nodes, the RapidIO information is used for representing address field information which can be used when corresponding physical nodes carry out RapidIO communication, when a target physical node uses a DDS (direct digital synthesis) publish-subscribe function, the central node obtains a publish-subscribe theme and a RapidIO mapping address size of the target physical node, the central node matches the target physical node according to the publish-subscribe theme, and the RapidIO address information is distributed according to the RapidIO mapping address size, so that the target physical node and the matched physical node establish RapidIO communication according to the RapidIO address information. The dynamic management of RapidIO address information of RapidIO communication under a DDS publish-subscribe mechanism is realized.
Optionally, in some embodiments of the present invention, the obtaining and storing RapidIO information of all physical nodes by the central node includes:
before the current physical node issues a subscription function by using a DDS, initializing the current physical node and obtaining RapidIO information of the current physical node, wherein the RapidIO information is used for representing address field information which can be used when the current physical node carries out RapidIO communication, and the number of the current physical node is at least one;
the current physical node generates a TCP message according to the RapidIO information and sends the TCP message to the central node;
and the central node determines the current physical node and RapidIO information according to the TCP message, and stores the RapidIO information corresponding to the current physical node into a database.
In the embodiment of the invention, before a current physical node uses a DDS (direct digital synthesis) publish-subscribe function, namely a publisher or a subscriber based on topic is established, the current physical node initializes information and obtains RapidIO information of the current physical node, the RapidIO information is used for representing address segment information which can be used when the current physical node carries out RapidIO communication, the current physical node is at least one, the current physical node generates a Transmission Control Protocol (TCP) message according to the RapidIO information and sends the TCP message to a central node, the central node determines the current physical node and the RapidIO information according to the TCP message, and the RapidIO information corresponding to the current physical node is stored in a database SQL (structured query language), namely, the registration of the physical node is realized.
It should be noted that, after the RapidIO address information is assigned, the physical node publishing and subscribing the topic is also notified by a TCP message.
The TCP is used for communication, so that the problem of User Datagram Protocol (UDP) message loss is avoided, and the reliability of managed RapidIO information in the transmission process is guaranteed.
Referring to fig. 2, an embodiment of the present invention provides a dynamic RapidIO communication management method, including:
201. the central node acquires and stores RapidIO information of all physical nodes, wherein the RapidIO information is used for representing address field information which can be used when the corresponding physical nodes carry out RapidIO communication;
202. when a target physical node issues a subscription function by using a data distribution service DDS, a central node acquires an issuing subscription theme and a RapidIO mapping address of the target physical node;
203. the central node searches whether the published subscription theme is published or not; if not, go to step 204; if yes, go to step 205;
204. the central node generates matching waiting information and sends the matching waiting information to the target physical node;
205. the central node determines a physical node which has published and published a subscription theme as a matching node;
206. and the central node allocates RapidIO address information according to RapidIO information of the target physical node, RapidIO information of the matching node and the RapidIO mapping address size, so that RapidIO communication is established between the target physical node and the matching physical node according to the RapidIO address information.
In the embodiment of the invention, a central node can search whether a publishing and subscribing topic is published in a database SQL (structured query language), if the publishing and subscribing topic is not published, the publishing or subscribing is indicated for the first time, the central node generates matching waiting information and sends the matching waiting information to a target physical node, so that the target physical node waits for matching; if the target physical node and the matched physical node establish RapidIO communication according to the RapidIO address information, the central node searches the physical node which publishes the subscription subject as a matched node, and the central node allocates RapidIO address information according to the RapidIO information of the target physical node, the RapidIO information of the matched node and the RapidIO mapping address size.
Optionally, in some embodiments of the present invention, the allocating, by the central node, RapidIO address information according to RapidIO information of the target physical node, RapidIO information of the matching node, and a RapidIO mapping address size includes:
the central node determines a target address segment of the target physical node capable of carrying out RapidIO communication and a matching address segment of the matching node capable of carrying out RapidIO communication according to the RapidIO information of the target physical node and the RapidIO information of the matching node;
and the central node respectively selects RapidIO address segments from the target address segment and the matched address segment according to the RapidIO mapping address size to obtain RapidIO address information.
In the embodiment of the invention, the central node determines a target address segment which can carry out RapidIO communication on the target physical node according to RapidIO information of the target physical node; determining a matching address field which can carry out RapidIO communication by the matching node according to RapidIO information of the matching node; and the central node respectively selects RapidIO address segments from the target address segment and the matched address segment according to the RapidIO mapping address size to obtain RapidIO address information.
Optionally, in some embodiments of the present invention, the central node selects RapidIO address segments from the target address segment and the matching address segment according to the RapidIO mapping address size, to obtain RapidIO address information, where the method includes:
the central node slices the target address field and the matched address field to obtain address field slices;
the central node sorts the address segment slices according to the address size according to a preset rule to obtain address segment slice information;
and the central node selects the optimal address segment slice corresponding to the target physical node and the matching node from the address segment slice information according to the mapping address size of RapidIO as a RapidIO address segment, thereby obtaining RapidIO address information.
In the embodiment of the invention, the RapidIO communication mode can comprise unicast or multicast, the central node slices the target address field and the matched address field to obtain the address field slices, the central node sorts the address field slices according to the address size according to a preset rule to obtain address field slice information, and the central node selects the optimal address field slices corresponding to the target physical node and the matched node from the address field slice information according to the RapidIO mapping address size to be used as RapidIO address fields, so that the RapidIO address information is obtained.
It should be noted that, the central node may store the address segment slice information to the database, and mark the used RapidIO address segment according to the optimal address segment slice.
Optionally, in some embodiments of the present invention, when the RapidIO communication manner is multicast, the method further includes:
the central node pre-allocates RapidIO address information for all the physical nodes which can be allocated.
In the embodiment of the invention, when the RapidIO communication mode is multicast, the central node pre-allocates RapidIO address information for all the allocable physical nodes so as to ensure that the pre-allocated RapidIO address information can be quickly hit when other physical nodes subsequently subscribe the same theme.
Optionally, in some embodiments of the present invention, the method further includes:
when the target physical node or the matching node stops using the DDS to publish the subscription function, the central node marks an unused RapidIO address segment according to RapidIO address information;
and the central node merges all unused RapidIO address segments according to the merging rule of adjacent continuous address segments and marks the unused RapidIO address segments as unused.
In the embodiment of the invention, when a target physical node or a matching node receives a publisher or subscriber to terminate subscription or publish a topic, namely stops using a DDS to publish a subscription function, a central node marks unused RapidIO address segments according to RapidIO address information, and the central node merges all unused RapidIO address segments in database SQL according to a merging rule of adjacent continuous address segments and marks the unused RapidIO address segments as unused.
Optionally, in some embodiments of the present invention, the RapidIO communication dynamic management system further includes a backup node, and the method further includes:
and the central node synchronously stores information to the backup node according to the preset time.
In the embodiment of the invention, the RapidIO communication dynamic management system also comprises the backup node, and the main central node broadcasts all storage information of the database SQL to other backup nodes according to the preset time, synchronizes the corresponding information and protects the information from being lost.
It should be noted that after the publisher and the subscriber are matched, the publisher node or the subscriber node establishes RapidIO communication according to RapidIO address information allocated by the central node. After the communication is established, the data can be sent by DMA. And after the communication of the publisher or the subscriber is finished, the publishing node or the subscriber node releases the used address field and informs the central node of finishing publishing or finishing subscribing of the topic. And the central node recovers the corresponding RapidIO address information according to the algorithm rule.
Referring to fig. 3, an embodiment of the present invention provides a RapidIO communication dynamic management system, including:
a central node 301 and at least one physical node 302;
the central node 301 is configured to acquire and store RapidIO information of all the physical nodes 302, where the RapidIO information is used to indicate address segment information that can be used when corresponding physical nodes 302 perform RapidIO communication;
the central node 301 is further configured to obtain a publish-subscribe topic and a RapidIO mapping address size of the target physical node 302 when the target physical node 302 uses a DDS publish-subscribe function;
the central node 301 is further configured to match the target physical node 302 according to the publish-subscribe topic, and allocate RapidIO address information according to the RapidIO mapping address size, so that RapidIO communication is established between the target physical node 302 and the matched physical node according to the RapidIO address information.
In the embodiment of the invention, a DDS-based publish-subscribe mechanism is provided, a user-defined theme topic with a limited length is matched with a system center node, a main center node is used for managing all physical nodes containing RapidIO information, and a plurality of backup nodes can be selected and configured. The central node and the backup node both comprise a lightweight database SQL, each physical node provides a set of uniform and simple interfaces for users to call, a simple object programming model is realized, and the object programming model can create a publisher or a subscriber- > publish data- > terminate the publisher or the subscriber. Publishers publish topics and subscribers subscribe to topics. The method comprises the steps that a central node obtains and stores RapidIO information of all physical nodes, the RapidIO information is used for representing address field information which can be used when corresponding physical nodes carry out RapidIO communication, when a target physical node uses a DDS (direct digital synthesis) publish-subscribe function, the central node obtains a publish-subscribe theme and a RapidIO mapping address size of the target physical node, the central node matches the target physical node according to the publish-subscribe theme, and the RapidIO address information is distributed according to the RapidIO mapping address size, so that the target physical node and the matched physical node establish RapidIO communication according to the RapidIO address information. The dynamic management of RapidIO address information of RapidIO communication under a DDS publish-subscribe mechanism is realized.
Alternatively, in conjunction with the embodiment shown in fig. 3, in some embodiments of the invention,
before the current physical node uses the DDS to publish a subscription function, the current physical node 302 is initialized, and RapidIO information of the current physical node is obtained, the RapidIO information is used for representing address field information which can be used when the current physical node carries out RapidIO communication, and at least one current physical node is used;
the current physical node 302 generates a TCP message according to the RapidIO information and sends the TCP message to the central node;
the central node 301 determines the current physical node and RapidIO information according to the TCP message, and stores the RapidIO information corresponding to the current physical node in the database.
In the embodiment of the present invention, before a current physical node 302 issues a subscription function using a DDS, that is, before a publisher or a subscriber based on a topic is created, the current physical node initializes information and obtains RapidIO information of itself, where the RapidIO information is used to indicate address segment information that can be used when the current physical node performs RapidIO communication, the current physical node is at least one, the current physical node generates a Transmission Control Protocol (TCP) message according to the RapidIO information, sends the TCP message to a central node, the central node 301 determines the current physical node and the RapidIO information according to the TCP message, and stores the RapidIO information corresponding to the current physical node in a database SQL, that is, registration of the physical node is achieved.
It should be noted that, after the RapidIO address information is assigned, the physical node publishing and subscribing the topic is also notified by a TCP message.
The TCP is used for communication, so that the problem of User Datagram Protocol (UDP) message loss is avoided, and the reliability of managed RapidIO information in the transmission process is guaranteed.
Alternatively, in conjunction with the embodiment shown in fig. 3, in some embodiments of the invention,
the central node 301 is further configured to search whether the publish-subscribe topic is published;
the central node 301 is further configured to generate matching waiting information if the matching waiting information is not received, and send the matching waiting information to the target physical node;
the central node 301 is further configured to determine, if yes, a physical node that has published the subscription topic as a matching node;
the central node 301 is further configured to allocate RapidIO address information according to RapidIO information of the target physical node, RapidIO information of the matching node, and a RapidIO mapping address size, so that the target physical node and the matching physical node establish RapidIO communication according to the RapidIO address information.
In the embodiment of the present invention, the central node 301 may search in the database SQL whether the publish-subscribe topic has been published, if not, it indicates that the publish or subscribe is the first time, and then the central node 301 generates the matching waiting information, and sends the matching waiting information to the target physical node, so that the target physical node waits for matching; if the target physical node and the matched physical node are published, the central node 301 searches the physical node which has published the subscription topic to be used as a matched node, and the central node 301 allocates RapidIO address information according to RapidIO information of the target physical node, RapidIO information of the matched node and the RapidIO mapping address size, so that RapidIO communication is established between the target physical node and the matched physical node according to the RapidIO address information.
Alternatively, in conjunction with the embodiment shown in fig. 3, in some embodiments of the invention,
the central node 301 is further configured to determine, according to RapidIO information of the target physical node and RapidIO information of the matching node, a target address segment in which the target physical node can perform RapidIO communication and a matching address segment in which the matching node can perform RapidIO communication;
the central node 301 is further configured to select RapidIO address segments from the target address segment and the matching address segment according to the RapidIO mapping address size, so as to obtain RapidIO address information.
In the embodiment of the invention, the central node 301 determines a target address segment of the target physical node capable of carrying out RapidIO communication according to RapidIO information of the target physical node; determining a matching address field which can carry out RapidIO communication by the matching node according to RapidIO information of the matching node; the central node 301 selects RapidIO address segments from the target address segment and the matching address segment respectively according to the RapidIO mapping address size, and obtains RapidIO address information.
Alternatively, in conjunction with the embodiment shown in fig. 3, in some embodiments of the invention,
the central node 301 is further configured to slice the target address segment and the matching address segment to obtain an address segment slice;
the central node 301 is further configured to sort the address segment slices according to the address size according to a preset rule, so as to obtain address segment slice information;
the central node 301 is further configured to select an optimal address segment slice corresponding to the target physical node and the matching node from the address segment slice information according to the size of the RapidIO mapping address, and use the optimal address segment slice as a RapidIO address segment, so as to obtain RapidIO address information.
In the embodiment of the invention, the rapidIO communication mode can comprise unicast or multicast, the central node 301 slices the target address field and the matched address field to obtain the address field slice, the central node 301 sequences the address field slices according to the preset rule and the address size to obtain the address field slice information, and the central node maps the address size according to the rapidIO and selects the optimal address field slice corresponding to the target physical node and the matched node from the address field slice information to be used as the rapidIO address field, so that the rapidIO address information is obtained.
It should be noted that the central node 301 may store the address segment slice information to the database, and mark the used RapidIO address segment according to the optimal address segment slice.
Alternatively, in some embodiments of the present invention,
the central node 301 is further configured to save the address segment slice information to the database, and mark a used RapidIO address segment according to the optimal address segment slice.
In the embodiment of the present invention, when the RapidIO communication mode is multicast, the central node 301 pre-allocates RapidIO address information to all assignable physical nodes, so as to ensure that the pre-allocated RapidIO address information can be quickly hit when other physical nodes subsequently subscribe to the same topic.
Alternatively, in some embodiments of the present invention,
the central node pre-allocates RapidIO address information for all the physical nodes which can be allocated.
Alternatively, in some embodiments of the invention,
when the target physical node or the matching node stops using the DDS to publish the subscription function, the central node marks an unused RapidIO address segment according to RapidIO address information;
and the central node merges all unused RapidIO address segments according to the merging rule of adjacent continuous address segments and marks the unused RapidIO address segments as unused.
Optionally, in some embodiments of the present invention, the RapidIO communication dynamic management system further includes a backup node, and the central node synchronously stores information to the backup node according to preset time.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It should also be noted that 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A RapidIO communication dynamic management method is characterized by being applied to a RapidIO communication dynamic management system, wherein the RapidIO communication dynamic management system comprises a center node and at least one physical node, and the method comprises the following steps:
the central node acquires and stores RapidIO information of all physical nodes, wherein the RapidIO information is used for representing address field information which can be used when corresponding physical nodes carry out RapidIO communication;
when a target physical node issues a subscription function by using a data distribution service DDS, the central node acquires an issue subscription theme and a RapidIO mapping address of the target physical node;
and the central node matches the target physical node according to the publish-subscribe theme and distributes RapidIO address information according to the RapidIO mapping address size, so that RapidIO communication is established between the target physical node and the matched physical node according to the RapidIO address information.
2. The method of claim 1, wherein the central node obtains and stores RapidIO information of all physical nodes, comprising:
before a current physical node issues a subscription function by using a DDS, initializing the current physical node, and obtaining RapidIO information of the current physical node, wherein the RapidIO information is used for representing address field information which can be used when the current physical node carries out RapidIO communication, and the number of the current physical nodes is at least one;
the current physical node generates a Transmission Control Protocol (TCP) message according to the RapidIO information and sends the TCP message to the central node;
and the central node determines the current physical node and the RapidIO information according to the TCP message, and stores the RapidIO information corresponding to the current physical node into a database.
3. The method of claim 2, wherein the central node matches the target physical node according to the publish-subscribe topic and assigns RapidIO address information according to the RapidIO mapping address size, comprising:
the central node searches whether the publish-subscribe topic is published;
if not, the central node generates matching waiting information and sends the matching waiting information to the target physical node;
if yes, the central node determines a physical node which has published the publish-subscribe theme as a matching node;
and the central node allocates RapidIO address information according to the RapidIO information of the target physical node, the RapidIO information of the matched node and the RapidIO mapping address size, so that RapidIO communication is established between the target physical node and the matched physical node according to the RapidIO address information.
4. The method of claim 3, wherein the central node assigns RapidIO address information based on RapidIO information of the target physical node, RapidIO information of the matching node, and the RapidIO mapped address size, comprising:
the central node determines a target address segment which can be subjected to RapidIO communication by the target physical node and a matching address segment which can be subjected to RapidIO communication by the matching node according to the RapidIO information of the target physical node and the RapidIO information of the matching node;
and the central node respectively selects RapidIO address segments from the target address segment and the matched address segment according to the size of the RapidIO mapping address to obtain RapidIO address information.
5. The method of claim 4, wherein the central node selects RapidIO address segments from the target address segment and the matching address segment according to the RapidIO mapping address size, and obtains RapidIO address information, and the method comprises the following steps:
the central node slices the target address field and the matched address field to obtain address field slices;
the central node sorts the address segment slices according to the address size according to a preset rule to obtain address segment slice information;
and the central node selects the optimal address segment slice corresponding to the target physical node and the matching node from the address segment slice information according to the size of the RapidIO mapping address as a RapidIO address segment, so that RapidIO address information is obtained.
6. The method of claim 5, further comprising:
and the central node stores the address segment slice information to a database, and marks the used RapidIO address segment according to the optimal address segment slice.
7. The method according to claim 4, wherein when the RapidIO communication system is multicast,
the method further comprises the following steps:
the central node pre-allocates RapidIO address information for all the physical nodes which can be allocated.
8. The method of claim 7, further comprising:
when the target physical node or the matching node stops using the DDS publish-subscribe function, the central node marks an unused RapidIO address segment according to the RapidIO address information;
and the central node merges all unused RapidIO address segments according to the merging rule of adjacent continuous address segments and marks the unused RapidIO address segments as unused.
9. The method according to any of claims 1-8, wherein said RapidIO communication dynamic management system further comprises a backup node,
the method further comprises the following steps:
and the central node synchronously stores information to the backup node according to preset time.
10. A RapidIO communication dynamic management system, comprising:
a central node and at least one physical node,
the central node is used for executing the RapidIO communication dynamic management method of any one of the preceding claims 1-9.
CN202011554837.2A 2020-12-24 2020-12-24 RapidIO communication dynamic management method and system Active CN112738190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011554837.2A CN112738190B (en) 2020-12-24 2020-12-24 RapidIO communication dynamic management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011554837.2A CN112738190B (en) 2020-12-24 2020-12-24 RapidIO communication dynamic management method and system

Publications (2)

Publication Number Publication Date
CN112738190A CN112738190A (en) 2021-04-30
CN112738190B true CN112738190B (en) 2022-06-17

Family

ID=75615530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011554837.2A Active CN112738190B (en) 2020-12-24 2020-12-24 RapidIO communication dynamic management method and system

Country Status (1)

Country Link
CN (1) CN112738190B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553657B (en) * 2022-02-09 2024-01-30 北京润科通用技术有限公司 Data management method and device
CN116260893B (en) * 2023-02-06 2023-09-12 中国西安卫星测控中心 Message subscription and publishing device of data processing system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7979572B1 (en) * 2007-06-28 2011-07-12 Emc Corporation Data storage system having operation code in address portion for atomic operations
US8671135B1 (en) * 2006-04-24 2014-03-11 Real-Time Innovations, Inc. Flexible mechanism for implementing the middleware of a data distribution system over multiple transport networks
CN104363169A (en) * 2014-11-24 2015-02-18 中国电子科技集团公司第二十九研究所 Data dynamic routing system and method based on RapidIO message mode
CN104714904A (en) * 2013-12-14 2015-06-17 中国航空工业集团公司第六三一研究所 RapidIO controller adopting window mapping mechanism and control method of RapidIO controller
CN107301145A (en) * 2017-06-29 2017-10-27 中国电子科技集团公司第二十九研究所 Publish/subscribe formula software bus based on RapidIO under FPGA environment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112010005499T5 (en) * 2010-04-19 2013-03-28 International Business Machines Corp. Controlling messaging during publish / subscribe messaging
US9654571B2 (en) * 2014-01-21 2017-05-16 Time Warner Cable Enterprises Llc Publish-subscribe messaging in a content network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8671135B1 (en) * 2006-04-24 2014-03-11 Real-Time Innovations, Inc. Flexible mechanism for implementing the middleware of a data distribution system over multiple transport networks
US7979572B1 (en) * 2007-06-28 2011-07-12 Emc Corporation Data storage system having operation code in address portion for atomic operations
CN104714904A (en) * 2013-12-14 2015-06-17 中国航空工业集团公司第六三一研究所 RapidIO controller adopting window mapping mechanism and control method of RapidIO controller
CN104363169A (en) * 2014-11-24 2015-02-18 中国电子科技集团公司第二十九研究所 Data dynamic routing system and method based on RapidIO message mode
CN107301145A (en) * 2017-06-29 2017-10-27 中国电子科技集团公司第二十九研究所 Publish/subscribe formula software bus based on RapidIO under FPGA environment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Serial RapidlO: Benefiting System Interconnects;T. Scheckel;《Proceedings 2005 IEEE International SOC Conference》;20051212;全文 *
一种适用于多核DSP片外扩展的网络接口的设计;方幸福等;《微电子学与计算机》;20100505(第05期);全文 *
基于DDS的消息总线通信研究与实现;王啸,彭海维;《无线互联科技》;20191225;全文 *
基于RapidIO的TIPC通信软件设计;王运盛等;《电讯技术》;20121220(第12期);全文 *

Also Published As

Publication number Publication date
CN112738190A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN112738190B (en) RapidIO communication dynamic management method and system
US20190068701A1 (en) Content Scheduling Method Based on CDN and P2P Network, and Communication Network
CN105933376B (en) A kind of data manipulation method, server and storage system
US20070286209A1 (en) System and method for handling address resolution protocol requests
CN101123613A (en) A coding method and device and system for multi-dimension address
CN106953943B (en) Method and device suitable for switch communication
CN107087041B (en) Method and device for statically binding IP address to DHCP client
EP1868354A1 (en) System and method for handling address resolution protocol requests
CN105704256B (en) A kind of IP address management methods, devices and systems
Yoon et al. Topic naming service for DDS
CN111352863A (en) Memory management method, device, equipment and storage medium
JP6574906B2 (en) Method, apparatus, and system for assigning IP address for master / slave network
JP2014038483A (en) Data distribution system, data distribution method, and program
CN106302861B (en) Address allocation method and device
CN101141482B (en) Network resource management system and method
Putra et al. Node discovery scheme of DDS for combat management system
CN108153494B (en) A kind of I/O request processing method and processing device
RU2008141703A (en) METHOD FOR TRANSMITTING DATA BETWEEN HETEROGENEOUS PROCESSING SYSTEMS CONNECTED TO A LOCAL NETWORK AND TRANSMISSION SYSTEM USING THIS METHOD
CN111614792B (en) Transparent transmission method, system, server, electronic device and storage medium
CN109005071B (en) Decision deployment method and scheduling equipment
CN110636149A (en) Remote access method, device, router and storage medium
CN101399776B (en) Method, device and system for P2P network resource sharing
CN111367658B (en) Live broadcast service system and process management method
KR20110070447A (en) Method of distributed discovery of communication participant in data distribution service
CN112671947B (en) IPv6 address generation method and device and load balancer

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