CN114423098A - Multi-base-station networking method, communication method of multi-base-station network and related device thereof - Google Patents

Multi-base-station networking method, communication method of multi-base-station network and related device thereof Download PDF

Info

Publication number
CN114423098A
CN114423098A CN202011077676.2A CN202011077676A CN114423098A CN 114423098 A CN114423098 A CN 114423098A CN 202011077676 A CN202011077676 A CN 202011077676A CN 114423098 A CN114423098 A CN 114423098A
Authority
CN
China
Prior art keywords
base station
communication
point
slave base
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011077676.2A
Other languages
Chinese (zh)
Other versions
CN114423098B (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.)
Hytera Communications Corp Ltd
Original Assignee
Hytera Communications Corp 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 Hytera Communications Corp Ltd filed Critical Hytera Communications Corp Ltd
Priority to CN202011077676.2A priority Critical patent/CN114423098B/en
Publication of CN114423098A publication Critical patent/CN114423098A/en
Application granted granted Critical
Publication of CN114423098B publication Critical patent/CN114423098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices
    • H04W88/10Access point devices adapted for operation in multiple networks, e.g. multi-mode access points
    • 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/04Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a networking method of multiple base stations, a communication method of a network of multiple base stations and related devices thereof. The multiple base stations include a master base station and a slave base station. The networking method of multiple base stations comprises the following steps: the slave base station records the communication address of the master base station transmitted by the master base station and the communication addresses of other slave base stations; the slave base station performs communication interaction with other slave base stations based on the acquired communication address; recording whether point-to-point communication can be carried out by other slave base stations according to the communication interaction condition; and confirming the working mode of the slave base station according to the point-to-point communication possibility information of other slave base stations. The multi-base station network established by the multi-base station networking method can be adaptive to the current network condition, and selects the optimal communication mode for interconnection communication.

Description

