CN108259106A - A kind of time stamp treating method and apparatus in Ethernet passive optical network - Google Patents
A kind of time stamp treating method and apparatus in Ethernet passive optical network Download PDFInfo
- Publication number
- CN108259106A CN108259106A CN201611266568.3A CN201611266568A CN108259106A CN 108259106 A CN108259106 A CN 108259106A CN 201611266568 A CN201611266568 A CN 201611266568A CN 108259106 A CN108259106 A CN 108259106A
- Authority
- CN
- China
- Prior art keywords
- frames
- mpcp
- olt
- onu
- delay
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J14/00—Optical multiplex systems
- H04J14/08—Time-division multiplex systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/16—Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/16—Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
- H04J3/1605—Fixed allocated frame structures
- H04J3/1652—Optical Transport Network [OTN]
- H04J3/167—Optical Transport Network [OTN] interaction with SDH/SONET, e.g. carrying SDH/SONET frames, interfacing with SDH/SONET
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/28—Flow control; Congestion control in relation to timing considerations
- H04L47/283—Flow control; Congestion control in relation to timing considerations in response to processing delays, e.g. caused by jitter or round trip time [RTT]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
Abstract
The invention discloses the time stamp processing method in a kind of Ethernet passive optical network (EPON), including:Each Multi-point Control Protocol (MPCP) packet data streams are detected by the delay of Physical Coding Sublayer (PCS) and the delay Jing Guo medium access control (MAC) coding layer;The first time stamp carried in the MPCP frames that optical line terminal (OLT) issues is obtained, the MPCP frames include REPORT frames;By first time stamp, each MPCP packet data streams by the delay of PCS and the delayed addition Jing Guo MAC coding layers, the second timestamp is obtained, and after second timestamp is inserted to the REPORT frames, the REPORT frames are sent to the OLT.The present invention further simultaneously discloses the time stamp processing unit in a kind of EPON.
Description
Technical field
The present invention relates to the Time synchronization technique in network communication field more particularly to a kind of Ethernet passive optical networks
Time stamp treating method and apparatus in (EPON, Ethernet Passive Optical Network).
Background technology
With the continuous development of internet, demand of the user to high-speed access network is growing day by day, and EPON technologies are exactly at this
It comes into being under kind situation.EPON technologies are passive optical network (PON, Passive based on Ethernet as its name suggests
Optical Network) technology, i.e. the EPON technological incorporation technical advantage of Ethernet and PON, for realize data, voice and
The access of video traffic provides a high speed platform.Wherein, EPON system is by optical line terminal (OLT, Optical Line
Terminal), optical network unit (ONU, Optical Network Unit) and optical distribution network (ODN, Optical
Distribution Network) composition, and EPON system uses the transmission of point-to-multipoint topological structure and passive fiber
Mode provides multiple business on the basis of Ethernet.
To realize the reasonable distribution of each ONU uplink bandwidth resources, EPON system need to by Multi-point Control Protocol (MPCP,
Multi-Point Control Protocol) bandwidth management capability between EPON equipment is completed, therefore, MPCP is to solve
The core protocol of EPON key technologies.MPCP is medium access control in EPON system (MAC, Media Access Control)
The agreement of sublayer is controlled, which defines the controlling mechanism between OLT and ONU, and management information, ONU are controlled by providing ONU
Bandwidth Management information and the control of business monitoring information, carry out effectively sending and receiving for coordination data.
In EPON system operational process, multiple spot MAC control functions are the cores of MPCP;Multiple spot MAC is by controlling MAC objective
Family end sends and receives, and makes multiple MAC client operations in point-to-multi-point optical network, and multiple MAC clients pass through one
Sharing fiber connects.Wherein, on up direction, only a MAC is allowed to send out in a network every time in arbitrary given time
Send uplink frame so that multiple MAC can be operated on a shared medium.Therefore, for data is avoided to clash and in view of number
According to compatibility, multiple spot MAC controls need to defer to certain delay requirement, that is, establish in stringent time stamp or in timestamp
(Timestamp) in mechanism, stringent calculating carries out sequential according to system requirements.
For the correctness of maintenance time stamp, in addition to the timestamp that the ONU MPCP frames received carry, also need plus ONU
The actual time delay of processing can just obtain correct new time stamp, to reset the internal counter of ONU.However, traditional
In time stamp computational methods, the Normal practice of processing ONU actual time delay is:Data flow is passed through into physical layer (PHY, Physical
Layer), the processing delay of MAC layer and MPCP layers of each submodule is set as fixed value;And this fixed delay value is root
It is delayed according to the longest of submodule each in actual conditions.Due to more complicated to the processing of data flow in each module, in
Between further include multiple IP, such as Advanced Encryption Standard (AES, Advanced Encryption Standard), triple disturbances etc.,
If the delay for wanting to reach when data flow through these IP processing is fixed, this brings very big to some algorithms IP and resume module
Realization difficulty, fixed even if realizing delay, required delay also can be very big.
Invention content
In view of this, an embodiment of the present invention is intended to provide the time stamp treating method and apparatus in a kind of EPON, it is intended to solve
Present in existing time stamp computational methods because constant time lag processing lead to the problem of larger that is delayed, can effectively reduction processing prolong
When, optimize internal processing time.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
The embodiment of the present invention provides the time stamp processing method in a kind of EPON, the method includes:
Each MPCP packet data streams are detected by Physical Coding Sublayer (PCS, Physical Coding Sublayer)
Delay and the delay Jing Guo MAC coding layers;
The first time stamp carried in the MPCP frames that OLT is issued is obtained, the MPCP frames include REPORT frames;
By first time stamp, each MPCP packet data streams by the delay of PCS and prolonging by MAC coding layers
Shi Xiangjia obtains the second timestamp, and after second timestamp is inserted to the REPORT frames, and the REPORT frames are sent out
Give the OLT.
In said program, the MPCP frames further include GATE frames, the GATE frames include MPCP packets conveying length and
Start the information of transmission time;
The timestamp that GATE frames carry in the MPCP frames that the first time stamp is issued for the OLT.
In said program, after the first time stamp carried in the MPCP frames issued in the acquisition OLT, the method is also
Including:
Reception and the matched GATE frames of ONU intercept the conveying length of MPCP packets in the GATE frames and start transmission time,
And stabbed according to the first time carried in the GATE frames, update the local timing of the ONU.
In said program, each MPCP packet data streams of detection are by the delay of PCS and prolonging by MAC coding layers
When, including:
The local timing of delayed data and current ONU carried according to current MPCP packet data streams, calculates each MPCP
The difference of local timing, obtains by PCS and MAC coding layers when packet data streams pass through each processing module in PCS and MAC coding layers
The final delayed data of middle processing module, and pass through final delay of the command character by processing module in PCS the and MAC coding layers
Information is carried in counter.
In said program, it is described the REPORT frames are sent to the OLT after, the method further includes:
Round-trip delay (RTT, Round Trip Time) between OLT and ONU is calculated according to second timestamp, and
The mandate time of each ONU is adjusted according to the RTT.
The embodiment of the present invention also provides the time stamp processing unit in a kind of EPON, and described device includes:First processor,
Two processors;Wherein,
The first processor, for detecting each MPCP packet data streams by the delay of PCS and by MAC coding layers
The first time stamp carried in the MPCP frames that delay and acquisition OLT are issued, the MPCP frames include REPORT frames;
The second processor, for first time stamp, each MPCP packet data streams to be passed through to the delay of PCS
With the delayed addition Jing Guo MAC coding layers, the second timestamp is obtained, and second timestamp is being inserted to the REPORT frames
Afterwards, the REPORT frames are sent to the OLT.
In said program, described device further includes:Third processor issues for obtaining OLT in the first processor
MPCP frames in carry first time stamp after, receive with the matched GATE frames of ONU, intercept MPCP packets in the GATE frames
Conveying length and beginning transmission time, and stabbed according to the first time carried in the GATE frames, update the local meter of the ONU
When.
In said program, the first processor is specifically used for:Believed according to the delay that current MPCP packet data streams carry
The local timing of breath and current ONU calculates each MPCP packet data streams by PCS and MAC coding layers during each processing module
The difference of local timing obtains the final delayed data by processing module in PCS and MAC coding layers, and will by command character
The final delayed data of processing module is carried in counter in PCS the and MAC coding layers.
In said program, described device further includes:Fourth processor, in the second processor by the REPORT
Frame is sent to after the OLT, and the RTT between OLT and ONU is calculated, and adjust according to the RTT according to second timestamp
The mandate time of each ONU.
Time stamp treating method and apparatus in EPON provided in an embodiment of the present invention detects each MPCP packet data streams and passes through
The delay of PCS and the delay Jing Guo MAC coding layers;Obtain the first time stamp carried in the MPCP frames that OLT is issued, the MPCP
Frame includes REPORT frames;First time stamp, each MPCP packet data streams are compiled by the delay of PCS and by MAC
The delayed addition of code layer obtains the second timestamp, and after second timestamp is inserted to the REPORT frames, by described in
REPORT frames are sent to the OLT.In this way, the actual treatment delay of ONU can be handled flexibly, existing time stamp computational methods are avoided
Present in lead to the problem of larger that is delayed because of constant time lag processing, processing delay can not only be effectively reduced, at optimization is internal
Manage the time;The embodiment of the present invention can also make the method for calculating time stamp more accurate, synchronous with OLT's preferably to reach ONU.
Description of the drawings
Fig. 1 is the flow diagram of the time stamp processing method in EPON of the embodiment of the present invention;
Fig. 2 is MPCP frame format schematic diagrames of the embodiment of the present invention;
Fig. 3 is OLT and ONU Time Synchronization Mechanism form schematic diagram of the embodiment of the present invention;
Fig. 4 is the data flow schematic diagram of PCS and MAC coding layer of the embodiment of the present invention;
Fig. 5 is the composition structure diagram of the time stamp processing unit in EPON of the embodiment of the present invention.
Specific embodiment
The characteristics of in order to more fully hereinafter understand the embodiment of the present invention and technology contents, below in conjunction with the accompanying drawings to this hair
The realization of bright embodiment is described in detail, appended attached drawing purposes of discussion only for reference, is not used for limiting the present invention.
As shown in Figure 1, the realization flow of the time stamp processing method in the embodiment of the present invention in EPON, includes the following steps:
Step 101:Each MPCP packet data streams are detected by the delay of PCS and the delay Jing Guo MAC coding layers;
This step specifically includes:The delayed data and the local of current ONU carried according to current MPCP packet data streams is counted
When, calculate each MPCP packet data streams by PCS and MAC coding layers during each processing module local timing difference, obtain through
Cross the final delayed data of processing module in PCS and MAC coding layers, and pass through command character will be in PCS the and MAC coding layers
The final delayed data for managing module is carried in counter.
Here, delay of each MPCP packet data streams Jing Guo MAC coding layers is mainly that MPCP packet data streams are encoded by MAC
The delay of deciphering module in layer.
Here it is possible to directly be measured by counter and obtain the local timing of current ONU, belong to the prior art, herein
No longer repeat one by one.
Wherein, MPCP packets are included in MPCP frames, and only there are one MPCP packets in a MPCP frame, that is to say, that one
MPCP packets are exactly a MPCP frame.In general, MPCP packets are in inventionthe open systems interconnection reference model (OSI, Open
System Interconnection) in network layer and transport layer on work, MPCP frames work in the data link layer in OSI
Make.
It should be noted that in EPON system, even in 10G Ethernet passive optical networks (XEPON, 10Gigabit-
EPON) in system, the concept of timestamp has in IEEE802.3 standard agreements to be explicitly defined:Inside OLT and ONU
The counter of one 32 is set respectively, and is counted once every 16ns;That is, providing timestamp by counter, come only
The times of one mark OLT or ONU at a time.That timestamp is identified is the OLT when mac frame uploads to MAC layer
Count value, and timestamp can be mapped to the corresponding region for the MPCP frames that OLT or ONU is sent (referring to MPCP frame formats).
Fig. 2 gives MPCP frame format schematic diagrames, as shown in Fig. 2, MPCP frame formats mainly include:Destination address (DA,
Destination Address), source address (SA, Source Address), length or type (Length/Type), command code
(Opcode), Timestamp, date/reservation/filling (Data/Reserved/Pad) and Frame Check Sequence (FCS, Frame
Check Sequence).Wherein, DA occupies 6 bytes in MPCP frames, and SA occupies 6 bytes in MPCP frames, Length/
Type occupies 2 bytes in MPCP frames, and Opcode occupies 2 bytes in MPCP frames, and Timestamp is occupied in MPCP frames
4 bytes, Data/Reserved/Pad occupy 40 bytes in MPCP frames, and FCS occupies 4 bytes in MPCP frames.It needs
It is emphasized that 8 (b0-b7) in each byte are sent according to from left to right from low level to high-order sequence;Together
When, often the byte in frame is sent in accordance with the order from top to bottom.
Fig. 3 gives OLT and ONU Time Synchronization Mechanism form schematic diagrams, as can be seen from Figure 3:ONU receives GATE
After frame, until sending REPORT frames, and before inserting time stamp T 3 to REPORT frames, intermediate delay for some time, in order to
Ensure the accuracy of calculating time stamp T 3, it is necessary to assure the correct processing of this section of delay between Tn and Tn '.
According to EPON/XEPON agreements it is found that data are from serializer/de-serializers (SerDes, Serializer/
Deserializer) link sends over, delay during this period of time, will processing two-part by PCS and MAC coding layers when
Between form.
It is different according to the function of each module, PCS can be usually divided into five modules:Serdes bit width conversions
Gearbox modules, 66bit synchronous heads locking (SYNC) module, fec decoder correction module, 66bit data de-scramblings (DESCRAM)
Module, 66b64b decoding (66b64b_DECODE) modules.When data flow passes through the above-mentioned modules in PCS, record each
The delay of a module, and transmitted backward together with data flow, in this way, when module below records current delay, Ke Yican
Examine data flow it is entrained record front module delay.
Fig. 4 gives the data flow schematic diagram of PCS and MAC coding layers, as shown in figure 4, to flow through SerDes IP defeated for data
After going out, the bit width conversion of gearbox is first passed around, then by the demarcation of SYNC modules, by entangling for FEC IP decoder modules
After mistake, then data de-scrambling operation is carried out, finally enter 66b64b decoder modules.Due to only being counted in the data through first four module
According to the concept of stream and codeword, the delayed data of each module is convenient for carrying there is no the set form of MPCP packets, therefore, very
Positive start recording delay should be after 66b64b decoder modules.In this way, after being decoded by 66b64b, can obtain
Start command characters (beginning of a packet) carry the delay of each module, S0 or S4 are marked as, at this point, can record
The current delay of MPCP packet handing modules, and the module of bag data that parsing obtains together rearwards is followed to transmit.
Here, the data format that exports be that (XGMII connects for the 10Gb media independent interfaces that standardize after 66b64b decodings
Mouthful, 10Gigabit Media Independent Interface), wherein, X corresponds to Roman number 10.At this point, data flow through
The delay of MAC coding layers is crossed mainly by the delay of deciphering module, i.e., the encryption situation obtained according to parsing of the data stream judges
Data flow is into AES deciphering modules, triple disturbance modules, is also non-deciphering module.That deciphering module generally calls is all IP,
IP types more complicated to the processing of data and different or different MPCP packet lengths can all influence the processing of delay, therefore,
It is delayed between each MPCP packets are long widely different.
Step 102:The first time stamp carried in the MPCP frames that OLT is issued is obtained, the MPCP frames include REPORT frames;
Here, the MPCP frames further include GATE frames, and the GATE frames include the conveying length of MPCP packets and start to pass
The information of defeated time;
The timestamp that GATE frames carry in the MPCP frames that the first time stamp is issued for the OLT.
Here, after obtaining the first time stamp carried in the MPCP frames that OLT is issued in this step, the method is also wrapped
It includes:
Reception and the matched GATE frames of ONU intercept the conveying length of MPCP packets in the GATE frames and start transmission time,
And stabbed according to the first time carried in the GATE frames, update the local timing of the ONU.
Specifically, OLT sends MPCP frames to specified ONU, containing conveying length and when starting transmission in the MPCP frames
Between GATE information, wherein, the GATE information in the transmission process can be coupled with local time stamp, i.e., stab at the first time, and by institute
It states stamp at the first time and is mapped to the corresponding region (Timestamp domains) in MPCP frame formats.ONU receive it is matched with itself
After GATE frames, the information of transmission time will be intercepted about conveying length and started, while is taken in the GATE frames by receiving
The timestamp of band updates its local zone time, so as to eliminating possible clock drift, make between ONU and OLT synchronize protected
Barrier.Due to ONU each in EPON system down direction using broadcast mode, up direction using time division multiplexing (TDMA, Time
Division Multiple Access) mode accesses, in order to avoid data clash, must be requested that the clock and ONU of OLT
Clock in the non-incipient stage of communicating, until sign off all needed to keep synchronizing in this period.It is exactly in other words,
EPON need to keep the synchronization of whole network by timestamp, i.e., when being stabbed first by OLT generation times, and passing through MPCP frames by this
Between stamp be sent to each ONU, each ONU adjusts the deviation of its local clock and OLT clocks by receiving the timestamp, so as to fulfill
Each ONU is synchronized with the effect of OLT.
In addition to foregoing is directed to REPORT frames and GATE frames, also needed through other three types between OLT and ONU
The interaction of MPCP control frame-REGISTER_REQ frames, REGISTER frames and REGISTER_ACK frames is automatically registered to complete
Journey.
Specifically, registration process approximately as:GATE frames are sent by OLT, allow to receive the ONU of GATE frames immediately or
Person's transmission data in section at the appointed time;ONU reports the state of itself by REPORT frames to OLT, is synchronized with including the ONU
Which timestamp and whether have data need send etc.;ONU sends REGISTER_REQ frames to OLT, i.e., in registration regulation
Registration is asked in processing procedure;OLT sends REGISTER frames ONU to be notified to identify note in regulation processing procedure is registered
Volume request;ONU shows the accreditation verification in regulation processing procedure is registered by sending REGISTER_ACK frames.
Step 103:First time stamp, each MPCP packet data streams are compiled by the delay of PCS and by MAC
The delayed addition of code layer obtains the second timestamp, and after second timestamp is inserted to the REPORT frames, by described in
REPORT frames are sent to the OLT.
Here, after the REPORT frames being sent to the OLT in this step, the method further includes:
RTT between OLT and ONU is calculated, and adjust awarding for each ONU according to the RTT according to second timestamp
Between temporary.
Specifically, Fig. 3 illustrates the calculating process of RTT:1.OLT sends GATE frames at the T1 moment from MPCP layers to ONU, and
Insert time stamp T 1, and GATE frames are sent from SERDES chains road is formal in actual conditions at the time of is T1 ', it is seen that T1 to T1 '
Between it is also poor for some time;2.ONU receives GATE frames at the T2 ' moment from SERDES chains road, is reached in T2 time datas
MPCP layers, local counter is resetted, and timestamp at this time is set to T2;3.ONU sends REPORT frames at the T3 moment, and to
REPORT frames insert time stamp T 3, and REPORT frames are T3 ' at the time of transmission from SERDES chains road is formal;4.OLT is at the T4 ' moment
REPORT frames are received from SERDES chains road, and are T4 at the time of data reach MPCP layer in actual conditions;It is possible thereby to
Calculation formula to RTT is:RTT=T2 '-T1 '+T4 '-T3 '.Wherein, all it is to calculate RTT at MPCP layers in actual conditions, from
Fig. 3 can be seen that the timestamp of record in formal transmission data on SERDES chains road, can there are one section of delays.
Here, it will realize that unique clock is synchronous between ONU and OLT by timestamp, OLT is by oneself local counter
Value be inserted into timestamp domain, and oneself local count value is inserted into timestamp domain by ONU;ONU is according to time of the OLT received
Stamp updates the counter of itself, and OLT calculates RTT according to the timestamp of the ONU received, and then OLT is adjusted each according to RTT
The mandate time of ONU.
To sum up, the computational methods for this timestamp that the embodiment of the present invention proposes, according to each MPCP recorded
Packet obtains actually used delay, without maximum delay being set to make in advance by the counting of internal counter during each module
For constant time lag.Traditional timestamp computational methods are compared to, this computational methods of the embodiment of the present invention are largely
On reduce processing delay, optimize internal processing time, and realization method flexible and convenient, also reduce some algorithms IP and mould
The realization difficulty of block processing.
To realize the above method, the embodiment of the present invention additionally provides the time stamp processing unit in a kind of EPON, such as Fig. 5 institutes
Show, which includes first processor, second processor;Wherein,
The first processor, for detecting each MPCP packet data streams by the delay of PCS and by MAC coding layers
The first time stamp carried in the MPCP frames that delay and acquisition OLT are issued, the MPCP frames include REPORT frames;
The second processor, for first time stamp, each MPCP packet data streams to be passed through to the delay of PCS
With the delayed addition Jing Guo MAC coding layers, the second timestamp is obtained, and second timestamp is being inserted to the REPORT frames
Afterwards, the REPORT frames are sent to the OLT.
Wherein, the first processor, is specifically used for:According to current MPCP packet data streams carry delayed data and
The local timing of current ONU calculates each MPCP packet data streams by locally being counted during each processing module in PCS and MAC coding layers
When difference, obtain the final delayed data by processing module in PCS and MAC coding layers, and pass through command character by the PCS
It is carried in counter with the final delayed data of processing module in MAC coding layers.
Here, the MPCP frames further include GATE frames, and the GATE frames include the conveying length of MPCP packets and start to pass
The information of defeated time;
The timestamp that GATE frames carry in the MPCP frames that the first time stamp is issued for the OLT.
Here, described device further includes:Third processor, for the MPCP issued in first processor acquisition OLT
After the first time stamp carried in frame, receive and grown with the matched GATE frames of ONU, the transmission for intercepting MPCP packets in the GATE frames
Degree and beginning transmission time, and stabbed according to the first time carried in the GATE frames, update the local timing of the ONU.
Described device further includes:Fourth processor, for the REPORT frames to be sent to institute in the second processor
After stating OLT, the RTT between OLT and ONU is calculated, and adjust each ONU's according to the RTT according to second timestamp
Authorize the time.
In practical applications, the first processor, second processor, third processor, fourth processor both can positions
In being realized in OLT device, it can also be located in ONU equipment and realize.
The embodiment of the present invention detects each MPCP packet data streams by the delay of PCS and the delay Jing Guo MAC coding layers;It obtains
The first time stamp carried in the MPCP frames that OLT issues is taken, the MPCP frames include REPORT frames;The first time is stabbed,
Each MPCP packet data streams pass through the delay of PCS and the delayed addition Jing Guo MAC coding layers, obtain the second timestamp, and
After second timestamp is inserted to the REPORT frames, the REPORT frames are sent to the OLT.It in this way, can spirit
The actual treatment delay of processing ONU living, avoid present in existing time stamp computational methods because constant time lag processing cause delay compared with
The problem of big, can not only effectively reduce processing delay, optimize internal processing time;When the embodiment of the present invention can also make calculating
The method of stamp is more accurate, synchronous with OLT's preferably to reach ONU.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, the shape of the embodiment in terms of hardware embodiment, software implementation or combination software and hardware can be used in the present invention
Formula.Moreover, the present invention can be used can use storage in one or more computers for wherein including computer usable program code
The form of computer program product that medium is implemented on (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be 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 generation being stored in the computer-readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention, it is all
All any modification, equivalent and improvement made within the spirit and principles in the present invention etc. should be included in the protection of the present invention
Within the scope of.
Claims (10)
1. a kind of time stamp processing method in Ethernet passive optical network EPON, which is characterized in that the method includes:
Each Multi-point Control Protocol MPCP packet data streams are detected by the delay of Physical Coding Sublayer PCS and pass through medium access control
The delay of MAC coding layers processed;
The first time stamp carried in the MPCP frames that optical line terminal OLT issues is obtained, the MPCP frames include REPORT frames;
By first time stamp, each MPCP packet data streams by the delay of PCS and the delay phase Jing Guo MAC coding layers
Add, obtain the second timestamp, and after second timestamp is inserted to the REPORT frames, the REPORT frames are sent to
The OLT.
2. according to the method described in claim 1, it is characterized in that, the MPCP frames further include GATE frames, in the GATE frames
The information of conveying length and beginning transmission time including MPCP packets;
The timestamp that GATE frames carry in the MPCP frames that the first time stamp is issued for the OLT.
3. according to the method described in claim 2, it is characterized in that, carried in the MPCP frames issued in the acquisition OLT
After one timestamp, the method further includes:
Reception and the matched GATE frames of optical network unit ONU intercept the conveying length of MPCP packets in the GATE frames and start to pass
The defeated time, and stabbed according to the first time carried in the GATE frames, update the local timing of the ONU.
4. the according to the method described in claim 1, it is characterized in that, each MPCP packet data streams of detection the prolonging by PCS
When and the delay Jing Guo MAC coding layers, including:
The local timing of delayed data and current ONU carried according to current MPCP packet data streams, calculates each MPCP packets number
The difference of local timing, obtains by PCS and MAC coding layers when passing through each processing module in PCS and MAC coding layers according to stream
The final delayed data of module is managed, and passes through command character by the final delayed data of processing module in PCS the and MAC coding layers
It carries in counter.
5. according to the method described in claim 1, it is characterized in that, it is described by the REPORT frames be sent to the OLT it
Afterwards, the method further includes:
Round-trip delay RTT between OLT and ONU is calculated, and adjust each ONU according to the RTT according to second timestamp
The mandate time.
6. the time stamp processing unit in a kind of EPON, which is characterized in that described device includes:First processor, second processor;
Wherein,
The first processor, for detecting each MPCP packet data streams by the delay of PCS and prolonging by MAC coding layers
When and obtain the first time stamp carried in the MPCP frames that issue of OLT, the MPCP frames include REPORT frames;
The second processor, for first time stamp, each MPCP packet data streams to be passed through to delay and the warp of PCS
The delayed addition of MAC coding layers is crossed, obtains the second timestamp, and after second timestamp is inserted to the REPORT frames,
The REPORT frames are sent to the OLT.
7. device according to claim 6, which is characterized in that the MPCP frames further include GATE frames, in the GATE frames
The information of conveying length and beginning transmission time including MPCP packets;
The timestamp that GATE frames carry in the MPCP frames that the first time stamp is issued for the OLT.
8. device according to claim 7, which is characterized in that described device further includes:Third processor, for described
After first processor obtains the first time stamp carried in the MPCP frames that OLT is issued, reception and the matched GATE frames of ONU are cut
It takes the conveying length of MPCP packets in the GATE frames and starts transmission time, and according to the first time carried in the GATE frames
Stamp, updates the local timing of the ONU.
9. device according to claim 6, which is characterized in that the first processor is specifically used for:According to current MPCP
The local timing of delayed data and current ONU that packet data streams carry, calculates each MPCP packet data streams by PCS and MAC
In coding layer during each processing module local timing difference, obtain the final delay by processing module in PCS and MAC coding layers
Information, and pass through command character and carry the final delayed data of processing module in PCS the and MAC coding layers in counter.
10. device according to claim 6, which is characterized in that described device further includes:Fourth processor, in institute
State after the REPORT frames are sent to the OLT by second processor, according to second timestamp calculate OLT and ONU it
Between RTT, and adjust according to the RTT mandate time of each ONU.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611266568.3A CN108259106A (en) | 2016-12-29 | 2016-12-29 | A kind of time stamp treating method and apparatus in Ethernet passive optical network |
PCT/CN2017/082284 WO2018120549A1 (en) | 2016-12-29 | 2017-04-27 | Method and device for processing time stamp in ethernet passive optical network, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611266568.3A CN108259106A (en) | 2016-12-29 | 2016-12-29 | A kind of time stamp treating method and apparatus in Ethernet passive optical network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108259106A true CN108259106A (en) | 2018-07-06 |
Family
ID=62706734
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611266568.3A Pending CN108259106A (en) | 2016-12-29 | 2016-12-29 | A kind of time stamp treating method and apparatus in Ethernet passive optical network |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108259106A (en) |
WO (1) | WO2018120549A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111245542A (en) * | 2018-11-28 | 2020-06-05 | 中兴通讯股份有限公司 | Method for acquiring time stamp and time synchronization system |
CN112583509A (en) * | 2019-09-30 | 2021-03-30 | 深圳市中兴微电子技术有限公司 | Method and device for acquiring time stamp of data stream, storage medium and electronic device |
CN115250243A (en) * | 2022-07-22 | 2022-10-28 | 中国电信股份有限公司 | Time delay data measuring method, device, system, electronic equipment and storage medium |
CN115396333A (en) * | 2022-08-24 | 2022-11-25 | 北京智芯微电子科技有限公司 | Visual chip, method and switch for communication network delay test |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101218792A (en) * | 2005-07-15 | 2008-07-09 | 泰克诺沃斯公司 | Method and apparatus for facilitating asymmetric line rates in an Ethernet passive optical network |
CN102377556A (en) * | 2010-08-19 | 2012-03-14 | 中兴通讯股份有限公司 | Method and system for realizing timestamp synchronization of active and standby optical line terminals |
CN102938676A (en) * | 2011-08-16 | 2013-02-20 | 中兴通讯股份有限公司 | Method, device and system for processing time synchronization |
CN105281860A (en) * | 2015-06-16 | 2016-01-27 | 南京智汇电力技术有限公司 | Data synchronous acquisition method based on Ethernet passive optical network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011124759A (en) * | 2009-12-10 | 2011-06-23 | Mitsubishi Electric Corp | Communication system, station-side communication device, and slave clock correction device |
-
2016
- 2016-12-29 CN CN201611266568.3A patent/CN108259106A/en active Pending
-
2017
- 2017-04-27 WO PCT/CN2017/082284 patent/WO2018120549A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101218792A (en) * | 2005-07-15 | 2008-07-09 | 泰克诺沃斯公司 | Method and apparatus for facilitating asymmetric line rates in an Ethernet passive optical network |
CN102377556A (en) * | 2010-08-19 | 2012-03-14 | 中兴通讯股份有限公司 | Method and system for realizing timestamp synchronization of active and standby optical line terminals |
CN102938676A (en) * | 2011-08-16 | 2013-02-20 | 中兴通讯股份有限公司 | Method, device and system for processing time synchronization |
CN105281860A (en) * | 2015-06-16 | 2016-01-27 | 南京智汇电力技术有限公司 | Data synchronous acquisition method based on Ethernet passive optical network |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111245542A (en) * | 2018-11-28 | 2020-06-05 | 中兴通讯股份有限公司 | Method for acquiring time stamp and time synchronization system |
CN111245542B (en) * | 2018-11-28 | 2022-01-28 | 中兴通讯股份有限公司 | Method for acquiring time stamp and time synchronization system |
CN112583509A (en) * | 2019-09-30 | 2021-03-30 | 深圳市中兴微电子技术有限公司 | Method and device for acquiring time stamp of data stream, storage medium and electronic device |
CN115250243A (en) * | 2022-07-22 | 2022-10-28 | 中国电信股份有限公司 | Time delay data measuring method, device, system, electronic equipment and storage medium |
CN115396333A (en) * | 2022-08-24 | 2022-11-25 | 北京智芯微电子科技有限公司 | Visual chip, method and switch for communication network delay test |
CN115396333B (en) * | 2022-08-24 | 2024-01-16 | 北京智芯微电子科技有限公司 | Visual chip, method and switch for communication network delay test |
Also Published As
Publication number | Publication date |
---|---|
WO2018120549A1 (en) | 2018-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1330077B1 (en) | Method for implementing various functions including access control in a gigabit ethernet passive optical network system | |
CN108259106A (en) | A kind of time stamp treating method and apparatus in Ethernet passive optical network | |
US7675945B2 (en) | Multi-component compatible data architecture | |
TWI455501B (en) | Methods and apparatus for extending mac control messages in epon | |
US8532094B2 (en) | Multi-network compatible data architecture | |
CN109787703B (en) | Timestamp correction method, clock synchronization method and system | |
US8325616B2 (en) | Method and system for determination and exchange of network timing information | |
US20130170507A1 (en) | Time synchronization for network testing equipment | |
EP2315397B1 (en) | Method and device for adapting and bearing multiple services | |
CN108880722B (en) | Clock synchronization method, system and optical transmission equipment | |
BRPI0112741B1 (en) | removal of multimedia delay variation in an asynchronous digital home network | |
CN104471883A (en) | Distributing clock synchronization information within an optical communications network | |
JP2006503480A (en) | System and method for synchronizing communication terminals in an asynchronous network using time stamps | |
US11108485B2 (en) | Clock synchronization method and apparatus | |
CN108155982A (en) | A kind of timestamp processing method and equipment | |
US20080247550A1 (en) | Pon System with Encryption Function and Encryption Method of Pon System | |
CN101815229A (en) | Method and device for service adaptation | |
WO2020063593A1 (en) | Time delay symmetry measurement method, apparatus and system | |
EP2068471A1 (en) | Method for emulating digital trunk TDM services over synchronous ethernet packets | |
CN108270749A (en) | A kind of register method and system of virtual optical network unit | |
US10985847B2 (en) | Security over optical transport network beyond 100G | |
US11171860B2 (en) | Method for obtaining target transmission route, related device, and system | |
Christodoulopoulos et al. | Demonstration of industrial-grade passive optical network | |
CN108429596B (en) | A kind of ethernet mac module realization device and implementation method for IEEE 1588v2 agreement | |
WO2014101644A1 (en) | Data transmission method, device, and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180706 |
|
RJ01 | Rejection of invention patent application after publication |