Invention content
The present invention provides a kind of method for building up of clock network, device and communication node, solves and communicates in the prior art
Clock is closed each other between node, the problem of can not achieve mutual support.
To solve the above-mentioned problems, the present invention uses following technical scheme:
A kind of method for building up of clock network, including:
Determine the adjacent communication node for the defective communication node that clock source breaks down;
Collect the clock status information of the adjacent communication node;
According to the clock status information and preset rules, a synchronous clock source is selected in the adjacent communication node
Synchronous communication node;
Obtain the configuration parameter information of the defective communication node and the synchronous communication node synchronous clock source;
The configuration parameter information is allocated to the defective communication node and the synchronous communication node;
The clock network between the defective communication node and the synchronous communication node is established according to the configuration parameter information
Network.
Further, it is also wrapped before the adjacent communication node for the defective communication node that the determining clock source breaks down
It includes:Judge whether communication node occurs clock source failure.
Further, further include:Control the defective communication node and the synchronous communication node by information exchange into
The adjustment of row configuration parameter.
Further, if the clock source of the defective communication node restores or the clock of the synchronous communication node cannot
It continues as the defective communication node and clock source is provided, then obtain the dismounting configuration parameter of the clock network;It is configured removing
Parameter configuration is to the defective communication node and the synchronous communication node;Parameter, which is configured, according to the dismounting removes the clock
Network.
A kind of clock network establishes device, including:
Communication node determining module, the adjacent communication node for determining defective communication node that clock source breaks down;
Information collection module, the clock-like for collecting adjacent communication node determined by the communication node determining module
State information;
Communication node selecting module is used for according to the clock status information and preset rules, in the adjacent communication section
The synchronous communication node of a synchronous clock source is selected in point;
Data obtaining module, for obtaining matching for the defective communication node and the synchronous communication node synchronous clock source
Set parameter information;
Information collocation module, the configuration parameter information for obtaining described information acquisition module are allocated to the failure and lead to
Believe node and the synchronous communication node;
Network establishes module, for according to the configuration parameter information establish the defective communication node with it is described synchronous logical
Believe the clock network between node.
Further, further include:Breakdown judge module, for judging whether communication node occurs clock source failure;It is described
If the judging result that communication node determining module is additionally operable to the breakdown judge module is yes, it is determined that the breakdown judge module
The adjacent communication node for the defective communication node that the clock source judged breaks down.
Further, parameter adjustment control module, for controlling the defective communication node and the synchronous communication node
The adjustment of configuration parameter is carried out by information exchange.
Further, if described information acquisition module is additionally operable to the clock source recovery or described of the defective communication node
The clock of synchronous communication node cannot continue as the defective communication node and provide clock source, then obtains tearing open for the clock network
Except configuration parameter;Described information configuration module is additionally operable to dismounting configuration parameter configuration to the defective communication node and institute
State synchronous communication node;
The device of establishing of the clock network further includes:Network removes module, for being matched according to described information configuration module
The dismounting configuration parameter set removes the clock network of the defective communication node and the synchronous communication node.
A kind of communication node, including clock network as described in any one of the above embodiments establish device.
Further, the breakdown judge module of the clock network established in device is specifically used for:According to preset rules
Detect whether the clock source of itself breaks down;Alternatively, receive that the communication node that other clock sources break down sends it is new when
Clock source request message, or detect the clock sources of other communication nodes and whether break down.
The present invention provides a kind of method for building up of clock network, device and communication nodes, by collecting clock source
The clock status information of the adjacent communication node of the communication node of failure further according to collected clock status information and is preset
The synchronous communication node of rule one synchronous clock source of selection, then will connect the configuration of the clock network between two communication node
Parameter configuration finally establishes failure communication to defective communication node and synchronous communication node according to the configuration parameter information configured
Clock network between node and the synchronous communication node.So that defective communication node is when clock source breaks down, it can be short
The normal operation of clock is kept in time by the foundation of clock network, large effect will not be generated to its business.This programme
The self-healing function of communication node clock is realized, when ensureing that communication node clock source breaks down, for the business of the communication node
Clock needs are established as early as possible, realize the intelligence of communication node clock.For example, in mobile communication field, terminal is in different communication
Once there is clock source failure in switching between node, communication node, then can be this communication node rapidly by this programme
The clock for inquiring another clock source and then communication node is synchronized to the clock source, is cut across station so as to meet terminal progress
The Clock requirement of two communication nodes changed is substantially reduced because clock source problem leads to the probability of terminal switching call drop, is carried
Rise handover success rate of the terminal between different communication node.Realize self-healing, the self-adjusting function of the clock system of communication node,
And realize the intelligence of communication node clock system.
Further, after the clock source of defective communication node restores, the dismounting that clock network can be removed by acquisition is matched
Parameter is set to be removed to the clock network, in this way, defective communication node can be continuing with the clock source of its own, and is also made
Obtaining the clock of synchronous communication node reduces load, completes defective communication node from automatic clock network of establishing to dismounting clock
The process of network realizes the full intellectualized of the clock of communication node.
Specific implementation mode
Below by specific implementation mode combination attached drawing, invention is further described in detail.
The flow chart of the method for building up of the clock network provided as shown in Figure 1 for one embodiment of the invention, refers to Fig. 1,
After this method starts, including:
S101:Determine the adjacent communication node for the defective communication node that clock source breaks down.In particular it is required that first determining
The definite location information for the communication node that clock source breaks down, then pass through the location information determination of the defective communication node and its
Adjacent communication node.The clock source break down including:Clock does not have the failures such as locked clock source.
S102:Collect the clock status information of adjacent communication node.Specifically, adjacent communication node can be collected by triggering
Solicited message obtain the clock status information of each adjacent communication node, the clock status information specifically includes:Opposite end
IP address is adjacent, clock source whether locked, clock Source Type, clock subtype and clock accuracy etc..Preferably, the clock status
Information exists in the form of clock status table, and e.g., clock status table is:
Serial number |
The opposite end addresses ip |
Whether clock locks |
Clock type |
Clock subtype |
Clock accuracy |
Weight |
|
|
|
|
|
|
|
Serial number:It is neighbors clock status table serial number, since 1, is terminated with maximum neighbors number n;The opposite end addresses ip:It is
The addresses ip of neighbors;Whether clock locks:The clock of neighbors related with this node whether locked clock source;Clock class
Type:Neighbors clock Source Type;Clock subtype:The subtype of neighbors clock Source Type, such as clock Source Type are GNSS,
Subtype is GPS;Clock accuracy:Neighbors clock accuracy;Weight:Weight of the neighbors as this node clock source, weight are got over
Greatly, bigger as the permission of this node clock source.
S103:According to clock status information and preset rules, one synchronous clock source of selection in adjacent communication node
Synchronous communication node.The principle of the synchronous communication node selection must include the following contents:Ensure the synchronous communication node
It can be in communication with each other between defective communication node;The clock source that synchronous communication node provides disclosure satisfy that failure communication section
The business need of point;Ensure selected synchronous communication node (communication node of new clock source) between defective communication node
Communication cost (cost) it is minimum (mainly minimum to the pressure of network).Its select priority include:It is advised with whole network
The clock source clock type preferentially taken and a height of priority selection principle of clock accuracy are drawn, priority smoothly can be according to need
It is adjusted flexibly, such as:GNSS clock highest priority -- >1PPS+TOD-->1588 clock — >When synchronous ethernet+1588
Clock — >Line clock — >SNTP/NTP clock —s >Local clock (minimum).Clock accuracy is higher, and it is bigger to undertake permission;It is special
Flow:For example, the high person of precision or the high person of clock source priority level, because other reasons can not temporarily carry synchronous clock source
, the clock source that can elect another communication node is used as the synchronous clock source of defective communication node, if with low precision
Either low priority clock can meet defective communication node business need can negotiate both sides use low precision or low excellent
First grade clock.
S104:Obtain the defective communication node configuration parameter information synchronous with synchronous communication node clock source;The configuration
Parameter information includes:Defective communication node establishes the configuration parameter of clock chain circuit with synchronous communication node, such as IP between the two
Location, the random ID at both ends, communication node ID number etc..
S105:Configuration parameter information is allocated to defective communication node and synchronous communication node.Specifically, it will get
The configuration parameter information that clock chain circuit is established with opposite end is respectively configured on defective communication node and synchronous communication node.
S106:The clock network between defective communication node and synchronous communication node is established according to configuration parameter information.Clock
After the completion of network is established, defective communication node can obtain the support of the clock of synchronous communication node, it is made to be normally carried out business
Work.And it can be carried out by the clock chain circuit in the clock network established between defective communication node and synchronous communication node
The synchronous service condition of clock source is improved in relevant data interaction, is realized the intercommunication of communication node clock, is helped each other
Possibility.
In step S101:It determines before the adjacent communication node for the defective communication node that clock source breaks down and further includes:
Judge whether communication node occurs clock source failure.It specifically includes:By third party's communication node by receiving failure communication section
The new clock source solicited message of transmission is put to judge that clock source failure occurs for corresponding communication node;Alternatively, by communication node pair
Itself carries out the detection of clock source, it is found that its clock source breaks down.So that it is determined that corresponding communication node is failure communication section
Point.
In step S106:The clock network between defective communication node and synchronous communication node is established according to configuration parameter information
Later, further include:It controls the defective communication node and configuration parameter is carried out by information exchange with the synchronous communication node
Adjustment.Specifically, the parameter that may be run originally is no longer appropriate for present network, or needs to change communication mode etc., this
When be necessary to carry out parameter negotiation adjustment, can be disappeared by the communication between defective communication node and synchronous communication node
The interaction of breath come realize parameter negotiation change.The parameter specifically includes:The time interval of Sync messages transmission, announce
The transmission time interval of message, DSCP values of PTP encapsulated messages etc..
Further include:If the clock source of the defective communication node restores or the clock of the synchronous communication node cannot be after
Continue and provide clock source for the defective communication node, then obtains the dismounting configuration parameter of the clock network;Configuration ginseng will be removed
Number is allocated to the defective communication node and the synchronous communication node;Parameter, which is configured, according to the dismounting removes the clock network
Network.What the present embodiment was recorded is process of the clock network from dismounting, for example, in practical applications, establishing defective communication node
With 1588 clock synchronised clock networks of synchronous communication node, after the clock source of defective communication node restores, in order to delete this
The 1588 clock entity processes that node is established automatically are needed to give synchronous communication node to one dismounting notification message of transmission, be obtained
After the confirmation response message of synchronous communication node, then the dismounting configuration parameter of the clock network is obtained, is matched according to the dismounting
It sets parameter and removes the clock network;It is provided when the clock of the synchronous communication node cannot continue as the defective communication node
It when clock source, and needs first to send dismounting notification message, and after obtaining the response of defective communication node, and defective communication node
Response message in include often:Synchronous communication node is reminded to carry out removing the operation etc. of clock network afterwards at what time,
Such as it is reminded to execute this operation after 10 minutes, synchronous communication node just carries out subsequent tear open after receiving response message
Except the operation of clock network.
It should be noted that the invention belongs to application layer content, which can be carried on the transmission such as UDP, TCP, SCTP
On layer protocol.If carried by udp protocol, it is proposed that the self-defined UDP port number of communicating pair is built to ensure safety
The port that view selection is not defined uses;If carried by Transmission Control Protocol, it is proposed that the self-defined TCP port number of communicating pair is
Ensure safety, it is proposed that the port that selection is not defined uses;If carried by Stream Control Transmission Protocol, it is proposed that communicating pair is made by oneself
How justice handles the relationship of carrying and SCTP streams, and specific implementation is not belonging to this document scope;If using other transport layer protocols,
It is recommended that user is according to network and demand self-defining;For between LTE base station and LTE base station, LTE base station and EPC core nets it
Between, it is proposed that mutual message is carried using SCTP transport layer protocols.
Preferably, in order to realize the mutual support of clock system between communication node, realize communication node clock self-healing,
From maintenance function, while also to ensure the interconnecting property of these functions, meet the business of different communication node offer to clock
Particular/special requirement, while requiring to reduce manpower maintenance cost.Such as, it in 1588 clock systems, using the above method, may be implemented
The automatic maintenance of 1588 clock systems is realized in the intelligence of 1588 clock systems, is carried for the operation intelligence of network system clock
For technical support.Stage distribution is carried out to above method step, specifically can be divided into following several stages:Clock self-healing prepares rank
Section, selection synchronous communication node stage (clock master elect stage), clock are from establishment stage, timing parameter from maintenance phase
And follow-up self-built clock immediately from teardown phase.Above-mentioned each stage is specifically introduced below:
As shown in Fig. 2, the flow chart of the clock self-healing preparation stage provided for one embodiment of the invention, refers to Fig. 2, when
After communication node detects that its clock source breaks down, triggers the clock self-healing of its own and prepare operation, after starting, including:
S201:Empty the clock status table of adjacent communication node;At this time, it may be necessary to reacquire the clock of adjacent communication node
Status information then first empties the clock status table for the adjacent communication node that it includes in advance.
S202:Judge whether query communication number of nodes has been more than setting communication section to count;If it is not, then turning S203;If then
Terminate.
S203:Query communication number of nodes is equal to query node number and adds 1;
S204:Obtain the clock status information and communication node weight information of inquired communication node;
S205:The clock status information and communication node weight information of query communication node are added to adjacent communication node
In clock status table.
The clock self-healing preparation stage of the communication node be mainly for the clock that is described below elect the stage provide select according to
According to.It is ready for selection synchronous clock source.
As shown in figure 3, electing the flow chart in stage for the clock master that one embodiment of the invention provides, Fig. 3 is referred to,
After the stage starts,
S301:Extract all communication nodes of clock lock in adjacent communication node clock status table.
S302:Clock lock adjacent communication node is skyIf so, turning S303;If it is not, then turning S303.
S303:The communication node of highest priority clock is extracted by clock source priority level;Specifically, as described above
Clock priority extract, be not repeated herein.
S304:Identical number of nodes >=2 of clock priorityIf so, turning S305;If it is not, then turning S306.
S305:Extract each nodal clock precision;Since clock source priority is identical, it is needed at this time according to clock essence
Degree is further selected.
S306:Extract the communication node information.
S307:This communication node finds the adjacent communication node of the condition of satisfaction according to itself clock request, and judgement meets item
Adjacent communication node number >=2 of part
S308:Extract the big communication node of weighted value;Synchronous clock source is further selected by the size of weighted value
Adjacent communication node.
S309:Extract the communication node information.
S310:It is clock master nodes that this node, which is arranged,.
S311:MASTER, which is sent, to the node of setting elects request message.There is " hair/receiving end in electing request message
It is No. id random ", this is No. id and first stage generation between continuing to use communication node described in clock status querying method
Random No. id generated when " adjacent communication node clock status table ".In addition, allowing the clock of multiple endpoints self-built configuration
Vertical communication node, it should based on opposite end communication node clock source priority, clock accuracy it is alternative condition, if consistent,
It is then that selection gist takes if cost grade is identical 16 behind the addresses endpoint ip with the cost grade (i.e. weight) for reaching endpoint
The size of position (binary system) is selection gist.Specifically, in the present embodiment, defective communication node is transmitting terminal;With the failure
The adjacent communication node of communication node is receiving terminal;After transmitting terminal tranmitting data register elects request message, need to start one at the end
A timer after timer expiry, can retransmit the message, transmission times is then recognized if it exceeds preset value again
It sends and fails for message, the node can be deleted from " neighbors clock status table ".It is other suitable to continue to look for according to flow
Node.This programme is that the election request message is provided with message format, which is specially shown in below table:
The specific explanations of the table are:Marker bit:8bits is occupied, 0xaf is fixed as;Version number:8bits is occupied, currently
0x01 is filled out in fixation;Block length:The field accounts for 16bits, the length (occupying how many a bytes) for stating above-mentioned format;Hair
Hold random id:The random number generated by source, is identified with 16bits;The random id of receiving end:The random number of production is generated by receiving terminal, is used
16bits is identified;Start master/slaver:8 bits are accounted for, 0x00 expressions do not determine, and 0x01 indicates that master, 0x02 are indicated
Slaver, 0x03~0x0f are reserved field;Receiving end master/slaver:8 bits are accounted for, 0x00 expressions do not determine, 0x01 tables
Show that master, 0x02 indicate that slaver, 0x03~0x0f are reserved field;It is reserved:8 bits are accounted for, are reserved field;Ip editions
This:4 bits are accounted for, 0x4 indicates that message transmitting party is the addresses ipv4, and 0x6 indicates that message transmitting party is the addresses ipv6;Equipment id
Number:20bits is accounted for, the id for identifying equipment, it is desirable that No. id of equipment is unique in a network;The addresses Ip:The field uses
The source addresses ip of message transmitting party are filled in, and 32bits or 128bits, Ipv4/32bits, Ipv6/128bits are occupied;
Sipver:4bits is accounted for, indicates that transmitting terminal ip address versions number, 0x4 indicate that message transmitting party is the addresses ipv4,0x6 indicates message
Sender is the addresses ipv6;0x0 indicates to be determined;Ripver:4bits is accounted for, indicates that receiving terminal ip address versions number, 0x4 indicate
Message transmitting party is the addresses ipv4, and 0x6 indicates that message transmitting party is the addresses ipv6;0x0 indicates to be determined;Message type:
It for identification message type, is identified with 8bits, following table:
Ident value |
Ident value meaning |
01 |
Indicate init request messages |
02 |
Indicate init response messages |
03 |
Indicate init ack messages |
04 |
Indicate reject messages |
05~0f |
Reserved field |
Clock is elected:It for electing clock type, is identified with 8bits, following table:
Ident value |
Ident value meaning |
01 |
Indicate that it is master to elect opposite end |
02 |
Indicate that it is slaver to elect opposite end |
03 |
It indicates by responder decision master/slaver |
04 |
Indicate that it is master to elect local terminal |
05 |
Indicate that it is slaver to elect local terminal |
06 |
Indicate to be confirmed |
07~0f |
Reserved field |
Clock transfer mode:The clock transfer mode that transmitting terminal is desirable for, is identified with 8bits, following table:
Ident value |
Ident value meaning |
01 |
Two layers of link unicast mode |
02 |
Two layers of link broadcast mode |
03 |
Three layers of link unicast mode |
04 |
Three layers of link multicast mode |
05 |
Transmission mode to be determined |
06~0f |
Reserved field |
S312:The communication node of receiving terminal is refusedIf so, turning S313;If it is not, then turning S314.
S313:Update adjacent communication node clock status table information;It needs to delete the communication node from state table, lay equal stress on
Newly begin look for another communication node.
S314:It is clock master nodes that the communication node, which is formally arranged,.The logical of clock source synchronization can be carried out by finding
Believe node, and sets the communication node to the synchronous communication node of synchronous clock source.
After finding corresponding synchronous communication node, then the clock network for establishing two communication nodes is needed, clock is being established
Network phase include two stage by stage:Sub-stage one and sub-stage two.Sub-stage one mainly completes the foundation of clock session, mesh
Be to create a session link for sub-stage two and follow-up phase (parameter from maintenance phase and clock from teardown phase), ensure
Subsequent session it is safe and reliable;Sub-stage two is mainly completed clock and is transmitted from required parameter is established, and is established between node
1588 clocks are made last interacting message and are transmitted.
It should be noted that originating end and receiving terminal indicated is all communication node;Originating end can be failure communication section
Point can also be the synchronous communication node selected.As shown in figure 4, establishing clock network for what one embodiment of the invention provided
The flow chart of sub-stage one in stage, refers to Fig. 4,
S401:Originating end initiates a session request.
S402:Responder is given the session of transmission and is responded, including sends session request response or reject to originating end
Message.
S403:Originating end receives receiveing the response for responder, executes confirmation, if receiving reject message, conversation failure.
Specifically, the communication node of communicating pair either party can initiate init (initial message) session, receive
The receiving terminal of init sessions has the right to refuse the session, but refusal end does not allow to initiate init sessions immediately, it is necessary to when waiting for one section
Between (be more than 10 minutes) can just initiate init sessions.One end for initiating init sessions, after init messages are sent out, if at this time
Receive the init messages of oneself init message purposes opposite end, it is necessary to send refusal using refusal operation, and to destination (ends Res)
Message.The ends Res must not just retransmit init messages after receiving the init messages at initialization end, in addition to this conversation end 3 minutes
Afterwards, it can just initiate a session request.Responder (ends Res) may first receive the ends init before receiving init messages
Reject message, at this time Res have to wait for the init messages at the ends init, must not actively send init messages, the stand-by period is necessary
More than 10 minutes.It is 10 minutes a length of that initialization end at least be arranged a timer, when regular device calmly, when the timer times out after,
The init message of opposite end be should respond to without refuse information should be sent.
Responder is at least arranged two timers, a timer be used for when the init messages that receive the ends init or
Reject messages start timer, which is 10 minutes, another timer opens after this conversation end
Dynamic, which is 3 minutes.As long as any one of two timers time-out (timer spilling), responder has
Power initiates init sessions to opposite end, otherwise cannot initiate session.If the success of above-mentioned clock session establishment, communicating both ends can be into
The interaction etc. of row data.
The format of initial message mentioned above is as shown in the table:
Include to the specific explanations in above-mentioned table:Marker bit:8bits is occupied, 0xaf is fixed as;Version number:It occupies
0x01 is filled out in 8bits, current fixation;Block length:The field accounts for 16bits, and (how much is occupancy for the length for stating above-mentioned format
A byte);Start random id:The random number generated by source, is identified with 16bits;The random id of receiving end:It is generated by destination end
Random number is identified with 16bits;Type:It for identification message type, is identified with 8bits, shown in following table:
Ident value |
Ident value meaning |
01 |
From establishing session request |
02 |
It is responded from session request is established |
03 |
Reject messages |
04 |
Ack messages |
05 |
1588 clocks negotiate request |
06 |
1588 clocks negotiate request response |
07 |
1588 clock message parameter requests |
08 |
1588 clock message parameter requests respond |
09 |
Prepare ok instructions |
11 |
Timing parameter adjust request |
12 |
Timing parameter adjustment response |
13 |
Clock changes parameter request |
14 |
Clock changes parameter response |
15 |
Timing parameter changes confirmation message |
21 |
Clock automatic disassembling request message |
22 |
Clock automatic disassembling request response |
23 |
Automatic disassembling ack message |
It is other |
Reserved field |
It is reserved:It is filled in using 0xff;Verification and:The check field of message;OpFL:Message is indicated whether there is or not the regions Option,
The project to be stated of the region be how many (each project is indicated by a TLV), 0x0 indicates that no option, 0xnn indicate 16n
+ n (n values are 0~f) a TLV;Ip versions:4bits is accounted for, 0x4 indicates that message transmitting party is the addresses ipv4, and 0x6 indicates message hair
The side of sending is the addresses ipv6;Equipment id:20bits is accounted for, the id for identifying equipment, it is desirable that No. id of equipment is only in a network
One;The addresses Ip:The field is filled in using the source addresses ip of message transmitting party, occupies 32 or 128bits, Ipv4/32bits,
Ipv6/128bits;The regions Option:The regions Option are made of several TLV (type-length-value) formats, each TLV generations
Table different meanings, and each TLV has certain call format.The number of the TLV in the regions Option is by OpFL field definitions.
If the quantity of the TLV in the regions Option is more than OpFL field values, receiving terminal makees discard processing for the TLV having more, but necessary
Ensure message verification and;If the quantity of the TLV in the regions Option is less than OpFL field intermediate values, receiving terminal loses the message
Abandon processing, the reason of producer can utilize the reserved field self-defining reject of reject messages etc..TLV:TLV belongs to message
Option favored areas content, be constitute the region component, different TLV expression meaning differ, the class of each TLV
Type is made of type+statement mark, and length field statement is the occupied byte numbers of the TLV, and value region is according to different classes
Type etc..
As shown in figure 5, for the flow chart for establishing the sub-stage two in the clock network stage that one embodiment of the invention provides,
Fig. 5 is referred to,
S501:Originating end initiates clock and negotiates request.Such as, the negotiation of 1588 clocks is initiated in the ends initiator to responder
It asks (master/slave).
S502:Responder responds clock and negotiates request response or reject message.
S503:After receiving clock negotiation request response, originating end sends message parameter request or reject to sound
Ying Duan;Such as, the ends initiator send 1588 clock message parameter requests or reject to responder.
S504:Responder responds the response of clock message parameter request.
S505:Originating end sends request endpoint and prepares OK instructions.
Clock establishes request message certainly, it is proposed that is initiated by one side of clock losing lock or needs to redefine one side of clock source hair
It rises.Initiator and responder in interacting among the above.Initiator---- communicating pairs initiate clock and establish request certainly
A side;Responder---- communicating pairs respond clock from the side for establishing request.
In this interaction, either party sends Reject message, this conversation end.It needs to be determined that a side of clock source
It needs to reselect election adjacent communication node.
For clock from after the completion of establishing, communicating pair establishes 1588 clock system networks, as time goes by, network and logical
Believe the variation of node operating status, 1588 timing parameters established originally cannot may meet current requirement, need pair
Relevant content carries out adjustment appropriate to meet the requirement of communication node or network.Therefore, it is necessary to have one to timing parameter
The process of a maintenance.As shown in fig. 6, the timing parameter provided for one embodiment of the invention please join from the flow chart of maintenance phase
See Fig. 6,
S601:Originating end initiates timing parameter adjust request.Such as, the parameter of 1588 clocks needs to change or 1588
Clock is wanted to change clock mode etc.;Then originating end needs to initiate 1588 timing parameter adjust requests to responder.
S602:Responder responds the response of timing parameter adjust request or reject message.Such as, responder responds 1588 clocks
Parameter adjustment request response or reject message.
S603:After receiving timing parameter adjust request response message, originating end sends the ginseng of request modification to responder
Number request message;Such as, originating end sends the parameter request message that 1588 clock requests are changed to responder.
S604:Responder responds originating end parameter and changes response message.
S605:Originating end asks endpoint to confirm OK message.
Specifically, establish in the communication node of clock network either party can initiate timing parameter adjust request and disappear
Breath, the session that initiator uses is the session negotiated from establishment stage, relevant No. id and before No. id be incremented by.Initiator
After sending this request, in one timer of local boot, the response message of opposite end, local terminal are not received in timer expiry
Request is initiated again, when asking transmission times to be more than defined thresholding, it is believed that this time send failure, local terminal is needed to check whether
The clock message of opposite end can be received, if can not receive clock message, then it is assumed that peer node failure, after local terminal waits for 2 minutes,
It checks again for, if being still unable to properly receive response message, local terminal needs to enter self-healing preparation flow stages.Responder is returning
After sending response message, also start a timer, as the foundation for retransmitting response message.
If defective communication node is because former clock source failure restores or the clock of synchronous communication node cannot meet failure
The communication of communication node, then from the clock network established before needing to remove.As shown in fig. 7, being provided for one embodiment of the invention
Clock from the flow chart of teardown phase, refer to Fig. 7,
S701:Originating end initiates automatic disassembling request.Originating end in the present embodiment can be that defective communication node also may be used
To be synchronous communication node, e.g., the clock source of defective communication node restores, then 1588 clocks of defective communication node initiation are torn open automatically
Except request.
S702:Responder responds the request response of automatic disassembling request.Such as, what 1588 clock automatic disassemblings of response were asked asks
Ask response.
S703:Originating end asks endpoint to send confirmation OK message or reject message.
Specifically, the both sides of communication either party can initiate clock automatic disassembling request message, receive the one of request
Fang Bixu is receiveed the response, and initiator needs to start timer, to ensure the repeating transmission of subsequent message, message after having sent message
Sending times are more than threshold value, then initiator has the right to think that responder has been not present, and it is real directly can to delete clock in local terminal
Body, flow terminate.Responder can express the demand of oneself in the form of option options, but must obtain initiator ack and return
Message should be accepted.What if initiator sent without the option options of responder in ack message or with responder
Option options, then both sides certain demands are reached an agreement.
Mainly the method for building up of clock network is described in detail for the present embodiment, meets failure communication section by inquiry
As its synchronous clock source, the clock realized between communication node is in communication with each other the clock source of the adjacent communication node of point, and real
The clock self-healing function of communication node is showed, has been the switching between the corresponding terminal progress node of communication node, ensure that it is continuous
Property.
As shown in figure 8, the structure chart for establishing device of the clock network provided for one embodiment of the invention, refers to Fig. 8,
The device 80 of establishing of the clock network specifically includes:Communication node determining module 801, for determining what clock source broke down
The adjacent communication node of defective communication node;Information collection module 802, for collecting 801 institute of the communication node determining module
The clock status information of determining adjacent communication node;Communication node selecting module 803, for according to the clock status information
And preset rules, the synchronous communication node of a synchronous clock source is selected in the adjacent communication node;Data obtaining module
804, the configuration parameter information synchronous with the synchronous communication node clock source for obtaining the defective communication node;Information is matched
Set module 805, the configuration parameter information for obtaining described information acquisition module 804 be allocated to the defective communication node with
The synchronous communication node;Network establishes module 806, for establishing the defective communication node according to the configuration parameter information
With the clock network between the synchronous communication node.The clock self-healing function for realizing communication node, improve communication node into
The continuity of industry business.
In one embodiment, the device 80 of establishing of the clock network further includes:Breakdown judge module, for judging communication
Whether node occurs clock source failure;If the communication node determining module 801 is additionally operable to the judgement of the breakdown judge module
As a result it is yes, it is determined that the adjacent of the defective communication node that the clock source that the breakdown judge module is judged breaks down is led to
Believe node.
In another embodiment, the device 80 of establishing of the clock network further includes:Parameter adjustment control module, for controlling
Make the adjustment that the defective communication node carries out configuration parameter with the synchronous communication node by information exchange.
In another embodiment, if the clock source that is additionally operable to the defective communication node of described information acquisition module 804 is extensive
The clock of the multiple or described synchronous communication node cannot continue as the defective communication node and provide clock source, then when obtaining described
The dismounting of clock network configures parameter;Described information configuration module is additionally operable to lead to dismounting configuration parameter configuration to the failure
Believe node and the synchronous communication node;The device 80 of establishing of the clock network further includes:Network removes module, is used for basis
The dismounting configuration parameter of described information configuration module configuration remove the defective communication node and the synchronous communication node when
Clock network.The present embodiment embody communication node from establish automatically clock network to automatic disassembling its clock network established
Process realizes the intelligent control of communication node.
The present invention also provides a kind of communication node, including clock network described above establishes device.Preferably, institute
The breakdown judge module established in device for stating clock network is specifically used for:Whether the clock source of itself is detected according to preset rules
It breaks down;I.e. at this point, the communication node is defective communication node itself, in this way, by communication node to the clock of its own
Source is detected to find whether its own occurs the failure of clock source, if so, the self-healing automatically into clock operates.It realizes
The clock of communication node is intelligent;Alternatively, the breakdown judge module of the clock network established in device is specifically used for connecing
The new clock source request message that the communication node that other clock sources break down is sent is received, or detects the clock of other communication nodes
Whether break down in source.I.e. the communication node is the communication node of third-party control class.The communication node is for communication section
During clock self-healing between point, play the role of management control, the defective communication node for being can in time and synchronous communication
Node establishes clock network, restores its normal operation.For example, illustrating by taking LTE base station system as an example:Then the network management system of base station or
The independent third party's communication node of person be the present invention in communication node, base station fault communication node send itself clock status and
It is required that after gateway system decision, the synchronous communication node gone out selected by notice carries out the synchronization of clock source, to complete entire system
The negotiation self-healing function of system clock.
The present invention provides a kind of method for building up of clock network, device and communication nodes, by collecting clock source
The clock status information of the adjacent communication node of the communication node of failure further according to collected clock status information and is preset
The synchronous communication node of rule one synchronous clock source of selection, then will connect the configuration of the clock network between two communication node
Parameter configuration finally establishes failure communication to defective communication node and synchronous communication node according to the configuration parameter information configured
Clock network between node and the synchronous communication node.So that defective communication node is when clock source breaks down, it can be short
The normal operation of clock source is kept in time by the foundation of clock network, large effect will not be generated to its business.We
Case realizes the self-healing function of communication node clock, when ensureing that communication node clock source breaks down, for the industry of the communication node
Clock needs are established in business as early as possible, realize the intelligence of communication node clock.
The above content is combining, specific embodiment is made for the present invention to be further described, and it cannot be said that this hair
Bright specific implementation is confined to these explanations.For those of ordinary skill in the art to which the present invention belongs, it is not taking off
Under the premise of from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to the protection of the present invention
Range.