Multi-base-station networking method, communication method of multi-base-station network and related device thereof
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method for networking multiple base stations, a method for communicating a network of multiple base stations, and a related apparatus thereof.
Background
The basic principle of interconnection of multiple base stations is to connect a plurality of scattered base stations through a network based on a TCP/IP (Transmission Control Protocol/Internet Protocol), thereby realizing a wider communication coverage. The networking method of interconnection of multiple base stations mainly has 2 modes, one mode is a Client/Server (C/S) scheme; the other is a "Peer-to-Peer (P2P-sharing of computer resources and information by direct exchange between systems)" scheme. The networks constructed by the two networking methods can only communicate according to the corresponding communication methods, cannot adapt to the current network conditions, and cannot select the optimal communication mode for interconnection communication.
Disclosure of Invention
The application provides a multi-base station networking method, a communication method of a multi-base station network and related devices thereof.
In order to solve the above technical problem, the present application provides a method for networking multiple base stations, where the multiple base stations include a master base station and a slave base station; the method comprises the following steps:
the slave base station records the communication address of the master base station transmitted by the master base station and the communication addresses of other slave base stations;
the slave base station performs communication interaction with other slave base stations based on the acquired communication address;
recording whether point-to-point communication can be carried out by other slave base stations according to the communication interaction condition;
and confirming the working mode of the slave base station according to the point-to-point communication possibility information of other slave base stations.
In order to solve the above technical problem, the present application provides a method for networking multiple base stations, where the multiple base stations include a master base station and a slave base station, and the method includes:
the master base station records the communication addresses of all the slave base stations;
the master base station sends the communication address of the master base station and the communication addresses of other slave base stations to the slave base stations, so that the slave base stations carry out communication interaction with other slave base stations according to the communication addresses of other slave base stations, and the slave base stations record point-to-point communication capability information of other slave base stations according to communication interaction conditions;
the master base station acquires the operation mode of the slave base station.
In order to solve the technical problem, the present application provides a communication method for a multi-base-station network, where the multi-base-station network includes a master base station and slave base stations, each base station records communication addresses of other base stations, each slave base station records information on whether point-to-point communication of other slave base stations is possible, and the information on whether point-to-point communication is possible or impossible; the method comprises the following steps: the sending end confirms the working mode of the sending end;
when the self working mode is a client/server mode, whether the point-to-point communication of all receiving ends can be judged to be non point-to-point communication is confirmed, and the communication is carried out with all receiving ends in a client/server communication mode;
when the working mode of the self-body is a point-to-point mode, whether the point-to-point communication of the receiving end can be carried out or not is confirmed;
if the sending end determines whether the point-to-point communication of the receiving end can be performed or not, the sending end communicates with the receiving end in a point-to-point communication mode;
if the sending end determines whether the point-to-point communication of the receiving end can be the non point-to-point communication, the sending end communicates with the receiving end in a client/server communication mode;
wherein, the receiving end and the transmitting end are both slave base stations.
In order to solve the above technical problem, the present application provides a communication method for a multiple base station network, where the multiple base stations include a master base station and a slave base station, and the method includes:
the main base station receives a data packet from a sending end;
confirming the working mode of a sending end;
when the working mode of the sending end is a client/server mode, whether the point-to-point communication of all the receiving ends can be judged to be non-point-to-point communication or not is confirmed, and the data packet is sent to all the receiving ends;
when the working mode of the sending end is a point-to-point mode, sending the data packet to a receiving end which can or cannot perform point-to-point communication;
wherein, the sending end and the receiving end are both slave base stations.
In order to solve the above technical problem, the present application provides a base station, which includes a processor, a memory, and a transceiver, wherein the memory and the transceiver are coupled to the processor, the memory stores a computer program therein, and the processor is configured to execute the computer program to implement the steps of the above method.
In order to solve the above technical problem, the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program implements the steps of the above method when executed.
Each slave base station in the multiple base stations constructed by the networking method of the application stores the communication addresses of other base stations, so that the slave base stations can judge whether the communication interaction between the slave base stations and other slave base stations is abnormal according to the recorded communication addresses of the other base stations, and can confirm whether the point-to-point communication capability information of the other slave base stations and the working mode of the slave base stations per se according to the communication interaction condition, so that the slave base stations can select a proper communication mode to communicate with other slave base stations according to the working mode of the slave base stations per se and the point-to-point communication capability information of the other slave base stations in the subsequent communication process, can directly use the stored communication addresses of the other slave base stations to communicate with other slave base stations when the selected communication mode is P2P communication, and can communicate with other slave base stations through the master base station when the selected communication mode is C/S mode, that is, after selecting a suitable communication mode, the slave base stations can complete communication with other slave base stations through interaction of the base stations in the multiple base stations established by the embodiment, and the multiple base station network established by the networking method of the present application can adapt to the current network situation and select the optimal communication mode for interconnection communication.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of an embodiment of a method for networking multiple base stations according to the present application;
fig. 2 is a schematic flowchart illustrating a process of acquiring communication addresses of other base stations from a base station according to an embodiment of the method for networking multiple base stations of the present application;
FIG. 3 is a schematic diagram of a base station communicating with other base stations in a symmetric NAT network environment according to the present application;
FIG. 4 is a schematic diagram illustrating a Hairping problem in communication between different base stations in the same router according to the present application;
fig. 5 is a schematic flowchart of another embodiment of a method for networking multiple base stations according to the present application;
FIG. 6 is an interaction diagram of an embodiment of a multi-base-station networking method according to the present application;
fig. 7 is an interaction diagram of another embodiment of the method for networking multiple base stations according to the present application;
fig. 8 is a schematic flowchart of a networking method for multiple base stations according to another embodiment of the present application;
fig. 9 is a schematic flowchart of an embodiment of a communication method of a multi-base station network according to the present application;
FIG. 10 is a schematic diagram illustrating communication between base stations according to an embodiment of the communication method of the multi-base-station network;
fig. 11 is a schematic flowchart of another embodiment of a communication method of a multi-base station network according to the present application;
FIG. 12 is an interaction diagram of an embodiment of a communication method of a multi-base station network according to the present application;
fig. 13 is an interaction diagram of another embodiment of the communication method of the multi-base station network according to the present application;
fig. 14 is a schematic flowchart of a communication method of a multi-base station network according to another embodiment of the present application;
fig. 15 is a schematic flowchart of a communication method of a multi-base station network according to still another embodiment of the present application;
FIG. 16 is a block diagram of an embodiment of a base station of the present application;
FIG. 17 is a schematic structural diagram of an embodiment of a computer storage medium according to the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present application, a shopping cart based shopping behavior analysis method, apparatus, system and storage medium provided by the present application are described in further detail below with reference to the accompanying drawings and detailed description.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for multiple base stations to establish a network according to an embodiment of the present application. The multiple base stations may include a master base station and a slave base station. The method for networking by multiple base stations can comprise the following steps.
S101: the slave base station records the communication address of the master base station transmitted by the master base station, and the communication addresses of other slave base stations.
In this embodiment, as shown in fig. 2, the obtaining, by the slave base station, the communication address of the master base station transmitted by the master base station and the communication addresses of the other slave base stations may include: a Slave base station (which may be the Slave1 and the Slave2 shown in fig. 2) sends a registration request to a Master base station (which may be the Master shown in fig. 2) so that the Master base station acquires a communication address of the Slave base station; receiving the registration information sent by the main base station from the slave base station, and acquiring the communication address of the main base station; the slave base station receives the communication addresses of the other slave base stations transmitted by the master base station. Before the slave base station acquires the communication address of the master base station and the communication addresses of other slave base stations from the master base station, a registration application is generally required to be made to the master base station, and the master base station applies for being added to a base station network formed by the multiple base stations. The slave base station receives the registration information replied by the master base station, namely the slave base station can extract and store the communication address of the master base station from the registration information through the registration application of the slave base station. In another embodiment, the slave base station receives the registration information and the communication address of the master base station from the master base station, so that the communication address of the master base station can be saved after the slave base station acquires the communication address of the master base station.
After the slave base station joins the multiple base stations, the slave base station may receive the communication addresses of the remaining slave base stations in the multiple base stations from the master base station, and may store the communication addresses of the remaining slave base stations, so that the slave base station stores the communication address of the master base station and the communication addresses of the remaining slave base stations. Of course, after the slave base stations join the multiple base stations, the master base station also sends the communication addresses of the slave base stations to the other slave base stations, so that each base station in the multiple base stations records the communication addresses of the other base stations.
S102: and the slave base station performs communication interaction with other slave base stations based on the acquired communication address.
The slave base station can directly take the acquired communication addresses of the rest slave base stations as the current communication addresses of the rest slave base stations, and performs communication interaction with the rest slave base stations.
Alternatively, the communication interaction situation between the slave base station and other slave base stations can be detected through a heartbeat detection mechanism.
Optionally, the slave base station can make timing inquiry to other slave base stations to make communication interaction with other slave base stations. The communication interaction situation between the slave base station and other slave base stations can be confirmed according to whether other replies from the base stations are received under certain conditions. If the responses of other slave base stations are not received under certain conditions, the slave base station and other slave base stations can be determined to be abnormal in communication interaction. When the replies of other slave base stations are received under certain conditions, the slave base stations and other slave base stations can be determined to be in normal communication interaction. Wherein, under certain conditions, the time can be more than once or for a long time.
S103: and recording whether the other point-to-point communication can be carried out from the base station according to the communication interaction condition.
When the slave base station performs communication interaction with other slave base stations through the communication addresses of other slave base stations acquired from the master base station, if the communication interaction between the slave base station and other slave base stations is abnormal, that is, the slave base station and other slave base stations do not support P2P communication, it may be recorded that the other slave base stations are not available for point-to-point communication.
There may be two cases that cause communication interaction between the slave base station and other slave base stations to be abnormal, one of which may be that the slave base station cannot transmit data to other slave base stations, and the other of which may be that the slave base station cannot receive data transmitted from other slave base stations. The root cause of the first case may be: the communication addresses of other slave base stations acquired from the master base station are not the current communication addresses of other slave base stations, that is, the communication addresses of other slave base stations to the outside may change at any time, for example, as shown in fig. 3, the base station is in a symmetric NAT (Network Address Translation) Network environment; alternatively, there is a Hairping problem in the communication between the slave base station and other slave base stations, for example, as shown in FIG. 4, the Hairping problem may occur in the communication between different relay stations under the same router. The root cause for the second case may be: the communication addresses of other slave base stations recorded by the slave base stations are not the current communication addresses of the slave base stations, namely the communication addresses of the slave base stations to the outside may change at any time; alternatively, there is a hairping problem with communications between a slave base station and other slave base stations.
If the communication interaction between the slave base station and other slave base stations is normal, that is, the slave base station and other slave base stations can support P2P communication, the other slave base stations can be recorded as point-to-point communication.
S104: and confirming the working mode of the slave base station according to the point-to-point communication capability information of other slave base stations.
Each slave base station in the multiple base stations constructed by the networking method in the embodiment stores the communication addresses of other base stations, so that the slave base station can judge whether the communication interaction between the slave base station and other slave base stations is abnormal according to the recorded communication addresses of the other base stations, and can confirm whether the peer-to-peer communication capability information of the other slave base stations and the working mode of the slave base station per se according to the communication interaction condition, so that the slave base station can select a proper communication mode to communicate with other slave base stations according to the working mode of the slave base station per se and the peer-to-peer communication capability information of the other slave base stations in the subsequent communication process, can directly use the stored communication addresses of the other slave base stations to communicate with other slave base stations when the selected communication mode is P2P communication, and can communicate with other slave base stations through the master base station when the selected communication mode is the C/S mode, that is, after selecting a suitable communication mode, the slave base stations can complete communication with other slave base stations through interaction of the base stations in the multiple base stations established by the embodiment, and the multiple base station network established by the networking method of the present application can adapt to the current network situation and select the optimal communication mode for interconnection communication.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a method for multiple base stations to establish a network according to another embodiment of the present application. The multiple base stations may include a master base station and a slave base station. The method for networking by multiple base stations can comprise the following steps.
S201: the slave base station records the communication address of the master base station transmitted by the master base station, and the communication addresses of other slave base stations.
S202: and the slave base station performs communication interaction with other slave base stations based on the acquired communication address.
S203: and recording whether the other point-to-point communication can be carried out from the base station according to the communication interaction condition.
When communication interaction between the slave base station and other slave base stations is abnormal, whether point-to-point communication capability information of other slave base stations is recorded as point-to-point communication incapability information.
When the communication interaction between the slave base station and other slave base stations is normal, recording whether the point-to-point communication capability information of other slave base stations is point-to-point communication possible.
The number of the other slave base stations can be one or more, and the information of the peer-to-peer communication capability of each other slave base station can be recorded according to the communication interaction situation between the slave base stations.
S204: and confirming the working mode of the slave base station according to the communication interaction condition.
Further, the communication interaction between the slave base station and the at least one other slave base station is normal, that is, the at least one other slave base station may be recorded as being capable of point-to-point communication, and it may be stated that the communication address of the slave base station recorded by the other slave base station is the current communication address of the slave base station, that is, the operation mode of the slave base station is the P2P mode.
When the communication interaction between the slave base station and all other slave base stations is abnormal, namely all other slave base stations are recorded as non-point-to-point communication, the current working mode of the slave base station can be a C/S mode.
S205: and acquiring the working modes of other slave base stations from the slave base station.
After each slave base station confirms its own operation mode based on the method in step S204, it can confirm whether it is necessary to notify its own operation mode to other slave base stations based on whether there is a default operation mode or what the default operation mode is, so that after other slave base stations receive the notification, the operation mode of the slave base station is recorded based on the meaning or content of the notification.
In an implementation manner, if each slave base station has no default operating mode, that is, each slave base station does not initially use the default operating mode as the operating mode of another slave base station, in this case, after each slave base station confirms its operating mode, it needs to send a notification including its operating mode to another slave base station. According to the method for notifying the working mode of the slave base station, the slave base station acquires all the rest of the notifications sent by the slave base station, and then records the working modes of the rest of the slave base stations based on the content of the notifications, so that the slave base stations can know and record the working modes of other slave base stations.
In another implementation, the P2P mode is defaulted if each slave base station mode of operation is initiated. When any slave base station confirms that the working mode of the slave base station is the C/S mode, the slave base station can inform other slave base stations of the working mode of the slave base station, so that the other slave base stations can know that the working mode of the slave base station is the C/S mode, and the other slave base stations can change the working mode of the slave base station recorded by the other slave base stations into the C/S mode. Based on the method for notifying the working mode of the slave base station, the slave base station acquires the notifications sent by the rest slave base stations in the C/S mode, and then changes the recorded working modes corresponding to the rest slave base stations into the C/S mode based on the notifications; the slave base station does not acquire the notification of the slave base station of the P2P mode, and the slave base station does not change the operation mode of the slave base station recorded by the corresponding remaining slave base stations, so that the slave base station can know and record the operation modes of other slave base stations.
In yet another embodiment, all slave base station operation modes initiate default to the C/S mode. When any slave base station confirms that the working mode of the slave base station is the P2P mode, the slave base station can inform other slave base stations of the working mode of the slave base station, so that the other slave base stations can know that the working mode of the slave base station is the P2P mode, and the other slave base stations can change the working mode of the slave base station recorded by the other slave base stations into the P2P mode. Based on the method for notifying the working mode of the slave base station, the slave base station acquires the notifications sent by the rest slave base stations in the P2P mode, and then changes the working mode corresponding to the rest slave base stations recorded by the slave base station into the P2P mode based on the notifications; the slave base station does not acquire the notification of the slave base station of the C/S mode, and the slave base station does not change the working mode of the slave base station recorded by the corresponding other slave base stations, so that the slave base station can know and record the working modes of other slave base stations.
In summary, based on the above method for confirming the self operation mode and notifying the slave base station of the self operation mode, the slave base station may obtain the operation mode information of the remaining slave base stations from at least some of the remaining slave base stations, that is, obtain the notification sent by at least some of the remaining slave base stations, and record the operation modes of the remaining slave base stations based on the obtained operation mode information.
In addition, the slave base station may inform other slave base stations of its own operation mode in various ways. For example, the slave base station may inform the master base station of its own operation mode to let the master base station inform other slave base stations of its operation mode, so that the master base station and the other slave base stations can both know the operation mode of the slave base station, and the master base station and the remaining slave base stations can both record the operation mode of the slave base station. For another example, the slave base station may directly transmit its operating mode to the remaining slave base stations.
Alternatively, the slave base station may perform periodic communication interaction with other slave base stations based on the communication address acquired by the slave base station from the master base station. And then the slave base station can periodically record whether the point-to-point communication of other slave base stations can be performed or not according to the communication interaction condition, and the working modes of other slave base stations. Therefore, in the operation process of the slave base station, the slave base station can periodically detect the communication interaction condition between the slave base station and other slave base stations, so that whether the current point-to-point communication of other slave base stations can be known according to the currently detected communication interaction condition and the current working modes of other slave base stations, communication can be carried out with other slave base stations according to the current point-to-point communication whether information and working modes of other slave base stations, and communication failure caused by the change of the communication environment and according to the originally recorded condition is prevented. Of course, in other implementations, the slave base station may not periodically confirm the operating modes and the peer-to-peer availability information of the remaining slave base stations, the slave base station may perform periodic communication interaction with other slave base stations based on the communication address acquired from the master base station before the slave base station needs to transmit data to at least part of the slave base stations, and then the slave base station may record the peer-to-peer communication availability information and the operating modes of the other slave base stations according to the communication interaction situation, so that the peer-to-peer communication availability information and the operating modes confirmed before transmitting data are consistent with the situation when transmitting data, so that the slave base station may quickly and efficiently transmit data to at least part of the remaining slave base stations.
It is to be understood that the order of execution of step S205 is not limited, and may be performed before step S204, for example.
Referring to fig. 6, fig. 6 is an interaction diagram of an embodiment of a communication method for multiple base stations according to the present application. The multiple base stations include a master base station and a slave base station. The method for networking multiple base stations in this embodiment may include the following steps.
The master base station transmits the communication address of the master base station and the communication addresses of the other slave base stations to the slave base station.
And the slave base station performs communication interaction with other slave base stations based on the acquired communication address.
And the slave base station records whether the point-to-point communication of other slave base stations can be carried out according to the communication interaction condition.
For example, as shown in fig. 6, the slave base station and the other slave base stations 1 may interact normally, and at this time, the point-to-point communication capability information of the other slave base stations 1 may be recorded as point-to-point communication capability. The slave base station and other slave base stations 2 may not normally perform communication interaction, and at this time, the information about whether the point-to-point communication with the slave base station 2 is possible to be recorded as non-point-to-point communication.
And the slave base station confirms the working mode of the slave base station according to the communication interaction condition.
The master base station acquires the operation mode of the slave base station.
The master base station can confirm the operation mode of the slave base station based on whether or not there is a default operation mode of the slave base station or what the default operation mode of the slave base station is.
In one implementation, when each slave base station does not have a default operation mode, the master base station needs to confirm the operation mode of each slave base station based on the content of the notification transmitted by each slave base station. For example, if the notification transmitted from the slave base station indicates that the operation mode of the slave base station is the point-to-point mode, the master base station confirms that the operation mode of the slave base station is the point-to-point mode. For another example, if the notification transmitted from the slave base station indicates that the operation mode of the slave base station is the client/server mode, the master base station confirms that the operation mode of the slave base station is the client/server mode.
In another implementation, the P2P mode is defaulted if each slave base station mode of operation is initiated. If the master base station does not receive the notice from the slave base station, the working mode of the slave base station is confirmed to be a point-to-point mode; if the master base station receives the notification from the slave base station, the working mode of the slave base station is confirmed to be a client/server mode. In addition, after receiving the notification from the slave base station, the master base station may change the described operation mode of the slave base station from the peer-to-peer mode to the client/server mode, and notify other slave base stations so that the other slave base stations can know the operation mode of the slave base station.
In yet another embodiment, all slave base station operation modes initiate default to the C/S mode. If the master base station does not receive the notification from the slave base station, the working mode of the slave base station is confirmed to be a client/server mode; and if the master base station receives the notice from the slave base station, confirming that the working mode of the slave base station is the point-to-point mode. In addition, after receiving the notification from the slave base station, the master base station may change the operation mode of the slave base station described therein from the client/server mode to the point-to-point mode, and notify other slave base stations so that the other slave base stations can know the operation mode of the slave base station.
Referring to fig. 7, fig. 7 is an interaction diagram of another embodiment of a communication method for multiple base stations according to the present application. The multiple base stations comprise a main base station and slave base stations, and the working modes of all the slave base stations are default to a P2P mode. The method for networking multiple base stations in this embodiment may include the following steps.
401. The master base station transmits the communication address of the master base station and the communication addresses of the other slave base stations to the slave base station.
402. And the slave base station performs communication interaction with other slave base stations based on the acquired communication address.
403. And the slave base station records whether the point-to-point communication of other slave base stations can be carried out according to the communication interaction condition.
404. And the slave base station changes the working mode of the slave base station into the C/S mode.
In the present embodiment, since the communication interaction between the slave base station and the other slave base stations is abnormal, that is, since the peer-to-peer communication availability information of the other slave base stations described in the slave base station is not available for peer-to-peer communication, the operation mode of the slave base station itself needs to be changed from the default operation mode to the C/S mode.
In the previous embodiment shown in fig. 6, the slave base station currently operates in the P2P mode because the other slave base stations are not all capable of peer-to-peer communication and their peer-to-peer communication is not possible. When the current operation mode of the slave base station is consistent with the previously recorded operation mode of the slave base station, the slave base station may not notify the master base station of the operation of the slave base station, and may not notify other slave base stations via the master base station.
405. The slave base station notifies the master base station that "the slave base station' S own operation mode is the C/S mode".
With the present embodiment, since the current operation mode of the slave base station does not coincide with the previously recorded operation mode of the slave base station itself, the slave base station needs to notify the master base station that the operation mode of the master base station itself is modified.
406. The master base station records the operating mode of the slave base station.
After receiving the notification from the slave base station, the master base station confirms that the working mode of the slave base station needs to be modified, and modifies the working mode of the slave base station recorded in the master base station, specifically, the working mode of the slave base station may be modified to "C/S mode".
407. The master base station notifies the other slave base stations that "the operation mode of the slave base station itself is the C/S mode".
After the master base station receives the notification from the slave base station, the master base station notifies the other slave base stations that the slave base station 'S own operation mode is the C/S mode'. The step of the master base station notifying other slave base stations may be before step 406, may be after step 406, and may of course be performed simultaneously with step 406.
408. The other slave base stations record the operating mode of the slave base station.
After other slave base stations receive the notification of the master base station, that is, after the working mode of the slave base station is the C/S mode, the other slave base stations know that the working mode of the slave base station is modified, so that the other slave base stations can change the working mode of the slave base station recorded by the other slave base stations, specifically, the working mode of the slave base station recorded by the other slave base stations is changed into the C/S mode.
Referring to fig. 8, fig. 8 is a schematic flowchart illustrating a method for multi-base station networking according to an embodiment of the present application. The multiple base stations may include a master base station and a slave base station. The method for networking by multiple base stations can comprise the following steps.
S501: the master base station transmits its own communication address and communication addresses of other slave base stations to the slave base station.
S502: the master base station receives a notification from the slave base station, the notification indicating that the operation mode of the slave base station is the C/S mode.
S503: the master base station records the working mode of the slave base station and informs other slave base stations.
Referring to fig. 9, fig. 9 is a schematic flowchart of a method for performing communication by a base station in a multi-base station network established by the above-mentioned multi-base station networking method according to the present application. The multiple base stations include a master base station and a slave base station. The sending end and the receiving end are both slave base stations. And each base station records the communication addresses of other base stations. The slave base station can record the point-to-point communication capability information of the rest slave base stations. The information recorded by each base station can be obtained based on the networking method of the multi-base station network. In other implementation manners, the information such as the communication addresses of the remaining base stations and the peer-to-peer communication availability information recorded by each base station may also be configured in advance in each base station, for example, a base station manager knows the condition of each base station in advance, and the base station manager may import the data into each base station. The communication method of the multiple base station network may include the following steps.
S601: the sending end confirms the working mode of the sending end.
Each slave base station can record the working mode of the slave base station, so that the working mode of the slave base station can be confirmed later. The sending end can confirm the working mode of the sending end by looking up the working mode of the sending end.
If the operation mode is C/S mode, the process proceeds to step S602. If the operation mode is the P2P mode, the process proceeds to step S603.
S602: and confirming whether the point-to-point communication capability information of all the receiving ends is non-point-to-point communication, and communicating with all the receiving ends in a client/server communication mode.
When the sending end determines that the working mode of the sending end is the C/S mode, it may determine whether the peer-to-peer communication capability information of the receiving end is non-peer-to-peer communication, and then the process goes to step S703.
When the sending end confirms that the working mode of the sending end is the C/S mode, whether the point-to-point communication of the receiving end can be confirmed to be the non point-to-point communication or not can be confirmed, and the sending end can send the data packet to the main base station. And the main base station sends the data packet to all receiving ends when confirming that the working mode of the sending end is the C/S mode.
S603: the sending end confirms whether the point-to-point communication of the receiving end can be carried out or not.
The peer-to-peer communication capability information may be either peer-to-peer communication or non-peer-to-peer communication.
Thus, the sending end can confirm whether the point-to-point communication of the receiving end can be performed or not by looking up the recorded point-to-point communication capability information of the rest slave base stations.
If the peer-to-peer communication capability information of the receiving end is that peer-to-peer communication is possible, the process proceeds to step S604. If the peer-to-peer communication capability information of the receiving end is not peer-to-peer communication capable, the process proceeds to step S605.
For example, as shown in fig. 10, the Slave base station Slave1 may first confirm whether the point-to-point communication capability information of the other Slave base stations Slave2 and Slave3 is available. The Slave base station Slave1 may confirm whether the peer-to-peer communication capability information of the other Slave base station Slave2 is peer-to-peer communication, and then it needs to go to step S602 to communicate with the other Slave base station Slave 2. The Slave base station Slave1 may determine whether the peer-to-peer communication capability information of the other Slave base station Slave3 is not available for peer-to-peer communication, and then it needs to go to step S603 to communicate with the other Slave base station Slave 3.
It can be understood that the peer-to-peer communication availability information indicates whether the communication interaction between the slave base station and other slave base stations is abnormal, so that the peer-to-peer communication availability information of the slave base station recorded by each other slave base station may be different for the slave base station, for example, the peer-to-peer communication availability information of the slave base station may be recorded as non-peer-to-peer communication when there is an abnormal communication interaction between the other slave base station and the slave base station; for example, if the communication interaction between the slave base station and some other slave base stations is normal, the information on whether the peer-to-peer communication is possible may be recorded as the peer-to-peer communication.
S604: and communicating with the receiving end in a P2P communication mode.
The information of whether the point-to-point communication of the receiving end can be the point-to-point communication or not, namely, the fact that the communication interaction between the sending end and the receiving end is normal is indicated, the sending end can directly communicate with the receiving end in a P2P communication mode, so that the transfer of the main base station is not needed, the transmission time is saved, the real-time performance is high, and even if the main base station fails, the sending end can also communicate with the receiving end.
S605: and communicating with the receiving end in a C/S communication mode.
The method comprises the steps that whether point-to-point communication of a receiving end can be achieved or not is judged, namely whether the point-to-point communication can be achieved or not is judged, namely whether the communication interaction between a sending end and the receiving end is abnormal or not is judged, the sending end cannot communicate with the receiving end in a point-to-point communication mode, and therefore the sending end can communicate with the receiving end in a C/S communication mode.
In one implementation, after determining whether the peer-to-peer communication capability information of the receiving end is non-peer-to-peer communication, the data packet and the communication addresses of all the receiving ends of the non-peer-to-peer communication may be directly sent to the master base station, so that the master base station sends the data packet to the communication addresses of all the receiving ends of the non-peer-to-peer communication through the communication addresses of all the receiving ends of the non-peer-to-peer communication. Even though the communication address of some non-point-to-point communication receiving ends may change because the working mode of the receiving ends is the C/S mode, the main base station can match the communication address of the receiving end acquired together with the data packet with the communication address of the receiving end stored by the main base station, and the main base station can send the data packet to the receiving end with the successfully matched communication address, so that the main base station can send the data packet to the receiving end corresponding to the communication address.
In another implementation, the sending end may further determine whether the communication address of the receiving end needs to be sent to the primary base station together with the data packet based on the operating mode of the receiving end. Illustratively, the sender sends a communication address including the receiver to the master base station when the working mode of the receiver is determined to be the peer-to-peer mode, and sends a data packet to the master base station when the working mode of the receiver is determined to be the client/server.
In the embodiment, the sending end firstly confirms whether the point-to-point communication of the receiving end can be carried out or not, and then selects an appropriate communication mode to carry out communication with the receiving end according to the point-to-point communication of the receiving end, so that the condition of the receiving end can be adapted, the optimal communication mode is selected to carry out communication with each receiving end according to the condition of each receiving end, the P2P communication mode and the C/S communication mode can be fused complementarily, and the time for transmitting data to part of the receiving ends can be saved under the condition that all the receiving ends can carry out communication interaction with the sending end.
In this embodiment, the receiving end may be all the slave base stations except the transmitting end, so that all the slave base stations except the transmitting end can acquire the data packet transmitted by the transmitting end. Of course, the receiving side may be a plurality of slave base stations other than the transmitting side, and thus only the plurality of slave base stations other than the transmitting side can acquire the packet transmitted by the transmitting side. Of course, the receiving end may be one slave base station other than the transmitting end, so that only one slave base station can acquire the data packet transmitted by the transmitting end, and all slave base stations other than the transmitting end and the one slave base station cannot acquire the data packet transmitted by the transmitting end.
Referring to fig. 11, fig. 11 is a flowchart illustrating a communication method of a multi-base station network according to another embodiment of the present application. The communication process of the base stations in the multi-base station network can comprise the following steps. The multiple base stations include a master base station and a slave base station. The sending end and the receiving end are both slave base stations.
S701: the sending end confirms the working mode of the sending end.
Each slave base station can record the working mode of the slave base station, so that the working mode of the slave base station can be confirmed later. The sending end can confirm the working mode of the sending end by looking up the working mode of the sending end.
If the operation mode is the C/S mode, the process proceeds to step S702. If the own operation mode is the P2P mode, the process proceeds to step S704.
S702: and confirming whether the point-to-point communication capability information of all the receiving ends is non-point-to-point communication.
When the sending end determines that the working mode of the sending end is the C/S mode, it may determine whether the peer-to-peer communication capability information of the receiving end is non-peer-to-peer communication, and then the process goes to step S703.
S703: and transmitting the data packet to the main base station so that the main base station transmits the data packet to all receiving ends.
When the sending end confirms that the working mode of the sending end is the C/S mode, whether the point-to-point communication of the receiving end can be confirmed to be the non point-to-point communication or not can be confirmed, and the sending end can send the data packet to the main base station. And the main base station sends the data packet to all receiving ends when confirming that the working mode of the sending end is the C/S mode.
S704: the sending end confirms whether the point-to-point communication of the receiving end can be carried out or not.
When the sender confirms that the own working mode is the P2P mode, whether the peer-to-peer communication availability information of the receiver is all available for peer-to-peer communication cannot be confirmed, so that the sender needs to further confirm the peer-to-peer communication availability information of the receiver and then select a communication mode to communicate with each receiver according to the peer-to-peer communication availability information of each receiver.
If the peer-to-peer communication capability information of the receiving end is not peer-to-peer communication, the process proceeds to step S706. If the peer-to-peer communication capability information of the receiving end is that peer-to-peer communication is possible, the process proceeds to step S705.
S705: and communicating with the receiving end in a P2P communication mode.
S706: and confirming the working mode of the receiving end.
When the point-to-point communication capability information of the receiving end is the non-point-to-point communication, the working mode of the receiving end can be continuously confirmed, and then whether the communication address of the receiving end needs to be sent to the main base station or not can be confirmed according to the working mode of the receiving end.
When the working mode of the receiving end is the C/S mode, the step S707 is entered; if the operation mode of the receiving end is the P2P mode, the process proceeds to step S708. Therefore, the main base station determines to which the data packet is sent according to whether the received data packet contains the communication address of the receiving end, so that the receiving end which can not perform point-to-point communication can ensure whether the point-to-point communication can be performed can not receive repeated data packets, and air interface resources are prevented from being wasted.
S707: and transmitting the data packet to the main base station to communicate with the receiving end.
When the work mode of the receiving end is the C/S mode, the sending end only needs to send the data packet to the main base station, the communication address of the receiving end does not need to be sent to the main base station, and the main base station can directly send the data packet to the receiving end with the work mode being the C/S mode after judgment, so that the sending end can communicate with the receiving end in a C/S communication mode.
S708: and sending the data packet to be sent and the communication address of the receiving end to the main base station so as to communicate with the receiving end.
When the working mode of the receiving end is the P2P mode, the sending end needs to send the communication address of the receiving end to the main base station, the main base station can send the data packet to the receiving end with the working mode of the P2P mode through the communication address of the receiving end, and thus the sending end can communicate with the receiving end through the C/S communication mode.
Through step S707 and step S708, it is ensured that the receiving end that determines whether the peer-to-peer communication is possible to communicate with the transmitting end, so as to ensure normal data communication, and it is also ensured that the receiving end that determines whether the peer-to-peer communication is possible to determine whether the information is not possible to receive repeated data packets, thereby avoiding waste of network resources.
In this embodiment, when the working mode of the transmitting end is C/S, the data packet may be directly transmitted to the main base station, so that the main base station forwards the data packet to all receiving ends, and thus, the communication interaction between the transmitting end with the working mode of C/S and all receiving ends may be completed. When the working mode of the sending terminal is the P2P mode, whether the communication interaction with each receiving terminal is abnormal is firstly judged, and the sending terminal directly interacts with the receiving terminals in a P2P communication mode under the condition that the communication interaction with the receiving terminals is normal, so that the transmission time is saved, and the transmission efficiency is improved. Judging whether each point-to-point communication can be in a working mode of a receiving end which cannot perform point-to-point communication under the condition that communication interaction with the receiving end is abnormal: when the work mode of the receiving end is C/S, the communication address of the receiving end does not need to be sent to the main base station, and the main base station can automatically send the data packet to the receiving end with the work mode of C/S after receiving and analyzing the data packet; the communication address of the receiving end needs to be sent to the main base station when the working mode of the receiving end is the P2P mode, so that the main base station can know which receiving ends need to send the data packets to the receiving end with the working mode of the P2P mode, and the receiving end is prevented from receiving the data packets in a missing mode or receiving the data packets again.
It is to be understood that, in this embodiment, when the receiver is all slave base stations except the sender, the operation mode of a part of the receiver where the peer-to-peer communication availability information is the non-peer-to-peer communication availability information for the non-peer-to-peer communication is the C/S mode, and the operation mode of another part of the receiver where the peer-to-peer communication availability information is the non-peer-to-peer communication availability information is the P2P mode, the sender transmits the communication address of the receiver where the operation mode is the P2P mode and the peer-to-peer communication availability information is the non-peer-to-peer communication to the master base station along with the packet, the master base station transmits the packet to the receiver where the operation mode is the P2P mode and the peer-to-peer communication availability information is the non-to-peer communication availability information based on the communication address after acquiring the communication address of the part of the receiver and the packet, and also transmits the packet to all the slave base stations whose operation modes are the C/S mode, so that all receiving ends can acquire the data packet.
Referring to fig. 12, fig. 12 is an interaction diagram of an embodiment of a communication method of a multi-base station network according to the present application. The multiple base stations include a master base station and a slave base station. The receiving end and the transmitting end are both slave base stations. In this embodiment, the operation mode of the transmitting end is P2P mode. The communication method of multiple base stations in this embodiment may include the following steps.
801. The sending end confirms the working mode of the sending end.
In this embodiment, the sender confirms that its own operation mode is the P2P mode.
802. The sending end confirms whether the point-to-point communication of the receiving end can be carried out or not.
After the sender confirms that the working mode of the sender is the P2P mode, it needs to confirm whether the peer-to-peer communication of the receivers can be performed or not, so as to confirm what communication mode can be used for better performing communication interaction with each receiver.
In the present embodiment, the peer-to-peer communication availability information of a part of the receiving ends may be peer-to-peer communication, and the part of the receiving ends may be the first receiving end shown in fig. 12. When the sender determines whether the peer-to-peer communication capability information of the first receiver is peer-to-peer communication capable, the process may proceed to step 803.
The other part of the receiving ends, which may be the second receiving end and the third receiving end shown in fig. 12, may determine whether the peer-to-peer communication capability information is non-peer-to-peer communication. When the sender determines whether the peer-to-peer communication capability information of the second receiver and the third receiver is non-peer-to-peer communication, step 804 may be entered.
803. The transmitting end communicates with the first receiving end in a P2P communication mode.
804. The transmitting end confirms the working modes of the second receiving end and the third receiving end.
After the sending end confirms whether the point-to-point communication of the receiving end is the non-point-to-point communication, the working mode of the receiving end needs to be confirmed, and therefore what data packets need to be sent to the main base station can be determined, the main base station can confirm the receiving ends to which the data packets are sent according to the data packets, and the receiving end is prevented from re-receiving or missing the data packets.
In this embodiment, the operation mode of a part of the receivers whose peer-to-peer communication availability information is not available for peer-to-peer communication is the C/S operation mode, and this part of the receivers may be the second receivers shown in fig. 12. When the transmitting end confirms that the working mode of the second receiving end is the C/S working mode, the step 805 may be entered.
The operation mode of another part of the receivers whose peer-to-peer communication capability information is not peer-to-peer communication is P2P mode, and this part is the third receiver shown in fig. 12. When the sender confirms that the operation mode of the third receiver is the P2P mode, step 810 may be entered.
805. And the transmitting end transmits the data packet to the main base station.
When the transmitting end confirms that the working mode of the second receiving end is the C/S working mode, the data packet can be transmitted to the main base station without transmitting the communication address of the receiving end to the main base station. Thus, when the main base station receives the data packet, confirms that the operation mode of the transmitting end is the P2P mode and confirms that the data packet does not include the communication address of the receiving end, the main base station transmits the data packet to the receiving end whose operation mode is the C/S mode.
806. The main base station confirms the operation mode of the transmitting end.
After receiving the data packet sent by the sending end, the main base station can firstly confirm the working mode of the sending end, and then confirm whether the data packet needs to be sent to all receiving ends according to the working mode of the sending end. There are two specific cases. The first mode is the C/S mode, and at this time, the data packet needs to be sent to all the receiving ends. The operation mode of the transmitting side is P2P mode, and it is not necessary to transmit the data packet to all receiving sides at this time, as shown in this embodiment, step 807 may be entered thereafter to confirm which receiving side the data packet needs to be transmitted to.
807. The main base station determines whether or not the data packet transmitted from the transmitting end includes the communication address of the receiving end.
When the data packet includes the communication address of the receiving end, the data packet can be directly transmitted to the receiving end through the communication address of the receiving end.
When the data packet does not include the communication address of the receiving end, step 808 may be entered to send the data packet to the receiving end whose operation mode is C/S mode.
The specific execution sequence of step 806 and step 807 can be determined according to actual situations, and is not limited to executing step 806 first and then step 807 in this embodiment. In other embodiments, step 807 may be performed before step 806.
808. The main base station confirms whether the working mode of the receiving end is the C/S mode.
When the operation mode of the receiving end is C/S mode, that is, the operation mode of the second receiving end is C/S mode, step 809 may be entered to directly send the data packet to the receiving end with the operation mode of C/S.
When the working mode of the receiving end is not the C/S mode, the data packet is not sent to the receiving end, the receiving end is prevented from receiving the same data packet in other modes, the receiving end is prevented from repeatedly receiving the data packet, and air interface resources are saved.
809. And the main base station sends the data packet to a second receiving end.
And the main base station sends the data packet to the second receiving end, so that the sending end communicates with the second receiving end in a C/S communication mode.
810. And the sending end sends the data packet containing the communication address of the third receiving end to the main base station.
When the sending end confirms that the working mode of the third receiving end is the P2P mode, and because whether the peer-to-peer communication of the third receiving end can be the non-peer-to-peer communication, the communication address of the third receiving end needs to be sent to the main base station at this time, so that the main base station can know which receiving ends of the receiving ends with the working mode of the P2P mode the data packet needs to be sent to, thus ensuring that the main base station sends the data packet to all the receiving ends of the non-peer-to-peer communication and ensuring the normal operation of the data communication.
811. The main base station determines whether or not the data packet transmitted from the transmitting end includes the communication address of the receiving end.
After receiving the data packet, the main base station can directly judge whether the data packet contains the communication address of the receiving end.
When the data packet includes the communication address of the receiving end, that is, the data packet includes the communication address of the third receiving end in this embodiment, step 812 is performed to complete the communication interaction between the transmitting end and the third receiving end.
812. And sending the data packet to the third receiving end through the communication address of the third receiving end.
Referring to fig. 13, fig. 13 is an interaction diagram of another embodiment of a communication method for multiple base stations according to the present application. The multiple base stations include a master base station and a slave base station. The receiving end and the transmitting end are both slave base stations. In this embodiment, the operation mode of the transmitting end is the C/S mode. The communication method of multiple base stations in this embodiment may include the following steps.
901. The sending end confirms the working mode of the sending end.
When the sender confirms that the working mode of the sender is the C/S mode, the process proceeds to step 902.
902. And the transmitting end transmits the data packet to the main base station.
903. The main base station confirms the operation mode of the transmitting end.
When the master base station confirms that the working mode of the sending end is the C/S mode, it can be confirmed that the communication interaction between the master base station and all the receiving ends is abnormal, that is, whether the point-to-point communication of all the receiving ends is the non-point-to-point communication, so that the master base station needs to send the data packet to all the receiving ends, that is, step 904 is entered.
904. The main base station transmits the data packet to all receiving ends.
Referring to fig. 14, fig. 14 is a schematic flowchart illustrating a communication method of multiple base stations according to another embodiment of the present application. The multiple base stations include a master base station and a slave base station. The sending end and the receiving end are both slave base stations. The communication method of the multiple base stations mainly comprises the following steps.
S1001: the master base station receives a data packet from the transmitting end.
S1002: the main base station confirms the operation mode of the transmitting end.
When the master base station confirms that the operation mode of the transmitting end is the C/S mode, the flow proceeds to step 1103.
When the master base station confirms that the operation mode of the transmitting end is the P2P mode, the flow proceeds to step 1104.
S1103: the main base station transmits the data packet to all receiving ends.
S1004: and the main base station sends the data packet to a receiving end which can or can not carry out point-to-point communication and the information is non-point-to-point communication.
Referring to fig. 15, fig. 15 is a flowchart illustrating a communication method of multiple base stations according to still another embodiment of the present application. The multiple base stations include a master base station and a slave base station. The sending end and the receiving end are both slave base stations. The communication method of the multiple base stations mainly comprises the following steps.
S1101: the master base station receives a data packet from the transmitting end.
S1102: the main base station confirms the operation mode of the transmitting end.
When the master base station confirms that the operation mode of the transmitting end is the C/S mode, the flow proceeds to step 1103.
When the master base station confirms that the operation mode of the transmitting end is the P2P mode, the flow proceeds to step 1104.
S1103: the main base station transmits the data packet to all receiving ends.
S1104: and determining whether the data packet contains the communication address of the receiving end.
When it is confirmed that the packet includes the communication address of the receiving end, the flow proceeds to step 1105.
If it is confirmed that the communication address of the receiving end is not included in the packet, the process proceeds to step 1106.
S1105: and the main base station transmits the data packet to the receiving end through the communication address of the receiving end.
In one implementation, the sending end sends the communication address of the receiving end that determines whether the peer-to-peer communication can be performed to the master base station, and the master base station may send the data packet to all the receiving ends that determine whether the peer-to-peer communication can be performed to the non-peer-to-peer communication based on the communication address of the receiving end.
In another implementation, the sender sends the communication address of the receiver whose operation mode is P2P mode and all peer-to-peer communication capability information is non-peer-to-peer communication to the master base station, but there is some receiver peer-to-peer communication capability information is non-peer-to-peer communication and the operation mode is C/S mode, and at this time, the master base station may send the data packet to the receiver whose operation mode is P2P mode and all the slave base stations whose operation mode is P2P mode based on the communication address of the receiver directly.
S1106: and the main base station confirms the working modes of all the receiving ends and sends the data packet to the receiving end with the working mode of the C/S mode.
The above-mentioned networking method of multiple base stations and communication method of multiple base stations can be implemented by a base station generally, so the present application also provides a base station. Referring to fig. 16, fig. 16 is a schematic structural diagram of a base station according to an embodiment of the present application. The base station 10 of the present embodiment includes a processor 12, a memory 11, and a transceiver 13; the transceiver 13 is coupled to the processor 12, and the memory 11 stores a computer program, and the processor 12 is used for executing the computer program to implement the steps in the multi-base station networking method and the multi-base station communication method as described above.
The logic processes of the above-mentioned multi-base station networking method and multi-base station communication method are presented as a computer program, and in terms of the computer program, if it is sold or used as a stand-alone software product, it may be stored in a storage medium, and thus the present application proposes a storage medium. Referring to fig. 17, fig. 17 is a schematic structural diagram of an embodiment of a computer-readable storage medium 20 of the present application, in which a computer program 21 is stored, and when the computer program 21 is executed by a processor, the steps in the method are implemented.
The computer-readable storage medium 20 may be a medium that can store a computer program, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or may be a server that stores the computer program, and the server can send the stored computer program to another device for running or can run the stored computer program by itself. The computer readable storage medium 20 may be a combination of a plurality of entities from a physical point of view, for example, a plurality of servers, a server plus a memory, or a memory plus a removable hard disk.
The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

