CN109362095B - Data interaction method and device and cluster base station - Google Patents

Data interaction method and device and cluster base station Download PDF

Info

Publication number
CN109362095B
CN109362095B CN201811525032.8A CN201811525032A CN109362095B CN 109362095 B CN109362095 B CN 109362095B CN 201811525032 A CN201811525032 A CN 201811525032A CN 109362095 B CN109362095 B CN 109362095B
Authority
CN
China
Prior art keywords
main control
target
base station
heartbeat frame
downlink base
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811525032.8A
Other languages
Chinese (zh)
Other versions
CN109362095A (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.)
Chengdu Zhonghang Xinhong Technology Co ltd
Original Assignee
Chengdu Zhonghang Xinhong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Zhonghang Xinhong Technology Co ltd filed Critical Chengdu Zhonghang Xinhong Technology Co ltd
Priority to CN201811525032.8A priority Critical patent/CN109362095B/en
Publication of CN109362095A publication Critical patent/CN109362095A/en
Application granted granted Critical
Publication of CN109362095B publication Critical patent/CN109362095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Abstract

The invention provides a data interaction method, a data interaction device and a cluster base station, wherein the method comprises the following steps: aiming at a target downlink base station in a plurality of downlink base stations, when a multicast heartbeat frame sent by a main control base station is not received again within a first preset time length after the multicast heartbeat frame sent by the main control base station is received, entering a preemption mode, obtaining a target preemption main control heartbeat frame of the target downlink base station and sending the target preemption main control heartbeat frame to other downlink base stations, receiving other preemption main control heartbeat frames sent by other downlink base stations, comparing an identification number in the target preemption main control heartbeat frame with an identification number of other preemption main control heartbeat frames to be maximum or minimum, changing the target downlink base station from the preemption mode to a main control working mode so as to manage other downlink base stations and perform data interaction with a server. By the method, the situation that the whole cluster base station cannot work directly when the main control base station fails is effectively avoided.

Description

