A kind of interface allocation method, master card and high-speed daughtercard
Technical field
The present invention relates to communication technical field, more particularly to a kind of interface allocation method, master card and high-speed daughtercard.
Background technology
With the variation of communication service species, the framework of communication equipment also becomes increasingly complex.It is therefore desirable to communication equipment
The processing and forwarding of big data quantity can not only be completed, and the processing and forwarding of small data quantity can be completed.This just needs to communicate
The master card of equipment both it is pluggable support big data quantity processing and forwarding high-speed daughtercard, also it is pluggable support small data quantity place
Reason and the low speed subcard of forwarding.For example, 10Gbps ether subcard (high-speed daughtercard), also grafting are plugged with the master card of router
There are 2.048Mbps E1 subcards (low speed subcard).
At present, it is plugged on the situation of a communication equipment simultaneously for high-speed daughtercard and low speed subcard, there are two kinds of design sides
Case:Scheme 1, the grafting high-speed daughtercard on the high speed groove position of the master card of communication equipment, grafting low speed subcard on low speed groove position;Scheme
2, design high-speed interface and low-speed interface simultaneously in each groove position of the master card of communication equipment so that each groove position can insert at a high speed
Subcard, it can also insert low speed subcard.
Below so that a master card supports two groove positions as an example, both schemes are respectively described below:
In scheme 1 as shown in Figure 1, two groove positions of master card 10 are high speed groove position 102 and low speed groove position 103 respectively.Its
In, connection high speed groove position 102 and the data/address bus of central processing unit (Central Processing Unit, abbreviation CPU) 101
It is Ethernet Attachment Unit Interface (Ethernet Attachment Unit Interface, abbreviation XAUI) bus (in such as Fig. 1
Shown in A), connection low speed groove position 103 and CPU101 data/address bus is Serial Gigabit Media Independent Interface (Serial
Gigabit Media Independent Interface, abbreviation SGMII) bus (as shown in B in Fig. 1).Due to high-speed daughtercard
11 interface bus is XAUI buses, therefore high-speed daughtercard 11 can only be plugged on the high speed of master card 10 by high-speed daughtercard plug-in unit 111
On groove position 102;The interface bus of low speed subcard 12 is SGMII buses, therefore low speed subcard 12 can only pass through high-speed daughtercard plug-in unit 121
It is plugged on the low speed groove position 103 of master card 10.Therefore, the program requires that user has to identify high-speed daughtercard and low speed exactly
Subcard, and high speed groove position and low speed groove position, and correct grafting, communication equipment could normal works.Otherwise, high-speed daughtercard is inserted
It is connected on low speed groove position, or low speed subcard is plugged on high speed groove position, communication equipment all can not normal work.Obviously, mother is worked as
When the high speed groove position of card is broken down, user can not just use high-speed daughtercard, if now user does not have low speed subcard, and only have
High-speed daughtercard, the low speed groove position of that master card also can not just utilize.Therefore, the low speed groove position of master card is at idle condition, does not have
It is fully used.So the program is because high-speed daughtercard and low speed subcard are unable to mixed insertion, thus the easy of communication equipment can make it that
Reduced with property, while when there are special circumstances, the wasting of resources is also larger.
In scheme 2 as shown in Figure 2, each groove position of master card 20 be designed with simultaneously XAUI buses (as shown in A in Fig. 2) and
SGMII buses (as shown in B in Fig. 2), XAUI buses and SGMII buses are respectively defined on the different pins of groove position interface 202.
The XAUI buses of high-speed daughtercard 21 and the SGMII buses of low speed subcard 22 are respectively defined in and 202 corresponding pin of groove position interface
On.Therefore each groove position both pluggable high-speed daughtercard 21, also pluggable low speed subcard 22, without repartitioning high speed groove position and low speed
Groove position.Therefore in this scenario, high-speed daughtercard and low speed subcard can work on all groove positions of master card.But with the phase of scheme 1
Than the resource such as SGMII buses, XAUI buses in scheme 2 needed for master card 20 all increases into multiple.And each groove position is in grafting height
During fast subcard, the SGMII buses of the groove position would be at idle condition;In grafting low speed subcard, the XAUI buses of the groove position
It would be at idle condition.Therefore the wasting of resources of the program is larger.
Therefore, seek that a kind of ease for use is higher, while and can makes full use of the method for interface of interface bus resource, is
Technical problem urgently to be resolved hurrily at present.
The content of the invention
Embodiments of the invention provide a kind of interface allocation method, master card and high-speed daughtercard, before bus resource is saved
Put, realize the mixed insertion of high-speed daughtercard and low speed subcard, so as to improve the ease for use of communication equipment.
To reach above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
First aspect, there is provided a kind of interface allocation method, the interface allocation method are applied to master card, the master card bag
Include:At least one sub- slot and the processing module being connected with least one sub- slot, at least one son
The subcard type of slots of slot includes:High-speed daughtercard groove position, the high-speed daughtercard groove position correspond to the high speed of the processing module
Interface;The interface bus of the high-speed interface is arranged to the compatible bus of high speed, low speed;
Methods described includes:
When the first subcard is plugged in the first sub- slot of at least one sub- slot, the processing module detection
The subcard type of first subcard, wherein, the subcard type of first subcard is:High-speed daughtercard or low speed subcard;
The interface bus of high-speed interface corresponding to described first sub- slot is configured to and described by the processing module
Bus type corresponding to the subcard type of one subcard, wherein, the high-speed daughtercard corresponds to high-speed bus type, the low speed subcard
Corresponding low speed bus type.
Second aspect, there is provided a kind of master card, including:At least one sub- slot and with least one subcard groove
The connected processing module in position, the subcard type of slots of at least one sub- slot include:High-speed daughtercard groove position, the height
The sub- slot of speed corresponds to the high-speed interface of the processing module, wherein, the processing module includes high-speed interface dispensing unit;Institute
The interface bus for stating high-speed interface is arranged to the compatible bus of high speed, low speed;
The processing module also includes:Detection unit;
The detection unit, for being plugged in the first sub- slot of at least one sub- slot when the first subcard
When, the subcard type of detection first subcard, wherein, the subcard type of first subcard includes:High-speed daughtercard or low speed
Subcard;
The high-speed interface dispensing unit, for the interface bus of high-speed interface corresponding to the described first sub- slot to be matched somebody with somebody
Bus type corresponding with the subcard type of first subcard is set to, wherein, the high-speed daughtercard corresponds to high-speed bus type,
The low speed subcard corresponds to low speed bus type.
Based on interface allocation method provided in an embodiment of the present invention and master card, when the first subcard is plugged at least one subcard
During the first sub- slot of groove position, processing module can detect the subcard type of the first subcard.Due to the interface bus of high-speed interface
The compatible bus of high speed, low speed is arranged to, therefore processing module can be according to the subcard type of the first subcard, to the first sub- slot
The interface bus of corresponding high-speed interface is configured, it is configured to bus type corresponding with the subcard type of the first subcard
Type.That is, when the subcard type of the first subcard is high-speed daughtercard, processing module is by high-speed interface corresponding to the first sub- slot
Interface bus is configured to high-speed bus type;When the subcard type of the first subcard is low speed subcard, processing module is sub by first
The interface bus of high-speed interface corresponding to slot is configured to low speed bus type.Consequently, it is possible to no matter it is plugged in the son of master card
The subcard of slot is high-speed daughtercard, or low speed subcard, and the processing module of master card can be to high quick access corresponding to sub- slot
The interface bus of mouth is configured, and makes the interface bus type of high-speed interface corresponding to the sub- slot of master card and the interface of subcard
Bus type is consistent, and then make it that master card can be communicated with subcard.On the one hand, because interface provided in an embodiment of the present invention is matched somebody with somebody
Put in method and master card, it is only necessary to the interface bus of high-speed interface is arranged to the compatible bus of high speed, low speed, without background for another example
Scheme 2 in technology is such, defines high-speed bus and low speed bus respectively on the different pins of groove position interface, therefore can save
About bus resource.On the other hand, it is different from the scheme 1 in background technology, interface allocation method provided in an embodiment of the present invention and
In master card, each groove position of master card both pluggable high-speed daughtercard, also pluggable low speed subcard, it is no longer necessary to user's identification son at a high speed
Card and low speed subcard, it is achieved that the mixed insertion of high-speed daughtercard and low speed subcard.To sum up, interface provided in an embodiment of the present invention is matched somebody with somebody
Method and master card are put on the premise of bus resource is saved, the mixed insertion of high-speed daughtercard and low speed subcard is realized, so as to improve
The ease for use of communication equipment.
The third aspect, there is provided a kind of interface allocation method, the interface allocation method are applied to high-speed daughtercard, the high speed
Subcard includes processing module, and the interface bus of the high-speed daughtercard is arranged to the compatible bus of high speed, low speed;
Methods described includes:
When the high-speed daughtercard is plugged in the first sub- slot of master card, the processing module obtains the of the master card
The subcard type of slots of one sub- slot, wherein, the subcard type of slots of the first sub- slot is:High-speed daughtercard groove position or
The sub- slot of low speed, the sub- slot of low speed correspond to low speed bus type, and the high-speed daughtercard groove position corresponds to high-speed bus class
Type;
The interface bus of the high-speed daughtercard is configured to and the first sub- slot of the master card by the processing module
Bus type corresponding to subcard type of slots.
Fourth aspect, there is provided a kind of high-speed daughtercard, including:Processing module, the processing module include:Acquiring unit, with
And interface dispensing unit, the interface bus of the high-speed daughtercard are arranged to the compatible bus of high speed, low speed;
The acquiring unit, during the first sub- slot for being plugged in master card when the high-speed daughtercard, obtain the mother
The subcard type of slots of first sub- slot of card, wherein, the subcard type of slots of the first sub- slot is:High-speed daughtercard
Groove position or the sub- slot of low speed, the sub- slot of low speed correspond to low speed bus type, and the high-speed daughtercard groove position is corresponding at a high speed
Bus type;
The interface dispensing unit, for the interface bus of the high-speed daughtercard to be configured to the first son with the master card
Bus type corresponding to the subcard type of slots of slot.
Based on high-speed daughtercard interface allocation method provided in an embodiment of the present invention and high-speed daughtercard, when high-speed daughtercard is plugged in
During the first sub- slot of master card, processing module can obtain the subcard type of slots of the first sub- slot.Due to high-speed daughtercard
Interface bus is arranged to the compatible bus of high speed, low speed, therefore processing module can be according to the sub- slot class of the first sub- slot
Type, the interface bus of high-speed daughtercard is configured, it is configured to corresponding with the subcard type of slots of the first sub- slot
Bus type.That is, when the subcard type of slots of the first sub- slot is high-speed daughtercard groove position, by the interface bus of high-speed daughtercard
It is configured to high-speed bus type;When the subcard type of slots of the first sub- slot slot for low speed, by high-speed daughtercard
Interface bus is configured to low speed bus type.The low speed for the processing module that master card is corresponded to due to the sub- slot of the low speed of master card connects
Mouthful, the high-speed daughtercard groove position of master card corresponds to the high-speed interface of the processing module of master card, and therefore, no matter high-speed daughtercard is plugged in master card
High-speed daughtercard groove position, or the sub- slot of low speed can be communicated with master card.To sum up, it is provided in an embodiment of the present invention to connect
In mouth collocation method and high-speed daughtercard, the high speed groove position and low speed groove position of master card need not be identified when user is using high-speed daughtercard,
The mixed insertion of high speed groove position and low speed groove position can be realized, so as to improve the ease for use of communication equipment.
5th aspect, there is provided a kind of Mother Card system, including:Master card described in low speed subcard, second aspect and the 4th
High-speed daughtercard described in aspect.
Mother Card system provided in an embodiment of the present invention, including:Master card, Yi Ji described in low speed subcard, second aspect
High-speed daughtercard described in four aspects.Because the master card described in second aspect is on the premise of bus resource is saved, realize at a high speed
The mixed insertion of subcard and low speed subcard, so as to improve the ease for use of communication equipment;High-speed daughtercard described in fourth aspect realizes
High speed groove position and the mixed insertion of low speed groove position, so as to improve the ease for use of communication equipment.Therefore, mother provided in an embodiment of the present invention
Sub-card system, on the premise of bus resource is saved, the mixed insertion of high-speed daughtercard and low speed subcard can be achieved, and then communication can be improved
The ease for use of equipment.
Brief description of the drawings
Fig. 1 is a kind of structural representation of Mother Card system in the prior art;
Fig. 2 is the structural representation of another Mother Card system in the prior art;
Fig. 3 is a kind of structural representation one of master card provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation two of master card provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation three of master card provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of high-speed interface dispensing unit provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of high-speed daughtercard provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of Mother Card system provided in an embodiment of the present invention;
Fig. 9 is a kind of schematic flow sheet of interface allocation method provided in an embodiment of the present invention;
Figure 10 is the schematic flow sheet of another interface allocation method provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
For the ease of clearly describing the technical scheme of the embodiment of the present invention, in an embodiment of the present invention, employ " the
One ", the printed words such as " second " make a distinction to function and the essentially identical identical entry of effect or similar item, and those skilled in the art can
To understand that the printed words such as " first ", " second " are not defined to quantity and execution order.
Embodiment one,
The embodiment of the present invention provides a kind of master card 30, it is specific as shown in figure 3, including:At least one sub- slot 302, with
And the processing module 301 being connected with least one sub- slot 302.
Wherein, the subcard type of slots of at least one sub- slot 302 includes:High-speed daughtercard groove position, high-speed daughtercard groove position
The high-speed interface of alignment processing module 301, the interface bus of high-speed interface are arranged to the compatible bus of high speed, low speed.
Processing module 301 includes:High-speed interface dispensing unit 301a and detection unit 301b.
Detection unit 301b, for being plugged in the first sub- slot 302 of at least one sub- slot 302 when the first subcard
When, the subcard type of the first subcard of detection, wherein, the subcard type of the first subcard is:High-speed daughtercard or low speed subcard.
High-speed interface dispensing unit 301a, for the interface bus of high-speed interface corresponding to the first sub- slot 302 to be matched somebody with somebody
Bus type corresponding with the subcard type of the first subcard is set to, wherein, high-speed daughtercard corresponds to high-speed bus type, low speed subcard
Corresponding low speed bus type.
It should be noted that in master card 30 provided in an embodiment of the present invention, processing module 301 can specifically pass through one
Interface chip or exchange chip or CPU etc. realize that the embodiment of the present invention is not especially limited to this.
Specifically, in master card 30 provided in an embodiment of the present invention, can by the subcard type of the active obtaining subcard of master card 30,
Or the subcard type by subcard active reporting subcard.That is, detection unit 301b detects the subcard type of the first subcard, specifically
It can include:
Detection unit 301b reads the subcard type of the first subcard,
Or
Detection unit 301b receives the subcard type for the first subcard that the first subcard is sent.
Optionally, in master card 30 provided in an embodiment of the present invention, the subcard type of slots of at least one sub- slot 302
It can also include:The sub- slot of low speed.Wherein, the low-speed interface of the sub- slot alignment processing module 301 of low speed.
When the subcard type of slots also slot including low speed of at least one sub- slot 302, as shown in figure 4, female
The processing module 301 of card 30 can also include:Low-speed interface dispensing unit 301c.
Low-speed interface dispensing unit 301c, for the interface bus of low-speed interface to be configured into low speed bus type.
High-speed interface dispensing unit 301a is specifically used for:
If the subcard type of slots of the first sub- slot 302 is high-speed daughtercard groove position, by corresponding to the first sub- slot 302
The interface bus of high-speed interface is configured to bus type corresponding with the subcard type of the first subcard.
Further, as shown in figure 5, in master card 30 provided in an embodiment of the present invention, processing module 301 can also wrap
Include:Transmitting element 301d.
Transmitting element 301d, for detection unit 301b detect the first subcard subcard type after, if the first subcard
Subcard type be high-speed daughtercard, send first and instruct to the first subcard, the first instruction carries the subcard of the first sub- slot 302
The interface bus of first subcard is configured to the son with the first sub- slot 302 by type of slots, first instruction the first subcard of instruction
Bus type corresponding to slot type, wherein, the sub- slot of low speed corresponds to low speed bus type, and high-speed daughtercard groove position is corresponding high
Fast bus type.
Consequently, it is possible to not only the high-speed daughtercard groove position of master card 30 can mixed insertion high-speed daughtercard and low speed subcard, low speed subcard groove
Position also can mixed insertion high-speed daughtercard and low speed subcard.That is, any sub- slot of master card both pluggable high-speed daughtercard is also pluggable low
Fast subcard.
It should be noted that high-speed interface dispensing unit 301a provided in an embodiment of the present invention can be integrated in existing mother
In the interface chip of card, can also additional designs high-speed interface dispensing unit 301a, the embodiment of the present invention do not make specifically to this
Limit.As shown in fig. 6, the embodiment of the present invention provides a kind of high-speed interface dispensing unit 301a structural representation, the high quick access
Mouth dispensing unit 301a includes Configuration Control Unit 601, clock generator 602, interface conversion unit 603.Wherein, Configuration Control Unit
The subcard type of 601 the first subcards that can be detected according to detection unit 301b, when control clock generator 602 produces corresponding
Clock, and the interface bus of high-speed interface corresponding to the first sub- slot 302 is configured to and first by control interface converting unit 603
Bus type corresponding to the subcard type of subcard.Specifically, Configuration Control Unit 601 can pass through single-chip microcomputer or Programmadle logic device
(Programmable Logic Device, abbreviation PLD) is realized, clock generator 602 can by crystal oscillator (or crystal, and
Other clock generators) to realize, interface conversion unit 603 can pass through field programmable gate array (Field-Programmable
Gate Array, abbreviation FPGA) or interface chip or exchange chip realization.If it is readily appreciated by a person skilled in the art that
When interface conversion unit 603 is integrated in interface chip/exchange chip of master card, then no longer need to design clock generator
602。
Master card provided in an embodiment of the present invention includes:At least one sub- slot and equal with least one sub- slot
Connected processing module.Wherein, the subcard type of slots of at least one sub- slot includes:High-speed daughtercard groove position, high-speed daughtercard
The high-speed interface of groove position alignment processing module.Based on master card provided in an embodiment of the present invention, when the first subcard is plugged at least one
During the first sub- slot of individual sub- slot, detection unit can detect the subcard type of the first subcard.Due to connecing for high-speed interface
Mouthful bus be arranged at a high speed, the compatible bus of low speed, therefore high-speed interface dispensing unit can according to the subcard type of the first subcard,
The interface bus of high-speed interface corresponding to first sub- slot (high-speed daughtercard groove position) is configured, it is configured to first
Bus type corresponding to the subcard type of subcard.That is, when the subcard type of the first subcard is high-speed daughtercard, by the first subcard groove
The interface bus of high-speed interface is configured to high-speed bus type corresponding to position;When the subcard type of the first subcard is low speed subcard
When, the interface bus of high-speed interface corresponding to the first sub- slot is configured to low speed bus type.Consequently, it is possible to no matter grafting
It is high-speed daughtercard in the subcard of the sub- slot of master card, or low speed subcard, the high-speed interface dispensing unit of master card can antithetical phrase
The interface bus of high-speed interface corresponding to slot is configured, and makes the interface of high-speed interface corresponding to the sub- slot of master card total
Line type is consistent with the interface bus type of subcard, and then make it that master card can be communicated with subcard.On the one hand, due to the present invention
In the master card that embodiment provides, it is only necessary to the interface bus of high-speed interface is arranged into the compatible bus of high speed, low speed, without for another example
Scheme 2 in background technology is such, and high-speed bus and low speed bus, therefore energy are defined respectively on the different pins of groove position interface
Enough save bus resource.On the other hand, it is different from the scheme 1 in background technology, master card provided in an embodiment of the present invention it is each
Groove position both pluggable high-speed daughtercard, also pluggable low speed subcard, and user's identification high-speed daughtercard and low speed subcard are no longer needed, because
This realizes the mixed insertion of high-speed daughtercard and low speed subcard.To sum up, master card provided in an embodiment of the present invention is saving bus resource
Under the premise of, the mixed insertion of high-speed daughtercard and low speed subcard is realized, so as to improve the ease for use of communication equipment.
Embodiment two,
The embodiment of the present invention provides a kind of high-speed daughtercard 70, specifically as shown in fig. 7, comprises processing module 701.
Wherein, processing module 701 includes:Acquiring unit 701b and interface dispensing unit 701a.High-speed daughtercard 70 connects
Mouth bus is arranged to the compatible bus of high speed, low speed.
Acquiring unit 701b, during the first sub- slot for being plugged in master card when high-speed daughtercard 70, obtain the first subcard
The subcard type of slots of groove position, wherein, the subcard type of slots of the first sub- slot is:High-speed daughtercard groove position or low speed subcard groove
Position, the sub- slot of low speed correspond to low speed bus type, and high-speed daughtercard groove position corresponds to high-speed bus type.
Interface dispensing unit 701a, for the interface bus of high-speed daughtercard 70 to be configured to the subcard with the first sub- slot
Bus type corresponding to type of slots.
Specifically, in high-speed daughtercard 70 provided in an embodiment of the present invention, acquiring unit 701b obtains the first sub- slot
Subcard type of slots have two kinds of implementations, i.e. acquiring unit 701b is specifically used for:Read the subcard groove of the first sub- slot
Position type,
Or
Acquiring unit 701b is specifically used for:
The first instruction that the processing module 701 of master card is sent is received, the first instruction carries the subcard groove of the first sub- slot
The interface bus of high-speed daughtercard 70 is configured to and the first sub- slot by position type, the first instruction instruction interface dispensing unit 701a
Subcard type of slots corresponding to bus type, wherein, the sub- slot of low speed corresponds to low speed bus type, and high-speed daughtercard groove position is right
Answer high-speed bus type.
According to the first instruction, the subcard type of slots of the first sub- slot of acquisition.
It should be noted that interface dispensing unit 701a provided in an embodiment of the present invention can be integrated in existing high speed
In the interface chip of card, can also additional designs interface dispensing unit 701a, the embodiment of the present invention is not especially limited to this.
Wherein, interface dispensing unit 701a structural representation refers to the structure of the high-speed interface dispensing unit 301a shown in Fig. 6
Schematic diagram, the embodiment of the present invention will not be repeated here.
Based on high-speed daughtercard provided in an embodiment of the present invention, when high-speed daughtercard is plugged in the first sub- slot of master card,
Acquiring unit can obtain the subcard type of slots of the first sub- slot.Due to the interface bus of high-speed daughtercard be arranged at a high speed, it is low
Fast compatible bus, therefore interface dispensing unit can connect according to the subcard type of slots of the first sub- slot to high-speed daughtercard
Mouth bus is configured, it is configured to bus type corresponding with the subcard type of slots of the first sub- slot.That is, when first
When the subcard type of slots of sub- slot is high-speed daughtercard groove position, the interface bus of high-speed daughtercard is configured to high-speed bus class
Type;When the subcard type of slots of the first sub- slot slot for low speed, the interface bus of high-speed daughtercard is configured to low
Fast bus type.Because the sub- slot of the low speed of master card corresponds to the low-speed interface of the processing module of master card, the high-speed daughtercard of master card
Groove position corresponds to the high-speed interface of the processing module of master card, and therefore, no matter high-speed daughtercard is plugged in the high-speed daughtercard groove position of master card, also
It is the sub- slot of low speed, can be communicated with master card.To sum up, high-speed daughtercard provided in an embodiment of the present invention, when in use not
The high speed groove position and low speed groove position of identification master card are needed, realizes the mixed insertion of high speed groove position and low speed groove position, it is logical so as to improve
Believe the ease for use of equipment.
Embodiment three,
The embodiment of the present invention provides a kind of Mother Card system 80, it is specific as shown in figure 8, including:Low speed subcard 801, implement
The high-speed daughtercard 70 that the master card 30 and embodiment two that example one provides provide, wherein, low speed subcard 801 includes processing module
801a, processing module 801a include interface dispensing unit.
It should be noted that in Mother Card system 80 provided in an embodiment of the present invention, the sub- slot 302 in master card 30
It can be high-speed daughtercard groove position, partly (at least one) can also be high-speed daughtercard groove position, be partly the sub- slot of low speed, this
Inventive embodiments are not especially limited to this.
If the sub- slot 302 in master card 30 is high-speed daughtercard groove position, processing module 301 includes:High-speed interface is matched somebody with somebody
Put unit 301a and detection unit 301b;If the part of sub- slot 302 in master card 30 is high-speed daughtercard groove position, is partly
The sub- slot of low speed, then processing module 301 is in addition to including high-speed interface dispensing unit 301a and detection unit 301b, also
It should include:Low-speed interface dispensing unit 301c etc..Wherein, the detailed description on master card refers to embodiment one, and the present invention is real
Example is applied to will not be repeated here.
Below by taking Mother Card system 80 provided in an embodiment of the present invention as an example, respectively to high-speed daughtercard/low speed subcard grafting
The Principle of Communication of Mother Card is described as follows when the first sub- slot of the sub- slot 302 of master card 30:
Assuming that the first sub- slot is the sub- slot of low speed, then when low speed subcard 801 is plugged in the first sub- slot, by
It is total that the interface bus of low-speed interface corresponding to first sub- slot is configured to low speed in the low-speed interface dispensing unit of master card 30
Line type, and the interface bus of low speed subcard 801 is configured to low speed bus type by the interface dispensing unit of low speed subcard 801.
Now, the interface bus type of low-speed interface corresponding to the first of master card 30 the sub- slot and the interface bus of low speed subcard 801
Type is all low speed bus type, therefore low speed subcard 801 can be communicated with master card 30.
Assuming that the first sub- slot is high-speed daughtercard groove position, then when low speed subcard 801 is plugged in the first sub- slot, by
The interface bus of high-speed interface corresponding to first sub- slot is configured to and low speed in the high-speed interface dispensing unit of master card 30
Bus type (i.e. low speed bus type) corresponding to the subcard type of subcard 801, and the interface dispensing unit of low speed subcard 801 will
The interface bus of low speed subcard 801 is configured to low speed bus type.Now, high quick access corresponding to the first of master card 30 the sub- slot
The interface bus type of mouth is all low speed bus type with the interface bus type of low speed subcard 801, therefore low speed subcard 801 can
Communicated with master card 30.
Assuming that the first sub- slot is the sub- slot of low speed, then when high-speed daughtercard 70 is plugged in the first sub- slot, by
It is total that the interface bus of low-speed interface corresponding to first sub- slot is configured to low speed in the low-speed interface dispensing unit of master card 30
Line type, and the interface bus of high-speed daughtercard 70 is configured to low speed bus type by the interface dispensing unit of high-speed daughtercard 70.This
When, the interface bus type of the interface bus type of low-speed interface corresponding to the first sub- slot of master card 30 and high-speed daughtercard 70
It is all low speed bus type, therefore high-speed daughtercard 70 can be communicated with master card 30.
Assuming that the first sub- slot is high-speed daughtercard groove position, then when high-speed daughtercard 70 is plugged in the first sub- slot, by
The interface bus of high-speed interface corresponding to first sub- slot is configured at a high speed always in the high-speed interface dispensing unit of master card 30
Line type, and the interface bus of high-speed daughtercard 70 is configured to high-speed bus type by the interface dispensing unit of high-speed daughtercard 70.This
When, the interface bus type of the interface bus type of high-speed interface corresponding to the first sub- slot of master card 30 and high-speed daughtercard 70
It is all high-speed bus type, therefore high-speed daughtercard 70 can be communicated with master card 30.
In summary, in Mother Card system 80 provided in an embodiment of the present invention, high-speed daughtercard 70 or the grafting of low speed subcard 801
In any sub- slot 302 of master card 30, can be communicated with master card 30.
Mother Card system provided in an embodiment of the present invention, including:Low speed subcard, the master card of the offer of embodiment one, Yi Jishi
The high-speed daughtercard of the offer of example two is provided.Because the master card of the offer of embodiment one is on the premise of bus resource is saved, realize at a high speed
The mixed insertion of subcard and low speed subcard, so as to improve the ease for use of communication equipment;The high-speed daughtercard that embodiment two provides realizes
High speed groove position and the mixed insertion of low speed groove position, so as to improve the ease for use of communication equipment.Therefore, mother provided in an embodiment of the present invention
Sub-card system, on the premise of bus resource is saved, the mixed insertion of high-speed daughtercard and low speed subcard can be achieved, and then communication can be improved
The ease for use of equipment.
Example IV,
The embodiment of the present invention provides a kind of interface allocation method, is applied particularly in the master card 30 of the offer of embodiment one, such as
Shown in Fig. 9, including:
S901, when the first subcard is plugged in the first sub- slot of at least one sub- slot, master card processing module inspection
The subcard type of the first subcard is surveyed, wherein, the subcard type of the first subcard is:High-speed daughtercard or low speed subcard.
The interface bus of high-speed interface corresponding to first sub- slot is configured to and the first son by S902, master card processing module
Bus type corresponding to the subcard type of card, wherein, high-speed daughtercard corresponds to high-speed bus type, and low speed subcard corresponds to low speed bus
Type.
Specifically, in interface allocation method provided in an embodiment of the present invention, can be by the subcard of master card active obtaining subcard
Type, or, by the subcard type of subcard active reporting subcard.That is, master card processing module detects the subcard type of the first subcard,
It can specifically include:
Master card processing module reads the subcard type of the first subcard,
Or
Master card processing module receives the subcard type for the first subcard that the first subcard is sent.
Specifically, if the subcard type of the first subcard is high-speed daughtercard, bus type corresponding to the subcard type of the first subcard
Type is XAUI buses;If the subcard type of the first subcard is low speed subcard, bus type corresponding to the subcard type of the first subcard
For SGMII buses.
Optionally, in interface allocation method provided in an embodiment of the present invention, the sub- slot of at least one sub- slot
Type can also include:The sub- slot of low speed, the sub- slot of low speed correspond to the low-speed interface of master card processing module.
When the subcard type of slots also slot including low speed of at least one sub- slot, the embodiment of the present invention provides
Interface allocation method, can also include:
The interface bus of low-speed interface is configured to low speed bus type by master card processing module.
The interface bus of high-speed interface corresponding to first sub- slot is configured to and the first subcard by master card processing module
Bus type corresponding to subcard type, it can specifically include:
If the subcard type of slots of the first sub- slot is high-speed daughtercard groove position, master card processing module is by the first sub- slot
The interface bus of corresponding high-speed interface is configured to bus type corresponding with the subcard type of the first subcard.
Further, in interface allocation method provided in an embodiment of the present invention, in of master card processing module detection first
After the subcard type of card, it can also include:
If the subcard type of the first subcard is high-speed daughtercard, master card processing module sends first and instructed to the first subcard, the
One instruction carries the subcard type of slots of the first sub- slot, and the first instruction indicates the first subcard by the interface bus of the first subcard
Bus type corresponding with the subcard type of slots of the first sub- slot is configured to, wherein, it is total that the sub- slot of low speed corresponds to low speed
Line type, high-speed daughtercard groove position correspond to high-speed bus type.
Consequently, it is possible to not only the high-speed daughtercard groove position of master card can mixed insertion high-speed daughtercard and low speed subcard, the sub- slot of low speed
Also can mixed insertion high-speed daughtercard and low speed subcard.That is, any sub- slot of master card both pluggable high-speed daughtercard, also pluggable low speed
Subcard.
In interface allocation method provided in an embodiment of the present invention, when the first subcard is plugged in the of at least one sub- slot
During one sub- slot, master card processing module can detect the subcard type of the first subcard.Because the interface bus of high-speed interface is set
For at a high speed, the compatible bus of low speed, therefore master card processing module can be according to the subcard type of the first subcard, to the first sub- slot
The interface bus of corresponding high-speed interface is configured, it is configured to bus type corresponding with the subcard type of the first subcard
Type.That is, when the subcard type of the first subcard is high-speed daughtercard, master card processing module is by high quick access corresponding to the first sub- slot
The interface bus of mouth is configured to high-speed bus type;When the subcard type of the first subcard is low speed subcard, master card processing module
The interface bus of high-speed interface corresponding to first sub- slot is configured to low speed bus type.Consequently, it is possible to no matter it is plugged in
The subcard of the sub- slot of master card is high-speed daughtercard, or low speed subcard, master card processing module can be to corresponding to sub- slots
The interface bus of high-speed interface is configured, and makes the interface bus type and subcard of high-speed interface corresponding to the sub- slot of master card
Interface bus type it is consistent, and then cause master card can be communicated with subcard.On the one hand, due to provided in an embodiment of the present invention
In interface allocation method, it is only necessary to the interface bus of high-speed interface is arranged into the compatible bus of high speed, low speed, without background for another example
Scheme 2 in technology is such, defines high-speed bus and low speed bus respectively on the different pins of groove position interface, therefore can save
About bus resource.On the other hand, it is different from the scheme 1 in background technology, in interface allocation method provided in an embodiment of the present invention,
Each groove position of master card both pluggable high-speed daughtercard, also pluggable low speed subcard, it is no longer necessary to user's identification high-speed daughtercard and low
Fast subcard, it is achieved that the mixed insertion of high-speed daughtercard and low speed subcard.To sum up, interface allocation method provided in an embodiment of the present invention
On the premise of bus resource is saved, the mixed insertion of high-speed daughtercard and low speed subcard is realized, so as to improve the easy of communication equipment
The property used.
Embodiment five,
The embodiment of the present invention provides a kind of interface allocation method, as shown in Figure 10, is applied particularly to the offer of embodiment two
In high-speed daughtercard 70, including:
S1001, when high-speed daughtercard is plugged in the first sub- slot of master card, high-speed daughtercard processing module obtain first son
The subcard type of slots of slot, wherein, the subcard type of slots of the first sub- slot is:High-speed daughtercard groove position or low speed subcard
Groove position, the sub- slot of low speed correspond to low speed bus type, and high-speed daughtercard groove position corresponds to high-speed bus type.
The interface bus of high-speed daughtercard is configured to the subcard with the first sub- slot by S1002, high-speed daughtercard processing module
Bus type corresponding to type of slots.
Specifically, if the subcard type of slots of the first sub- slot is high-speed daughtercard groove position, the subcard of the first sub- slot
Bus type corresponding to type of slots is Ethernet Attachment Unit Interface XAUI buses;If the sub- slot class of the first sub- slot
Type is the sub- slot of low speed, and bus type corresponding to the subcard type of slots of the first sub- slot is that Serial Gigabit medium is independent
Interface SGMII buses.
Specifically, in interface allocation method provided in an embodiment of the present invention, high-speed daughtercard processing module obtains the first son
The subcard type of slots of slot, can specifically include:
High-speed daughtercard processing module reads the subcard type of slots of the first sub- slot.
Or
High-speed daughtercard processing module obtains the subcard type of slots of the first sub- slot, can specifically include:
High-speed daughtercard processing module receives the first instruction that master card processing module is sent, and the first instruction carries the first subcard groove
The interface bus of high-speed daughtercard is configured to and first by the subcard type of slots of position, the first instruction instruction high-speed daughtercard processing module
Bus type corresponding to the subcard type of slots of sub- slot, wherein, the sub- slot of low speed corresponds to low speed bus type, at a high speed son
Slot corresponds to high-speed bus type.
High-speed daughtercard processing module is according to the first instruction, the subcard type of slots of the first sub- slot of acquisition.
Based on high-speed daughtercard interface allocation method provided in an embodiment of the present invention, when high-speed daughtercard is plugged in the first of master card
During sub- slot, high-speed daughtercard processing module can obtain the subcard type of slots of the first sub- slot.Due to connecing for high-speed daughtercard
Mouth bus is arranged to the compatible bus of high speed, low speed, therefore high-speed daughtercard processing module can be according to the subcard of the first sub- slot
Type of slots, the interface bus of high-speed daughtercard is configured, it is configured to the subcard type of slots with the first sub- slot
Corresponding bus type.That is, when the subcard type of slots of the first sub- slot is high-speed daughtercard groove position, by connecing for high-speed daughtercard
Mouth bus configuration is high-speed bus type;, will at a high speed when the subcard type of slots of the first sub- slot slot for low speed
The interface bus of subcard is configured to low speed bus type.Because the sub- slot of the low speed of master card corresponds to the high-speed daughtercard processing of master card
The low-speed interface of module, the high-speed daughtercard groove position of master card correspond to the high-speed interface of the high-speed daughtercard processing module of master card, therefore, nothing
The high-speed daughtercard groove position of master card, or the sub- slot of low speed are plugged in by high-speed daughtercard, can be communicated with master card.To sum up,
In interface allocation method provided in an embodiment of the present invention, need not be identified when user is using high-speed daughtercard master card high speed groove position and
Low speed groove position, the mixed insertion of high speed groove position and low speed groove position can be realized, so as to improve the ease for use of communication equipment.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.