The method for synchronizing time of eating dishes without rice or wine of relay system, equipment
Technical field
The present invention relates to field of communication technology more particularly to a kind of method for synchronizing time of eating dishes without rice or wine of relay system, equipment.
Background technique
(Relay) technology of relaying is enhanced (Long Term Evolution Advanced, the LTE-A) system of long term evolution
One of major technique of system, by the way that " host base station (for example, Donor eNB, DeNB) and trunking are (for example, Relay User
Equipment, RUE) " it is that telepoint base station (for example, Remote Base Transceiver Station, ReBTS) is provided wirelessly
Transmission channel solves the problems, such as part website without legacy system bearer network.For example, Fig. 1 is the structure of existing lte-a system
Figure, as shown in Figure 1, the system includes: DeNB, RUE, ReBTS, wherein DeNB and RUE is by being wirelessly connected, RUE and ReBTS
Between wired connection, the downlink data that DeNB is sent first is transmitted to trunking RUE, then is transmitted to ReBTS by RUE, by ReBTS will under
Row data are sent to its terminal user, in this way, the distance to have furthered between antenna and terminal user, improves the link matter of terminal
Amount, to improve the spectrum efficiency and user data rate of system.
In LTE-A communication system, for ReBTS, network time synchronization is needed.The existing master for realizing Network Synchronization
Want technology are as follows: ReBTS carries out time synchronization using satellite GPS clock source, i.e., as shown in Figure 1, ReBTS directly and global positioning system
System (Global Positioning System, GPS) connection, obtains precise time.But GPS is useless to indoor equipment, it is right
Installation position is equipped with stringent limitation.
Summary of the invention
To solve the above problems, the present invention provides a kind of method for synchronizing time of eating dishes without rice or wine of 3GPP Relay system, equipment, with
Solve the problem of installation site limitation caused by synchronizing in existing relay system using GPS time.
The embodiment of the present invention adopts the following technical scheme that
In a first aspect, the embodiment of the present invention provides a kind of method for synchronizing time of eating dishes without rice or wine of relay system, the method can be answered
For include: host base station, trunking, telepoint base station relay system, the method are as follows:
Trunking first receives the first data frame that the host base station issues, wherein first data frame packet contains: the
The absolute time of the initial position of the System Frame Number of two data frames, the subframe numbers of the second data frame and second data frame
Value;Second data frame is the data frame that the host base station issues after first data frame;
Then, the number of sub frames differed according to first data frame and the second data interframe, to second number
It is synchronized according to the absolute time value of frame start position;Clock is carried out at least one telepoint base station according to the time value after synchronizing
Time service.
In this way, in the relay system for avoiding existing LTE-A, being used by trunking for telepoint base station progress time service
The problem of limitation of installation site caused by GPS is synchronized.
Preferably, in the present case, the absolute time value is a whole seconds value, and trunking can be by following manner to exhausted
Time value is synchronized, and according to the time value after synchronizing to telepoint base station time service:
According to the subframe numbers and second data of the System Frame Number of first data frame and first data frame
The System Frame Number of frame and the second Data frame frame number calculate the son of first data frame and second data frame difference
Frame number N;Wherein, N is the integer more than or equal to 1;
When the number of the system subframe pulse received is the N, the whole seconds value is read in triggering, and with the whole second
Value updates the currently stored whole seconds value of the trunking, while the currently stored nanosecond value of the trunking being reset, and
Nanosecond counting is carried out, the combination of whole seconds value and nanosecond value after nanosecond is counted is determined as synchronizing the absolute time value
Time value afterwards;
By the protocol massages interacted at least one described telepoint base station, when being carried out at least one described telepoint base station
Clock time service;Wherein, it is carried in the protocol massages: the time value after being synchronized to the absolute time value.
Second aspect, the embodiment of the invention also provides a kind of for executing the trunking of the above method, is included in packet
Include host base station, telepoint base station relay system in, the trunking includes:
Receiving unit, the first data frame issued for receiving the host base station, wherein first data frame packet
Contain: the System Frame Number of the second data frame, the subframe numbers of the second data frame and second data frame initial position it is absolute
Time value;Second data frame is the data frame that the host base station issues after first data frame;
Synchronization unit, for the number of sub frames according to first data frame and the second data interframe difference, to institute
The absolute time value for stating the second data frame start position synchronizes;
Time service unit, for carrying out clock time service at least one telepoint base station according to the time value after synchronizing.
Preferably, the absolute time value is a whole seconds value, and the synchronization unit can be used for:
According to the subframe numbers and second data of the System Frame Number of first data frame and first data frame
The System Frame Number of frame and the second Data frame frame number calculate the son of first data frame and second data frame difference
Frame number N;Wherein, N is the integer more than or equal to 1;
When the number of the system subframe pulse received is the N, the whole seconds value is read, is updated with the whole seconds value
Whole seconds value in the trunking, while the nanosecond value in the trunking being reset, and carry out nanosecond counting, by nanosecond
The combination of whole seconds value and nanosecond value after counting is determined as the time value after synchronizing to the absolute time value.
The time service unit, specifically can be used for:
By the protocol massages interacted at least one described telepoint base station, when being carried out at least one described telepoint base station
Clock time service, wherein carried in the protocol massages: the time value after being synchronized to the absolute time value.
The third aspect, the embodiment of the invention also provides a kind of for executing the trunking of the above method, is included in packet
Include host base station, telepoint base station relay system in, the trunking include the first network interface, at least one second network interface and
Processor, wherein the processor is used for:
The first data frame that the host base station issues is received by the first network interface, wherein first data frame packet contains:
The absolute time of the initial position of the System Frame Number of second data frame, the subframe numbers of the second data frame and second data frame
Between be worth;Second data frame is the data frame that the host base station issues after first data frame;
According to the number of sub frames that first data frame and the second data interframe differ, second data frame is risen
The absolute time value of beginning position synchronizes;
Pass through at least one described second network interface according to the time value after synchronizing and clock is carried out at least one telepoint base station
Time service.
In a kind of achievable mode of the third aspect, in conjunction with the third aspect, the trunking can also include: wireless
Frame synchronization WFS module, clock processing timestamp CPTS module and local crystal oscillator;The absolute time value is a whole seconds value, and
The processor, for according to the subframe numbers of the System Frame Number of first data frame and first data frame,
And the System Frame Number and the second Data frame frame number of second data frame, calculate first data frame and described the
The number of sub frames N of two data frames difference, and by N storage into the counter of WFS module;Wherein, N is whole more than or equal to 1
Number;
The WFS module, when the number of the system subframe pulse for receiving when the WFS module is the N, to institute
It states CPTS module and sends a pulse per second (PPS);
The CPTS module reads the whole seconds value after receiving the pulse per second (PPS), updates institute with the whole seconds value
The currently stored whole seconds value of CPTS module is stated, while the currently stored nanosecond value of the CPTS module being reset, by the local
Crystal oscillator carries out nanosecond counting to the CPTS, and the combination of whole seconds value and nanosecond value after nanosecond is counted is determined as to described absolute
Time value synchronize after time value;
The CPU, be also used to by the trunking at least one second network interface receive and dispatch with the telepoint base station
Interactive protocol massages carry out clock time service at least one described telepoint base station;Wherein, second network interface and the distal end
Protocol massages are received and dispatched in base station correspondingly, carry in the protocol massages that the processor is issued to the telepoint base station: institute
State the time value after synchronizing in CPTS module to the absolute time value.
But since the trunking of above structure is to during the time service of distal end, a network interface only corresponds to a distal end
Base station, so that the CPU in trunking needs to safeguard the IP address of two telepoint base stations, IP address disunity, and in network interface,
The maintenance of trunking and business are unable to concurrent multiplexing.
Therefore, in order to avoid the appearance of the problem, another in the third aspect can realize mode, in conjunction with the third aspect,
The trunking can also include: radio frame synchronization WFS module, clock processing timestamp CPTS module, local crystal oscillator and
Switching Module, the Switching Module include: real-time clock driving RTC unit;The absolute time value is a whole seconds value, and
The processor, for according to the subframe numbers of the System Frame Number of first data frame and first data frame,
And the System Frame Number and the second Data frame frame number of second data frame, calculate first data frame and described the
The number of sub frames N of two data frames difference, and by N storage into the counter of WFS module;Wherein, N is whole more than or equal to 1
Number;
The WFS module passes through when the number of the system subframe pulse for receiving when the WFS module is the N
The CPTS module sends a pulse per second (PPS) to the RTC unit of the Switching Module;
The RTC unit of the Switching Module reads the whole seconds value after receiving the pulse per second (PPS), with described whole
Seconds value updates the currently stored whole seconds value of RTC unit of the Switching Module, while the nanosecond that the RTC unit is currently stored
Value is reset, and carries out nanosecond counting, the combination of whole seconds value and nanosecond value after nanosecond is counted to the RTC by the local crystal oscillator
It is determined as the time value after synchronizing to the absolute time value;
The CPU is also used to the protocol massages interacted by the Switching Module at least one described telepoint base station, right
At least one described telepoint base station carries out clock time service;Wherein, the agreement report that the Switching Module is issued to the telepoint base station
It is carried in text: the time value after being synchronized in the RTC unit module to the absolute time value.
From the foregoing, it will be observed that the embodiment of the present invention provides eat dishes without rice or wine method for synchronizing time and the trunking of a kind of relay system, connect
Receive the first data frame that the host base station issues, wherein first data frame packet contains: the System Frame Number of the second data frame,
The absolute time value of the initial position of the subframe numbers of second data frame and second data frame;Second data frame is
The data frame that the host base station issues after first data frame;According to first data frame and second number
According to the number of sub frames that interframe differs, the absolute time value of the second data frame start position is synchronized;After synchronizing
Time value carries out clock time service at least one telepoint base station.In this way, being that telepoint base station carries out time service by trunking, avoid
In the relay system of existing LTE-A, the problem of the limitation of installation site caused by being synchronized using GPS.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the structure chart of existing LTE-A relay system;
Fig. 2 is the flow chart of the method for synchronizing time of eating dishes without rice or wine of relay system provided in an embodiment of the present invention;
Fig. 3 is the flow chart of existing 1588V2 synchronization principles;
Fig. 4 is the structure chart of trunking 10 provided in an embodiment of the present invention;
Fig. 5 is the structure chart of trunking 10 provided in an embodiment of the present invention;
Fig. 6 is the structure chart of trunking 10 provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
It should be understood that technical solution provided in an embodiment of the present invention can be applied in lte-a system relay (Relay)
The lower clock time service of transmission, also can be applied to the clock time service under other systems, the embodiment of the present invention to this without restriction,
The present invention is only illustrated by taking the relay transmission of lte-a system shown in FIG. 1 as an example.
Cardinal principle of the invention is: RUE is synchronous with the DeNB retention time (at this time based on the timing scheme that LTE eats dishes without rice or wine
DeNB is as clock source), then using the time value after synchronizing as time source, downward first device ReBTS carries out clock and awards RUE
When, so that ReBTS is got accurate time synchronization.Below based on above-mentioned principle to technical solution provided in an embodiment of the present invention into
Row is discussed in detail:
Embodiment one
Fig. 2 is a kind of flow chart of the method for synchronizing time of eating dishes without rice or wine of relay system provided in an embodiment of the present invention, the side
Method is applied in relay system, and the relay system may include: host base station, trunking and telepoint base station, wherein remote
End group station receives the data that host base station issues by trunking, or uploads number to the host base station by relay base station
According to;As shown in Fig. 2, the method may include:
Step 101: trunking receives the first data frame that the host base station issues, wherein first data frame
Include: the System Frame Number of the second data frame, the subframe numbers of the second data frame and second data frame initial position it is exhausted
To time value;Second data frame is the data frame that the host base station issues after first data frame.
Wherein, first data frame is any data frame that host base station issues;Second data frame can be place
Any absolute time that master base station issues after issuing the first data frame is the corresponding data frame of whole seconds value;The absolute time can
Think a whole seconds value, it is preferred that can be the whole seconds value of 48bit.
Optionally, the trunking can pass through synchronous the first data for receiving host base station and issuing of air interface synchronization technology
Frame.
Wherein, the air interface synchronization technology mainly uses primary synchronization signal (full name in English: Primary
Synchronization Signal, english abbreviation: PSS), secondary synchronization signal (Secondary Synchronization
Signal, SSS) principle, pass through cell reference message (full name in English: Cell-Specific Reference Signal, English
Abbreviation: CRS) (Time Tracking, TA) and frequency offset tracking (Frequency Tracking, FA) are tracked partially when carrying out,
In, in order to make trunking in time eat dishes without rice or wine to be aligned with the data frame that host base station issues, trunking needs are fixed
The TA of deviation is adjusted.
In general, setting TA adjustment to the integer value adjustment amount of TA, i.e. TA etc. in the standard definition of communication protocol
In 16 TS, Adjustment precision 0.52us, and in the present invention, for improve time domain alignment precision, optionally, can use TS for
Accuracy of measurement is adjusted, Adjustment precision is made to be accurate to 0.0325us.
Step 102: the number of sub frames that trunking is differed according to first data frame and the second data interframe is right
The absolute time value of the second data frame start position synchronizes.
Illustratively, the absolute time value is a whole seconds value, described according to first data frame and described second
The number of sub frames of data interframe difference, synchronizes the absolute time value of the second data frame start position and may include:
According to the subframe numbers and second data of the System Frame Number of first data frame and first data frame
The System Frame Number of frame and the second Data frame frame number calculate the son of first data frame and second data frame difference
Frame number N;Wherein, N is the integer more than or equal to 1;
When the number of the system subframe pulse received is the N, the whole seconds value is read in triggering, with the whole seconds value
The currently stored whole seconds value of the trunking is updated, while the currently stored nanosecond value of the trunking being reset, is gone forward side by side
Row nanosecond counts, and the combination of whole seconds value and nanosecond value after nanosecond is counted is determined as after synchronizing to the absolute time value
Time value.
Wherein, the nanosecond counts are as follows: as soon as every generation nanosecond, currently stored nanosecond value add one, and so on, directly
After being 1 whole second to nanosecond pulse output, currently stored whole seconds value is added one, nanosecond value is reset, nanosecond is re-started
It counts.
For example, the frame number of above-mentioned first data frame is 0, subframe numbers 1, the frame number of the second data frame is 3, subframe numbers 1,
The absolute time of second data frame start position is a seconds, then according to calculating: the first data frame is differed with the second data interframe
20 subframes can just receive the second data frame by 20 subframes that is, after receiving the first data frame.Due to trunking
With host base station by often receiving a subframe after air interface synchronization, a frame pulse can be exported to WFS module, so, when
After WFS module receives 20 frame pulses, the arrival of the second data frame is implied, at this point it is possible to which absolute time a seconds are replaced
The original whole seconds value of CPTS module completes the synchronization of the whole seconds value of the second data frame start position, then, by the nanosecond in CPTS
Value is reset, and carries out nanosecond counting according to the intrinsic frequency of trunking by local crystal oscillator, if counting down to b nanosecond nanosecond at this time,
Known to: value synchronization time of absolute time is a seconds b nanoseconds.
Step 103: trunking carries out clock time service at least one telepoint base station according to the time value after synchronizing.
Wherein, the telepoint base station can set to receive any of data frame that host base station issues by trunking
It is standby, it such as can be ReBTS shown in FIG. 1.
The time value according to after synchronizing carries out clock time service at least one telepoint base station and specifically includes:
By the protocol massages interacted at least one described telepoint base station, when being carried out at least one described telepoint base station
Clock time service;Wherein, it is carried in the protocol massages: the time value after being synchronized to the absolute time value.
Optionally, trunking can award at least one telepoint base station progress clock by 1588v2 time synchronization principle
When.It is specific as follows:
The 1588v2 agreement report interacted with the telepoint base station received and dispatched by least one network interface in the trunking
Text carries out clock time service at least one described telepoint base station;Wherein, the network interface is received correspondingly with the telepoint base station
1588v2 protocol massages are sent out, the CPU is carried into the 1588V2 protocol massages that the telepoint base station issues: the absolute time
Between value synchronize after time value.
Wherein, the network interface can be gigabit Ethernet mouth GE.
Wherein, the 1588v2 time synchronization principle is existing simultaneous techniques, is simply introduced herein, for example, such as Fig. 3
It is shown, interact the process that clock time service is carried out to telepoint base station by 1588v2 protocol massages with telepoint base station for trunking:
1, trunking sends Sync message at the t1 moment, and t1 timestamp is carried in messages;Wherein, when the t1
Between stamp be t1 moment CPTS module in value synchronization time.
2, telepoint base station in locally generated t2 timestamp, and extracts t1 in t2 reception to Sync message from message
Timestamp, and Delay_Req message is sent at the t3 moment, and in locally generated t3 timestamp;
3, trunking in t4 reception to Delay_Req message, and in locally generated t4 timestamp, then by t4 when
Between stamp carry in Delay_Resp message, return to telepoint base station;
Wherein, the t4 timestamp is value synchronization time in t4 moment CPTS module;It is set for example, it is assumed that the t1 moment relays
Value synchronization time in standby are as follows: a seconds b nanoseconds, then t1 timestamp is a seconds b nanoseconds, at this point, if relaying from the t1 moment to the t4 moment
The nanosecond value of equipment increased for 3 nanoseconds again, then t4 timestamp are as follows: a seconds (b+3) nanoseconds.
4, telepoint base station receives Delay_Resp message, and t4 timestamp is extracted from message.
Assuming that the transmitting path delay of trunking to telepoint base station is Delayms, the hair of telepoint base station to trunking
Sending path delay is Delaysm, and the time deviation between telepoint base station and trunking is Offset.Obviously, this 3 variables are all
It is unknown number, then:
T2-t1=Delayms+Offset;T4-t3=Delaysm-Offset;
(t2-t1)-(t4-t3)=(Delayms+Offset)-(Delaysm-Offset);
Offset=[(t2-t1)-(t4-t3)-(Delayms-Delaysm)]/2;
Obviously, if Delayms=Delaysm, i.e., the receiving-transmitting chain delay between trunking and telepoint base station is symmetrical,
So: Offset=[(t2-t1)-(t4-t3)]/2;Telepoint base station can be according to t1, t2, t3, tetra- timestamps of t4 in this way
Oneself time deviation Offset between trunking is calculated, adjusts the time of itself to reach synchronous with trunking.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of method for synchronizing time of eating dishes without rice or wine of relay system, the trunking
Receive the first data frame that the host base station issues, wherein first data frame packet contains: the system-frame of the second data frame
Number, the absolute time value of the initial positions of the subframe numbers of the second data frame and second data frame;Second data frame
For the data frame that the host base station issues after first data frame;According to first data frame and described second
The number of sub frames of data interframe difference, synchronizes the absolute time value of the second data frame start position;After synchronizing
Time value at least one telepoint base station carry out clock time service.In this way, being that telepoint base station carries out time service by trunking, keep away
In the relay system for having exempted from existing LTE-A, the problem of caused installation site limits is synchronized using GPS.
For ease of description, trunking execution of the present invention has shown and described in this example in the form of structural block diagram below
The functional unit of the above method, it should be noted that the trunking includes but is not limited to the functional unit in illustrating.
Embodiment two
Fig. 4 is a kind of structure chart of trunking 10 provided in an embodiment of the present invention, included in relaying system as shown in Figure 1
In system, the relay system further include: host base station, telepoint base station, the trunking include:
Receiving unit 201, the first data frame issued for receiving the host base station, wherein first data frame
Include: the System Frame Number of the second data frame, the subframe numbers of the second data frame and second data frame initial position it is exhausted
To time value;Second data frame is the data frame that the host base station issues after first data frame;
Synchronization unit 202, it is right for the number of sub frames according to first data frame and the second data interframe difference
The absolute time value of the second data frame start position synchronizes;
Time service unit 203, for carrying out clock time service at least one telepoint base station according to the time value after synchronizing.
Specifically, the synchronization unit 202 can be used for:
According to the subframe numbers and second data of the System Frame Number of first data frame and first data frame
The System Frame Number of frame and the second Data frame frame number calculate the son of first data frame and second data frame difference
Frame number N;Wherein, N is the integer more than or equal to 1;
When the number of the system subframe pulse received is the N, the whole seconds value is read in triggering, and with the whole second
Value updates the currently stored whole seconds value of the trunking, while the currently stored nanosecond value of the trunking being reset, and
Nanosecond counting is carried out, the combination of whole seconds value and nanosecond value after nanosecond is counted is determined as synchronizing the absolute time value
Time value afterwards.
Wherein, the nanosecond counts are as follows: as soon as every generation nanosecond, the currently stored nanosecond value of trunking add one, according to
It is secondary to analogize, after nanosecond pulse output is 1 whole second, the currently stored whole seconds value of trunking is added one, nanosecond value is reset,
Re-start nanosecond counting.
For example, the frame number of above-mentioned first data frame is 0, subframe numbers 1, the frame number of the second data frame is 3, subframe numbers 1,
The absolute time of second data frame start position is a seconds, then according to calculating: the first data frame is differed with the second data interframe
20 subframes can just receive the second data frame by 20 subframes that is, after receiving the first data frame.Due to trunking
With host base station by often receiving a subframe after air interface synchronization, a frame pulse can be exported to WFS module, so, when
After WFS module receives 20 frame pulses, the arrival of the second data frame is implied, at this point it is possible to which absolute time a seconds are replaced
The original whole seconds value of CPTS module completes the synchronization of the whole seconds value of the second data frame start position, then, by the nanosecond in CPTS
Value is reset, and carries out nanosecond counting according to the intrinsic frequency of trunking by local crystal oscillator, if counting down to b nanosecond nanosecond at this time,
Known to: value synchronization time of absolute time is a seconds b nanoseconds.
Specifically, the time service unit 203, can be used for:
By the protocol massages interacted at least one described telepoint base station, when being carried out at least one described telepoint base station
Clock time service, wherein carried in the protocol massages: the time value after being synchronized to the absolute time value.
For example, the time service unit 203 can carry out at least one telepoint base station using 1588v2 time synchronization principle
Clock time service, such as: the time service unit 203, for the 1588v2 protocol massages by being interacted with the telepoint base station, to described
At least one telepoint base station carries out clock time service;Wherein, it is carried in the 1588V2 protocol massages: to the absolute time value
Time value after synchronizing.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of trunking, the first data that the host base station issues are received
Frame, wherein first data frame packet contains: the System Frame Number of the second data frame, the subframe numbers of the second data frame and described
The absolute time value of the initial position of two data frames;Second data frame is host's base after first data frame
The data frame that station issues;According to the number of sub frames that first data frame and the second data interframe differ, to described second
The absolute time value of data frame start position synchronizes;When being carried out according to the time value after synchronizing at least one telepoint base station
Clock time service.In this way, in the relay system for avoiding existing LTE-A, being used by trunking for telepoint base station progress time service
The problem of limitation of installation site caused by GPS is synchronized.
Embodiment three
Fig. 5 is a kind of structure chart of trunking 10 provided in an embodiment of the present invention, included in relaying system as shown in Figure 1
In system, the relay system further include: host base station, telepoint base station, the trunking, including the first network interface, at least one
Second network interface and processor (Central Processing Unit, CPU) 101.
Wherein, first network interface, at least one second network interface are the communication interface in trunking 10, are used for and outside
Network element carries out data communication.
The processor 101 may be a central processing unit (central processing unit, referred to as
CPU101), it is also possible to specific integrated circuit (Application Specific Integrated Circuit, ASIC), or
Person is arranged to implement one or more integrated circuits of the embodiment of the present invention, such as: one or more microprocessors
(digital singnal processor, DSP), or, one or more field programmable gate array (Field
Programmable Gate Array, FPGA).
The processor 101, for receiving the first data frame that the host base station issues by first network interface,
In, first data frame packet contains: the subframe numbers and second number of the System Frame Number of the second data frame, the second data frame
According to the absolute time value of the initial position of frame;Second data frame is under the host base station after first data frame
The data frame of hair;
And the number of sub frames differed according to first data frame and the second data interframe, to second number
It is synchronized according to the absolute time value of frame start position;
And clock time service is carried out at least one telepoint base station according to the time value after synchronizing.
Specifically, as shown in figure 5, the trunking 10 can also include: radio frame synchronization (Wireless Frame
Synchronization, WFS) module 102, clock processing timestamp (Clock Process Time Stamp, CPTS) module
103 and local crystal oscillator 104.
Wherein, processor 101, WFS module 102, CPTS module 103 can integrate on same circuit;WFS module 102,
CPTS module 103 and local crystal oscillator 104 are that industry often uses module, and this is no longer going to repeat them.
Illustratively, the absolute time value is a whole seconds value, and,
The processor 101, for according to the System Frame Number of first data frame and the subframe of first data frame
Number and second data frame System Frame Number and the second Data frame frame number, calculate first data frame and institute
The number of sub frames N of the second data frame difference is stated, and by N storage into the counter of WFS module 102;Wherein, N be greater than etc.
In 1 integer;
The WFS module 102, the number of the system subframe pulse for receiving when the WFS module 102 are the N
When, Xiang Suoshu CPTS module 103 sends a pulse per second (PPS);
The CPTS module 103 reads the whole seconds value, more with the whole seconds value after receiving the pulse per second (PPS)
The currently stored whole seconds value of the new CPTS module 103, while the currently stored nanosecond value of the CPTS module 103 being reset,
Nanosecond counting is carried out to the CPTS by the local crystal oscillator 104, the combination of whole seconds value and nanosecond value after nanosecond is counted is true
The time value being set to after being synchronized to the absolute time value.
Wherein, nanosecond counts are as follows: local crystal oscillator is as clock source, one nanosecond of every generation, receiving in CPTS module
Seconds value just adds one, and so on, after the nanosecond pulse output of local crystal oscillator is 1 whole second, the whole seconds value in CPTS is added
One, the nanosecond value in CPTS is reset, nanosecond counting is re-started.
For example, the frame number of above-mentioned first data frame is 0, subframe numbers 1, the frame number of the second data frame is 3, subframe numbers 1,
The absolute time of second data frame start position is a seconds, then according to calculating: the first data frame is differed with the second data interframe
20 subframes can just receive the second data frame by 20 subframes that is, after receiving the first data frame.Due to trunking
With host base station by often receiving a subframe after air interface synchronization, a frame pulse can be exported to WFS module, so, when
After WFS module receives 20 frame pulses, the arrival of the second data frame is implied, at this point it is possible to which absolute time a seconds are replaced
The original whole seconds value of CPTS module completes the synchronization of the whole seconds value of the second data frame start position, then, by the nanosecond in CPTS
Value is reset, and carries out nanosecond counting according to the intrinsic frequency of trunking by local crystal oscillator, if counting down to b nanosecond nanosecond at this time,
Known to: value synchronization time of absolute time is a seconds b nanoseconds.
The processor, be also used to by the trunking at least one second network interface receive and dispatch with the distal end base
Stand interaction protocol massages, at least one described telepoint base station carry out clock time service;Wherein, second network interface and described remote
Protocol massages are received and dispatched at end group station correspondingly, are carried in the protocol massages that the processor is issued to the telepoint base station:
Time value after being synchronized in the CPTS module to the absolute time value.
Optionally, the processor can carry out clock at least one telepoint base station using 1588v2 time synchronization principle
Time service, specifically:
The CPU101, be also used to receive and dispatch by least one network interface in the trunking hands over the telepoint base station
Mutual 1588v2 protocol massages carry out clock time service at least one described telepoint base station;Wherein, the network interface and the distal end
1588v2 protocol massages are received and dispatched in base station correspondingly, and the CPU is into the 1588V2 protocol massages that the telepoint base station issues
It carries: the time value after being synchronized in the CPTS module to the absolute time value.
Wherein, the network interface can be gigabit Ethernet mouth GE;For example, as shown in figure 5, CPU101, WFS module 102,
CPTS module 103 is integrated on the same circuit of trunking, CPU101 can be read in real time synchronized in CPTS module 103 after
Time value, the interaction of 1588v2 protocol massages is carried out by GE0 mouthfuls with telepoint base station ReBTS0, and the clock of ReBTS0 is awarded in completion
When, the interaction of 1588v2 protocol massages is carried out with telepoint base station ReBTS1 by GE1 mouthfuls, completes the clock time service to ReBTS1.
But due to using trunking shown in fig. 5 to during the time service of distal end, a network interface only correspond to one it is remote
End group station, so that the CPU in trunking needs to safeguard the IP address of two telepoint base stations, IP address disunity, and in network interface
When, the maintenance of trunking and business are unable to concurrent multiplexing, and therefore, in order to avoid the appearance of the problem, trunking 10 may be used also
Structure shown in fig. 6 is thought, as shown in fig. 6, the trunking 10 may include: CPU101, WFS module 102, CPTS module
103, local crystal oscillator 104 and Switching Module 105, the Switching Module 105 include: real-time clock driving RTC unit 1051.Its
In, CPU101, WFS module 102, CPTS module 103 can integrate on same circuit, and Switching Module 105 may be at this
Except integrated circuit, Switching Module can be any module that data can be forwarded to junior's multiple equipment, can pass through exchange
The same port of module 105 carries out clock time service to multiple telepoint base stations,
In Fig. 6, in order to avoid value synchronization time that will synchronize in CPTS module 103 is sent to Switching Module 105, with
So that the downward first device of Switching Module 105 carries out the problem of clock awards bring time delay and shake, it, can in the embodiment of the present invention
The time of host base station to be directly synchronized to the RTC unit 1051 of Switching Module 105, itself is read by Switching Module 105
Synchronization time, value carried out the interaction of 1588v2 protocol massages with multiple telepoint base stations, completed the clock time service to telepoint base station;Tool
Body are as follows:
The absolute time value is a whole seconds value;
The CPU101, for according to the subframe numbers of the System Frame Number of first data frame and first data frame,
And the System Frame Number and the second Data frame frame number of second data frame, calculate first data frame and described the
The number of sub frames N of two data frames difference, and by N storage into the counter of WFS module 102;Wherein, N is more than or equal to 1
Integer;
The WFS module 102, the number of the system subframe pulse for receiving when the WFS module 102 are the N
When, a pulse per second (PPS) is sent to the RTC unit 1051 of the Switching Module by the CPTS module 103;
The RTC unit 1051 of the Switching Module reads the whole seconds value, uses institute after receiving the pulse per second (PPS)
It states whole seconds value and updates the currently stored whole seconds value of RTC unit 1051 of the Switching Module, while the RTC unit 1051 being worked as
The nanosecond value of preceding storage is reset, and carries out nanosecond counting to the RTC by the local crystal oscillator 104, the whole second after nanosecond is counted
The combination of value and nanosecond value is determined as the time value after synchronizing to the absolute time value.
The processor is also used to the agreement report interacted by the Switching Module at least one described telepoint base station
Text carries out clock time service at least one described telepoint base station;Wherein, the association that the Switching Module is issued to the telepoint base station
It is carried in view message: the time value after being synchronized in the RTC unit module to the absolute time value.
Optionally, the processor can carry out clock at least one telepoint base station using 1588v2 time synchronization principle
Time service, specifically:
The CPU101 is also used to interact by the Switching Module 105 at least one described telepoint base station
1588v2 protocol massages carry out clock time service at least one described telepoint base station;Wherein, the Switching Module is to the distal end
It carries: the absolute time value being carried out in 1051 module of RTC unit same in the 1588V2 protocol massages that base station issues
Time value after step.
Wherein, it should be noted that when Switching Module using the method for synchronization of 1588V2 to remote equipment when, send every time
1588V2 protocol massages in timestamp squeezed by Switching Module oneself.
For example, as shown in fig. 6, first by the RTC of the data frame that host base station issues being time-synchronized in Switching Module 105
On unit 1051, then, CPU101 can be read in real time by network interface GE0 synchronized in RTC unit 1051 in Switching Module 105 after
Time value, carry out 1588v2 protocol massages by multiple ports of Switching Module 105 and telepoint base station ReBTS0, ReBTS1
The clock time service to ReBTS0, ReBTS1 is completed in interaction, and at the same time, GE1 mouthfuls of progress proximal ends of another network interface can be passed through
Maintenance may be multiplexed the maintenance of trunking and business needs.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of trunking, the first data that the host base station issues are received
Frame, wherein first data frame packet contains: the System Frame Number of the second data frame, the subframe numbers of the second data frame and described
The absolute time value of the initial position of two data frames;Second data frame is host's base after first data frame
The data frame that station issues;According to the number of sub frames that first data frame and the second data interframe differ, to described second
The absolute time value of data frame start position synchronizes;When being carried out according to the time value after synchronizing at least one telepoint base station
Clock time service.In this way, in the relay system for avoiding existing LTE-A, being used by trunking for telepoint base station progress time service
The problem of limitation of installation site caused by GPS is synchronized.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.