CN105099593B - A kind of method, apparatus and system of time synchronized - Google Patents

A kind of method, apparatus and system of time synchronized Download PDF

Info

Publication number
CN105099593B
CN105099593B CN201410187221.4A CN201410187221A CN105099593B CN 105099593 B CN105099593 B CN 105099593B CN 201410187221 A CN201410187221 A CN 201410187221A CN 105099593 B CN105099593 B CN 105099593B
Authority
CN
China
Prior art keywords
ptp packets
ptp
network access
access node
node
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
CN201410187221.4A
Other languages
Chinese (zh)
Other versions
CN105099593A (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.)
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201410187221.4A priority Critical patent/CN105099593B/en
Priority to PCT/CN2014/088008 priority patent/WO2015169045A1/en
Publication of CN105099593A publication Critical patent/CN105099593A/en
Application granted granted Critical
Publication of CN105099593B publication Critical patent/CN105099593B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements

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 embodiment of the invention discloses a kind of method, apparatus and system of time synchronized, this method can include:The very first time that network access node record Precision Time Protocol PTP packets enter the network access node is worth;Network access node updates the correction value of the amendment domain field in the PTP packets according to very first time value, obtains the first renewal PTP packets;Network access node sends the described first renewal PTP packets to network, to cause the network to send the described first renewal PTP packets to net node is gone out.

Description