Claims (14)

1. The networking method of a multiple base stations is characterized in that the multiple base stations comprise a master base station and a slave base station; the method comprises the following steps:
the slave base station records the communication address of the master base station transmitted by the master base station and the communication addresses of other slave base stations;
the slave base station performs communication interaction with the other slave base stations based on the acquired communication address;
recording the point-to-point communication possibility information of other slave base stations according to the communication interaction condition;
and confirming the working mode of the slave base station according to the point-to-point communication possibility information of other slave base stations.
2. The networking method according to claim 1, wherein the recording the peer-to-peer communication availability information of the other slave base stations according to the communication interaction condition comprises:
if the communication interaction is normal, the slave base station records that the other slave base stations can perform point-to-point communication;
and if the communication interaction is abnormal, the slave base station records that the other slave base stations are non-point-to-point communication.
3. The networking method according to claim 2, wherein the confirming the operation mode of the slave base station according to the peer-to-peer communication availability information of the other slave base stations comprises:
if one of the other slave base stations is recorded as being capable of point-to-point communication, confirming that the working mode of the slave base station is a point-to-point mode;
and if all the other slave base stations are recorded as the non-point-to-point communication, confirming that the working mode of the slave base station is a client/server mode.
4. The networking method according to claim 3, wherein the slave base station defaults to a peer-to-peer mode, and after the confirming that the slave base station is in a client/server mode, the method comprises:
the slave base station notifying the master base station to transmit a notification of the slave base station to other slave base stations by the master base station; or
The working mode of the slave base station is defaulted to a point-to-point mode, and the method further comprises the following steps: the slave base station acquires the notice of other slave base stations from the master base station, and the notice shows that the working mode of other slave base stations is a client/server mode; and changing the operation mode of the slave base station recorded by the slave base station from a point-to-point mode to a client/server mode.
5. The networking method according to claim 3, wherein the slave base station performs communication interaction with the other slave base stations based on the acquired communication address; recording whether the point-to-point communication of other slave base stations can be carried out or not according to the communication interaction condition; and the confirming the working mode of the slave base station according to the point-to-point communication possibility information of other slave base stations comprises the following steps:
the slave base station carries out periodic communication interaction with other slave base stations based on the acquired communication address;
according to the communication interaction condition, the slave base station periodically records the point-to-point communication possibility information of other slave base stations;
and the slave base station periodically confirms the working mode of the slave base station according to the point-to-point communication possibility information of other slave base stations.
6. The networking method of a multiple base stations is characterized in that the multiple base stations comprise a master base station and a slave base station; the method comprises the following steps:
the master base station records the communication addresses of all the slave base stations;
the master base station sends the communication address of the master base station and the communication addresses of other slave base stations to the slave base stations so that the slave base stations can carry out communication interaction with other slave base stations according to the communication addresses of other slave base stations, and the slave base stations record point-to-point communication possibility information of other slave base stations according to communication interaction conditions;
the master base station acquires the working mode of the slave base station.
7. The networking method of claim 6, wherein the master base station acquiring the operation mode of the slave base station comprises:
the master base station receiving a notification from the slave base station;
confirming the operation mode of the slave base station based on the notification.
8. The networking method of claim 7, wherein the default mode of the slave base station is peer-to-peer mode, the notification indicates that the working mode of the slave base station is client/server mode, and the master base station acquires the working mode of the slave base station, comprising:
if the master base station does not receive the notification from the slave base station, confirming that the working mode of the slave base station is a point-to-point mode;
and if the master base station receives the notification from the slave base station, confirming that the working mode of the slave base station is a client/server mode, changing the working mode of the slave base station recorded by the master base station from a point-to-point mode to the client/server mode, and notifying other slave base stations so that other slave base stations can know the working mode of the slave base station.
9. The communication method of the multi-base station network is characterized in that the multi-base station network comprises a main base station and slave base stations, wherein each base station records communication addresses of other base stations, each slave base station records point-to-point communication possibility information of other slave base stations, and the point-to-point communication possibility information is point-to-point communication or non-point-to-point communication;
the communication method comprises the following steps:
the sending end confirms the working mode of the sending end;
when the self working mode is a client/server mode, whether the point-to-point communication of all receiving ends can be judged to be non point-to-point communication is confirmed, and the communication is carried out with all receiving ends in a client/server communication mode;
when the working mode of the self-body is a point-to-point mode, whether the point-to-point communication of the receiving end can be carried out or not is confirmed;
if the sending end determines whether the point-to-point communication of the receiving end can be performed or not, the sending end communicates with the receiving end in a point-to-point communication mode;
if the sending end determines whether the point-to-point communication of the receiving end can be the non point-to-point communication, the sending end communicates with the receiving end in a client/server communication mode;
wherein the receiving end and the transmitting end are both the slave base station.
10. The communication method according to claim 9, wherein: the communicating with the receiving end in a client/server communication mode includes:
the sending end confirms the working mode of the receiving end;
when the working mode of the receiving end is a client/server, sending a data packet to the main base station, so that the main base station sends the data packet to the receiving end of which the working mode is the client/server;
and when the working mode of the receiving end is a point-to-point mode, the communication address containing the receiving end is sent to the main base station, and the main base station sends the data packet to the receiving end through the communication address of the receiving end.
11. A communication method of a multi-base station network is characterized in that the multi-base station comprises a main base station and a slave base station, the main base station records a working mode of a sending end, and the working mode is a point-to-point mode or a client/server mode, and the method comprises the following steps:
the main base station receives a data packet from a sending end;
confirming the working mode of the sending end;
when the working mode of the sending end is a client/server mode, whether the point-to-point communication of all the receiving ends can be judged to be non-point-to-point communication or not is confirmed, and the data packet is sent to all the receiving ends;
when the working mode of the sending end is a point-to-point mode, sending the data packet to a receiving end of which the point-to-point communication can or cannot be performed;
wherein the transmitting end and the receiving end are both the slave base station.
12. The communication method according to claim 11, wherein: the master base station records the working mode of a receiving end, and when the working mode of the sending end is a point-to-point mode, the master base station sends the data packet to the receiving end which can not perform point-to-point communication and can not perform point-to-point communication, and the method comprises the following steps:
when the working mode of the sending end is a point-to-point mode, determining whether the data packet contains a communication address of the receiving end;
the data packet contains a communication address of a receiving end, and the main base station sends the data packet to the receiving end through the communication address of the receiving end;
and when the data packet does not contain the communication address of the receiving end, the main base station confirms the working mode of the receiving end and sends the data packet to the receiving end of which the working mode is the client/server mode.
13. A base station comprising a memory, a processor, a transceiver and a computer program stored in the memory and executable on the processor, the transceiver and the transceiver being coupled to the processor, characterized in that the steps of the method according to any of claims 1-12 are implemented when the computer program is executed by the processor.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 12.
CN202011077676.2A 2020-10-10 2020-10-10 Multi-base station networking method, multi-base station network communication method and related devices thereof Active CN114423098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011077676.2A CN114423098B (en) 2020-10-10 2020-10-10 Multi-base station networking method, multi-base station network communication method and related devices thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011077676.2A CN114423098B (en) 2020-10-10 2020-10-10 Multi-base station networking method, multi-base station network communication method and related devices thereof