Data interaction method and device and cluster base station
Technical Field
The invention relates to the technical field of data interaction, in particular to a data interaction method, a data interaction device and a cluster base station.
Background
The existing digital trunking communication system mainly comprises a central server and trunking Base stations, wherein each trunking Base station mainly comprises a power supply, a Base Station Controller (BSC) and a plurality of Base Stations (BS); the Base Station Controller (BSC) manages the down-hanging Base Stations (BS) and performs data interaction with the central server through the network.
The inventor finds that, in the prior art, when the downlink base station BS is managed by the base station controller BSC to perform data interaction with the central server, once the base station controller BSC fails, the whole cluster base station cannot work directly.
Disclosure of Invention
In view of the above, the present invention provides a data interaction method, apparatus and cluster base station to effectively alleviate the above technical problems.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
a data interaction method is applied to a downlink base station in a cluster base station associated with a server, the cluster base station comprises a main control base station and a plurality of downlink base stations, each downlink base station is respectively and correspondingly provided with an identification number, and the method comprises the following steps:
for a target downlink base station in a plurality of downlink base stations, when a multicast heartbeat frame sent by a main control base station is not received again within a first preset duration after the multicast heartbeat frame sent by the main control base station is received, entering a preemption mode and obtaining a target preemption main control heartbeat frame of the target downlink base station, wherein the target preemption main control heartbeat frame comprises an identification number corresponding to the target downlink base station;
sending the target pre-occupied main control heartbeat frame to other downlink base stations, receiving other pre-occupied main control heartbeat frames sent by other downlink base stations, and comparing the identification number in the target pre-occupied main control heartbeat frame with the identification numbers of the other pre-occupied main control heartbeat frames;
and when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, changing the target down-hanging base station from the pre-occupied mode to a main control working mode so as to manage other down-hanging base stations and perform data interaction with the server.
Optionally, in the data interaction method, after the step of comparing the identification number in the target preempted main control heartbeat frame with the identification numbers of the other preempted main control heartbeat frames is performed, the method further includes:
and when the identification number in the target pre-occupied main control heartbeat frame is not the maximum or the minimum, changing the target down-hanging base station from a pre-occupied working mode to a down-hanging working mode.
Optionally, in the data interaction method, the step of sending the target preemption master control heartbeat frame to other downlink base stations, receiving other preemption master control heartbeat frames sent by other downlink base stations, and comparing the identification number in the target preemption master control heartbeat frame with the identification numbers of the other preemption master control heartbeat frames includes:
step a, sending the target pre-occupation master control heartbeat frame to other downlink base stations and starting timing;
step b, when the timing reaches a second preset time, acquiring other preempted main control heartbeat frames sent by other downlink base stations and received by the target downlink base station, and comparing the identification number in the target preempted main control heartbeat frame with the identification numbers of the other preempted main control heartbeat frames;
c, when the identification number in the target pre-occupied main control heartbeat frame is maximum or minimum, obtaining the frequency of sending the target pre-occupied main control heartbeat frame, when the frequency is less than the preset frequency, sending the target pre-occupied main control heartbeat frame to other down-hanging base stations again and starting timing, and returning to the step b,
when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, the step of changing the target down-hanging base station from the pre-occupied mode to the main control working mode specifically comprises the following steps:
and when the frequency of sending the target pre-occupied main control heartbeat frame reaches a preset frequency and the identification number in the target pre-occupied main control heartbeat frame is maximum or minimum, changing the target down-hanging base station from the pre-occupied mode to a main control working mode.
Optionally, in the data interaction method, before the step of starting timing when the multicast heartbeat frame sent by the master control base station is received, the method further includes:
and when receiving the data forwarded by the main control base station, the target downlink base station sends the data to external equipment.
The invention also provides a data interaction device, which is applied to a downlink base station in a cluster base station associated with a server, wherein the cluster base station comprises a main control base station and a plurality of downlink base stations, each downlink base station is respectively corresponding to an identification number, and the device is used for a target downlink base station in the plurality of downlink base stations and comprises:
the acquisition module is used for entering a preemption mode and acquiring a target preemption main control heartbeat frame of the target downlink base station when the multicast heartbeat frame sent by the main control base station is not received again within a first preset duration after the multicast heartbeat frame sent by the main control base station is received, wherein the target preemption main control heartbeat frame comprises an identification number corresponding to the target downlink base station;
the comparison module is used for sending the target pre-occupied main control heartbeat frame to other downlink base stations, receiving other pre-occupied main control heartbeat frames sent by other downlink base stations, and comparing the identification number in the target pre-occupied main control heartbeat frame with the identification numbers of the other pre-occupied main control heartbeat frames;
and the data interaction module changes the target downlink base station from the preemption mode to the master control working mode when the identification number in the target preemption master control heartbeat frame is maximum or minimum so as to manage other downlink base stations and perform data interaction with the server.
Optionally, in the data interaction apparatus, the data interaction apparatus further includes:
and the mode changing module is used for changing the target down-hanging base station from the preemption working mode to the down-hanging working mode when the identification number in the target pre-occupation main control heartbeat frame is not the maximum or the minimum.
Optionally, in the data interaction apparatus, the comparing module includes:
the sending submodule is used for sending the target pre-occupation master control heartbeat frame to the other downlink base stations and starting timing;
the first comparison submodule is used for acquiring other pre-occupied main control heartbeat frames sent by other downlink base stations and received by the target downlink base station when the timing reaches a second preset duration, and comparing the identification number in the target pre-occupied main control heartbeat frame with the identification numbers of the other pre-occupied main control heartbeat frames;
the second comparison submodule is used for obtaining the times of sending the target pre-occupied main control heartbeat frame when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, and sending the target pre-occupied main control heartbeat frame to other downlink base stations again and starting timing when the times are less than the preset times;
and the data interaction module is also used for changing the target downlink base station from the preemption mode to the main control working mode when the frequency of sending the target preemption main control heartbeat frame reaches the preset frequency and the identification number in the target preemption main control heartbeat frame is maximum or minimum.
Optionally, in the data interaction apparatus, the apparatus further includes a sending module, and when the target downlink base station receives the data forwarded by the master base station, the target downlink base station sends the data to an external device.
The invention also provides a cluster base station, which comprises a main control base station and a plurality of downlink base stations, and aims at a target downlink base station in the plurality of downlink base stations, the target downlink base station comprises a memory, a processor and a computer program which is stored on the memory and can be operated on the processor, and the processor realizes the following steps when executing the program:
starting timing when a multicast heartbeat frame sent by the master control base station is received, entering a preemption mode when the timing reaches a first preset duration and the multicast heartbeat frame sent by the master control base station is not received again, and obtaining a target preemption master control heartbeat frame of the target downlink base station, wherein the target preemption master control heartbeat frame comprises an identification number corresponding to the target downlink base station;
sending the target pre-occupied main control heartbeat frame to other downlink base stations, receiving other pre-occupied main control heartbeat frames sent by other downlink base stations, and comparing the identification number in the target pre-occupied main control heartbeat frame with the identification numbers of the other pre-occupied main control heartbeat frames;
and when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, changing the target down-hanging base station from the pre-occupied mode to a main control working mode so as to receive the data sent by the server and forward the data to other down-hanging base stations.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps in the data interaction method.
The method comprises the steps of aiming at a target downlink base station in a plurality of downlink base stations, entering a preemption mode when a multicast heartbeat frame sent by a main control base station is not received again within a first preset duration after the multicast heartbeat frame sent by the main control base station is received, obtaining a target preempted main control heartbeat frame of the target downlink base station and sending the target preempted main control heartbeat frame to other downlink base stations, receiving other preempted main control heartbeat frames sent by other downlink base stations, changing the target downlink base station from the preemption mode to a main control working mode when the identification number in the target preempted main control heartbeat frame is maximum or minimum compared with the identification numbers of other preempted main control heartbeat frames, and managing other downlink base stations and carrying out data interaction with a server. By the method, the situation that the whole cluster base station cannot work directly when the main control base station fails is effectively avoided.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a schematic application diagram of a cluster base station in the prior art.
Fig. 2 is a connection block diagram of a target downlink base station in the prior art.
Fig. 3 is a schematic flowchart of a data interaction method according to an embodiment of the present invention.
Fig. 4 is a schematic flowchart of step S120 in fig. 3.
Fig. 5 is a connection block diagram of a data interaction device according to an embodiment of the present invention.
Fig. 6 is a connection block diagram of a comparison module according to an embodiment of the present invention.
Icon: 10-target down hanging base station; 12-a memory; 14-a processor; 100-a data interaction device; 110-an obtaining module; 120-a comparison module; 122-a sending submodule; 124-a first comparison submodule; 126-a second comparison submodule; 130-data interaction module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, unless otherwise expressly specified or limited, the terms "disposed," "connected," and "connected" are to be construed broadly, e.g., as meaning fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Referring to fig. 1, the present invention provides an application schematic diagram of a trunking base station, where the trunking base station may be applied to a digital trunking communication system including a server, where a plurality of trunking base stations are included in the digital trunking communication system, and the plurality of trunking base stations interact with the server through a network respectively.
The trunking base station may include a master control base station, a plurality of downlink base stations, and a power supply, where the power supply is configured to supply power to the master control base station and each downlink base station, the master control base station is configured to manage each downlink base station and interact with a server through a network, each downlink base station corresponds to an identification number, and it should be noted that identification numbers corresponding to different downlink base stations are different, and identification numbers corresponding to each downlink base station may be discontinuous in the plurality of downlink base stations.
Referring to fig. 2, the target downlink base station 10 provided by the present invention is any one of a plurality of downlink base stations included in the trunking base station 10. The target downlink base station 10 includes a memory 12 and a processor 14.
The memory 12 and the processor 14 are electrically connected to each other, directly or indirectly, to enable transmission or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 12 stores software program modules stored in the memory 12 in the form of software or Firmware (Firmware), and the processor 14 executes various functional applications and data processing by running the software programs and modules stored in the memory 12, such as the data interaction device 100 in the embodiment of the present invention, so as to implement the data interaction method in the embodiment of the present invention.
The Memory 12 may be, but is not limited to, a computer-readable storage medium such as a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an Electrically Erasable Read-Only Memory (EEPROM), and the like. Wherein the memory 12 is used for storing a program, and the processor 14 executes the program after receiving the execution instruction.
The processor 14, when executing the program, implements the following method: starting timing when the multicast heartbeat frame sent by the main control base station is received, entering a preemption mode when the timing reaches a first preset duration and the multicast heartbeat frame sent by the main control base station is not received again, and acquiring a target preemption main control heartbeat frame of the target downlink base station 10, wherein, the target pre-occupation main control heartbeat frame comprises an identification number corresponding to the target down-hanging base station 10, the target pre-occupation main control heartbeat frame is sent to other down-hanging base stations, and receives other pre-occupied main control heartbeat frames sent by other downlink base stations, compares the identification number in the target pre-occupied main control heartbeat frame with the identification numbers of the other pre-occupied main control heartbeat frames, when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, the target down-hanging base station 10 is changed from the pre-occupied mode to the main control working mode so as to receive the data sent by the server and transmit the data to other down-hanging base stations.
The processor 14 may be an integrated circuit chip having signal processing capabilities. The Processor 14 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. But may also be a digital signal processor 14(DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Referring to fig. 3, the present invention provides a data interaction method, which can be applied to the target downlink base station 10, and when the method is applied to the target downlink base station 10, the following steps are implemented:
step S110: for a target downlink base station 10 of a plurality of downlink base stations, when a multicast heartbeat frame sent by the main control base station is not received again within a first preset duration after the multicast heartbeat frame sent by the main control base station is received, entering a preemption mode, and obtaining a target preemption main control heartbeat frame of the target downlink base station 10, wherein the target preemption main control heartbeat frame includes an identification number corresponding to the target downlink base station 10.
The target pre-occupation main control heartbeat frame includes an identification number corresponding to the target downlink base station 10.
It should be noted that, in a normal case, the master base station sends a multicast heartbeat frame to all downlink base stations managed by the master base station every a set time interval, and when the target downlink base station 10 does not receive the multicast heartbeat frame sent by the master base station again within a first preset time interval after receiving the multicast heartbeat frame sent by the master base station, it may be considered that the master base station fails, and the first preset time interval is greater than the set time interval.
It should be further noted that each downlink base station may send a pre-occupied main control heartbeat frame to other downlink base stations in the pre-occupied mode, so as to indicate that the downlink base station that sends the pre-occupied main control heartbeat frame may be used as the main control base station. The target pre-occupied main control heartbeat frame and other pre-occupied main control heartbeat frames are protocol frames so as to be convenient for transmission among all the down-hanging base stations.
In addition, in order to avoid a situation that the state of the master base station is misjudged due to a delay in the process of hanging the master base station 10 from the master base station during transmission of the multicast heartbeat frame, in this embodiment, the first preset duration is multiple times of the set duration, for example, 3 times, 5 times or 7 times, and is not specifically limited herein, and may be set according to actual requirements.
For example, in this embodiment, the master base station sends a multicast heartbeat frame to each downlink base station every 200 milliseconds, when the target downlink base station 10 receives the multicast heartbeat frame every time, it starts to count time, and if the counted time reaches 1 second and the multicast heartbeat frame sent by the master base station is not received again, it may be determined that the master base station is faulty, and the working mode of the target downlink base station 10 enters the preemption mode from the downlink working mode.
Step S120: and sending the target pre-occupation main control heartbeat frame to other downlink base stations, receiving other pre-occupation main control heartbeat frames sent by other downlink base stations, and comparing the identification number in the target pre-occupation main control heartbeat frame with the identification numbers of the other pre-occupation main control heartbeat frames.
It should be noted that, the identification number in the target preempted main control heartbeat frame is compared with the identification numbers in other preempted main control heartbeat frames to determine whether the identification number in the target preempted main control heartbeat frame is the maximum or the minimum.
Step S130: when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, the target down-hanging base station 10 is changed from the pre-occupied mode to the main control working mode so as to manage other down-hanging base stations and carry out data interaction with the server.
Further, after performing step S120, the method further includes: when the identification number in the preempted main control heartbeat frame is not the maximum or the minimum, the target downlink base station 10 is changed from the preemption operation mode to the downlink operation mode.
Specifically, in this embodiment, when the identification number in the target master control heartbeat frame is the minimum, the working mode of the target downlink base station 10 is changed from the preemption mode to the master control working mode, so that when the working mode of the target downlink base station 10 is the master control working mode, the target downlink base station is used as a new master control base station, and in the process of being used as the master control base station, the multicast heartbeat frame is sent to other downlink base stations at set intervals, so that any one of the other downlink base stations can repeatedly execute the steps S110 to S130, thereby effectively ensuring that the cluster base station can perform reliable data interaction with the server. In addition, when the identification number in the target master heartbeat frame is not the minimum, the operation mode of the target downlink base station 10 is changed from the preemption mode to the downlink operation mode, so that the target downlink base station 10 is used as the downlink base station when the operation mode is the downlink operation mode.
Through the arrangement, when the cluster base station and the server are adopted for data interaction, the situation that the cluster base station cannot normally work due to the fault of the main control base station in the cluster base station is effectively avoided, in addition, the cluster base station can continue to work even if only one normal lower hanging base station exists, the reliability of the cluster base station is effectively improved, and the problem that the construction cost is high due to the fact that the main control base station needs to be maintained and replaced immediately when the main control base station has the fault is solved.
In order to avoid the situation that when the target downlink base station 10 receives other pre-occupied main control heartbeat frames sent by other downlink base stations, the other downlink base stations cannot send the corresponding other pre-occupied main control heartbeat frames to the target downlink base station 10 in time due to network delay, and further, a determination result that an identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum is not accurate enough, please refer to fig. 4, in this embodiment, the step S120 includes the following steps:
step S122: and sending the target pre-occupation master control heartbeat frame to the other downlink base stations and starting timing.
Step S124: and when the timing reaches a second preset duration, acquiring other pre-occupied main control heartbeat frames sent by other under-hung base stations and received by the target under-hung base station 10, and comparing the identification number in the target pre-occupied main control heartbeat frame with the identification numbers of the other pre-occupied main control heartbeat frames.
The second preset time period may be, but is not limited to, 30 milliseconds, 50 milliseconds or 80 milliseconds, and is not specifically limited herein, and may be set according to actual requirements.
Step S126: and when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, obtaining the frequency of sending the target pre-occupied main control heartbeat frame, and when the frequency is less than the preset frequency, sending the target pre-occupied main control heartbeat frame to other downlink base stations again, starting timing, and returning to the step S124.
In this embodiment, step S126 may be to obtain the number of times of sending the target pre-occupied main control heartbeat frame when the identification number in the target pre-occupied main control heartbeat frame is the minimum. When the identification number in the target preemption main control heartbeat frame is not the minimum, the target downlink base station 10 changes its working mode from the preemption mode to the downlink working mode. The preset number of times may be, but is not limited to, 5 times, 10 times or 15 times, and is not specifically limited herein, and may be set according to actual requirements.
Step S130 specifically includes:
when the number of times of sending the target pre-occupied main control heartbeat frame reaches a preset number and the identification number in the target pre-occupied main control heartbeat frame is maximum or minimum, the target hang-down base station 10 is changed from the pre-occupied mode to the main control working mode.
Before the step of starting timing when receiving the multicast heartbeat frame sent by the master control base station, the method further includes:
when receiving the data forwarded by the master base station, the target downlink base station 10 sends the data to an external device.
The external device may be a terminal such as a computer, a tablet, a mobile phone, or any electronic device capable of communicating with the target downlink base station 10, and is not limited in particular.
Referring to fig. 5, based on the above, the present invention further provides a data interaction apparatus 100 applicable to the target downlink base station 10, where the data interaction apparatus 100 may include: an obtaining module 110, a comparing module 120, and a data interaction module 130.
The obtaining module 110 is configured to start timing when the multicast heartbeat frame sent by the main control base station is received, enter a preemption mode when the timing reaches a first preset duration and the multicast heartbeat frame sent by the main control base station is not received again, and obtain a target preemption main control heartbeat frame of the target downlink base station 10, where the target preemption main control heartbeat frame includes an identification number corresponding to the target downlink base station 10. In this embodiment, the obtaining module 110 may be configured to execute step S110 shown in fig. 3, and the foregoing description of step S110 may be referred to for specific description of the obtaining module 110.
The comparison module 120 is configured to send the target preemption main control heartbeat frame to other downlink base stations, receive other preemption main control heartbeat frames sent by other downlink base stations, and compare the identification number in the target preemption main control heartbeat frame with the identification numbers of the other preemption main control heartbeat frames. In this embodiment, the comparing module 120 may be configured to execute step S120 shown in fig. 3, and the foregoing description of step S120 may be referred to for specific description of the comparing module 120.
When the identification number in the target pre-occupied master heartbeat frame is the maximum or minimum, the data interaction module 130 changes the target downlink base station 10 from the pre-occupied mode to the master working mode to manage other downlink base stations and perform data interaction with the server. In this embodiment, the data interaction module 130 may be configured to execute step S130 shown in fig. 3, and the detailed description about the data interaction module 130 may refer to the foregoing description about step S130.
Referring to fig. 6, the comparison module 120 includes a sending sub-module 122, a first comparison sub-module 124, and a second comparison sub-module 126.
The sending submodule 122 is configured to send the target pre-occupation master control heartbeat frame to the other downlink base stations and start timing. In this embodiment, the sending sub-module 122 may be configured to perform step S122 shown in fig. 4, and reference may be made to the foregoing description of step S122 for a detailed description of the sending sub-module 122.
The first comparing sub-module 124 is configured to, when the timing reaches a second preset duration, obtain other pre-occupied main control heartbeat frames sent by other downlink base stations received by the target downlink base station 10, and compare the identification number in the target pre-occupied main control heartbeat frame with the identification numbers of the other pre-occupied main control heartbeat frames. In this embodiment, the first comparison sub-module 124 may be configured to perform step S124 shown in fig. 4, and the detailed description about the first comparison sub-module 124 may refer to the description about step S124.
The second comparing submodule 126 is configured to obtain the number of times of sending the target pre-occupied main control heartbeat frame when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, and send the target pre-occupied main control heartbeat frame to another downlink base station again and start timing when the number of times is smaller than a preset number. In this embodiment, the second comparing sub-module 126 may be configured to perform step S126 shown in fig. 4, and the detailed description about the second comparing sub-module 126 may refer to the description about step S126.
The data interaction module 130 is further configured to change the target suspension base station 10 from the preemption mode to the master control working mode when the number of times of sending the target preemption master control heartbeat frame reaches a preset number and the identification number in the target preemption master control heartbeat frame is the maximum or minimum.
In addition, in this embodiment, the data interaction device 100 further includes a mode changing module and a sending module.
And the mode changing module is configured to change the target downlink base station 10 from the preemption operation mode to the downlink operation mode when the identification number in the target preemption main control heartbeat frame is not the maximum or the minimum. The detailed description of the change module can refer to the foregoing description of the data interaction method.
The sending module, when receiving the data forwarded by the master base station, sends the data to an external device by the target downlink base station 10. The detailed description of the change module can refer to the foregoing description of the data interaction method.
In summary, the data interaction method, apparatus and cluster base station provided by the present invention include: when a target downlink base station 10 in the digital cluster receives a multicast heartbeat frame sent by a main control base station, starts timing, and when the timing reaches a first preset duration and does not receive the multicast heartbeat frame sent by the main control base station again, enters a preemption mode, the obtained target preempts the main control heartbeat frame and sends the frame to other downlink base stations, receives other preempted main control heartbeat frames sent by other downlink base stations, compares an identification number in the target preempted main control heartbeat frame with identification numbers of other preempted main control heartbeat frames to be maximum or minimum, and changes the target downlink base station 10 from the preemption mode to a main control working mode so as to manage other downlink base stations and perform data interaction with the server. By the method, the situation that the whole cluster base station cannot work directly when the main control base station fails is effectively avoided.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A data interaction method is applied to a downlink base station in a cluster base station associated with a server, and is characterized in that the cluster base station comprises a main control base station and a plurality of downlink base stations, each downlink base station corresponds to an identification number, and the method comprises the following steps:
for a target downlink base station in a plurality of downlink base stations, when a multicast heartbeat frame sent by a main control base station is not received again within a first preset duration after the multicast heartbeat frame sent by the main control base station is received, entering a preemption mode and obtaining a target preemption main control heartbeat frame of the target downlink base station, wherein the target preemption main control heartbeat frame comprises an identification number corresponding to the target downlink base station;
sending the target pre-occupied main control heartbeat frame to other downlink base stations, receiving other pre-occupied main control heartbeat frames sent by other downlink base stations, and comparing the identification number in the target pre-occupied main control heartbeat frame with the identification numbers of the other pre-occupied main control heartbeat frames;
when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, the target down-hanging base station is changed from the pre-occupied mode to a main control working mode so as to manage other down-hanging base stations and carry out data interaction with the server;
the steps of sending the target preempt main control heartbeat frame to other downlink base stations, receiving other preempt main control heartbeat frames sent by other downlink base stations, and comparing the identification number in the target preempt main control heartbeat frame with the identification numbers of the other preempt main control heartbeat frames comprise:
step a, sending the target pre-occupation master control heartbeat frame to other downlink base stations and starting timing;
step b, when the timing reaches a second preset time, acquiring other preempted main control heartbeat frames sent by other downlink base stations and received by the target downlink base station, and comparing the identification number in the target preempted main control heartbeat frame with the identification numbers of the other preempted main control heartbeat frames;
and c, when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, obtaining the frequency of sending the target pre-occupied main control heartbeat frame, and when the frequency is less than the preset frequency, sending the target pre-occupied main control heartbeat frame to other downlink base stations again, starting timing, and returning to the step b.
2. The data interaction method of claim 1, wherein after performing the step of comparing the identification number in the target preempted master heartbeat frame with the identification numbers of the other preempted master heartbeat frames, the method further comprises:
and when the identification number in the pre-occupied main control heartbeat frame is not the maximum or the minimum, changing the target down-hanging base station from the pre-occupied working mode to the down-hanging working mode.
3. The data interaction method according to claim 1, wherein when the identification number in the target pre-occupied master heartbeat frame is the maximum or minimum, the step of changing the target downlink base station from the pre-occupied mode to the master operation mode specifically comprises:
and when the frequency of sending the target pre-occupied main control heartbeat frame reaches a preset frequency and the identification number in the target pre-occupied main control heartbeat frame is maximum or minimum, changing the target down-hanging base station from the pre-occupied mode to a main control working mode.
4. The data interaction method according to claim 1, wherein before the step of starting timing when receiving the multicast heartbeat frame sent by the master base station, the method further comprises:
and when receiving the data forwarded by the main control base station, the target downlink base station sends the data to external equipment.
5. A data interaction device is applied to a downlink base station in a cluster base station associated with a server, and is characterized in that the cluster base station comprises a main control base station and a plurality of downlink base stations, each downlink base station is respectively corresponding to an identification number, and the device is used for a target downlink base station in the plurality of downlink base stations and comprises:
the acquisition module is used for entering a preemption mode and acquiring a target preemption main control heartbeat frame of the target downlink base station when the multicast heartbeat frame sent by the main control base station is not received again within a first preset duration after the multicast heartbeat frame sent by the main control base station is received, wherein the target preemption main control heartbeat frame comprises an identification number corresponding to the target downlink base station;
the comparison module is used for sending the target pre-occupied main control heartbeat frame to other downlink base stations, receiving other pre-occupied main control heartbeat frames sent by other downlink base stations, and comparing the identification number in the target pre-occupied main control heartbeat frame with the identification numbers of the other pre-occupied main control heartbeat frames;
the data interaction module changes the target downlink base station from the preemption mode to the master control working mode when the identification number in the target preemption master control heartbeat frame is maximum or minimum so as to manage other downlink base stations and perform data interaction with the server;
the comparison module comprises:
the sending submodule is used for sending the target pre-occupation master control heartbeat frame to the other downlink base stations and starting timing;
the first comparison submodule is used for acquiring other pre-occupied main control heartbeat frames sent by other downlink base stations and received by the target downlink base station when the timing reaches a second preset duration, and comparing the identification number in the target pre-occupied main control heartbeat frame with the identification numbers of the other pre-occupied main control heartbeat frames;
and the second comparison submodule is used for obtaining the times of sending the target pre-occupied main control heartbeat frame when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, and sending the target pre-occupied main control heartbeat frame to other downlink base stations again and starting timing when the times are less than the preset times.
6. The data interaction device of claim 5, further comprising:
and the mode changing module is used for changing the target down-hanging base station from the preemption working mode to the down-hanging working mode when the identification number in the target pre-occupation main control heartbeat frame is not the maximum or the minimum.
7. The data interaction device of claim 6, wherein the data interaction module is further configured to change the target downlink base station from the preemption mode to the master operation mode when the number of times of sending the target preemption master heartbeat frame reaches a preset number and the identification number in the target preemption master heartbeat frame is maximum or minimum.
8. The data interaction device of claim 5, further comprising a sending module, wherein the target downlink base station sends the data to an external device when receiving the data forwarded by the master base station.
9. A cluster base station, comprising a master base station and a plurality of downlink base stations, wherein for a target downlink base station of the plurality of downlink base stations, the target downlink base station comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program:
for a target downlink base station in a plurality of downlink base stations, when a multicast heartbeat frame sent by a main control base station is not received again within a first preset duration after the multicast heartbeat frame sent by the main control base station is received, entering a preemption mode and obtaining a target preemption main control heartbeat frame of the target downlink base station, wherein the target preemption main control heartbeat frame comprises an identification number corresponding to the target downlink base station;
sending the target pre-occupied main control heartbeat frame to other downlink base stations, receiving other pre-occupied main control heartbeat frames sent by other downlink base stations, and comparing the identification number in the target pre-occupied main control heartbeat frame with the identification numbers of the other pre-occupied main control heartbeat frames;
when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, the target down-hanging base station is changed from the pre-occupied mode to a main control working mode so as to receive the data sent by the server and forward the data to other down-hanging base stations;
the steps of sending the target preempt main control heartbeat frame to other downlink base stations, receiving other preempt main control heartbeat frames sent by other downlink base stations, and comparing the identification number in the target preempt main control heartbeat frame with the identification numbers of the other preempt main control heartbeat frames comprise:
step a, sending the target pre-occupation master control heartbeat frame to other downlink base stations and starting timing;
step b, when the timing reaches a second preset time, acquiring other preempted main control heartbeat frames sent by other downlink base stations and received by the target downlink base station, and comparing the identification number in the target preempted main control heartbeat frame with the identification numbers of the other preempted main control heartbeat frames;
and c, when the identification number in the target pre-occupied main control heartbeat frame is the maximum or the minimum, obtaining the frequency of sending the target pre-occupied main control heartbeat frame, and when the frequency is less than the preset frequency, sending the target pre-occupied main control heartbeat frame to other downlink base stations again, starting timing, and returning to the step b.
10. 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 4.
CN201811525032.8A 2018-12-13 2018-12-13 Data interaction method and device and cluster base station Active CN109362095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811525032.8A CN109362095B (en) 2018-12-13 2018-12-13 Data interaction method and device and cluster base station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811525032.8A CN109362095B (en) 2018-12-13 2018-12-13 Data interaction method and device and cluster base station

Publications (2)

Publication Number Publication Date
CN109362095A CN109362095A (en) 2019-02-19
CN109362095B true CN109362095B (en) 2021-10-08

Family

ID=65328799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811525032.8A Active CN109362095B (en) 2018-12-13 2018-12-13 Data interaction method and device and cluster base station

Country Status (1)

Country Link
CN (1) CN109362095B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1860908A1 (en) * 2005-08-23 2007-11-28 Huawei Technologies Co., Ltd. Connecting detection method in calling procedure between bsc and msc
CN103826243A (en) * 2014-03-07 2014-05-28 东方通信股份有限公司 Rapid and flexible capacity adjusting method for digital trunked communication system base stations
CN104954999A (en) * 2014-03-26 2015-09-30 海能达通信股份有限公司 Method and terminal for communication based on distributed cluster communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6334219B1 (en) * 1994-09-26 2001-12-25 Adc Telecommunications Inc. Channel selection for a hybrid fiber coax network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1860908A1 (en) * 2005-08-23 2007-11-28 Huawei Technologies Co., Ltd. Connecting detection method in calling procedure between bsc and msc
CN103826243A (en) * 2014-03-07 2014-05-28 东方通信股份有限公司 Rapid and flexible capacity adjusting method for digital trunked communication system base stations
CN104954999A (en) * 2014-03-26 2015-09-30 海能达通信股份有限公司 Method and terminal for communication based on distributed cluster communication system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
分布式存储在数字集群移动通信系统中的应用;蒋轶林 等;《杭州电子科技大学学报》;20131107;全文 *
数字集群系统的Ad Hoc路由技术;吴少川 等;《电子器件》;20050929;全文 *

Also Published As

Publication number Publication date
CN109362095A (en) 2019-02-19

Similar Documents

Publication Publication Date Title
CN109392112B (en) Transmission method and device for downlink control channel
CN108184247B (en) Communication method, communication device, communication equipment and readable storage medium
CN106383668B (en) Information storage method, storage management equipment and client
CN111682977A (en) Method and device for processing exception of network equipment, storage medium and network equipment
US20170085673A1 (en) Attribute Operating Method and Apparatus
CN107360012B (en) Link state processing method and network node equipment
CN109362095B (en) Data interaction method and device and cluster base station
CN109697117B (en) Terminal control method, terminal control device and computer-readable storage medium
US9781605B2 (en) Cell activation method and apparatus
CN107454624B (en) Master control right negotiation method and system based on dual-mode base station
CN112328372A (en) Kubernetes node self-healing method and system
CN109005301B (en) Intermediate number management and control method and intermediate number management and control device
CN109617988B (en) Request retry method and related product
US10356010B2 (en) Control device
US9575865B2 (en) Information processing system and monitoring method
US10674337B2 (en) Method and device for processing operation for device peripheral
CN110635968A (en) Monitoring method, device and equipment for stacked double-active detection channel and storage medium
CN112311498A (en) Terminal capability processing method and device, network side equipment and terminal
JP2021009604A5 (en)
CN114546926B (en) Core cluster synchronization, control method, data processing method, core, device and medium
EP4207637A1 (en) Time synchronization method and apparatus, device, and storage medium
CN110971697B (en) Redis single instance protection processing method and device, computer equipment and storage medium
US11323385B2 (en) Communication system and communication method
CN108076524B (en) Resource block allocation method and device
EP3185479B1 (en) Method of identifying optical module status in onu, onu and storage medium

Legal Events

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