A kind of method, apparatus and system of time synchronized
Technical field
The present invention relates to the network communications technology, more particularly to a kind of method, apparatus and system of time synchronized.
Background technology
In current mobile communications network, accurate time synchronized is kept between each base station, to ensure user in movement During be not in the failure such as go offline.In existing communication equipment, wide variety of is by Institute of Electrical and Electric Engineers (IEEE, Institute of Electrical and Electronics Engineers) was proposed and 2007 in 2002 The network measure and the precision interval clock synchronous protocol standard of control system that year modifies, also known as IEEE1588 agreements.
In the agreement, using each transmission node equipment as a transparent clock, and in each node to accurate Time protocol (PTP, Precision Time Protocol) packet is handled, and calculates the residence time of the node;Then The residence time of all nodes in network path is added to obtain the residence time of whole network, finally according to resulting whole The residence time of network carries out time synchronized.
During stating technical scheme in realization, problems be present:
First, multiple transmission node equipment calculate the residence time of itself respectively in network, can increase to Internet resources Expense;
Secondly, the cascade system of multiple transmission node equipment can be by each transmission node equipment due to transmission path in network Error caused by delay asymmetry or network jitter is accumulated, and reduces the residence time precision of whole network;
Also it is exactly to need the bidirectional transmission path delay to each pair transmission node equipment room transmission medium in network not right The situation of title compensates, and increases the workload of network.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention it is expected to provide a kind of method, apparatus and system of time synchronized, Network resource overhead can be reduced when calculating the residence time of whole network;And improve the residence time of whole network Computational accuracy, and reduce the workload of network.
What the technical scheme of the embodiment of the present invention was realized in:
In a first aspect, the embodiments of the invention provide a kind of method of time synchronized, methods described includes:
The very first time that network access node record Precision Time Protocol PTP packets enter the network access node is worth;
The network access node updates the amendment of the amendment domain field in the PTP packets according to very first time value Value, obtains the first renewal PTP packets;
The network access node sends the described first renewal PTP packets to network, to cause the network by described the One renewal PTP packets are sent to net node is gone out.
According to the first possible implementation, with reference in a first aspect, the network access node is worth according to the very first time The correction value of the amendment domain field in the PTP packets is updated, including:
The network access node is according to the correction value that domain field is corrected in the form extraction PTP packets of the PTP packets;
The correction value is subtracted the very first time value by the network access node, obtains the first correction value;
First correction value renewal is corrected domain word by the network access node according to the form of the PTP packets to described Section.
According to second of possible implementation, with reference in a first aspect, the network access node records the PTP packets enters Enter the very first time value of the network access node, including:
The network access node enters fashionable in the PTP packets from the network access node close to the input interface of physical layer Record the very first time value.
According to the third possible implementation, with reference in first aspect, the first or second of possible implementation Any one, the network access node record the PTP packets into the network access node very first time value after, and Before the network access node updates the correction value of the amendment domain field in the PTP packets according to very first time value, institute Stating method also includes:
The network access node verifies to the PTP packets, when determining that the PTP packets are incorrect, terminates to work as Pre-treatment.
Second aspect, the embodiments of the invention provide a kind of method of time synchronized, methods described includes:
Go out to go out described in the output of net nodes records Precision Time Protocol PTP packets the second time value of net node;The PTP Packet by it is described go out net node received from network, and by the network network access node send;
It is described go out net node the amendment of amendment domain field in the PTP packets is updated according to second time value Value, obtains the second renewal PTP packets.
According to the first possible implementation, with reference to second aspect, it is described go out net node according to second time value The correction value of the amendment domain field in the PTP packets is updated, including:
It is described go out net node according to the PTP packets form extraction PTP packets in correct domain field correction value;
It is described go out net node the correction value is added into second time value, obtain second correction value;
It is described go out net node according to the PTP packets form by second correction value renewal to it is described amendment domain word Section.
According to second of possible implementation, with reference to second aspect, it is described go out PTP packets described in net nodes records it is defeated Go out the second time value of net node described in going out, including:
It is described go out net node the PTP packets from it is described go out net node in close to physical layer output interface output when Record second time value.
According to the third possible implementation, with reference in second aspect, the first or second of possible implementation Any one, it is described go out described in net nodes records PTP packets output described in go out the second time value of net node after, and It is described go out before net node updates the correction value of amendment domain field in the PTP packets according to second time value, institute Stating method also includes:
It is described go out net node the PTP packets are verified, when determining that the PTP packets are incorrect, terminate work as Pre-treatment.
The third aspect, the embodiments of the invention provide a kind of network access node, the network access node includes:First record Member, the first updating block and transmitting element, wherein,
First recording unit, enter the network access node for recording Precision Time Protocol PTP packets first Time value;
First updating block, the very first time value for being obtained according to first recording unit update the PTP The correction value of amendment domain field in packet, obtains the first renewal PTP packets;
The transmitting element, for the described first renewal PTP packets to be sent to network, to cause the network by institute State the first renewal PTP packets and sent to net node is gone out.
According to the first possible implementation, with reference to the third aspect, first updating block includes:First extraction mould Block, the first computing module and the first update module, wherein,
First extraction module is used to correct domain field in the form extraction PTP packets according to the PTP packets Correction value;
First computing module is used to the correction value subtracting the very first time value, obtains the first correction value;
First update module is used to update first correction value to described according to the form of the PTP packets Correct domain field.
According to second of possible implementation, with reference to the third aspect, first recording unit is used for, in the PTP Packet enters fashionable to record the very first time value from the network access node close to the input interface of physical layer.
According to the third possible implementation, with reference in the third aspect, the first or second of possible implementation Any one, the network access node also includes the first verification unit, for being verified to the PTP packets, it is determined that described When PTP packets are incorrect, triggering end processing.
Fourth aspect, go out net node the embodiments of the invention provide one kind, it is described go out net node include:Second recording unit With the second updating block, wherein,
Second recording unit is used for, and goes out the second of net node described in record Precision Time Protocol PTP packet outputs Time value;The PTP packets be it is described go out net node received from network, and by the network network access node send;
Second updating block is used for, and updates the amendment domain word in the PTP packets according to second time value The correction value of section, obtains the second renewal PTP packets.
According to the first possible implementation, with reference to fourth aspect, second updating block includes:Second extraction mould Block, the second computing module and the second update module, wherein,
Second extraction module is used to correct domain field in the form extraction PTP packets according to the PTP packets Correction value;
Second computing module is used for, and the correction value is added into second time value, obtains second amendment Value;
Second update module is used for, and second correction value renewal is arrived into institute according to the form of the PTP packets State amendment domain field.
According to second of possible implementation, with reference to fourth aspect, second recording unit is specifically used for, described PTP packets from it is described go out net node in close to physical layer output interface output when record second time value.
According to the third possible implementation, with reference in fourth aspect, the first or second of possible implementation Any one, it is described go out net node also include:Second verification unit, for being verified to the PTP packets, it is determined that described When PTP packets are incorrect, triggering end processing.
5th aspect, the embodiments of the invention provide a kind of system of time synchronized, the system include network access node and Go out net node, wherein,
The network access node is used to record the very first time that Precision Time Protocol PTP packets enter the network access node Value;The correction value of the amendment domain field in the PTP packets is updated according to very first time value, obtains the first renewal PTP Packet;Described first renewal PTP packets are sent to the network, to cause the network to update PTP by described first Packet is sent to net node is gone out;
It is described go out net node be used to record the second time for going out net node described in the first renewal PTP packets output Value;The correction value of amendment domain field in second time value renewal the first renewal PTP packets, obtains second Update PTP packets.
According to the first possible implementation, with reference to the 5th aspect, the network access node is additionally operable to the PTP data Bag is verified, and when determining that the PTP packets are incorrect, is terminated currently processed.
According to second of possible implementation, with reference to the 5th aspect, it is described go out net node be additionally operable to described first more New PTP packets are verified, and when determining that the first renewal PTP packets are incorrect, are terminated currently processed.
The embodiments of the invention provide a kind of method, apparatus and system of time synchronized, only pass through the networking of transmission network Node and go out net node the residence time of the transmission network is calculated so that come without each node in transmission network Respective residence time is calculated, reduces the resource overhead in transmission network;Nor it can accumulate by every in transmission network Calculation error caused by during the individual respective residence time of node calculating, improve the computational accuracy of the residence time of transmission network;More Add the asymmetric situation of bidirectional transmission path without the concern for transmission medium between each node in transmission network, reduce net The workload of network.
Brief description of the drawings
Fig. 1 is a kind of application scenarios schematic diagram that the embodiment of the present invention proposes;
Fig. 2 is a kind of schematic flow sheet of the method for time synchronized that the embodiment of the present invention proposes;
Fig. 3 is that a kind of network access node that the embodiment of the present invention proposes updates repairing in PTP packets according to very first time value The schematic flow sheet of the correction value of positive domain field;
Fig. 4 is the schematic flow sheet of the method for another time synchronized that the embodiment of the present invention proposes;
Fig. 5 be the embodiment of the present invention propose it is a kind of go out net node according to the second time value update PTP packets in repairing The schematic flow sheet of the correction value of positive domain field;
Fig. 6 is a kind of detailed process schematic diagram of the method for time synchronized provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of network access node provided in an embodiment of the present invention;
Fig. 8 is the structural representation of another network access node provided in an embodiment of the present invention;
Fig. 9 be it is provided in an embodiment of the present invention it is a kind of go out net node structural representation;
Figure 10 is the structural representation that another kind provided in an embodiment of the present invention goes out net node;
Figure 11 is a kind of hardware architecture diagram of network access node provided in an embodiment of the present invention;
Figure 12 be it is provided in an embodiment of the present invention it is a kind of go out net node hardware architecture diagram;
Figure 13 is a kind of system structure diagram of time synchronized provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes.
The present invention basic thought be:In the entire network, only network access node and net node is being gone out to Precision Time Protocol Packet carries out timestamp processing, and this mode regards a transparent clock as equivalent to whole network, using network access node as The entrance of packet, outlet of the net node as packet will be gone out, ignore in network other nodes to Precision Time Protocol data Processing in bag on the network resident time, so as to avoid the network in network caused by each node calculating network residence time The expense of resource;Ignore the accumulated error of each transmission node equipment in network, so as to avoid the drop of network resident time precision It is low;Ignore the bidirectional transmission path delay asymmetry to the transmission medium at whole network both ends to compensate, so as to reduce net The workload of network.
Be an exemplary application scenarios provided in an embodiment of the present invention referring to Fig. 1, the scene can include needing into Transmission network 100 between the device A 110 and equipment B120, and device A 110 and equipment B120 of row time synchronized.Transmission network Network 100 can represent in region by dashed box, can include but is not limited to:Including the networking section being attached with device A 110 Point 101, other nodes 103 gone out in net node 102 and transmission network being attached with equipment B120, in order to briefly explain, Other nodes 103 in network are represented with cloud mass.It will be appreciated by those of skill in the art that embodiment of the present invention is not limited to In above-mentioned scene, and it can be applicable among other arbitrary scenes.
Can be cable network or wireless it should be noted that the transmission network in scene shown in Fig. 1 Network;Mobile network etc. is can also be, the embodiment of the present invention is not limited in any way to this.
Referring to Fig. 2, it is a kind of method of time synchronized provided in an embodiment of the present invention, specifically can apply to shown in Fig. 1 At Ingress node in the transmission network of application scenarios, it is possible to understand that corresponding entrance section occurs in ground, the division of different networks Point, therefore, Ingress node are a relative concepts.This method can include:
S201:The very first time that network access node record Precision Time Protocol PTP packets enter the network access node is worth;
Exemplarily, in the scene shown in Fig. 1, can need to carry out time synchronized between set device A and equipment B. Therefore, the PTP numbers are found according to the feature field of PTP packets in the data flow that network access node can be sent with slave unit A According to bag, and the very first time value that the PTP packets enter network access node can be recorded, can specifically be stabbed with network entry time Form preserves to very first time value.
Further, network access node can be at any one link of input to first in the PTP packets Time value is recorded;Preferably, in the embodiment of the present invention, network access node can save in the PTP packets from described network Input interface in point close to physical layer, which enters, fashionable records the very first time value.
S202:Network access node updates the amendment of the amendment domain field in the PTP packets according to very first time value Value, obtains the first renewal PTP packets;
Exemplarily, network access node updates the amendment domain field in the PTP packets according to very first time value Correction value, specifically can with as shown in figure 3, including:
S2021:Network access node is according to the amendment that domain field is corrected in the form extraction PTP packets of the PTP packets Value;
It is to be appreciated that because PTP packets meet IEEE1588 agreements, there is fixed data format, therefore, network Node can extract correction value according to fixed data format from the amendment domain field of the PTP packets.Specific implementation Method is the conventional realization rate of those skilled in the art, be will not be repeated here.
S2022:The correction value is subtracted the very first time value by network access node, obtains the first correction value;
Specifically in the present embodiment, the form preservation stabbed with network entry time can be subtracted with correction value is obtained by S2021 The very first time value, so as to obtain network access node renewal after correction value.In order to clearly illustrate technical scheme, in this reality Apply in example, the correction value after network access node is updated by the network access node obtained by S2022 is referred to as the first correction value, this area Technical staff is it is to be appreciated that in description afterwards, unless there are specified otherwise, otherwise represents to network with the first correction value Node passes through the correction value after the network access node renewal obtained by S2022.
S2023:First correction value renewal is arrived the amendment domain by network access node according to the form of the PTP packets Field.
Specifically, after the first correction value is obtained, network access node be able to will be corrected according to the form of the PTP packets Former correction value in the field of domain is changed to the first correction value, so completes renewal of the network access node to PTP packets, so as to To the first renewal PTP packets.
Exemplarily, between S201 and S202, this method can also include:Network access node enters to the PTP packets Row verification, determines whether the PTP packets are correct:When the PTP packets are correct, S202 is continued executing with;As the PTP When packet is incorrect, terminate current processing, such as abandon the PTP packets, and wait arriving for next PTP packets Come;
Specifically, network access node can be different according to the network layer where the PTP packets, and described in encapsulation The form of the data flow of PTP packets is different, and corresponding calibration technology can be used to be verified, such as when the PTP packets When being encapsulated in interconnection Internet protocol (IP, Internet Protocol) V6 or IPV4 data flows, network access node can use UDP (UDP, User Datagram Protocol) verification, IP verification, CRC (CRC, Cyclical Redundancy Check) etc. method of calibration the PTP packets are verified, to determine the PTP data Whether bag is correct.The implementation process specifically verified is the conventional realization rate of those skilled in the art, be will not be repeated here.
S203:Network access node sends the described first renewal PTP packets to network;
Exemplarily, by S203 can the network by described first renewal PTP packets to go out net node send out Send.
Exemplarily, due to being preserved in the amendment domain field of the described first renewal PTP packets as the first correction value, because This, the temporal information that data flow enters transmission network is contained in the first renewal PTP packets;So, when described first When updating the Egress node of PTP packets arrival transmission network, it is possible to update PTP packets from transmission network by described first The temporal information of network output obtains the network resident time of transmission network;Device A is realized finally by the network resident time With the time synchronized between equipment B.
It is a kind of method of time synchronized provided in an embodiment of the present invention referring to Fig. 4, this method can apply to Fig. 1 institutes Show at the Egress node in the transmission network of application scenarios, it is possible to understand that corresponding outlet occurs in ground, the division of different networks Node, therefore, Egress node are a relative concepts.This method can include:
S401:Go out to go out described in the output of net nodes records Precision Time Protocol PTP packets the second time value of net node;
It should be noted that in the present embodiment, the PTP packets be it is described go out net node received from network, And the PTP packets sent by the network access node of the network;Specifically, in the present embodiment, with reference to foregoing as shown in Figure 2 Embodiment it is recognised that it is described go out the PTP packets that are received from network of net node be actually that network access node is sent the One renewal PTP packets, wherein, the correction value that the amendment domain field of the first renewal PTP packets is preserved is repaiied for first On the occasion of.
Similar with the network access node of embodiment illustrated in fig. 2, going out net node can be from the data flow that network sends over The PTP packets are found according to the feature field of PTP packets, and record the PTP packets by going out net node Second time value of output end, the second time value can specifically be preserved with the form for going out net timestamp;
Further, going out net node can be at any one link of output end to second in the PTP packets Time value is recorded;Preferably, in the embodiment of the present invention, going out net node can go out net section in the PTP packets from described Second time value is recorded when in point close to the output interface output of physical layer.
S402:Go out the amendment that net node updates the amendment domain field in the PTP packets according to second time value Value, obtains the second renewal PTP packets;
Exemplarily, S402 specifically can with as shown in figure 5, including:
S4021:Go out net node according to the amendment that domain field is corrected in the form extraction PTP packets of the PTP packets Value;
It is to be appreciated that because PTP packets meet IEEE1588 agreements, there is fixed data format, therefore, go out net Node can extract correction value according to fixed data format from the amendment domain field of the PTP packets.Specific implementation Mode is the conventional realization rate of those skilled in the art, be will not be repeated here.
It should be understood that in the present embodiment, the embodiment with reference to shown in Fig. 2, because the PTP packets are The first renewal PTP packets that network access node is sent, therefore, the correction value in the field of the PTP packets amendment domain is first Correction value.
S4022:Go out net node and the correction value is added into second time value, obtain second correction value;
Specifically, in the present embodiment, the embodiment with reference to shown in Fig. 2, because the correction value is the first correction value, because This, which goes out net node, to add the second time value preserved with the form for going out net timestamp by correction value is obtained by S4021, come Obtain out the correction value after net node updates.It is to be appreciated that during due to including the networking of PTP packets in the first correction value Between information, so the first correction value includes plus going out in the correction value after net node updates obtained by after the second time value For PTP packets in the residence time information of whole transmission network, the time that the information can be used between equipment B and device A is same Step.
In order to clearly illustrate technical scheme, in the present embodiment, go out net node by going out net node obtained by S4022 Correction value after renewal is referred to as the second correction value, it will be appreciated by those skilled in the art that ground, in description afterwards, unless there are Specified otherwise, net node is otherwise represented by going out repairing after net node updates obtained by S4022 with the second correction value On the occasion of.
S4023:Go out net node and the amendment domain is arrived into second correction value renewal according to the form of the PTP packets Field;
Specifically, after the second correction value is obtained, going out net node be able to will correct according to the form of the PTP packets Correction value in the field of domain is changed to the second correction value, renewal of the net node to PTP packets is so completed out, so as to obtain Second renewal PTP packets;
In the present embodiment, the embodiment with reference to shown in Fig. 2, it is actually to update PTP packets by first to go out net node In the first correction value be changed to the second correction value, so as to obtain the second renewal PTP packets.
Exemplarily, between S401 and S402, this method can also include:Go out net node to enter the PTP packets Row verification, determines whether the PTP packets are correct:When the PTP packets are correct, S402 is continued executing with;As the PTP When packet is incorrect, terminate current processing, such as:The PTP packets are abandoned, and wait next PTP packets Arrive;
Specifically, similar with the embodiment shown in Fig. 2, going out net node can be according to the network where the PTP packets Level is different, and the form of the data flow of the encapsulation PTP packets is different, and corresponding calibration technology can be used to carry out school Test;Have a detailed description, will not be repeated here in specific embodiment previous embodiment.
It should be noted that the application scenarios with reference to shown in Fig. 1, when the second renewal PTP packets export from net node is gone out When reaching equipment B afterwards, equipment B can be worth to whole by the second amendment in the second renewal PTP packet amendments domain field The residence time of transmission network, and time synchronized, the reality of specific time synchronized can be carried out by the residence time and device A Existing process is the conventional technical means of those skilled in the art, be will not be repeated here.
Referring to Fig. 6, for a kind of detailed process schematic diagram of method for synchronizing time provided in an embodiment of the present invention, it is possible to understand that Ground, the detailed process can specifically be included with the application scenarios shown in Fig. 1:
S601:Device A sends PTP packets to network access node;
Exemplarily, in the application scenarios shown in Fig. 1, set device A needs and equipment B carries out time synchronized, and sets Standby transmission network 100 between A and equipment B dotted line frame region representation as shown in Figure 1, the network access node and equipment of transmission network A connections, the net node that goes out of transmission network are connected with equipment B, and PTP data envelopes can be mounted in network access node and send by device A Data flow in.
S602:The very first time that network access node record PTP packets enter the network access node is worth;
Exemplarily, can be according to the spy of PTP packets after network access node receives the data flow of device A transmission Sign field the PTP packets are found from data flow, and record the PTP packets enter network access node first when Between be worth, specifically can with network entry time stab form very first time value is preserved.
Further, network access node can be at any one link of input to first in the PTP packets Time value is recorded;Preferably, in the embodiment of the present invention, network access node can save in the PTP packets from described network Input interface in point close to physical layer, which enters, fashionable records the very first time value.
S603:Network access node verifies to the PTP packets, determines whether the PTP packets are correct;
Specifically, network access node can be different according to the network layer where the PTP packets, and described in encapsulation The form of the data flow of PTP packets is different, and corresponding calibration technology can be used to be verified, such as when the PTP packets When being encapsulated in interconnection Internet protocol (IP, Internet Protocol) V6 or IPV4 data flows, network access node can use UDP (UDP, User Datagram Protocol) verification, IP verifications, CRC (Cyclical Redundancy Check, CRC) etc. method of calibration the PTP packets are verified, to determine that the PTP packets are It is no correct.The implementation process specifically verified is the conventional realization rate of those skilled in the art, be will not be repeated here.
Specifically, when the PTP packets are incorrect, terminate current processing, such as abandon the PTP packets, And wait the arrival of next PTP packets;When the PTP packets are correct, S604 is continued executing with:Network access node is according to institute The correction value that very first time value updates the amendment domain field in the PTP packets is stated, obtains the first renewal PTP packets;
Exemplarily, network access node updates the amendment domain field in the PTP packets according to very first time value Correction value, specifically can be with as shown in figure 3, will not be repeated here.
S605:Network access node sends the first renewal PTP packets to network;
Exemplarily, by S605 can the network by first renewal PTP packets to go out net node send;
It should be noted that due to being preserved in the amendment domain field of the first renewal PTP packets as the first correction value, because This, the temporal information that data flow enters transmission network is contained in the first renewal PTP packets.
S606:Go out net node and the first renewal PTP packets are received from network;
Exemplarily, after network access node sends the first renewal PTP packets to network, by the transmission of network, The first renewal PTP packets will be received from network by going out net node.
S607:Go out net nodes records first and update the second time value for going out net node described in the output of PTP packets;
Similar with network access node, going out net node can be from the data flow that network sends over according to PTP packets Feature field finds the first renewal PTP packets, and records the first renewal PTP packets by going out net node output end Second time value, the second time value can specifically be preserved with the form for going out net timestamp;
Further, going out net node can be at any one link of output end pair in the first renewal PTP packets Second time value is recorded;Preferably, in the embodiment of the present invention, PTP packets can be updated from institute first by going out net node Second time value is recorded when stating out in net node close to the output interface output of physical layer.
S608:Go out net node to verify the first renewal PTP packets, whether just to determine the first renewal PTP packets Really;
Specifically, similar with S603, going out net node can be according to the network layer where the first renewal PTP packets not Together, and encapsulation first updates the form difference of the data flow of PTP packets, and corresponding calibration technology can be used to be verified; Have a detailed description, will not be repeated here in specific embodiment S603.
Specifically, when the PTP packets are incorrect, terminate current processing, such as abandon the PTP packets, And wait the arrival of next PTP packets;When the PTP packets are correct, S609 is continued executing with:Go out net node according to institute The correction value of the amendment domain field in the second time value renewal the first renewal PTP packets is stated, obtains the second renewal PTP data Bag;
Exemplarily, S609 specific implementation process can be with as shown in figure 5, will not be repeated here.
S610:Go out net node to transmit the second renewal PTP packets to equipment B;
Exemplarily, equipment B can be worth to whole by the second amendment in the second renewal PTP packet amendments domain field The residence time of individual transmission network, and time synchronized can be carried out by the residence time and device A, specific time synchronized Implementation process is the conventional technical means of those skilled in the art, be will not be repeated here.
A kind of detailed process of the method for time synchronized that the present embodiment is provided, only passes through the network access node of transmission network The residence time of the transmission network is calculated with net node is gone out so that calculated without each node in transmission network Respective residence time, reduce the resource overhead in transmission network;Nor it can accumulate by each section in transmission network Calculation error caused by during the point respective residence time of calculating, improve the computational accuracy of the residence time of transmission network;More not Need to consider the asymmetric situation of bidirectional transmission path of transmission medium between each node in transmission network, reduce network Workload.
It is a kind of structural representation of network access node 70 provided in an embodiment of the present invention referring to Fig. 7, as shown in fig. 7, networking Node 70 can include:First recording unit 701, the first updating block 702 and transmitting element 703, wherein,
First recording unit 701, the very first time of network access node 70 is entered for recording Precision Time Protocol PTP packets Value;
First updating block 702, the very first time value for being obtained according to the first recording unit 701 update the PTP numbers According to the correction value of the amendment domain field in bag, the first renewal PTP packets are obtained;
Transmitting element 703, for the described first renewal PTP packets to be sent to network, to cause the network by institute State the first renewal PTP packets and sent to net node is gone out.
Exemplarily, the present embodiment can illustrate with reference to the scene shown in Fig. 1, and the first recording unit 701 can be from The PTP packets are found according to the feature field of PTP packets in the data flow that device A is sent, and institute can be recorded The very first time value that PTP packets enter network access node is stated, specifically, what the first recording unit 701 can be stabbed with network entry time Form preserves to very first time value;
Further, the first recording unit 701 can be in any of the input of network access node 70 in the PTP packets Very first time value is recorded at one link;Preferably, in the embodiment of the present invention, the first recording unit 701 can be in institute PTP packets are stated to enter fashionable to record the very first time value close to the input interface of physical layer from network access node 70.
Exemplarily, as shown in figure 8, the first updating block 702 can include:First extraction module 7021, first calculates The update module 7023 of module 7022 and first, wherein,
First extraction module 7021 is used to correct domain field in the form extraction PTP packets according to the PTP packets Correction value;
It is to be appreciated that because PTP packets meet IEEE1588 agreements, there is fixed data format, therefore, first Extraction module 7021 can extract correction value according to fixed data format from the amendment domain field of the PTP packets. Concrete methods of realizing is the conventional realization rate of those skilled in the art, be will not be repeated here;
First computing module 7022 is used to the correction value subtracting the very first time value, obtains the first correction value;
Specifically in the present embodiment, the first computing module 7022 can obtain correction value with the first extraction module 7021 and subtract The very first time that the form stabbed with network entry time preserves is worth, so as to obtain the correction value after network access node 70 updates.In order to Clearly explanation technical scheme, in the present embodiment, the amendment after network access node renewal obtained by the first computing module 7022 Value is referred to as the first correction value, it will be appreciated by those skilled in the art that ground, no unless there are specified otherwise in description afterwards Then with the first correction value come represent obtained by the first computing module 7022 network access node renewal after correction value;
First update module 7023 is used to update first correction value to described according to the form of the PTP packets Correct domain field;
Specifically, after the first computing module 7022 obtains the first correction value, the first update module 7023 can be according to The former correction value corrected in the field of domain is changed to the first correction value by the form of the PTP packets, so completes first more New renewal of the unit 702 to PTP packets, so as to obtain the first renewal PTP packets.
Exemplarily, referring to Fig. 8, network access node 70 can also include the first verification unit 704, for the PTP numbers Verified according to bag, determine whether the PTP packets are correct, when it is determined that the PTP packets are correct, triggering described first Processing of the updating block 702 to the PTP packets;When it is determined that the PTP packets are incorrect, triggering end processing, example The PTP packets as described in abandoning, and wait the arrival of next PTP packets;
Specifically, the first verification unit 704 can be different according to the network layer where the PTP packets, Yi Jifeng It is different to fill the form of the data flow of the PTP packets, corresponding calibration technology can be used to be verified, such as the PTP When data envelope is mounted in internet border agreement (IP, Internet Protocol) V6 or IPV4 data flows, the first verification is single Member 704 can use UDP (UDP, User Datagram Protocol) verification, IP verifications, cyclic redundancy school Test methods of calibration such as (CRC, Cyclical Redundancy Check) to verify the PTP packets, described in determining Whether PTP packets are correct.The implementation process specifically verified is the conventional realization rate of those skilled in the art, no longer superfluous herein State.
It should be noted that due to being preserved in the amendment domain field of the described first renewal PTP packets as the first amendment Value, therefore, the temporal information that data flow enters transmission network is contained in the first renewal PTP packets;So, when described When first renewal PTP packets reach the Egress node of transmission network, it is possible to update PTP packets from biography by described first The temporal information of defeated network output obtains the network resident time of transmission network;Set finally by the network resident time to realize Standby time synchronized between A and equipment B.
Referring to Fig. 9, for it is provided in an embodiment of the present invention it is a kind of go out net node 90 structural representation, as shown in figure 9, going out net Node 90 can include:Second recording unit 901 and the second updating block 902, wherein,
Second recording unit 901 is used for, and record Precision Time Protocol PTP packets export out the second time of net node 90 Value;The PTP packets go out net node 90 and received from network, and the PTP sent by the network access node of the network Packet;
Second updating block 902 is used for, and updates the amendment domain field in the PTP packets according to second time value Correction value, obtain the second renewal PTP packets.
Exemplarily, in the present embodiment, with reference to foregoing embodiment as shown in Figure 2 it is recognised that go out net node 90 from The PTP packets received in network are actually the first renewal PTP packets that network access node is sent, wherein, described first more The correction value that the amendment domain field of new PTP packets is preserved is the first correction value.
Similar with the network access node of embodiment illustrated in fig. 2, the second recording unit 901 can be from the number that network sends over The PTP packets are found according to the feature field of PTP packets according in stream, and record the PTP packets by going out Second time value of the output end of net node 90, the second time value can specifically be preserved with the form for going out net timestamp;
Further, the second recording unit 901 can be in out any of the output end of net node 90 in the PTP packets The second time value is recorded at one link;Preferably, in the embodiment of the present invention, the second recording unit 901 can be in institute State when PTP packets export from the output interface for going out close physical layer in net node 90 and record second time value.
Exemplarily, as shown in Figure 10, the second updating block 902 can include:Second extraction module 9021, second calculates The update module 9023 of module 9022 and second, wherein,
Second extraction module 9021 is used to correct domain field in the form extraction PTP packets according to the PTP packets Correction value;
It is to be appreciated that because PTP packets meet IEEE1588 agreements, there is fixed data format, therefore, second Extraction module 9021 can extract correction value according to fixed data format from the amendment domain field of the PTP packets. Concrete methods of realizing is the conventional realization rate of those skilled in the art, be will not be repeated here.
It should be understood that in the present embodiment, the embodiment with reference to shown in Fig. 8, because the PTP packets are The first renewal PTP packets that network access node is sent, therefore, the correction value in the field of the PTP packets amendment domain is first Correction value.
Second computing module 9022 is used for, and the correction value is added into second time value, obtains second amendment Value;
Specifically, in the present embodiment, the embodiment with reference to shown in Fig. 8, because the correction value is the first correction value, because This second computing module 9022 can add the correction value obtained by the second extraction module 9021 with the form for going out net timestamp The second time value preserved, to obtain out the correction value after net node 90 updates.It is to be appreciated that due to being wrapped in the first correction value The network entry time information of PTP packets is included, so the first correction value goes out net node plus obtained by after the second time value Include residence time information of the PTP packets in whole transmission network in correction value after renewal, the information can be used for setting Standby time synchronized between B and device A.
In order to clearly illustrate technical scheme, in the present embodiment, go out net node obtained by the second computing module 9022 Correction value after renewal is referred to as the second correction value, it will be appreciated by those skilled in the art that ground, in description afterwards, unless there are Specified otherwise, the amendment gone out after net node updates obtained by the second computing module 9022 is otherwise represented with the second correction value Value.
Second update module 9023 is used for, and second correction value renewal is arrived into institute according to the form of the PTP packets State amendment domain field;
Specifically, after the second correction value is obtained, the second update module 9023 can be according to the lattice of the PTP packets The correction value corrected in the field of domain is changed to the second correction value by formula, so completes out renewal of the net node to PTP packets, So as to obtain the second renewal PTP packets;
In the present embodiment, the embodiment with reference to shown in Fig. 7, the second updating block 902 are actually to update PTP by first The first correction value in packet is changed to the second correction value, so as to obtain the second renewal PTP packets.
Exemplarily, referring to Figure 10, the second verification unit 903 can also be included by going out net node 90, for the PTP numbers Verified according to bag, determine whether the PTP packets are correct, when it is determined that the PTP packets are correct, the renewal of triggering second Processing of the unit 902 to the PTP packets;When it is determined that the PTP packets are incorrect, triggering end processing, such as lose The PTP packets are abandoned, and wait the arrival of next PTP packets;
Specifically, similar with the first verification unit in the embodiment shown in Fig. 8, the second verification unit 903 can be according to institute Network layer where stating PTP packets is different, and the form of the data flow of the encapsulation PTP packets is different, can use Corresponding calibration technology is verified;Have a detailed description, will not be repeated here in specific embodiment previous embodiment.
It should be noted that the application scenarios with reference to shown in Fig. 1, when the second renewal PTP packets export from net node is gone out When reaching equipment B afterwards, equipment B can be worth to whole by the second amendment in the second renewal PTP packet amendments domain field The residence time of transmission network, and time synchronized, the reality of specific time synchronized can be carried out by the residence time and device A Existing process is the conventional technical means of those skilled in the art, be will not be repeated here.
It is a kind of hardware architecture diagram of network access node 70 provided in an embodiment of the present invention referring to Figure 11, network access node 70 can include at least one communication interface 1101, processor 1102, memory 1103 and bus 1104:At least one communication Interface 1101, processor 1102, memory 1103 are connected by bus 1104 and complete mutual communication.
The bus 1104 can be industry standard architecture (ISA, Industry Standard Architecture) Bus, external equipment interconnection (PCI, Peripheral Component) bus or extended industry-standard architecture (EISA, Extended Industry Standard Architecture) bus etc..The bus 1104 can be divided into address bus, number According to bus, controlling bus etc..Only represented for ease of representing, in Figure 11 with a thick line, it is not intended that an only bus or A type of bus.Wherein:
Memory 1103 is used to store executable program code, and the program code includes computer-managed instruction.Memory 1103 may include high-speed RAM memory, it is also possible to also including nonvolatile memory (non-volatile memory), example Such as at least one magnetic disk storage.Stored in storage device:Operating system, application program, for realizing the embodiment of the present invention Program code.Operating system is used for the processing function for controlling and realizing that processing unit performs.Application program includes program code, such as Word, email softwares.
Processor 1102 is probably a central processing unit (CPU, Central Processing Unit), or special Determine integrated circuit (ASIC, Application Specific Integrated Circuit), or be arranged to implement this One or more integrated circuits of inventive embodiments.
Communication interface 1101, for being communicated with external equipment;
Processor 1102, the very first time value of the network access node is entered for recording Precision Time Protocol PTP packets;
And the very first time value obtained according to first recording unit updates the amendment domain word in the PTP packets The correction value of section, obtains the first renewal PTP packets;
And sent the described first renewal PTP packets to network by communication interface 1101, to cause the network Described first renewal PTP packets are sent to net node is gone out.
Exemplarily, processor 1102 is specifically used for, and extracts in PTP packets and repaiies according to the form of the PTP packets The correction value of positive domain field;
And the correction value is subtracted into the very first time value, obtain the first correction value;
And first correction value renewal is corrected into domain field to described according to the form of the PTP packets.
Exemplarily, processor 1102 is specifically used for, the PTP packets from network access node 70 close to physical layer Input interface, which enters, fashionable records the very first time value.
Exemplarily, processor 1102 is additionally operable to, and the PTP packets are verified, and determines that the PTP packets are It is no correct.
Referring to Figure 12, for it is provided in an embodiment of the present invention it is a kind of go out net node 90 hardware architecture diagram, go out net node 90 include at least one communication interface 1201, processor 1202, memory 1203 and bus 1204:At least one communication interface 1201st, processor 1202, memory 1203 are connected by bus 1204 and complete mutual communication.
The bus 1204 can be industry standard architecture (ISA, Industry Standard Architecture) Bus, external equipment interconnection (PCI, Peripheral Component) bus or extended industry-standard architecture (EISA, Extended Industry Standard Architecture) bus etc..The bus 1204 can be divided into address bus, number According to bus, controlling bus etc..Only represented for ease of representing, in Figure 12 with a thick line, it is not intended that an only bus or A type of bus.Wherein:
Memory 1203 is used to store executable program code, and the program code includes computer-managed instruction.Memory 1203 may include high-speed RAM memory, it is also possible to also including nonvolatile memory (non-volatile memory), example Such as at least one magnetic disk storage.Stored in storage device:Operating system, application program, for realizing the embodiment of the present invention Program code.Operating system is used for the processing function for controlling and realizing that processing unit performs.Application program includes program code, such as Word, email softwares.
Processor 1202 is probably a central processing unit (CPU, Central Processing Unit), or special Determine integrated circuit (ASIC, Application Specific Integrated Circuit), or be arranged to implement this One or more integrated circuits of inventive embodiments.
Communication interface 1201, for being communicated with external equipment;
Processor 1202, go out the second time value of net node described in the output of Precision Time Protocol PTP packets for recording; The PTP packets be it is described go out net node received from network, and by the network network access node send PTP numbers According to bag;
And the correction value of the amendment domain field in the PTP packets is updated according to second time value, obtain the Two renewal PTP packets.
Exemplarily, processor 1202 is specifically used for:
According to the correction value that domain field is corrected in the form extraction PTP packets of the PTP packets;
And the correction value is added into second time value, obtain second correction value;
And second correction value renewal is corrected into domain field to described according to the form of the PTP packets.
Exemplarily, processor 1202 is specifically used for:The PTP packets from it is described go out net node in close to physical layer Output interface output when record second time value.
Exemplarily, processor 1202 is additionally operable to:The PTP packets are verified, determine that the PTP packets are It is no correct.
It is a kind of system of time synchronized provided in an embodiment of the present invention referring to Figure 13, the system can include the section that networks Put 70 and go out net node 90, wherein,
Network access node 70 is used to record the very first time value that Precision Time Protocol PTP packets enter the network access node; The correction value of the amendment domain field in the PTP packets is updated according to very first time value, obtains the first renewal PTP data Bag;Described first renewal PTP packets are sent to the network, to cause the network to update PTP data by described first Wrap to go out net node send;Concrete implementation process as in the foregoing embodiment, will not be repeated here;
Go out net node 90 to be used to record the second time value for going out net node described in the first renewal PTP packet outputs; The correction value of amendment domain field in second time value renewal the first renewal PTP packets, obtains second more New PTP packets;Concrete implementation process as in the foregoing embodiment, will not be repeated here;.
Exemplarily, network access node 70 is additionally operable to verify the PTP packets, determines the PTP packets not When correct, terminate currently processed.
Exemplarily, go out net node 90 to be additionally operable to verify the described first renewal PTP packets, determine described first When renewal PTP packets are incorrect, terminate currently processed.
The embodiments of the invention provide a kind of system of time synchronized, the system only passes through the network access node 70 of transmission network The residence time of the transmission network is calculated with net node 90 is gone out so that counted without each node in transmission network Respective residence time is calculated, reduces the resource overhead in transmission network;Nor it can accumulate by each in transmission network Calculation error caused by during the node respective residence time of calculating, improve the computational accuracy of the residence time of transmission network;More Without the concern for the asymmetric situation of bidirectional transmission path of transmission medium between each node in transmission network, reduce network Workload.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combination software and hardware Formula.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more to use storage The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (19)

  1. A kind of 1. method of time synchronized, it is characterised in that methods described includes:
    The very first time that network access node record Precision Time Protocol PTP packets enter the network access node is worth;
    The network access node updates the correction value of the amendment domain field in the PTP packets according to very first time value, obtains To the first renewal PTP packets;
    The network access node sends the described first renewal PTP packets to network, to cause the network by described first more New PTP packets are sent to net node is gone out;
    Wherein, the network access node records the very first time value that the PTP packets enter the network access node, including:It is described Network access node is at any one link of input in the PTP packets and very first time value is recorded.
  2. 2. according to the method for claim 1, it is characterised in that the network access node is worth renewal institute according to the very first time The correction value of the amendment domain field in PTP packets is stated, including:
    The network access node is according to the correction value that domain field is corrected in the form extraction PTP packets of the PTP packets;
    The correction value is subtracted the very first time value by the network access node, obtains the first correction value;
    First correction value renewal is corrected domain field by the network access node according to the form of the PTP packets to described.
  3. 3. according to the method for claim 1, it is characterised in that the network access node records the PTP packets and enters institute The very first time value of network access node is stated, including:
    The network access node enters fashionable record in input interface of the PTP packets close to physical layer from the network access node The very first time value.
  4. 4. according to the method described in any one of claims 1 to 3, it is characterised in that record the PTP numbers in the network access node Enter according to bag after the very first time value of the network access node, and renewal institute is worth according to the very first time in the network access node Before the correction value for stating the amendment domain field in PTP packets, methods described also includes:
    The network access node verifies to the PTP packets, when determining that the PTP packets are incorrect, terminates current place Reason.
  5. A kind of 5. method of time synchronized, it is characterised in that methods described includes:
    Go out to go out described in the output of net nodes records Precision Time Protocol PTP packets the second time value of net node;The PTP data Bag by it is described go out net node received from network, and by the network network access node send;
    It is described go out net node the correction value of amendment domain field in the PTP packets is updated according to second time value, obtain To the second renewal PTP packets;
    Wherein, it is described go out PTP packets output described in net nodes records described in go out the second time value of net node, including:It is described Go out net node and be in the PTP packets at any one link of output end and the second time value is recorded.
  6. 6. according to the method for claim 5, it is characterised in that it is described go out net node according to second time value update institute The correction value of the amendment domain field in PTP packets is stated, including:
    It is described go out net node according to the PTP packets form extraction PTP packets in correct domain field correction value;
    It is described go out net node the correction value is added into second time value, obtain the second correction value;
    It is described go out net node according to the PTP packets form by second correction value renewal to it is described amendment domain field.
  7. 7. according to the method for claim 5, it is characterised in that it is described go out described in net nodes records PTP packets export institute The second time value of net node is stated out, including:
    It is described go out net node the PTP packets from it is described go out net node in close to physical layer output interface output when record Second time value.
  8. 8. according to the method described in any one of claim 5 to 7, it is characterised in that it is described go out PTP numbers described in net nodes records According to bag output described in go out the second time value of net node after, and it is described go out net node according to second time value update institute Before the correction value for stating the amendment domain field in PTP packets, methods described also includes:
    It is described go out net node the PTP packets are verified, when determining that the PTP packets are incorrect, terminate current place Reason.
  9. 9. a kind of network access node, it is characterised in that the network access node includes:First recording unit, the first updating block and hair Unit is sent, wherein,
    First recording unit, the very first time of the network access node is entered for recording Precision Time Protocol PTP packets Value;
    First updating block, the very first time value for being obtained according to first recording unit update the PTP data The correction value of amendment domain field in bag, obtains the first renewal PTP packets;
    The transmitting element, for the described first renewal PTP packets to be sent to network, to cause the network by described the One renewal PTP packets are sent to net node is gone out;
    First recording unit, any one link specifically for being in network access node input in the PTP packets Place records to very first time value.
  10. 10. network access node according to claim 9, it is characterised in that first updating block includes:First extraction mould Block, the first computing module and the first update module, wherein,
    First extraction module is used to correct repairing for domain field in the form extraction PTP packets according to the PTP packets On the occasion of;
    First computing module is used to the correction value subtracting the very first time value, obtains the first correction value;
    First update module is used to first correction value renewal is arrived into the amendment according to the form of the PTP packets Domain field.
  11. 11. network access node according to claim 9, it is characterised in that first recording unit is used for, in the PTP Packet enters fashionable to record the very first time value from the network access node close to the input interface of physical layer.
  12. 12. according to the network access node described in any one of claim 9 to 11, it is characterised in that the network access node also includes the One verification unit, for being verified to the PTP packets, when determining that the PTP packets are incorrect, trigger at end Reason.
  13. 13. one kind goes out net node, it is characterised in that it is described go out net node include:Second recording unit and the second updating block, its In,
    Second recording unit is used for, and the second time of net node is gone out described in record Precision Time Protocol PTP packet outputs Value;The PTP packets be it is described go out net node received from network, and by the network network access node send;
    Second updating block is used for, the amendment domain field in second time value renewal PTP packets Correction value, obtain the second renewal PTP packets;
    Second recording unit is specifically used for, and any one link of net node output end is in out in the PTP packets Place records to the second time value.
  14. 14. it is according to claim 13 go out net node, it is characterised in that second updating block includes:Second extraction Module, the second computing module and the second update module, wherein,
    Second extraction module is used to correct repairing for domain field in the form extraction PTP packets according to the PTP packets On the occasion of;
    Second computing module is used for, and the correction value is added into second time value, obtains the second correction value;
    Second update module is used for, and updates described in second correction value according to the form of the PTP packets and repaiies Positive domain field.
  15. 15. it is according to claim 13 go out net node, it is characterised in that second recording unit is specifically used for, in institute State PTP packets from it is described go out net node in close to physical layer output interface output when record second time value.
  16. 16. go out net node according to any one of claim 13 to 15, it is characterised in that it is described go out net node also include: Second verification unit, for being verified to the PTP packets, when determining that the PTP packets are incorrect, trigger at end Reason.
  17. A kind of 17. system of time synchronized, it is characterised in that the system includes network access node and goes out net node, wherein,
    The network access node is used to record the very first time value that Precision Time Protocol PTP packets enter the network access node;Root The correction value of the amendment domain field in the PTP packets is updated according to very first time value, obtains the first renewal PTP data Bag;By described first renewal PTP packets send to network, with cause the network will described first update PTP packets to Go out the transmission of net node;
    It is described go out net node be used to record the second time value for going out net node described in the first renewal PTP packets output;Root According to the correction value of the amendment domain field in second time value renewal the first renewal PTP packets, the second renewal is obtained PTP packets;
    Wherein, the network access node records the very first time value that the PTP packets enter the network access node, including:It is described Network access node is at any one link of input in the PTP packets and very first time value is recorded;
    It is described go out PTP packets output described in net nodes records described in go out the second time value of net node, including:It is described to go out to net section Point is at any one link of output end in the PTP packets to be recorded to the second time value.
  18. 18. system according to claim 17, it is characterised in that the network access node is additionally operable to the PTP packets Verified, when determining that the PTP packets are incorrect, terminated currently processed.
  19. 19. system according to claim 17, it is characterised in that it is described go out net node be additionally operable to described first update PTP packets are verified, and when determining that the first renewal PTP packets are incorrect, are terminated currently processed.