Publications (2)

Publication Number Publication Date
CN114423098A true CN114423098A (en) 2022-04-29
CN114423098B CN114423098B (en) 2024-02-06

Family

ID=81260620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011077676.2A Active CN114423098B (en) 2020-10-10 2020-10-10 Multi-base station networking method, multi-base station network communication method and related devices thereof

Country Status (1)

Country Link
CN (1) CN114423098B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030094450A (en) * 2002-06-04 2003-12-12 주식회사 케이티프리텔 A communication system of a point-to-point over broad cast and a control method thereof
CN1801822A (en) * 2006-01-23 2006-07-12 北京交通大学 P2P network SIP realizing method based on host machine mark protocol
CN1805388A (en) * 2005-01-12 2006-07-19 腾讯科技(深圳)有限公司 Method for establishing pier-to-pier direct channels
US7263070B1 (en) * 2002-11-05 2007-08-28 Sprint Spectrum L.P. Method and system for automating node configuration to facilitate peer-to-peer communication
CN101800731A (en) * 2009-02-06 2010-08-11 株式会社日立制作所 Network transmission management server, network transmission management method and network transmission system
US20120215851A1 (en) * 2011-02-21 2012-08-23 Research In Motion Limited On The Managed Peer-To-Peer Sharing In Cellular Networks
US20130110920A1 (en) * 2011-10-27 2013-05-02 Alcatel-Lucent Usa Inc. Network-assisted peer-to-peer secure communication establishment
CN103891349A (en) * 2011-10-27 2014-06-25 诺基亚公司 A method and apparatus for wireless peer-to-peer communication with multiple radio interfaces
CN105100253A (en) * 2015-08-05 2015-11-25 东莞市中控电子技术有限公司 Data transmission system and method
US20160234559A1 (en) * 2014-04-11 2016-08-11 Panasonic Intellectual Property Management Co., Ltd. Communication system, information processing device, and communication method
CN108476543A (en) * 2016-03-24 2018-08-31 摩托罗拉移动有限责任公司 In the mobile communication network by peer to peer connection into the method and apparatus of row data communication
CN109495918A (en) * 2018-12-06 2019-03-19 京信通信系统(中国)有限公司 A kind of data transmission method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030094450A (en) * 2002-06-04 2003-12-12 주식회사 케이티프리텔 A communication system of a point-to-point over broad cast and a control method thereof
US7263070B1 (en) * 2002-11-05 2007-08-28 Sprint Spectrum L.P. Method and system for automating node configuration to facilitate peer-to-peer communication
CN1805388A (en) * 2005-01-12 2006-07-19 腾讯科技(深圳)有限公司 Method for establishing pier-to-pier direct channels
CN1801822A (en) * 2006-01-23 2006-07-12 北京交通大学 P2P network SIP realizing method based on host machine mark protocol
CN101800731A (en) * 2009-02-06 2010-08-11 株式会社日立制作所 Network transmission management server, network transmission management method and network transmission system
US20120215851A1 (en) * 2011-02-21 2012-08-23 Research In Motion Limited On The Managed Peer-To-Peer Sharing In Cellular Networks
US20130110920A1 (en) * 2011-10-27 2013-05-02 Alcatel-Lucent Usa Inc. Network-assisted peer-to-peer secure communication establishment
CN103891349A (en) * 2011-10-27 2014-06-25 诺基亚公司 A method and apparatus for wireless peer-to-peer communication with multiple radio interfaces
US20160234559A1 (en) * 2014-04-11 2016-08-11 Panasonic Intellectual Property Management Co., Ltd. Communication system, information processing device, and communication method
CN105100253A (en) * 2015-08-05 2015-11-25 东莞市中控电子技术有限公司 Data transmission system and method
CN108476543A (en) * 2016-03-24 2018-08-31 摩托罗拉移动有限责任公司 In the mobile communication network by peer to peer connection into the method and apparatus of row data communication
CN109495918A (en) * 2018-12-06 2019-03-19 京信通信系统(中国)有限公司 A kind of data transmission method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭思薇;马兆丰;蒋铭;钮心忻;杨义先;: "IM即时通信统一监控管理技术研究与实现", 计算机科学, no. 12 *

