CN116962405A - Cross-network communication method, device, equipment and storage medium - Google Patents
Cross-network communication method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN116962405A CN116962405A CN202310939746.8A CN202310939746A CN116962405A CN 116962405 A CN116962405 A CN 116962405A CN 202310939746 A CN202310939746 A CN 202310939746A CN 116962405 A CN116962405 A CN 116962405A
- Authority
- CN
- China
- Prior art keywords
- network
- node
- communication data
- target
- communication
- 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.)
- Pending
Links
- 230000006854 communication Effects 0.000 title claims abstract description 190
- 238000004891 communication Methods 0.000 title claims abstract description 189
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000005540 biological transmission Effects 0.000 claims abstract description 23
- 230000004044 response Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 4
- 238000012216 screening Methods 0.000 claims description 4
- 238000013500 data storage Methods 0.000 claims description 3
- 230000007246 mechanism Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application discloses a cross-network communication method, a device, equipment and a storage medium. Comprising the following steps: receiving communication data sent by a first central node in a first network where the communication data currently resides; when the communication with the second network is determined to be needed according to the target node identification, the communication data is stored in a target cache queue; and when the residence is switched to the second network, the communication data in the target cache queue is sent to a second central node in the second network, so that the second central node sends the data to be transmitted to a target node in the second network according to the target node identification. By selecting one gateway from the nodes in the overlapping area of the first network and the second network and realizing data transmission in different networks through the resident switching mechanism of the gateway, the node communication in adjacent different networks is realized without adding additional hardware equipment, and the hardware cost is obviously saved.
Description
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a cross-network communication method, device, equipment and storage medium.
Background
Currently, communication is usually involved in a network communication process, and in a network with a central node, when adjacent networks need to communicate, the central nodes in two networks usually need to interact information by means of other communication paths.
The currently adopted communication approach can be specifically that two sets of radio frequencies are arranged at the central node, one set is used for intra-network communication and the other set is used for central node communication, but the method can obviously increase hardware cost, and the distance between the two central nodes can be reached by one hop, so that the application scene of cross-network communication can be greatly limited.
Disclosure of Invention
The embodiment of the application provides a cross-network communication method, device, equipment and storage medium, so as to realize the cross-network communication transmission.
In a first aspect, an embodiment of the present application provides a cross-network communication method, which is applied to a gateway, and includes: receiving communication data sent by a first central node in a first network where the communication data currently resides, wherein the communication data comprises a source node identifier, a target node identifier and data to be transmitted;
when the communication with the second network is required according to the target node identification, the communication data is stored in a target cache queue, wherein the gateway is positioned in an overlapping area of the first network and the second network;
and when the residence is switched to the second network, the communication data in the target cache queue is sent to a second central node in the second network, so that the second central node sends the data to be transmitted to a target node in the second network according to the target node identification.
In a second aspect, an embodiment of the present application provides a cross-network communication device, applied to a gateway, including:
the communication data receiving module is used for receiving communication data sent by a first central node in a first network where the communication data currently resides, wherein the communication data comprises a source node identifier, a target node identifier and data to be transmitted;
the communication data storage module is used for storing the communication data to a target cache queue when the communication with a second network is required according to the target node identification, wherein the gateway is positioned in an overlapping area of the first network and the second network;
and the communication data cross-network transmission module is used for transmitting the communication data in the target cache queue to a second central node in the second network when the residence is switched to the second network, so that the second central node transmits the data to be transmitted to a target node in the second network according to the target node identification.
In a third aspect, an embodiment of the present application provides an electronic device, including:
one or more processors;
a storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the methods in any of the embodiments of the present application.
In a fourth aspect, embodiments of the present application also provide a computer storage medium having stored thereon a computer program which, when executed by a processor, implements a method as in any of the embodiments of the present application.
According to the technical scheme of the embodiment of the application, one gateway is selected from the nodes in the overlapping area of the first network and the second network, and the data transmission in different networks is realized through the resident switching mechanism of the gateway, so that the node communication in adjacent different networks is realized without adding additional hardware equipment, and the hardware cost is remarkably saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related 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 method for cross-network communication according to an embodiment of the present application;
fig. 2 is an application scenario schematic diagram of a cross-network communication method according to an embodiment of the present application;
fig. 3 is a flowchart of a method for cross-network communication according to a second embodiment of the present application;
fig. 4 is a schematic structural diagram of a communication device across networks according to a third embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings.
It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example 1
Fig. 1 is a flowchart of a cross-network communication method according to an embodiment of the present application, where the embodiment is applicable to a case of performing cross-network communication, the method may be performed by a cross-network communication device according to an embodiment of the present application, and the device may be implemented in a software and/or hardware manner. As shown in fig. 1, the method specifically includes the following operations:
step S101, receiving communication data sent by a first central node in a first network where the communication data currently resides.
Specifically, as shown in fig. 2, in the application scenario of the communication method in this embodiment, the network a and the network B are adjacent local area networks with an overlapping area, each network includes a plurality of common nodes and a central node, in this embodiment, one common node may be selected from the overlapping area as a gateway through initialization configuration, central node assignment, or by adopting an election mechanism, and in this embodiment, a specific manner of determining the gateway from the common nodes in the overlapping area is not limited. In the present embodiment, the first network may be the first network, the second network may be the second network, and the first network may be the second network, or the first network may be the first network.
Optionally, the method further comprises: determining a resident switching strategy, wherein the resident switching strategy comprises timing switching; and carrying out periodical resident switching in the first network and the second network through a resident switching strategy, wherein the gateway is identical to the resident network in working frequency point, and the working frequency points of the first network and the second network are different.
It should be noted that, the gateway in this embodiment may perform handover between two adjacent networks, specifically, by determining a park handover policy, for example, performing network park handover every 1 minute, and performing periodic handover in the first network and the second network according to the determined park handover policy. Because the working frequency points of the first network and the second network are different in this embodiment, the gateway is realized by changing its own working frequency point when performing residence switching, and when the gateway residence switches to the first network, the gateway is switched to the working frequency point of the first network, so that the gateway maintains time synchronization with the first network and maintains a communication link with a first central node in the first network, and the gateway and the second network are in a disconnection state; when the gateway is at the end of the residence time of the first network and is switched to the working frequency point of the second network, a communication link is kept between the gateway and the second central node in the second network, the gateway is in a disconnection state with the first network, and the central nodes in the networks need to maintain the switching time information of the gateway.
Optionally, before receiving the communication data sent by the first central node in the first network where the first network currently resides, the method further includes: when determining to reside in the second network, periodically receiving second network node information issued by a second central node in the second network, wherein the second network node information comprises identifiers of all nodes in the second network; generating a node update message when the node in the second network is determined to be changed according to the periodically received second network node information, wherein the node update message comprises an update node identifier and an update operation, and the update operation comprises adding or deleting; when determining that the residence is switched to the first network, sending a node update message to a first central node, and broadcasting the update message to all nodes in the first network through the first central node so that all nodes update a node information table of the node according to the update message, wherein the node information table comprises all node identifiers in the current first network and all node identifiers in the second network.
In this embodiment, when the node a in the first network needs to perform cross-network transmission to the node b in the second network, the precondition that the node a knows that the node b exists in the second network, and if the node b has been deleted and the node a is not aware, the cross-network transmission is invalid, so that in order to ensure the validity of the cross-network transmission, the first network and the second network in this embodiment share node information. For example, in this embodiment, taking the node a to obtain node information in the second network as an example, when the gateway resides in the second network, since each node in the second network is notified to the second central node in the second network when the gateway enters or exits the network, the second central node may obtain information of all nodes in the second network, that is, the second network node information, and include the identifiers of all nodes in the second network, and since the gateway periodically receives the second network node information sent by the second central node, when the gateway determines that the node in the second network changes according to the periodically received second network node information, a node update message is generated, and a format of the node update message is specifically shown in table 1 below:
TABLE 1
MsgType | Network ID | Adding node number | Node ID list | Deleting the number of nodes | Node ID list |
When the gateway detects that node information in the second network changes, the gateway initiates different network node information sharing, so that when the gateway is determined to be resident and switched to the first network, node update information is sent to the first center node, the first center node broadcasts the update information to all nodes in the first network, each node updates its own node information table according to the update information, namely, node a in the first network can acquire which nodes are specifically included in the current second network, and in addition, the first center node in the first network also broadcasts the node information of the first network periodically in the first network, so that node a can acquire all node identifiers in the current first network and update the node information table, and under the condition that node b exists in the second network, node a in the first network can acquire in time through different network node information sharing.
Optionally, receiving communication data sent by a first central node in a first network where the communication data currently resides includes: receiving communication data directly transmitted by a first central node in a first network where the first central node currently resides, wherein the communication data is transmitted by a source node when a gateway resides in the first network; or receiving communication data extracted from the local cache by a first central node in the first network where the first central node currently resides, wherein the communication data is sent to the first central node by a source node when the gateway resides in the second network.
In one embodiment, when the node a in the first network needs to communicate across networks, the node information table is searched to obtain that the destination node b is the second network, communication data is generated, and the communication data is sent to the first central node in the first network, where the format of the communication data is as shown in the following table 2:
TABLE 2
MsgType | Source network ID | Source node ID | Destination network ID | Destination node ID | Data payload |
The communication data comprises a source network identifier, a source node identifier, a destination network identifier, a destination node identifier and a data load, and the data load contains data to be transmitted. After receiving the communication data, the first central node further detects whether the gateway is currently resident in the first network when detecting that the destination node b is a node in the second network, if so, the communication data is directly transmitted to the gateway, otherwise, the communication data is stored in a local cache, and when determining that the gateway is resident and switched to the first network, the communication data is extracted from the local cache and is transmitted to the gateway. Therefore, it can be known that the gateway in this embodiment may directly receive the communication data sent by the first central node, or may first wait for the first central node to extract the communication data from the local cache and then receive the communication data sent by the first central node.
Step S102, when the communication with the second network is determined to be needed according to the target node identification, the communication data are stored in a target cache queue.
Optionally, when it is determined that communication with the second network is required according to the target node identifier, storing the communication data in a target cache queue, including: when the target node is located in the second network according to the target node identification, determining that communication with the second network is needed; determining a first cache queue and a second cache queue which are pre-configured, wherein the first cache queue is used for storing data transmitted to the second network by the first network, and the second cache queue is used for storing data transmitted to the first network by the second network; screening from the first cache queue and the second cache queue according to a second network for receiving data, and taking the first cache queue as a target cache queue; and saving the communication data in a target cache queue.
Specifically, in this embodiment, when the gateway obtains the communication data, it is determined that the target node is a node in the second network according to the target node identifier in the communication data, and it is determined that communication with the second network is required. And therefore, when the gateway determines that the data needs to be transmitted from the first network to the second network according to the communication data, the first cache queue is used as a target cache queue.
It should be noted that, in this embodiment, the space sizes of the first buffer queue and the second buffer queue are not limited, and the user may configure according to actual needs. In this embodiment, the manner of determining the target buffer queue is illustrated only when the first network is implemented to cross-network transmission to the second network through the gateway, and when the second network is implemented to cross-network transmission to the first network through the gateway, the manner of determining the target buffer queue is substantially the same as that, and no description is given in this embodiment.
Step S103, when the residence is switched to the second network, the communication data in the target cache queue is sent to a second central node in the second network, so that the second central node sends the data to be transmitted to a target node in the second network according to the target node identification.
Optionally, sending the communication data in the target cache queue to a second central node in a second network, including: detecting a target cache queue, and extracting communication data stored in the target cache queue when the data in the target cache queue is detected; the extracted communication data is sent to a second central node within a second network.
Specifically, when the gateway is in the second network, the first central node in the first network is returned to be disconnected to interrupt the communication link and maintain the communication link with the second central node in the second network, and when the gateway is in the second network, the first cache queue, which is the target cache queue, is detected, and when the data in the target cache queue is determined, the communication data stored in the target cache queue is sent to the second central node in the second network. Because the communication data records the target node identifier such as the node b and related information such as the data to be transmitted, the second central node sends the data to be transmitted to the target node, namely the node b, in the second network, thereby completing the cross-network transmission from the node a in the first network to the node b in the second network.
In the present embodiment, the first network a is taken as a first network, and the second network B is taken as a second network, and the first network performs cross-network data transmission to the second network. Of course, the network a may be used as the second network, and the network B may be used as the first network, and the specific transmission originals are substantially the same as those described above, so that a detailed description is omitted in this embodiment.
According to the technical scheme of the embodiment of the application, one gateway is selected from the nodes in the overlapping area of the first network and the second network, and the data transmission in different networks is realized through the resident switching mechanism of the gateway, so that the node communication in adjacent different networks is realized without adding additional hardware equipment, and the hardware cost is remarkably saved.
Example two
Fig. 3 is a flowchart of a cross-network communication method according to a second embodiment of the present application, where the method further includes detecting a cross-network communication result after sending communication data in a target buffer queue to a second central node in a second network based on the above embodiment. Correspondingly, the method of the embodiment specifically comprises the following operations:
step S101, receiving communication data sent by a first central node in a first network where the communication data currently resides.
Optionally, before receiving the communication data sent by the first central node in the first network where the first network currently resides, the method further includes: when determining to reside in the second network, periodically receiving second network node information issued by a second central node in the second network, wherein the second network node information comprises identifiers of all nodes in the second network; generating a node update message when the node in the second network is determined to be changed according to the periodically received second network node information, wherein the node update message comprises an update node identifier and an update operation, and the update operation comprises adding or deleting; when determining that the residence is switched to the first network, sending a node update message to a first central node, and broadcasting the update message to all nodes in the first network through the first central node so that all nodes update a node information table of the node according to the update message, wherein the node information table comprises all node identifiers in the current first network and all node identifiers in the second network.
Optionally, receiving communication data sent by a first central node in a first network where the communication data currently resides includes: receiving communication data directly transmitted by a first central node in a first network where the first central node currently resides, wherein the communication data is transmitted by a source node when a gateway resides in the first network; or receiving communication data extracted from the local cache by a first central node in the first network where the first central node currently resides, wherein the communication data is sent to the first central node by a source node when the gateway resides in the second network.
Step S202, when the communication with the second network is determined to be needed according to the target node identification, the communication data are stored in the target cache queue.
Optionally, when it is determined that communication with the second network is required according to the target node identifier, storing the communication data in a target cache queue, including: when the target node is located in the second network according to the target node identification, determining that communication with the second network is needed; determining a first cache queue and a second cache queue which are pre-configured, wherein the first cache queue is used for storing data transmitted to the second network by the first network, and the second cache queue is used for storing data transmitted to the first network by the second network; screening from the first cache queue and the second cache queue according to a second network for receiving data, and taking the first cache queue as a target cache queue; and saving the communication data in a target cache queue.
Step S203, when the residence is switched to the second network, the communication data in the target cache queue is sent to a second central node in the second network, so that the second central node sends the data to be transmitted to the target node in the second network according to the target node identification.
Optionally, sending the communication data in the target cache queue to a second central node in a second network, including: detecting a target cache queue, and extracting communication data stored in the target cache queue when the data in the target cache queue is detected; the extracted communication data is sent to a second central node within a second network.
Step S204, detecting whether a receiving response fed back by the second center node is received within a specified time range, if yes, executing step S205, otherwise executing step S206.
Specifically, when the target node receives the communication data, the target node feeds back a receiving response to the second center node and sends the receiving response to the gateway through the second center node; in the case that the target node does not receive the communication data, no receiving response is generated, so in this embodiment, the gateway may detect whether the receiving response fed back by the second central node is received within a specified time range, for example, 3 seconds.
Step S205, determining that the transmission of the communication data across the network is successful.
Step S206, determining the transmission failure of the communication data across the network and generating the prompt information of the communication failure across the network.
Specifically, when it is determined that the receiving response is not received within 3 seconds, the current cross-network communication failure is determined, and at this time, cross-network communication failure prompt information is generated, and the cause of the cross-network communication failure may be that the target node fails in hardware or that the second central node fails in a communication link with the target node.
The gateway can display the cross-network communication failure prompt information to the user, so that the user can detect hardware equipment or a network in time according to the prompt information, and the efficiency and the accuracy of the cross-network communication are further ensured.
According to the technical scheme of the embodiment of the application, one gateway is selected from the nodes in the overlapping area of the first network and the second network, and the data transmission in different networks is realized through the resident switching mechanism of the gateway, so that the node communication in adjacent different networks is realized without adding additional hardware equipment, and the hardware cost is remarkably saved.
Example III
Fig. 4 is a schematic structural diagram of a cross-network communication device according to a third embodiment of the present application, where the device includes: a communication data receiving module 310, a communication data saving module 320, and a communication data cross-network transmission module 330.
A communication data receiving module 310, configured to receive communication data sent by a first central node in a first network where the communication data currently resides, where the communication data includes a source node identifier, a target node identifier, and data to be transmitted;
the communication data saving module 320 is configured to save communication data to the target cache queue when it is determined that communication with the second network is required according to the target node identifier, where the gateway is located in an overlapping area of the first network and the second network;
and the communication data cross-network transmission module 330 is configured to send the communication data in the target cache queue to a second central node in the second network when the residence is switched to the second network, so that the second central node sends the data to be transmitted to a target node in the second network according to the target node identifier.
Optionally, the apparatus further includes a stay switching module configured to determine a stay switching policy, where the stay switching policy includes a timing switch;
and carrying out periodical resident switching in the first network and the second network through a resident switching strategy, wherein the gateway is identical to the resident network in working frequency point, and the working frequency points of the first network and the second network are different.
Optionally, the device further includes a node information sharing module, configured to periodically receive second network node information issued by a second central node in the second network when determining to reside in the second network, where the second network node information includes identifiers of all nodes in the second network;
generating a node update message when the node in the second network is determined to be changed according to the periodically received second network node information, wherein the node update message comprises an update node identifier and an update operation, and the update operation comprises adding or deleting;
when determining that the residence is switched to the first network, sending a node update message to a first central node, and broadcasting the update message to all nodes in the first network through the first central node so that all nodes update a node information table of the node according to the update message, wherein the node information table comprises all node identifiers in the current first network and all node identifiers in the second network.
Optionally, the communication data receiving module is configured to receive communication data directly sent by a first central node in a first network where the communication data is currently resident, where the communication data is sent by a source node to the first central node when the gateway is resident in the first network;
or receiving communication data extracted from the local cache by a first central node in the first network where the first central node currently resides, wherein the communication data is sent to the first central node by a source node when the gateway resides in the second network.
Optionally, the communication data storage module is configured to determine that communication with the second network is required when the target node is located in the second network according to the target node identifier;
determining a first cache queue and a second cache queue which are pre-configured, wherein the first cache queue is used for storing data transmitted to the second network by the first network, and the second cache queue is used for storing data transmitted to the first network by the second network;
screening from the first cache queue and the second cache queue according to a second network for receiving data, and taking the first cache queue as a target cache queue;
and saving the communication data in a target cache queue.
Optionally, the cross-network communication module is configured to detect a target cache queue, and extract communication data stored in the target cache queue when detecting that the data exists in the target cache queue;
the extracted communication data is sent to a second central node within a second network.
Optionally, the device further comprises a cross-network communication detection module for detecting whether a receiving response fed back by the second central node is received within a specified time range, if yes, determining that the cross-network transmission of the communication data is successful,
otherwise, determining that the cross-network transmission of the communication data fails, and generating cross-network communication failure prompt information.
The device can execute the cross-network communication method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment may be found in the method provided by any embodiment of the present application.
Example IV
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Fig. 5 illustrates a block diagram of an exemplary electronic device 412 suitable for use in implementing embodiments of the application. The electronic device 412 shown in fig. 5 is only an example and should not be construed as limiting the functionality and scope of use of embodiments of the application.
As shown in fig. 5, the electronic device 412 is in the form of a general purpose computing electronic device. Components of electronic device 412 may include, but are not limited to: one or more processors 416, a memory 428, a bus 418 that connects the various system components (including the memory 428 and the processor 416).
Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 428 is used to store instructions. Memory 428 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 430 and/or cache memory 432. The electronic device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 418 via one or more data medium interfaces. Memory 428 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the application.
A program/utility 440 having a set (at least one) of program modules 442 may be stored in, for example, memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 442 generally perform the functions and/or methodologies in the described embodiments of the application.
The electronic device 412 may also communicate with one or more external electronic devices 414 (e.g., keyboard, pointing electronic device, display 424, etc.), with one or more electronic devices that enable a user to interact with the electronic device 412, and/or with any electronic device (e.g., network card, modem, etc.) that enables the electronic device 412 to communicate with one or more other computing electronic devices. Such communication may occur through an input/output (I/O) interface 422. Also, the electronic device 412 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through the network adapter 420. As shown, network adapter 420 communicates with other modules of electronic device 412 over bus 418. It should be appreciated that although not shown in fig. 4, other hardware and/or software modules may be used in connection with electronic device 412, including, but not limited to: microcode, electronic device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 416 executes instructions stored in the memory 428 to perform various functional applications and data processing, such as implementing the modulation index estimation method for CPM signals provided by embodiments of the present application: estimating a noise phase variance from the received signal; determining a differential phase of the received signal and a differential phase of the local CPM signal; determining a noise covariance matrix according to the noise phase variance; and estimating the modulation index of the CPM signal according to the noise covariance matrix, the differential phase of the local CPM signal and the differential phase of the received signal.
Example five
A fifth embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a cross-network communication method as provided by all embodiments of the present application:
any combination of one or more computer readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present application and the technical principle applied. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, while the application has been described in connection with the above embodiments, the application is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the application, which is set forth in the following claims.
Claims (10)
1. A method of cross-network communication, applied to a gateway, comprising:
receiving communication data sent by a first central node in a first network where the communication data currently resides, wherein the communication data comprises a source node identifier, a target node identifier and data to be transmitted;
when the communication with the second network is required according to the target node identification, the communication data is stored in a target cache queue, wherein the gateway is positioned in an overlapping area of the first network and the second network;
and when the residence is switched to the second network, the communication data in the target cache queue is sent to a second central node in the second network, so that the second central node sends the data to be transmitted to a target node in the second network according to the target node identification.
2. The method according to claim 1, wherein the method further comprises:
determining a resident switching strategy, wherein the resident switching strategy comprises timing switching;
and carrying out periodical resident switching in the first network and the second network through the resident switching strategy, wherein the gateway is identical to the resident network in working frequency point, and the working frequency points of the first network and the second network are different.
3. The method of claim 1, wherein prior to receiving the communication data sent by the first central node within the first network currently residing, further comprising:
when determining to reside in the second network, periodically receiving second network node information issued by a second central node in the second network, wherein the second network node information comprises identifiers of all nodes in the second network;
generating a node update message when the node in the second network is determined to be changed according to the periodically received second network node information, wherein the node update message comprises an update node identifier and an update operation, and the update operation comprises adding or deleting;
and when determining that residence is switched to the first network, sending the node update message to the first center node, and broadcasting the update message to all nodes in the first network through the first center node so that all nodes update own node information table according to the update message, wherein the node information table comprises all node identifiers in the current first network and all node identifiers in the second network.
4. The method of claim 1, wherein receiving communication data transmitted by a first central node within a first network in which the communication data currently resides comprises:
receiving communication data directly transmitted by a first central node in a first network where the communication data is currently resident, wherein the source node transmits the communication data to the first central node when the gateway is resident in the first network;
or, receiving communication data extracted from a local cache by a first central node in a first network where the communication data is currently resident, wherein the communication data is sent to the first central node by the source node when a gateway is resident in the second network.
5. The method of claim 1, wherein storing the communication data in a target cache queue when it is determined that communication with a second network is required according to the target node identification, comprises:
when the target node is located in the second network according to the target node identification, determining that communication with the second network is needed;
determining a first cache queue and a second cache queue which are configured in advance, wherein the first cache queue is used for storing data transmitted to the second network by the first network, and the second cache queue is used for storing data transmitted to the first network by the second network;
screening from the first cache queue and the second cache queue according to the second network for data receiving, and taking the first cache queue as the target cache queue;
and storing the communication data into the target cache queue.
6. The method of claim 1, wherein said sending the communication data in the target cache queue to a second hub node within the second network comprises:
detecting the target cache queue, and extracting communication data stored in the target cache queue when the data in the target cache queue is detected;
and sending the extracted communication data to the second central node in the second network.
7. The method of claim 1, wherein after said sending the communication data in the target cache queue to a second hub node within the second network, further comprising:
detecting whether a receiving response fed back by the second center node is received within a specified time range, if yes, determining that the transmission of communication data across networks is successful,
otherwise, determining that the cross-network transmission of the communication data fails, and generating cross-network communication failure prompt information.
8. A cross-network communication device, for use in a gateway, comprising:
the communication data receiving module is used for receiving communication data sent by a first central node in a first network where the communication data currently resides, wherein the communication data comprises a source node identifier, a target node identifier and data to be transmitted;
the communication data storage module is used for storing the communication data to a target cache queue when the communication with a second network is required according to the target node identification, wherein the gateway is positioned in an overlapping area of the first network and the second network;
and the communication data cross-network transmission module is used for transmitting the communication data in the target cache queue to a second central node in the second network when the residence is switched to the second network, so that the second central node transmits the data to be transmitted to a target node in the second network according to the target node identification.
9. An electronic device, the electronic device comprising:
one or more processors;
a storage means for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
10. A computer storage medium having stored thereon a computer program, which when executed by a processor performs the method according to any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310939746.8A CN116962405A (en) | 2023-07-28 | 2023-07-28 | Cross-network communication method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310939746.8A CN116962405A (en) | 2023-07-28 | 2023-07-28 | Cross-network communication method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116962405A true CN116962405A (en) | 2023-10-27 |
Family
ID=88456308
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310939746.8A Pending CN116962405A (en) | 2023-07-28 | 2023-07-28 | Cross-network communication method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116962405A (en) |
-
2023
- 2023-07-28 CN CN202310939746.8A patent/CN116962405A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109669787B (en) | Data transmission method and device, storage medium and electronic equipment | |
JP2020532195A (en) | Uplink information transmission method and device and uplink information reception method and device | |
US11528184B2 (en) | Processing method, device and apparatus for mesh network, and storage medium | |
CN112732459A (en) | Method and device for uniformly receiving broadcast messages | |
CN113162836A (en) | Virtual local area network communication method and device, cloud server, medium and electronic equipment | |
CN115299084A (en) | Apparatus, method, device and computer-readable storage medium for service management in a communication system | |
CN114501304A (en) | Near-field communication method, device, storage medium and electronic equipment | |
CN115412993A (en) | Relay discovery method, system, device and storage medium | |
CN116962405A (en) | Cross-network communication method, device, equipment and storage medium | |
CN112306685A (en) | Task isolation method and device, electronic equipment and computer readable medium | |
CN109918215B (en) | Process communication method, system, terminal and storage medium | |
CN108683586B (en) | Data processing method, device, medium and computing equipment in instant communication system | |
CN111314555A (en) | Communication method and device of mobile terminal, mobile terminal and storage medium | |
CN103380593B (en) | A kind of in system upgrade process to method, device and equipment that business processes | |
CN113381938B (en) | Data packet sending method and device, storage medium and electronic equipment | |
CN114158074A (en) | 5G network element address determination method and device, electronic equipment and storage medium | |
CN112615916A (en) | File deployment method and device, electronic equipment and storage medium | |
CN116600364B (en) | Multi-hop networking method, device, electronic equipment and computer readable storage medium | |
CN111586841A (en) | Terminal paging optimization method, system, device and readable storage medium | |
CN115460000B (en) | Session processing method, network device, terminal device and medium | |
CN117042153B (en) | Uplink transmitter switching method, network equipment, terminal equipment and communication system | |
CN117041970A (en) | Communication processing method, device, system, storage medium and electronic equipment | |
CN114727235B (en) | Multicast service processing method and device, storage medium and electronic equipment | |
US20230125376A1 (en) | Selection Method of dangerous Bluetooth Device based on connection with Bluetooth Device | |
CN110958280B (en) | Method for switching auxiliary core device, remote device and computer readable medium |
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 |