CN201410187221.4A 2014-05-05 2014-05-05 A kind of method, apparatus and system of time synchronized Active CN105099593B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410187221.4A CN105099593B (en) 2014-05-05 2014-05-05 A kind of method, apparatus and system of time synchronized
PCT/CN2014/088008 WO2015169045A1 (en) 2014-05-05 2014-09-30 Time synchronization method, device and system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410187221.4A CN105099593B (en) 2014-05-05 2014-05-05 A kind of method, apparatus and system of time synchronized

Publications (2)

Publication Number Publication Date
CN105099593A CN105099593A (en) 2015-11-25
CN105099593B true CN105099593B (en) 2018-03-30

Family

ID=54392078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410187221.4A Active CN105099593B (en) 2014-05-05 2014-05-05 A kind of method, apparatus and system of time synchronized

Country Status (2)

Country Link
CN (1) CN105099593B (en)
WO (1) WO2015169045A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114980296A (en) * 2021-02-25 2022-08-30 中国移动通信有限公司研究院 Method, device and equipment for sending and receiving time information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827098A (en) * 2010-03-31 2010-09-08 中兴通讯股份有限公司 Processing method and device for time synchronization
WO2011025746A1 (en) * 2009-08-25 2011-03-03 Semtech Corporation Measurement and adjustment of real-time values according to residence time in networking equipment without access to real time
CN103067113A (en) * 2012-12-24 2013-04-24 中兴通讯股份有限公司 Method and device capable of achieving peer-to-peer (PTP) time synchronization and based on aggregation links

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469377A (en) * 2010-11-17 2012-05-23 中兴通讯股份有限公司 Ethernet passive optical network (EPON) system and method for realizing end-to-end transparent clock in system
CN102546071B (en) * 2011-12-23 2014-08-13 北京北方烽火科技有限公司 Clock synchronization method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011025746A1 (en) * 2009-08-25 2011-03-03 Semtech Corporation Measurement and adjustment of real-time values according to residence time in networking equipment without access to real time
CN101827098A (en) * 2010-03-31 2010-09-08 中兴通讯股份有限公司 Processing method and device for time synchronization
CN103067113A (en) * 2012-12-24 2013-04-24 中兴通讯股份有限公司 Method and device capable of achieving peer-to-peer (PTP) time synchronization and based on aggregation links