Also Published As

Publication number Publication date
CN114423098B (en) 2024-02-06

Similar Documents

Publication Publication Date Title
JP4417417B2 (en) How to establish a peer-to-peer connection
CN107864228B (en) Connection establishment method and system in content distribution network
KR20100087213A (en) Method of establishing a connection
CN105979022B (en) NAT (network Address translation) penetrating method and system based on UPnP (Universal plug and Play) protocol
WO2006027716A1 (en) Pinging for the presence of a server in a peer to peer monitoring system
US10149134B2 (en) Near field discovery method, user equipment, and storage medium
US20170230484A1 (en) Network System and Method for Establishing Data Link by Using Relay Node
CN109039915B (en) Method and system for establishing data connection channel
CN101651721A (en) Method and system for judging type of network address translation equipment
CN111064742B (en) Method, device and related equipment for realizing intranet access based on network agent
CN113905349A (en) Networking method, device and system
KR20110116554A (en) Apparatus and method for establishing partnership of p2p service based on gossip
CN114423098B (en) Multi-base station networking method, multi-base station network communication method and related devices thereof
CN110944322B (en) Method and communication system for managing handover roaming
CN110661836B (en) Message routing method, device and system, and storage medium
CN107071038B (en) Method and device for transmitting multimedia data
CN101796769A (en) Ipv6 over ipv4 transition method and apparatus for improving performance of control server
CN107454178B (en) Data transmission method and device
CN112559134B (en) Distributed WebSocket cluster construction method, device, system and storage medium
CN112202780B (en) Data transmission method, device, equipment and medium based on double sockets
JP6606193B2 (en) IP address allocation method and user equipment in D2D communication
CN110572290B (en) Master device determination method, master device determination device, electronic device, storage medium, and network system
CN110635927B (en) Node switching method, network node and network system
CN108259322B (en) Intercom instant access method and device
CN113852938A (en) Vehicle-mounted equipment communication method, vehicle-mounted equipment, storage medium and electronic device

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