The method of automatic configuration and system of pattern are transmitted based on physical chip
Technical field
The invention belongs to technical field of communication network, is related to a kind of method of automatic configuration and system, more particularly to one kind
The method of automatic configuration and system of pattern are transmitted based on physical chip.
Background technology
Ethernet has 25 years history till now from being born.Since cost is low, reliability is high, installation and maintenance are relatively simple
It is single, therefore be popular.Ethernet almost assume responsibility for communication service all on Internet at present.With technology development and
The raising of network speed, the development and application of 10G Ethernets or ten thousand megabits of Ethernet (10GE) technologies are increasingly by industry weight
Depending on.There are huge difference, particularly 10G Ethernets between 10G ethernet standards and the ethernet standard of early stage only to use optical fiber,
And only run in a full-duplex mode, i.e., 10G Ethernets will not be used collision detection protocol (CSMA/CD).Due to 10G with
Too net remains ethernet standard, and existing various ethernet standards can be easily transplanted in the new standard in future,
Therefore existing network infrastructure investment will not be wasted.
Ten thousand mbit ethernets (10Gigaibt Etherner, 10GE) grow up on the basis of gigabit Ethernet,
Its technical standard is IEEE802.3ae, wherein, 10BASE-R physical layer coding sub-layers realize ten thousand mbit ethernets, 16 bit interface
With the conversion of 10Gb Media Independent Interfaces, 10Gb/s high speed serialization Ethernet datas are converted into low speed data and higher sublayer
Interface, in order to the transmission and processing of data.
10GE exchange chips can support 12 GE mouthfuls, a 10GE interface, and can pass through Uplink (uplink) bus
On be linked to cross bar (cross-connect) chip, meet the needs of higher performance system.Chip passes through the same host CPU of cpu i/f
It is connected, supports CPU with carrying out packet-switching between chip.Internal data buffer mode is used in the chips, and internal data is delayed
Deposit and use SSRAM (static synchronous memory).Chip provides 1 full duplex, ten thousand megabits of ethernet ports, passes through XGMII (10,000,000,000
Position ethernet medium is independent) interface same PHY (physical layer) chip is connected.Chip provides 12 dual rate mac controllers to prop up
Hold 100Mb/s and 1000Mb/s Ethernet interfaces.
And currently in the equipment of OLT racks, 10,000,000,000 phy interfaces of 10GE upper united dishs acquiescence be 10-GE transmission mould
Formula, when the transmission mode of 1-GE to be used, it is necessary to carry out human configuration to 10,000,000,000 PHY chips;For example, working as has 10GE or 1GE
, need to be to the transmission modes of 10,000,000,000 physical chips in OLT chassis equipments into pedestrian when on optical module, or the connection of 1000M electricity module
Work configures, and it is neither convenient and very troublesome so to operate, and is only capable of transmitting using a kind of if user does not know about configuration
Pattern carries out the transmission of data.
Thus, a kind of method of automatic configuration and system that pattern is transmitted based on physical chip how is provided, with solution
It is certainly of the prior art the transmission mode of 10,000,000,000 physical chips can not be automatically configured in OLT chassis equipments lack
Fall into, it is real to have become practitioner in the art's technical problem urgently to be resolved hurrily.
The content of the invention
In view of the foregoing deficiencies of prior art, carried out it is an object of the invention to provide one kind based on physical chip
The method of automatic configuration and system of transmission mode, for solve in the prior art can not be to 10,000,000,000 physical layers in OLT chassis equipments
The problem of transmission mode of chip is automatically configured.
In order to achieve the above objects and other related objects, it is a kind of that automatically configuring for pattern is transmitted based on physical chip
Method, the physical chip obtain network mode by multiple multiple interface modules being connected in current network, wherein, often
Two interface modules are corresponding with a physical chip, the method for automatic configuration bag that pattern is transmitted based on physical chip
Include:Step 1, monitors whether to turn to low level signal in place in the presence of by high level change, if not, then it represents that the multiple interface
Module is in extraction state, continues to monitor;If, then it represents that at least one interface module, which is in, in the multiple interface module inserts
Enter state, and continue to execute in next step;Step 2, according to by high level become turn to low level signal in place, seek take in the presence of by
The interface module that high level change turns to low level signal in place is which of the multiple interface module interface module;Institute
Stating interface module has preset address information;Step 3, sends and reading turns to low level letter in place in the presence of by high level change
Number interface module preset address information;Step 4, it is low level in the presence of being turned to by high level change to judge whether that reading is finished
The preset address information of the interface module of signal in place, if it is not, then continuing to read, finishes until reading;If so, then according to
The preset address information acquisition mode of interface module judges data value;Step 5, sentences according to the mode decision data value got
Break and the transmission mode of the interface module;It will prestore physical chip corresponding with the interface module according to correct sequential
Preset address information and transmission mode configuration data write in the physical chip so that the transmission of the physical chip
Pattern is consistent with current network pattern;The transmission mode of wherein described interface module is identical with current network pattern.
Preferably, the transmission mode of the physical chip includes 10GE transmission modes and 1GE transmission modes.
Preferably, it is described to there is the preset address information for becoming the interface module for turning to low level signal in place by high level
Including according to the physical address of the interface module to sort successively from big to small, the physical address of IC bus and interface mould
The register address of register in block.
Preferably, the mode decision data value turns to connecing for low level signal in place to be described in the presence of by high level change
Rate value in mouth mold block internal transmission rate register.
Preferably, the preset address information of the physical chip corresponding with the interface module to prestore be according to from greatly to
It is the small physical address for the physical chip corresponding with the interface module that sequence prestores successively, prestoring with the interface module
The physical address in region residing for register and the physical layer corresponding with the interface module to prestore in corresponding physical chip
The register address of register in chip.
Preferably, in the step 5, the transmission mode configuration data is written to corresponding with the interface module
Physical chip in register in.
Another aspect of the present invention also provides a kind of automatic configuration system that pattern is transmitted based on physical chip, described
Physical chip obtains network mode by multiple multiple interface modules being connected in current network, wherein, each two interface
Module is corresponding with a physical chip, and the automatic configuration system that pattern is transmitted based on physical chip is included:With institute
The first control module of multiple interface module connections is stated, low electricity is turned to for monitoring to whether there is to be become by high level in interface module
Flat signal in place, if not, then it represents that the multiple interface module is in extraction state, continues to monitor;If, then it represents that it is described
At least one interface module is in insert state in multiple interface modules, and low level letter in place is turned to according to being become by high level
Number, seek that to take in the presence of becoming the interface module that turns to low level signal in place by high level to be in the multiple interface module be which
A interface module;Send the preset address information for existing and becoming the interface module for turning to low level signal in place by high level;Its
In, first control module prestores the preset address information of the interface module, and thing corresponding with the interface module
Manage the preset address information of layer chip;The second control module being connected with the multiple interface module and the first control module, is used
In reading the preset address information for existing and becoming the interface module for turning to low level signal in place by high level, judge whether
The address information for finishing the interface module is read, if it is not, then continuing to read, is finished until reading;If so, then connect according to
The address information obtaining mode of mouth mold block judges data value and the mode decision data value got is fed back to first control
Molding block;Wherein, first control module is additionally operable to judge the interface mould according to the mode decision data value got
The transmission mode of block;The transmission mode of the interface module is identical with current network pattern;It is connected with second control module
The 3rd control module, for according to correct sequential by the default of the physical chip corresponding with the interface module to prestore
Location information and transmission mode configuration data are write in the physical chip so that the transmission mode of the physical chip is with working as
Preceding network mode is consistent;;Wherein, the physical chip is connected with the 3rd control module.
Preferably, first control module is master controller, and the second control module and the 3rd control module are from control
Device, second control module are I2C controllers, and the 3rd control module is MDC/MDIO controllers.
Preferably, the physical chip is transmitted the automatic configuration system of pattern and further includes:For connecting described
Two control modules and the multiple interface module, meet the IC bus of I2C agreements;The IC bus includes
SDA line and SCL lines;For by the preset address information of the physical chip corresponding with the interface module to prestore and transmission
Mode configuration data is transmitted to the physical chip according to correct sequential, and the serial communication for meeting MDC/MDIO bus protocols is total
Line;The serial communication bus includes MDC lines and MDIO lines.
Preferably, the interface module includes optical module or electric module.
As described above, the method for automatic configuration and system that pattern is transmitted based on physical chip of the present invention, are had
Following beneficial effect:It is of the present invention the method for automatic configuration of pattern to be transmitted based on physical chip and system is not increasing
In the case of stiffened part, the automatic adaptation to 10,000,000,000 physical chip transmission modes is realized, so as to reduce human configuration
Step, enhances the flexibility of 10,000,000,000 physical chip transmission modes configuration, united dish on OLT chassis equipments is made
1GE interfaces are could be used that with 10GE interfaces, and it is general to realize two kinds of transmission modes of a plate.
Brief description of the drawings
Fig. 1 is shown as the flow chart of the method for automatic configuration that pattern is transmitted based on physical chip of the present invention.
Fig. 2 is shown as the automatic configuration system structure diagram that pattern is transmitted based on physical chip of the present invention.
Component label instructions
10 are transmitted mould based on physical chip
The automatic configuration system of formula
A interface module more than 11
12 first control modules
13 second control modules
14 the 3rd control modules
15 physical chips
16 signal transmssion lines
17 IC bus
18 serial communication bus
S1~S7 steps
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the case where there is no conflict, following embodiments and implementation
Feature in example can be mutually combined.
It should be noted that the diagram provided in following embodiments only illustrates the basic structure of the present invention in a schematic way
Think, then only the display component related with the present invention rather than component count, shape and size during according to actual implementation in schema
Draw, kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its assembly layout kenel
It is likely more complexity.
Embodiment one
The present embodiment provides a kind of method of automatic configuration that pattern is transmitted based on physical chip, for making physical layer
The transmission mode of chip is consistent with current network pattern, and the physical chip is connected in current network by multiple
Multiple interface modules obtain network mode, wherein, each two interface module is corresponding with a physical chip, in the present embodiment,
The physical chip is using 10,000,000,000 physical layers (PHY) chip.Referring to Fig. 1, it is shown as carrying out based on physical chip
The method of automatic configuration flow chart of transmission mode, the method for automatic configuration of the transmission mode include:
S1, monitors whether to turn to low level signal in place in the presence of by high level change, if not, then it represents that the multiple interface
Module is in extraction state, continues monitoring and turns to low level signal in place by high level change;If, then it represents that it is the multiple to connect
At least one interface module is in insert state in mouth mold block, and continues to execute step S2.The interface module includes optical module
Or electric module, in the present embodiment, the interface module is optical module, passes through the plug shape of signal identification interface module in place
State, when signal in place switchs to high level state by low level, then it represents that optical module is in connection status;When signal in place is by height
When level switchs to low level state, then it represents that optical module is in connection status.In the present embodiment, signal in place can be expressed as
LOSS signals, have a LOSS signal in each interface module.
S2, according to by high level become turn to low level signal in place, seek take in the presence of by high level become turn to it is low level
The interface module of signal in place is which of the multiple interface module interface module.It is specific to say which is exactly found
Interface module, which exists to be become by high level, turns to low level signal in place.Wherein, the interface module has preset address information.
S3, sends the preset address information for existing and becoming the interface module for turning to low level signal in place by high level, together
When send the reading of the preset address information for reading the interface module for being become by high level and turning to low level signal in place and order
Order;
S4, receives the reading order, reads the preset address information of the interface module, judge whether reading finish by
High level switchs to the address information of the interface module of low level signal in place, if it is not, then continuing to execute the step, continues to read
The preset address information of the interface module, finishes until reading;If so, then continue to execute one step ahead.
S5, judges data value according to the preset address information acquisition mode of the interface module;In the present embodiment, count
During to the data that have read 8bit, mean that reading is finished in the presence of the interface module for switching to low level signal in place by high level
Corresponding address information.It is described to there is the preset address information for becoming the interface module for turning to low level signal in place by high level
Including according to the physical address of the interface module to sort successively from big to small, the physical address of IC bus and interface mould
The register address of register in block, the mode decision data value are described low level in place in the presence of being turned to by high level change
Rate value in the interface module internal transmission rate register of signal.
S6, judges to turn to low level signal in place in the presence of by high level change according to the mode decision data value got
Interface module transmission mode;The preset address for the physical chip corresponding with the interface module that will be prestored is sent at the same time
Information and transmission mode configuration data are written to the writing commands in the physical chip.In this step, can be according to mould
Formula judges that data value judges to show that current network pattern is operated in 10GE transmission modes or 1GE transmission modes.
S7, receives said write order, will prestore according to correct sequential and turns to low electricity in the presence of by high level change with described
The preset address information and transmission mode configuration data of the corresponding physical chip of interface module of flat signal in place are written to
So that the transmission mode of the physical chip is consistent with current network pattern in the physical chip.Prestore with institute
The preset address information for stating the corresponding physical chip of interface module be according to from big to small successively sequence prestore connect with described
Register in the physical address of the corresponding physical chip of mouth mold block, the physical chip corresponding with the interface module to prestore
The register of register in the physical address in residing region and the physical chip corresponding with the interface module to prestore
Location, terminates process.Wherein, further included in the step S7 and be written to the transmission mode configuration data and the interface module
In register in corresponding physical chip.
The method of automatic configuration that pattern is transmitted based on physical chip described in the present embodiment is realized to 10,000,000,000 things
The automatic adaptation of layer chip transmission mode is managed, so that the step of reducing human configuration, enhances the transmission of 10,000,000,000 physical chips
The flexibility of pattern configurations, particularly makes united dish on OLT chassis equipments to could be used that 1GE interfaces using 10GE interfaces, real
It is general two kinds of transmission modes of a plate have been showed.
Embodiment two
The present embodiment provides a kind of automatic configuration system 10 that pattern is transmitted based on physical chip, for making physics
The transmission mode of layer chip is consistent with current network pattern, and the physical chip is connected in current network by multiple
Multiple interface modules obtain network mode, wherein, each two interface module is corresponding with a physical chip, in the present embodiment
In, physical chip is using 10,000,000,000 physical chips.Referring to Fig. 2, it is shown as being transmitted mould based on physical chip
The automatic configuration system structure chart of formula, the automatic configuration system of the transmission mode are controlled including multiple interface modules 11, first
Module 12, the second control module 13, the 3rd control module 14, multiple physical chips 15, signal transmssion line 16, integrated circuit are total
Line 17 and serial communication bus 18.
Wherein, the multiple interface module 11 includes optical module 11 or electric module.In the present embodiment, it is the multiple to connect
Mouth mold block 11 is multiple optical modules 11.For example, it is connected with 4 optical modules 11, each two optical module 11 and 10,000 with current network
Million physical chips 15 correspond to, and address numbers are carried out to 4 optical modules 11, for example, using 5bit data as address number, according to
Secondary is 10001,10010,10011 and 10100.All there are register, multiple physical chips 15 inside the interface module 11
In all there are register.In the present embodiment, 2 physical chips 15, each physical chip 15 are connected with two interface moulds
Block, i.e. optical module 11.
In the present embodiment, first control module 12 prestores and multiple 11 corresponding interface modules of interface module
Preset address information, and prestore the preset address information of physical chip corresponding with the interface module.The interface
The preset address information of module is included according to the physical address of the interface module to sort successively from big to small, IC bus
The register address of register in physical address and interface module.The physical layer corresponding with the interface module prestoring
The preset address information of chip includes the physical layer core corresponding with the interface module to prestore according to sorting successively from big to small
The physical address in region residing for register in the physical address of piece, the physical chip corresponding with the interface module to prestore,
And in the physical chip corresponding with the interface module to prestore register register address.
First control module 12 is connected to whether there is in monitoring interface module with the multiple interface module 11
Being become by high level and turn to low level signal in place, if not, then it represents that the multiple interface module is in extraction state, and described the
One control module 12 continues monitoring and turns to low level signal in place by high level change;If, then it represents that the multiple interface mould
At least one interface module is in insert state in block 11, turns to low level signal in place according to being become by high level, seeks taking and deposit
It is which interface mould in becoming the interface module for turning to low level signal in place by high level and being the multiple interface module
Block, that is, seek the physical address for taking the interface module;And according to the interface module of discovery, and interface module numbering to described second
Control module 13, which is sent, reads the address information for existing and becoming the interface module for turning to low level signal in place by high level
Reading order, and by the presence being pre-stored in first control module 12 by high level become turn to low level signal in place
The preset address information of interface module is sent to the second control module 13.In the present embodiment, first control module 12 is
One master controller.
Second control module 13 is connected respectively with the multiple interface module 11 and first control module 12, is used
Ordered in the reading for receiving the preset address information for existing and becoming the interface module for turning to low level signal in place by high level
Order and reading, which exist, is being become the preset address information for the interface module for turning to low level signal in place by high level, is judged whether
Read the preset address information finished in the presence of the interface module for turning to low level signal in place is become by high level, if it is not, then after
Resume studies and take the preset address information of the interface module, finished until reading;If so, then according to the interface module read
11 preset address information acquisition mode judges data value and the mode decision data value fed back to the first control module 12,
First control module 12 is additionally operable to judge that current network pattern is 10GE transmission according to the mode decision data value got
Pattern or 1GE transmission modes, send will prestore with it is described exist to be become by high level turn to connecing for low level signal in place
The preset address information and transmission mode configuration data of the corresponding physical chip of mouth mold block are written in the physical chip
Writing commands.There is the interface mould that low level signal in place is turned to by high level change to be described in the mode decision data value
Rate value in block internal transmission rate register.In the present embodiment, second control module 13 can only read one every time
The data of a byte, when second control module 13 count down to the data that oneself have read 8bit, mean that reading finishes
In the presence of the preset address information for becoming the interface module for turning to low level signal in place by high level.In the present embodiment, it is described
Second control module 13 is an I2C controllers.
What the 3rd control module 14 was connected with second control module 13, for receiving said write order, and
The preset address information of the physical chip corresponding with the interface module to prestore and transmission mode are matched somebody with somebody according to correct sequential
Data are put to write in the physical chip so that the transmission mode of the physical chip is consistent with current network pattern.
In this step, the transmission mode configuration data is written to and posting in the 11 corresponding physical chip of interface module
In storage.Wherein, the physical chip is connected with the 3rd control module.What is prestored is corresponding with the interface module
The preset address information of physical chip be according to the thing corresponding with the interface module that prestores of sorting successively from big to small
Register institute in the physical address (PRTAD addresses) for managing layer chip, the physical chip corresponding with the interface module to prestore
(DEVAD addresses, the DEVAD addresses refer to the one of physical chip internal register region division to the physical address in place region
A physical address) and the physical chip corresponding with the interface module that prestores in register register address in this reality
Apply in example, the 3rd control module 14 is a MDC/MDIO controllers.In the present embodiment, first control module 12,
Second control module 13 and the 3rd control module 14 are realized in FPGA20.Wherein, based on first control module 12
Controller, the second control module 13 and the 3rd control module 14 are from controller.
In the present embodiment, the automatic configuration system 10 that pattern is transmitted based on physical chip is further included and is used for
The signal transmssion line 16 of signal in place is transmitted, as shown in Fig. 2, in the present embodiment, the signal transmssion line 16 includes 4
LOSS1, LOSS2, LOSS3 and LOSS4;For connecting second control module 13 and the multiple interface module 11, symbol
Close the IC bus 17 of I2C agreements;The IC bus includes SDA line and SCL lines, i.e. SCL1, SCL2,
SCL3, SCL4 and SDA1, SDA2, SDA3, SDA4;And for by the physical chip corresponding with the interface module to prestore
Preset address information and transmission mode configuration data are transmitted to 10,000,000,000 physical chip 15 according to correct sequential, meet MDC/
The serial communication bus 18 of MDIO bus protocols;The serial communication bus includes MDC lines and MDIO lines.In the present embodiment,
There are 4 optical modules, then corresponding SCL lines in IC bus 17 in the automatic configuration system 10 of the transmission mode
SCL1, SCL2, SCL3 and SCL4 are followed successively by so as to can accurately be operated to single optical module.
In the present embodiment, multiple 10,000,000,000 physical chips 15 are used using 10,000,000,000 physical chips in upper united dish
The BCM8727 of company of Botong.
If the multiple interface module 11 is multiple electric modules, and current electric module is generally operational in 1GE transmission moulds
Formula, without the electric module of 10GE patterns, if so when the transmission modes of 10,000,000,000 physical chips is 10GE transmission modes, and connect
Mouth mold block is 1GE transmission modes, then is matched somebody with somebody using the automatic of pattern is transmitted based on physical chip described in the present embodiment
The method of putting can be by the transmission mode automatic adaptation of 10,000,000,000 physical chips into 1GE transmission modes.
The method of automatic configuration of pattern is transmitted based on physical chip and system exists in conclusion of the present invention
In the case of not increasing hardware, the automatic adaptation to 10,000,000,000 physical chip transmission modes is realized, is manually matched somebody with somebody so as to reduce
The step of putting, enhances the flexibility of 10,000,000,000 physical chip transmission modes configuration, has particularly made on OLT chassis equipments united dish both
1GE interfaces can be could be used that using 10GE interfaces, it is general to realize two kinds of transmission modes of a plate.
So the present invention effectively overcomes various shortcoming of the prior art and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe
Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as
Into all equivalent modifications or change, should by the present invention claim be covered.