Also Published As

Publication number Publication date
CN105099593A (en) 2015-11-25
WO2015169045A1 (en) 2015-11-12

Similar Documents

Publication Publication Date Title
US10887211B2 (en) Indirect packet classification timestamping system and method
US9960871B1 (en) Method and apparatus for securing clock synchronization in a network
EP3216143B1 (en) Transmitting residence time information in a network
US8914662B2 (en) Implementing transparent clock by correcting time information carried in data using residence time information
CN101494613B (en) Method for clock message tunnel transmission, network node and communication system
US20140010244A1 (en) Method, apparatus and system for time distribution in a telecommunications network
US20130028265A1 (en) Update of a cumulative residence time of a packet in a packet-switched communication network
CN113273105A (en) Method, vehicle, computer device and storage medium for time synchronization of a plurality of auxiliary devices of an autonomous vehicle
JP2015506626A (en) Method and apparatus for communicating time information between time recognition devices
WO2008138850A1 (en) Method for synchronizing a clock of a network component with a clock of further network component and network component therefor
US11349587B2 (en) Generating a timestamp
CN104993900B (en) A kind of synchronization correction method based on IEEE1588 clock models
CN112583509B (en) Method and device for acquiring time stamp of data stream, storage medium and electronic device
CN108429596B (en) A kind of ethernet mac module realization device and implementation method for IEEE 1588v2 agreement
CN105099593B (en) A kind of method, apparatus and system of time synchronized
KR20190002557A (en) Performance measurement for multipoint packet flow
CN106856422B (en) Timestamp processing method and device for time message in optical transmission network
CN108933768A (en) The acquisition methods and device of the transmission frame per second of video frame
US9985737B2 (en) WAN interface based 1588V2 packet transmission method and apparatus
CN106301642B (en) A kind of clock synchronizing method and device of passive optical network
US9031063B2 (en) Direct updating of network delay in synchronization packets
JP5379818B2 (en) Ground-to-ground traffic estimation method, program thereof, and ground-to-ground traffic estimation device
CN110138486A (en) Generation method, synchronizer and the computer readable storage medium of sync message
CN102684993B (en) Clock message tunnel transmission method, network node and communication system
JP2012169750A (en) Packet transfer system and packet fluctuation absorption method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20151125

Assignee: Xi'an Chris Semiconductor Technology Co. Ltd.

Assignor: SHENZHEN ZTE MICROELECTRONICS TECHNOLOGY CO., LTD.

Contract record no.: 2019440020036

Denomination of invention: Time synchronization method, device and system

Granted publication date: 20180330

License type: Common License

Record date: 20190619