CN105592488B - A kind of method for building up of clock network, device and communication node - Google Patents

A kind of method for building up of clock network, device and communication node Download PDF

Info

Publication number
CN105592488B
CN105592488B CN201410578082.8A CN201410578082A CN105592488B CN 105592488 B CN105592488 B CN 105592488B CN 201410578082 A CN201410578082 A CN 201410578082A CN 105592488 B CN105592488 B CN 105592488B
Authority
CN
China
Prior art keywords
communication node
clock
synchronous
defective
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410578082.8A
Other languages
Chinese (zh)
Other versions
CN105592488A (en
Inventor
沈建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
Nanjing ZTE New Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201410578082.8A priority Critical patent/CN105592488B/en
Priority to PCT/CN2015/072937 priority patent/WO2015184863A1/en
Publication of CN105592488A publication Critical patent/CN105592488A/en
Application granted granted Critical
Publication of CN105592488B publication Critical patent/CN105592488B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of method for building up of clock network, device and communication node, the method includes:Determine the adjacent communication node for the defective communication node that clock source breaks down;Collect the clock status information of adjacent communication node;According to the clock status information and preset rules, the synchronous communication node of a synchronous clock source is selected in adjacent communication node;Obtain the defective communication node configuration parameter information synchronous with synchronous communication node 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.Clock is closed each other between solving communication node in the prior art, and to communication node provide business bring inconvenience the problem of;It realizes self-healing, the self-adjusting function of the clock system of communication node, and realizes the intelligence of communication node clock system.

Description

A kind of method for building up of clock network, device and communication node
Technical field
The present invention relates to a kind of clock domain of communication more particularly to method for building up of clock network, device and communication sections Point.
Background technology
With the fast development of internet (internet) technology, the continuous growth of data traffic requirement pushes broadband skill The fast development of art and communication equipment has caused the big adjustment of telecommunication network, and original transmission network for meeting speech business is gradually The demand growth of data service can not be gradually competent at.Whole network is intended to flattening situation, and broadband access enters fast development In, cable broadband access and wireless broadband Internet access are favored by operator and user.With the variation of network, development, net Network is reliable for clock, stabilization proposes new requirement, especially wireless broad band technology, especially with the nothing of time division mode operation Line equipment (communication node), wireless device need clock that is reliable, stablizing, synchronize to ensure terminal device between different base station The continuity of service switchover.
With the wireless broad band technologies such as worldwide interoperability for microwave accesses (WIMAX), long term evolution (LTE) it is universal, promote and Business application, the clock on communication node can keep normal operating condition to be very important constantly, but in the prior art In, since the clock between communication node is closed each other, after the clock source of some communication node clock breaks down, if Can not restore in a short time, then can influence its communication continuity, and can seriously affect its terminal device different base station it Between service switchover success rate, and if other can temporarily be synchronized when a communication node clock source breaks down The clock source of communication node establishes the clock network between two communication nodes.In this way, between can be achieved with different communication node Mutual support, ensure defective communication node communication continuity.
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.
Description of the drawings
Fig. 1 is the flow chart of the method for building up for the clock network that one embodiment of the invention provides;
Fig. 2 is the flow chart for the clock self-healing preparation stage that one embodiment of the invention provides;
Fig. 3 is the flow chart that the clock master that one embodiment of the invention provides elects the stage;
Fig. 4 is the flow chart for establishing the sub-stage one in the clock network stage that one embodiment of the invention provides;
Fig. 5 is the flow chart for establishing the sub-stage two in the clock network stage that one embodiment of the invention provides;
Fig. 6 is flow chart of the timing parameter that provides of one embodiment of the invention from maintenance phase;
Fig. 7 is flow chart of the clock that provides of one embodiment of the invention from teardown phase;
Fig. 8 is the structure chart for establishing device for the clock network that one embodiment of the invention provides.
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.

Claims (10)

1. a kind of method for building up of clock network, which is characterized in that 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, one synchronous clock source of selection is same in the adjacent communication node Walk communication node;
Obtain the defective communication node configuration parameter information synchronous with the synchronous communication node 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.
2. the method for building up of clock network according to claim 1, which is characterized in that the determining clock source breaks down Defective communication node adjacent communication node before further include:Judge whether communication node occurs clock source failure.
3. the method for building up of clock network according to claim 1, which is characterized in that further include:It is logical to control the failure Letter node carries out the adjustment of configuration parameter with the synchronous communication node by information exchange.
4. according to the method for building up of claim 1-3 any one of them clock networks, which is characterized in that if the failure communicates The clock source of node restores or the clock of the synchronous communication node cannot continue as the defective communication node and provide clock Source then obtains the dismounting configuration parameter of the clock network;Configuration parameter configuration will be removed to the defective communication node and institute State synchronous communication node;Parameter, which is configured, according to the dismounting removes the clock network.
5. a kind of clock network establishes device, which is characterized in that including:
Communication node determining module, the adjacent communication node for determining defective communication node that clock source breaks down;
Information collection module, the clock status for collecting adjacent communication node determined by the communication node determining module are believed Breath;
Communication node selecting module is used for according to the clock status information and preset rules, in the adjacent communication node Select the synchronous communication node of a synchronous clock source;
Data obtaining module, the configuration ginseng synchronous with the synchronous communication node clock source for obtaining the defective communication node Number information;
Information collocation module, the configuration parameter information for obtaining described information acquisition module are allocated to the failure communication section Point and the synchronous communication node;
Network establishes module, for establishing the defective communication node and the synchronous communication section according to the configuration parameter information Clock network between point.
6. clock network according to claim 5 establishes device, which is characterized in that further include:Breakdown judge module is used In judging whether communication node occurs clock source failure;If the communication node determining module is additionally operable to the breakdown judge module Judging result be yes, it is determined that the defective communication node that the clock source that the breakdown judge module is judged breaks down Adjacent communication node.
7. clock network according to claim 5 establishes device, which is characterized in that parameter adjustment control module is used for Control the adjustment that the defective communication node carries out configuration parameter with the synchronous communication node by information exchange.
8. establishing device according to claim 5-7 any one of them clock networks, which is characterized in that described information obtains mould If block, which is additionally operable to the clock source recovery of the defective communication node or the clock of the synchronous communication node, cannot continue as institute It states defective communication node and clock source is provided, then obtain the dismounting configuration parameter of the clock network;Described information configuration module is also For giving dismounting configuration parameter configuration to the defective communication node and the synchronous communication node;
The device of establishing of the clock network further includes:Network removes module, for what is configured according to described information configuration module Remove the clock network that configuration parameter removes the defective communication node and the synchronous communication node.
9. a kind of communication node, which is characterized in that include that the foundation of claim 5-8 any one of them clock networks such as fills It sets.
10. communication node according to claim 9, which is characterized in that the failure of the clock network established in device Judgment module is specifically used for:Detect whether the clock source of itself breaks down according to preset rules;Alternatively, receiving other clock sources The new clock source request message that the communication node that breaks down is sent, or detect other communication nodes clock source whether occur therefore Barrier.
CN201410578082.8A 2014-10-24 2014-10-24 A kind of method for building up of clock network, device and communication node Active CN105592488B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410578082.8A CN105592488B (en) 2014-10-24 2014-10-24 A kind of method for building up of clock network, device and communication node
PCT/CN2015/072937 WO2015184863A1 (en) 2014-10-24 2015-02-12 Clock network establishment method and device, and communication node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410578082.8A CN105592488B (en) 2014-10-24 2014-10-24 A kind of method for building up of clock network, device and communication node

Publications (2)

Publication Number Publication Date
CN105592488A CN105592488A (en) 2016-05-18
CN105592488B true CN105592488B (en) 2018-10-26

Family

ID=54766090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410578082.8A Active CN105592488B (en) 2014-10-24 2014-10-24 A kind of method for building up of clock network, device and communication node

Country Status (2)

Country Link
CN (1) CN105592488B (en)
WO (1) WO2015184863A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365768B (en) * 2019-07-15 2021-07-06 腾讯科技(深圳)有限公司 Data synchronization method, device, medium and electronic equipment of distributed system
CN114422408B (en) * 2021-12-16 2023-12-22 深圳供电局有限公司 Substation monitoring method, device, computer equipment and storage medium
CN115865247A (en) * 2022-03-21 2023-03-28 中兴通讯股份有限公司 Clock synchronization method, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014481A (en) * 2010-12-13 2011-04-13 中兴通讯股份有限公司 Method and system for maintaining network link clock
CN103491624A (en) * 2013-09-09 2014-01-01 电子科技大学 Time synchronization method of event time labels in sensor network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014481A (en) * 2010-12-13 2011-04-13 中兴通讯股份有限公司 Method and system for maintaining network link clock
CN103491624A (en) * 2013-09-09 2014-01-01 电子科技大学 Time synchronization method of event time labels in sensor network

Also Published As

Publication number Publication date
CN105592488A (en) 2016-05-18
WO2015184863A1 (en) 2015-12-10

Similar Documents

Publication Publication Date Title
US11903070B2 (en) Methods and apparatus for using redundant links in wireless backhaul
JP5622930B2 (en) Apparatus and method for supporting mobility in a wireless communication system in which cells are superimposed
US20210360496A1 (en) Methods and apparatus for using conditional handovers for wireless backhaul
CN101515891B (en) Method for processing border gateway protocol routing and router
CN110493849B (en) Dual connection method, access network equipment and computer readable storage medium
CN105592488B (en) A kind of method for building up of clock network, device and communication node
CN109547339B (en) Method and system for preventing network from forming loop in wireless router networking
CN103916275A (en) BFD detection device and method
US20150289302A1 (en) Method and apparatus for setting up x2 connection through gateway
CN103200109B (en) A kind of ospf neighbor relationship management method and equipment
CN101902732A (en) Method and system for synchronizing EPS (Evolved Packet System) bearer context statuses
WO2012048585A1 (en) Switching method and router
CN105704641A (en) Device-to-device D2D data transmission method, D2D data transmission apparatus and D2D UE
CN101217445B (en) A method of loop generation protection and Ethernet ring system
JP5416310B2 (en) Packet data network release failure processing method, system and apparatus
CN102611632A (en) VPLS (Virtual Private LAN Service) output route filtering method and device based on BGP (Border Gateway Protocol)
CN110493733A (en) A kind of Mesh network system based on Bluetooth Low Energy mobile device
CN106411446B (en) A kind of adaptive approach for realizing 1588 time synchronizations under unicast mode
EP4236589A3 (en) Establishing a multiple access connection
US11638197B1 (en) Method and apparatus for supporting UE-to-network relay communication in a wireless communication system
EP2920996B1 (en) Methods for mobility threshold signaling
CN103036648A (en) Control and provisioning of wireless access point (CAPWAP) message processing method and processing device
WO2015117325A1 (en) Double-connection removing/establishing method and device
CN101877660B (en) Link state monitoring and fault removing method of multi-home hosts
CN106879005A (en) The collocation method and device of a kind of AP

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180816

Address after: 210012 No. 68, Bauhinia Road, Ningnan street, Yuhuatai District, Nanjing, Jiangsu

Applicant after: Nanjing Zhongxing Software Co., Ltd.

Address before: 518057 Zhongxing building, science and technology south road, Nanshan District hi tech Industrial Park, Guangdong, Shenzhen

Applicant before: ZTE Corporation

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190906

Address after: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building

Patentee after: ZTE Corporation

Address before: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Patentee before: Nanjing Zhongxing Software Co., Ltd.