Summary of the invention
The object of the present invention is to provide a kind of on ethernet passive optical network the gateway device of transmitting telecommunication TDM service, solve problems of the prior art, under the situation of not destroying ethernet passive optical network basic structure, realized the transmission of telecommunication TDM service flexibly, easily.
For achieving the above object, design of the present invention is: the gateway that provides has adopted a kind of clock synchronizing method that calculates based on frequency ratio of novelty, and is easy, solved the clock synchronization issue of TDM service before and after transmission effectively.The equipment interface bandwidth is 100Mbps, and managing business is the telecommunications primary group business of 4 road independent clocks, and equipment is divided into local side apparatus and ustomer premises access equipment.
According to the foregoing invention design, the present invention adopts following technical scheme:
A kind of in ethernet passive optical network the gateway device of transmitting telecommunication TDM service, it is characterized in that comprising a local side TDM service gateway (10) and N user side TDM service gateway (13).
Above-mentioned local side TDM service gateway (10) connects an ethernet interface circuit (103) by a telecommunication TDM service interface circuit (101) through a service processing circuit (102) and constitutes.
In above-mentioned local side TDM service gateway (10), described telecommunication TDM service interface circuit (101) connects a DS21448 molded lines road interface unit (17) by four HR601610 type transformers (16) respectively by four RJ48C type joints (15), and described DS21448 molded lines road interface unit (17) connects a 2.048MHz clock oscillator (19) formation.
In above-mentioned local side TDM service gateway (10), described service processing circuit (102) connects an EP1C12Q240C6 type field programmable gate array by 5 TLC2932 type phase-locked loops (21) and is constituted.
In above-mentioned local side TDM service gateway (10), described ethernet interface circuit (103) connects a KS8995M type Ethernet switching chip (22) by a RJ45 type joint (24) through a HR604009 type transformer (23), and a 25MHz clock oscillator (19) the described KS8995M type Ethernet switching chip of connection (22) constitutes; Described RJ45 type joint (24) constitutes the Media Independent Interface in the described local side TDM service gateway (10).
Above-mentioned user side TDM service gateway (13) connects an ethernet interface circuit (133) by a telecommunication TDM service interface circuit (131) through a service processing circuit (132) and is constituted.
In above-mentioned user side TDM service gateway (13), described telecommunication TDM service interface circuit (131) connects a DS2148T molded lines road interface unit (27) by a RJ48C type joint (25) through a HR601610 type transformer (26), and a 2.048MHz clock oscillator (29) connection described DS2148T molded lines road interface unit (27) constitutes.
In above-mentioned user side TDM service gateway (13), described service processing circuit (132) connects an EP1C6Q240C6 type field programmable gate array (30) by a TLC2932 type phase-locked loop (31) and is constituted.
In above-mentioned user side TDM service gateway (13), described ethernet interface circuit (133) connects a KS8995M type Ethernet switching chip (32) by a RJ45 type joint (34) through a HR604009 type transformer (33), and a 25MHz clock oscillator (28) the described KS8995M type Ethernet switching chip of connection (32) constitutes; Described RJ45 type joint (34) constitutes the Media Independent Interface in the described user side TDM service gateway (13).
The present invention compared with prior art, have following conspicuous outstanding substantive distinguishing features and remarkable advantage: the invention provides local side TDM service gateway and user side TDM service gateway, be applied in the ethernet passive optical network, under the situation of not destroying ethernet passive optical network basic structure, can realize the transmission of telecommunication TDM service flexibly, easily.
Embodiment
Fig. 1 illustrates the ethernet passive optical network structured flowchart of prior art.An optical line terminal (3) is managed a plurality of optical network units (6), is connected with optical branching device (5) by ten to 20 kilometers optical fiber (4) between them.At downlink transmission direction, central office (1) is sent to optical line terminal (3) with the multichannel data business through cable (2), optical line terminal (3) with these data services through optical fiber (4) and optical branching device (5) broadcast transmission to each optical network unit (6), each optical network unit (6) receives only the data service that conforms to self address, and further is sent to user terminal (8) through cable (7).In the uplink direction, each user terminal (8) sends data service through cable (7) to affiliated optical network unit (6), each optical network unit (6) sends separately data service through optical fiber (4) and optical branching device (5) to optical line terminal (3) according to the transmission time slot that is assigned to, and last optical line terminal (3) is sent to central office (1) with all data services through cable (2) again.Here it is basic ethernet passive optical network working mechanism, it only is used to realize the data traffic transmission between central office (1) and the user terminal (8), considers and the combining of other business.
Below in conjunction with accompanying drawing, one embodiment of the present of invention are elaborated:
Fig. 2 is the system global structure block diagram of the gateway device of present embodiment transmitting telecommunication TDM service in ethernet passive optical network.Compared to Figure 1, present embodiment has mainly increased local side TDM service gateway (10) and user side TDM service gateway (13).At downlink transmission direction, central office (1) is sent to local side TDM service gateway (10) with the time division multiplexed multiplexing service through cable (9).Local side TDM service gateway (10) is encapsulated into it in ethernet frame that is applicable to the ethernet passive optical network transmission, and is sent to optical line terminal (3) by the Media Independent Interface in the local side TDM service gateway (10) through cable (11).Optical line terminal (3) passes through optical fiber (4) broadcast transmission to each optical network unit (6) with the multichannel data business from the central office through optical branching device (5) with the ethernet frame that these are encapsulating TDM service, should guarantee the priority of TDM service in the process of transmitting as far as possible.Each optical network unit (6) receives only data service that conforms to self address and the ethernet frame that is encapsulating TDM service, data service wherein directly is sent to user terminal (8) through cable (7), and the ethernet frame that is encapsulating TDM service then is sent to user side TDM service gateway (13) through cable (12) by the Media Independent Interface in the user side TDM service gateway (13).User side TDM service gateway (13) extracts the TDM service from the central office from the ethernet frame that receives, and is sent to user terminal (8) through cable (14).In the uplink direction, each user terminal (8) sends data service and TDM service to affiliated optical network unit (6) and user side TDM service gateway (13) respectively.User side TDM service gateway (13) will be encapsulated into from the TDM service of user's terminal (8) in the ethernet frame that is applicable to the ethernet passive optical network transmission, and by the optical network unit (6) of the Media Independent Interface in the user side TDM service gateway (13) under cable (12) is sent to.Each optical network unit (6) to optical line terminal (3) transmission data service separately and the ethernet frame that is encapsulating TDM service, should guarantee the priority of TDM service according to the transmission time slot that is assigned to as far as possible in the process of transmitting.Optical line terminal (3) directly is sent to central office (1) by cable (2) with all data services, and all ethernet frames that encapsulating TDM service also are sent to local side TDM service gateway (10) by the Media Independent Interface in the local side TDM service gateway (10) through cable (11).Local side TDM service gateway (10) extracts the TDM service from each user terminal from the ethernet frame that receives, and is sent to central office (1) through cable (9).Like this, realized the application of transmission TDM service in ethernet passive optical network by increasing local side TDM service gateway (10) with user side TDM service gateway (13), be specifically designed to circuit and the cost of equipment that transmits TDM service at a distance of laying in addition between ten to 20 kilometers central office (1) and the user terminal (8) thereby saved greatly.
Fig. 3 and Fig. 4 are the reference circuit designs of present embodiment gateway device of transmitting telecommunication TDM service in ethernet passive optical network.
Fig. 3 is a local side TDM service gateway circuit schematic diagram in the gateway device of present embodiment transmitting telecommunication TDM service in ethernet passive optical network.This circuit possesses the ability of handling 4 road independent clock primary group TDM services.RJ48C is used for the interface module that links to each other with telecommunications stored-program control exchange in the central office.DS21448 is 4 road primary group TDM service line interface units of being produced by MAXIM company, and its work clock is provided by a 2.048MHz clock oscillator.Link to each other by the HR601610 type transformer of producing by Chinese benevolence company between DS21448 and the RJ48C.RJ45 is used for the interface module that links to each other with optical line terminal by Media Independent Interface.KS8995M is the Ethernet switching chip of being produced by MICREL company, and its work clock is provided by a 25MHz clock oscillator.Link to each other by the HR604009 type transformer of producing by Chinese benevolence company between KS8995M and the RJ45.EP1C12Q240C6 is a field programmable gate array of being produced by ALTERA company with 12000 logical blocks, realizes encapsulation and leaching process between 4 road primary group TDM services and the ethernet frame by the Programming Design to it.The clock signal that EP1C12Q240C6 also need be provided by 2.048MHz clock oscillator and 25MHz clock oscillator in the course of the work.In addition, in order to solve the problem of clock synchronization, EP1C12Q240C6 also needs to connect 5 TLC2932 type phase-locked loops, and this phase-locked loop is produced by TI company.
Fig. 4 is a user side TDM service gateway circuit schematic diagram in the gateway device of present embodiment transmitting telecommunication TDM service in ethernet passive optical network.This circuit possesses the ability of handling single channel primary group TDM service.RJ48C is used for the interface module that links to each other with telecommunications stored-program control exchange in the central office.DS2148T is the single channel primary group TDM service line interface unit of being produced by MAXIM company, and its work clock is provided by a 2.048MHz clock oscillator.Link to each other by the HR601610 type transformer of producing by Chinese benevolence company between DS2148T and the RJ48C.RJ45 is used for the interface module that links to each other with optical line terminal by Media Independent Interface.KS8995M is the Ethernet switching chip of being produced by MICREL company, and its work clock is provided by a 25MHz clock oscillator.Link to each other by the HR604009 type transformer of producing by Chinese benevolence company between KS8995M and the RJ45.EP1C6Q240C6 is a field programmable gate array of being produced by ALTERA company with 6000 logical blocks, realizes encapsulation and leaching process between single channel primary group TDM service and the ethernet frame by the Programming Design to it.The clock signal that EP1C6Q240C6 also need be provided by the 25MHz clock oscillator in the course of the work.In addition, in order to solve the problem of clock synchronization, EP1C6Q240C6 also needs to connect a TLC2932 type phase-locked loop, and this phase-locked loop is produced by TI company.
The first half of Fig. 5 and the latter half of Fig. 6 relate to downlink data transmission, the processing procedure of present embodiment gateway device of transmitting telecommunication TDM service in ethernet passive optical network.
Fig. 5 is an EP1C12Q240C6 type on-site programmable gate array internal module connection diagram in the local side TDM service gateway.All input/output end port titles that mark among this figure are all consistent with the port title of EP1C12Q240C6 type field programmable gate array (20) among Fig. 3.At downlink transmission direction, RPOS1..4 (being RPOS1, RPOS2, RPOS3, RPOS4), RNEG1..4 (being RNEG1, RNEG2, RNEG3, RNEG4), with RCLK1..4 (being RCLK1, RCLK2, RCLK3, RCLK4) be 4 road primary group TDM service signals from DS21448 molded lines road interface unit (17), its code structure is High Density Bipolar 3 (a HDB3 sign indicating number).Wherein, RPOS1..4 represents 4 road positive signals, and RNEG1..4 represents 4 tunnel negative polarity signals, and RCLK1..4 is the 4 tunnel clock signals corresponding with them, and nominal rate is 2.048MHz.Local side HDB3/NRZ sign indicating number type modular converter (35) is used for these High Density Bipolar 3s (HDB3 sign indicating number) are converted to NRZ (NRZ sign indicating number), with convenient follow-up digital processing process.Local side frame synchronization locating module (36) is used for detecting the synchronized positioning bit in the TDM service code stream, to guarantee the frame synchronization in processing procedure.The serial/parallel modular converter of local side (37) is used for 4 road serial data streams are converted to 4 channel parallel datas stream, and serial/parallel ratio is 1: 4, and this is for consistent with the desired 4 bit bit wides of hundred megabit ethernet standards.Because data stream has been carried out 1: 4 serial/parallel conversion, therefore its speed is reduced to 1/4th original (being 512KHz), and original clock signal RCLK1..4 being inputed to local side 4 frequency division modules (44) is original 1/4th clock signal to obtain speed.Meanwhile, from the OSC2M signal of outside 2.048MHz clock oscillator (19) as realizing whole ethernet passive optical network the whole network synchronization basic standard clock signal, with its input local side 256 frequency division modules (47), obtaining clock frequency is the clock signal clk 8KA of 8KHz, this signal is exported to one of the phase discriminator input port FIN-A of outside TLC2932 type phase-locked loop (21), the output VCO OUT of voltage controlled oscillator then feeds back to EP1C12Q240C6 type field programmable gate array (20) in the TLC2932 type phase-locked loop (21), port name is called CLK25M, and input to local side 3125 frequency division modules (48), again gained signal CLK8KB is exported to another phase discriminator input port FIN-B of outside TLC2932 type phase-locked loop (21).After TLC2932 type phase-locked loop (21) has reached the phase locking state, the output VCO OUT of its voltage controlled oscillator, it is the input of EP1C12Q240C6 type field programmable gate array (20) port CLK25M, clock signal that stable frequency is 25MHz exactly, this signal will be as a receipts/clock of local side TDM service gateway (10), further the synchronized relation by optical line terminal in the ethernet passive optical network (3) and each optical network unit (6) is passed to each user side TDM service gateway (13) again, as their a receipts/clock, thereby realized the clock synchronization of local side TDM service gateway (10) with each user side TDM service gateway (13).In addition, OSC2M and RCLK1..4 input to local side 1024 frequency division modules (46) respectively, obtain a frequency separately and be original 1/1024 clock signal.Because OSC2M and RCLK1..4 are that nominal value is the clock signal of 2.048MHz, therefore through after 1024 frequency divisions, the frequency nominal value of gained clock signal is 2KHz.But because OSC2M and RCLK1..4 be respectively from different clock sources, so the clock signal of these 2KHz exists error to a certain degree each other, and their error condition will be reflected by ensuing local side frequency measurement module (49).Need a high-frequency count clock source during local side frequency measurement module (49) work, this clock is by obtaining through inner local side digital phase-locked loop (45) frequency multiplication of EP1C12Q240C6 type field programmable gate array (20) the clock signal OSC25M from outside 25MHz clock oscillator (18), the frequency multiplication ratio is 1: 4, and therefore the high-frequency count clock signal frequency value that obtains is 100MHz.The course of work of local side frequency measurement module (49) just is to use the high-frequency count clock source of this 100MHz respectively to before sampling through the OSC2M and the RCLK1..4 clock signal of 1024 frequency divisions, measure the umber of pulse that 100MHz high-frequency count clock is experienced respectively between the adjacent rising edge clock of each 2KHz clock signal, thereby obtain measuring X as a result
Norm, X
1, X
2, X
3(X
NormThe frequency measurement result of expression local side reference clock OSC2M, X
1, X
2, X
3, X
4The frequency measurement result who represents local side TDM service clock RCLK1, RCLK2, RCLK3, RCLK4 respectively).Before the 4 channel parallel data streams that obtain through the serial/parallel modular converter of local side (37) inputed to local side and sent buffering area (38), it adopts the working method of asynchronous clock, its input clock is the TDM service clock signal RCLK1..4 (512KHz) through 4 frequency divisions, and the output clock is exactly the 25MHz clock signal that is obtained through outside TLC2932 type phase-locked loop (21) frequency multiplication by reference clock OSC2M.Then, local side sending module (39) encapsulates it respectively according to the purpose user side TDM service gateway (13) that each road TDM service will arrive, and adds the metering that obtained by local side frequency measurement module (49) X as a result in the encapsulation process
Norm, X
1, X
2, X
3, X
4Wherein, the frequency measurement of local side reference clock OSC2M X as a result
NormShould be encapsulated in all ethernet frames, and the frequency measurement of the end TDM service clock RCLK1..4 of each road bureau X as a result
1..4Then be encapsulated in each self-corresponding ethernet frame.At last, local side sending module (39) exports these ethernet frames to KS8995M type Ethernet switching chip (22).TXD3..0 (being TXD3, TXD2, TXD1, TXD0) is the transmission data-signal of 4 bit bit wides, and TXEN sends enable signal, and TXCLK is the tranmitting data register signal.
Fig. 6 is an EP1C6Q240C6 type on-site programmable gate array internal module connection diagram in the user side TDM service gateway.All input/output end port titles that mark among this figure are all consistent with the port title of EP1C6Q240C6 type field programmable gate array (30) among Fig. 4.At downlink transmission direction, RXD3..0 (being RXD3, RXD2, RXD1, RXD0), RXEN comes from KS8995M type Ethernet switching chip (32) with RXCLK.Wherein, RXD3..0 is the reception data-signal of 4 bit bit wides, and RXEN receives enable signal, and RXCLK is the receive clock signal, and this clock signal is synchronized with the tranmitting data register signal TXCLK from local side TDM service gateway (10).User side receiver module (57) extracts from the TDM service signal of local side and relevant local side reference clock frequency measurement X as a result by these signal ports
NormMeasure X as a result with local side TDM service clock frequency
1(or X
2, X
3, X
4).In order to realize the clock synchronization of local side and user side TDM service, receive clock signal RXCLK need input to user side 12500 frequency division modules (65), is the clock signal of 2KHz thereby obtain one with frequency through the local side reference clock OSC2M synchronised behind local side 1024 frequency division modules (46) frequency divisions.This clock signal inputs to a user side frequency measurement module (64) and obtains measuring the result, is expressed as Y
Norm1(or Y
Norm2, Y
Norm3, Y
Norm4).The working mechanism of the user side frequency measurement module (64) here is identical with the local side frequency measurement module (49) that is positioned at local side TDM service gateway (10), also by to from the clock signal OSC25M of outside 25MHz clock oscillator (28) through inner user side digital phase-locked loop (62) 4 frequencys multiplication of EP1C6Q240C6 type field programmable gate array (30) the high-frequency count clock signal that to obtain a frequency values be 100MHz, the umber of pulse that is experienced between the adjacent rising edge clock of each 2KHz clock signal by metering 100MHz high-frequency count clock obtains measuring Y as a result then
Norm1(or Y
Norm2, Y
Norm3, Y
Norm4).Then, with the X that receives
Norm, X
1(or X
2, X
3, X
4), the Y that obtains with local metering
Norm1(or Y
Norm2, Y
Norm3, Y
Norm4) input to user side frequency ratio computing module (66) together.Computing formula is: Y
1=Y
Norm1* X
1/ X
Norm(or Y
2=Y
Norm2* X
2/ X
Norm, Y
3=Y
Norm3* X
3/ X
Norm, Y
4=Y
Norm4* X
4/ X
Norm).The result of calculation Y that obtains according to this formula
1(or Y
2, Y
3, Y
4) the frequency measurement result of the local side TDM service clock signal RCLK1 that obtains of the high-frequency count clock signal that is exactly a 100MHz of use the 1st (or the 2nd, the 3rd, 4th) individual user side TDM service gateway (13) in of expression (or RCLK2, RCLK3, RCLK4).Then, with Y
1(or Y
2, Y
3, Y
4) input to a user side digital controlled oscillator (67) and recover local side TDM service clock signal RCLK1 (or RCLK2, RCLK3, RCLK4) through 1024 frequency divisions.This user side digital controlled oscillator (67) uses the 100MHz high-frequency count clock identical with user side frequency measurement module (64), and working mechanism is by the every counting of 100MHz high-frequency count clock Y
1(or Y
2, Y
3, Y
4) pulse signal of individual cycle generation, obtaining nominal frequency is the clock signal clk 2KA of 2KHz.This signal is exported to one of the phase discriminator input port FIN-A of outside TLC2932 type phase-locked loop (31), the output VCO OUT of voltage controlled oscillator then feeds back to EP1C6Q240C6 type field programmable gate array (30) in the TLC2932 type phase-locked loop (31), port name is called CLK2M, and input to user side 1024 frequency division modules (63), again gained signal CLK2KB is exported to another phase discriminator input port FIN-B of outside TLC2932 type phase-locked loop (31).After TLC2932 type phase-locked loop (31) has reached the phase locking state, the output VCO OUT of its voltage controlled oscillator, it is the input of EP1C6Q240C6 type field programmable gate array (30) port CLK2M, clock signal that stable frequency is 2.048MHz exactly, this signal and local side TDM service clock signal RCLK1 (or RCLK2, RCLK3, RCLK4) synchronously will be as the tranmitting data register signal TCLK of subsequent user end TDM service.Meanwhile, user side receiver module (57) will extract the local side TDM service signal that obtains from network side and input to user side reception buffering area (58), it adopts the working method of asynchronous clock, its input clock is receive clock signal RXCLK, and the output clock is the tranmitting data register signal TCLK through the user side TDM service of 4 frequency divisions.Then, the parallel/serial modular converter of user side (59) receives sense data the buffering area (58) from user side, and its parallel data by 4 bit bit wides is converted to serial data, inputs to user side NRZ/HDB3 sign indicating number type modular converter (60).User side NRZ/HDB3 sign indicating number type modular converter (60) is used for the TDM service data that current sign indicating number type is a NRZ (NRZ sign indicating number) are converted to the High Density Bipolar 3 (HDB3 sign indicating number) that is applicable to the circuit transmission, TPOS is exactly that positive polarity sends signal, TNEG is exactly that negative polarity sends signal, and TCLK is the tranmitting data register signal corresponding with it.
So far, the complete downlink data transmission of the gateway device of present embodiment transmitting telecommunication TDM service in ethernet passive optical network, processing procedure introduction finish.
The first half of Fig. 6 and the latter half of Fig. 5 relate to transmitting uplink data, the processing procedure of present embodiment gateway device of transmitting telecommunication TDM service in ethernet passive optical network.
Fig. 6 is an EP1C6Q240C6 type on-site programmable gate array internal module connection diagram in the user side TDM service gateway.All input/output end port titles that mark among this figure are all consistent with the port title of EP1C6Q240C6 type field programmable gate array (30) among Fig. 4.In the uplink direction, RPOS, RNEG, with RCLK be primary group TDM service signal from DS2148T molded lines road interface unit (27), its code structure is High Density Bipolar 3 (a HDB3 sign indicating number).Wherein, RPOS represents positive signal, and RNEG represents the negative polarity signal, and RCLK is the clock signal corresponding with it, and nominal rate is 2.048MHz.User side HDB3/NRZ sign indicating number type modular converter (52) is used for High Density Bipolar 3 (HDB3 sign indicating number) is converted to NRZ (NRZ sign indicating number), with convenient follow-up digital processing process.User side frame synchronization locating module (53) is used for detecting the synchronized positioning bit in the TDM service code stream, to guarantee the frame synchronization in processing procedure.The serial/parallel modular converter of user side (54) is used for serial data stream is converted to parallel data stream, and serial/parallel ratio is 1: 4, and this is for consistent with the desired 4 bit bit wides of hundred megabit ethernet standards.Because data stream has been carried out 1: 4 serial/parallel conversion, its speed is reduced to 1/4th original (being 512KHz), and therefore original clock signal RCLK being inputed to user side 4 frequency division modules (61) is original 1/4th clock signal to obtain speed.Meanwhile, RCLK is inputed to user side 1024 frequency division modules (63), obtain a frequency and be original 1/1024 clock signal.Because RCLK is that nominal value is the clock signal of 2.048MHz, therefore through after 1024 frequency divisions, the frequency nominal value of gained clock signal is 2KHz.In addition, receive clock signal RXCLK being inputed to user side 12500 frequency division modules (65), is the clock signal of 2KHz thereby obtain one with frequency through the local side reference clock OSC2M synchronised behind local side 1024 frequency division modules (46) frequency divisions.But because RCLK and OSC2M be respectively from different clock sources, so the clock signal of these two 2KHz exists error to a certain degree each other, and their error condition will be reflected by ensuing user side frequency measurement module (64).Need a high-frequency count clock source during user side frequency measurement module (64) work, this clock is by obtaining through inner user side digital phase-locked loop (62) frequency multiplication of EP1C6Q240C6 type field programmable gate array (30) the clock signal OSC25M from outside 25MHz clock oscillator (28), the frequency multiplication ratio is 1: 4, and therefore the high-frequency count clock signal frequency value that obtains is 100MHz.The high-frequency count clock source that the course of work of user side frequency measurement module (64) just is to use this 100MHz respectively to before through the RXCLK of 12500 frequency divisions with sample through the RCLK of 1024 frequency divisions clock signal, measure the umber of pulse that 100MHz high-frequency count clock is experienced respectively between the adjacent rising edge clock of each 2KHz clock signal, thereby obtain measuring Y as a result
Norm1(or Y
Norm2, Y
Norm3, Y
Norm4) and Y
1(or Y
2, Y
3, Y
4).Wherein, Y
Norm1(or Y
Norm2, Y
Norm3, Y
Norm4) the frequency measurement result of expression local side reference clock OSC2M in the individual user side TDM service gateway in the 1st (or the 2nd, the 3rd, 4th), Y
1(or Y
2, Y
3, Y
4) the frequency measurement result of expression user side TDM service clock RCLK in the individual user side TDM service gateway in the 1st (or the 2nd, the 3rd, 4th).Before the parallel data stream that obtains through the serial/parallel modular converter of user side (54) inputed to user side and sent buffering area (55), it adopts the working method of asynchronous clock, its input clock is the TDM service clock signal RCLK (512KHz) through 4 frequency divisions, and the output clock comes from the receive clock signal RXCLK of KS8995M type Ethernet switching chip (32) exactly.Then, user side sending module (56) encapsulates TDM service, adds the metering that obtained by user side frequency measurement module (64) Y as a result in the encapsulation process
Norm1(or Y
Norm2, Y
Norm3, Y
Norm4) and Y
1(or Y
2, Y
3, Y
4).At last, user side sending module (56) exports ethernet frame to KS8995M type Ethernet switching chip (32).TXD3..0 (being TXD3, TXD2, TXD1, TXD0) is the transmission data-signal of 4 bit bit wides, and TXEN sends enable signal, and TXCLK is the tranmitting data register signal.
Fig. 5 is an EP1C12Q240C6 type on-site programmable gate array internal module connection diagram in the local side TDM service gateway.All input/output end port titles that mark among this figure are all consistent with the port title of EP1C12Q240C6 type field programmable gate array (20) among Fig. 3.In the uplink direction, RXD3..0 (being RXD3, RXD2, RXD1, RXD0), RXEN comes from KS8995M type Ethernet switching chip (22) with RXCLK.Wherein, RXD3..0 is the reception data-signal of 4 bit bit wides, and RXEN receives enable signal, and RXCLK is the receive clock signal, and the tranmitting data register signal TXCLK of this clock signal and local side TDM service gateway (10) is same signal.Local side receiver module (40) extracts from 4 road TDM service signals of user side and relevant 4 user side reference clock frequency measurements Y as a result by these signal ports
Norm1, Y
Norm2, Y
Norm3, Y
Norm4Measure Y as a result with 4 user side TDM service clock frequencies
1, Y
2, Y
3, Y
4In order to realize the clock synchronization of user side and local side TDM service, the frequency measurement that needs described local side reference clock OSC2M above is X as a result
NormWith the Y that receives
Norm1, Y
Norm2, Y
Norm3, Y
Norm4And Y
1, Y
2, Y
3, Y
4Input to local side frequency ratio computing module (50) together.Computing formula is: X
1=X
Norm* Y
1/ Y
Norm1, X
2=X
Norm* Y
2/ Y
Norm2, X
3=X
Norm* Y
3/ Y
Norm3, X
4=X
Norm* Y
4/ Y
Norm4The result of calculation X that obtains according to these formula
1, X
2, X
3, X
4The frequency measurement result who in local side TDM service gateway (10), uses the high-frequency count clock signal of a 100MHz to obtain from 4 road TDM service clock signals of the the the 1st, the 2nd, the 3rd, the 4th user side TDM service gateway (13) exactly of expression.Then, with X
1, X
2, X
3, X
4Input to the user side TDM service clock signal of local side digital controlled oscillator (51) recovery respectively through 1024 frequency divisions.This local side digital controlled oscillator (51) uses the 100MHz high-frequency count clock identical with local side frequency measurement module (49), and working mechanism is by the every counting of 100MHz high-frequency count clock X
1, X
2, X
3, X
4Individual cycle produces a pulse signal, the clock signal clk 2KA1..4 (being CLK2KA1, CLK2KA2, CLK2KA3, CLK2KA4) that to obtain 4 nominal frequencies be 2KHz.These signals are exported to one of the phase discriminator input port FIN-A of 4 outside TLC2932 type phase-locked loops (21) respectively, the output VCO OUT of voltage controlled oscillator then feeds back to EP1C12Q240C6 type field programmable gate array (20) in the TLC2932 type phase-locked loop (21), it (is CLK2M1 that port name is called CLK2M1..4, CLK2M2, CLK2M3, CLK2M4), and input to local side 1024 frequency division modules (46) respectively, (be CLK2KB1 with gained signal CLK2KB1..4 again, CLK2KB2, CLK2KB3, CLK2KB4) export another phase discriminator input port FIN-B of 4 outside TLC2932 type phase-locked loops (21) respectively to.After 4 TLC2932 type phase-locked loops (21) have reached the phase locking state, the output VCO OUT of its voltage controlled oscillator, it is the input of EP1C12Q240C6 type field programmable gate array (20) port CLK2KB1..4,4 clock signals that stable frequency is 2.048MHz exactly, this signal and user side TDM service clock signal are synchronous, will be as the tranmitting data register signal TCLK1.4 (being TCLK1, TCLK2, TCLK3, TCLK4) of follow-up local side TDM service.Meanwhile, local side receiver module (40) will extract 4 road user side TDM service signals that obtain from network side and input to local side reception buffering area (41) respectively, it adopts the working method of asynchronous clock, its input clock is receive clock signal RXCLK, and the output clock is the tranmitting data register signal TCLK1..4 through the user side TDM service of 4 frequency divisions.Then, the parallel/serial modular converter of local side (42) receives sense data the buffering area (41) from local side, and its parallel data by 4 bit bit wides is converted to serial data, inputs to local side NRZ/HDB3 sign indicating number type modular converter (43).Local side NRZ/HDB3 sign indicating number type modular converter (43) is used for the TDM service data that current sign indicating number type is a NRZ (NRZ sign indicating number) are converted to the High Density Bipolar 3 (HDB3 sign indicating number) that is applicable to the circuit transmission, TPOS1..4 (being TPOS1, TPOS2, TPOS3, TPOS4) is exactly that 4 tunnel positive polaritys send signal, TNEG1..4 (being TNEG1, TNEG2, TNEG3, TNEG4) is exactly that 4 tunnel negative polarity send signal, and TCLK1..4 (being TCLK1, TCLK2, TCLK3, TCLK4) is No. 4 tranmitting data register signals corresponding with them.
So far, the complete transmitting uplink data of the gateway device of present embodiment transmitting telecommunication TDM service in ethernet passive optical network, processing procedure introduction finish.
Above-mentioned introduction be the gateway device of supporting that the telecommunications primary group TDM service of 4 road independent clocks transmits in ethernet passive optical network, also can be by increasing the quantity of RJ48C type joint, HR601610 type transformer, DS21448 molded lines road interface unit and TLC2932 type phase-locked loop, and select for use more jumbo field programmable gate array to realize 8 the tunnel, the 16 road or the more transmission of time division multiplexed multiplexing service.