The content of the invention
The present invention provides a kind of equal method for stream processing of Higig and its device, for improving each port flow of Higig business unit
The reliability of amount detection.
The present invention provides a kind of equal method for stream processing of Higig, including:
Management board CPU element obtains the groove position information of the first information and the first slot of the first business module transmission, and
The second information that second business module sends;Wherein, the first business module correspondence is inserted in first slot, described
Second business module correspondence is inserted in the second slot;The first information includes the CPLD in first business module
The address information that unit is distributed by each port of a corresponding Higig business unit, and a Higig business sheets
The status information of each port of unit;Second information includes the 2nd CPLD units in second business module to described first
The receive information of the detection code stream sent by each port of a Higig business unit by CPLD units, and it is described
The corresponding source port address information of detection code stream;
The management board CPU element is according to the first information, the groove position information of first slot and second letter
Breath, carries out the equal stream process of Higig to each port of the Higig business unit in first business module.
The present invention provides a kind of equal method for stream processing of Higig, including:
First business module obtains the groove position information of the first slot, and for each end of a corresponding Higig business unit
Mouth distribution address information, judges the status information of each port of a Higig business unit;First business module pair
Should be inserted in the first slot;
First business module sends detection code to the second business module by each port of a Higig business unit
Stream, so that second business module sends the second information to management board CPU element, second information includes second industry
Receive information of the 2nd CPLD units in business module to the detection code stream, and the corresponding source port ground of the detection code stream
Location information;The second business module correspondence is inserted in the second slot;
First business module also sends the groove position of the first information and first slot to the management board CPU element
Information, the first information include the address information of each port of a Higig business unit, and state letter
Breath, so that the management board CPU element is according to the first information, the groove position information of first slot and second letter
Breath, carries out the equal stream process of Higig to each port of the Higig business unit in first business module.
The present invention provides a kind of equal method for stream processing of Higig, including:
Second business module receives the detection code stream that the first business module sends, and obtains the second information, second letter
Breath includes that the 2nd CPLD units in second business module pass through first to the CPLD units in the first business mould
The receive information of the detection code stream sent by each port of Higig business unit, and the corresponding source port of the detection code stream
Address information;Wherein, the first business module correspondence is inserted in the first slot, and the second business module correspondence is inserted into
In second slot;
Second business module sends second information to management board CPU element, for the management board CPU element
The first information sent according to first business module and groove position information, second information of first slot, to institute
The each port for stating the Higig business unit in the first business module carries out the equal stream process of Higig;Wherein, described
One information includes each port institute that the CPLD units in first business module are a corresponding Higig business unit
The address information of distribution, and the status information of each port of a Higig business unit.
The present invention provides a kind of equal current processing devices of Higig, including:
Acquisition module, for obtaining the groove position information of the first information and the first slot of the transmission of the first business module, and
The second information that second business module sends;Wherein, the first business module correspondence is inserted in first slot, described
Second business module correspondence is inserted in the second slot;The first information includes the CPLD in first business module
The address information that unit is distributed by each port of a corresponding Higig business unit, and a Higig business sheets
The status information of each port of unit;Second information includes the 2nd CPLD units in second business module to described first
The receive information of the detection code stream sent by each port of a Higig business unit by CPLD units, and the detection
The corresponding source port address information of code stream;
Processing module is for according to the first information, the groove position information of first slot and second information, right
Each port of the Higig business unit in first business module carries out the equal stream process of Higig.
The present invention provides a kind of equal current processing devices of Higig, including:
Processing module, for obtaining the groove position information of the first slot, and for each end of a corresponding Higig business unit
Mouth distribution address information, judges the status information of each port of a Higig business unit;First business module pair
Should be inserted in the first slot;
First sending module, is detected for being sent to the second business module by each port of a Higig business unit
Code stream, so that second business module sends the second information to management board CPU element, second information includes described second
Receive information of the 2nd CPLD units in business module to the detection code stream, and the corresponding source port of the detection code stream
Address information;The second business module correspondence is inserted in the second slot;
Second sending module, for the groove position of the first information and first slot is sent to the management board CPU element
Information, the first information include the address information of each port of a Higig business unit, and state letter
Breath, so that the management board CPU element is according to the first information, the groove position information of first slot and second letter
Breath, carries out the equal stream process of Higig to each port of the Higig business unit in first business module.
The present invention provides a kind of equal current processing devices of Higig, including:
Receiver module, for receiving the detection code stream that the first business module sends, and obtains the second information, second letter
Breath includes that the 2nd CPLD units in second business module pass through first to the CPLD units in the first business mould
The receive information of the detection code stream sent by each port of Higig business unit, and the corresponding source port of the detection code stream
Address information;Wherein, the first business module correspondence is inserted in the first slot, and the second business module correspondence is inserted into
In second slot;
Sending module, for sending second information to management board CPU element, for the management board CPU element root
The first information sent according to first business module and groove position information, second information of first slot, to described
Each port of the Higig business unit in the first business module carries out the equal stream process of Higig;Wherein, described first
Information includes each port point of the CPLD units in first business module by a corresponding Higig business unit
The address information matched somebody with somebody, and the status information of each port of a Higig business unit.
The equal method for stream processing of Higig and its device that the present invention is provided, management board CPU element is by obtaining the first business mould
Address information that a CPLD units in block are distributed by each port of a corresponding Higig business unit, obtain first
The 2nd CPLD in the status information of each port of Higig business unit, the groove position information of the first slot and the second business module
The receive information of the detection code stream sent by each port of a Higig business unit to a CPLD units by unit and
The corresponding source port address information of detection code stream, is carried out to each port of the Higig business unit in the first business module
The equal stream process of Higig.The status information of each port of the first Higig business unit is detected by a CPLD units, and by the
Two CPLD units judge the flow forwarding information of each port of a Higig business unit according to the detection code stream for receiving, it is to avoid
The status information and flow forwarding information of each port of Higig business unit are detected in prior art using management board CPU element
When, the congestion for causing, the phenomenon for blocking mitigate the burden of management board CPU element with this, it is therefore prevented that the phenomenon of frame losing, so as to carry
The high reliability of each port flow detection of Higig business unit.
Specific embodiment
The equal method for stream processing of Higig that the following embodiment of the present invention is provided is set suitable for switch module network service
In standby, to complete flow when at least two business modules of different slots interdigit carry out data forwarding by Higig is port interconnected
Detection, the purpose that flow flows when realizing across card exchange data.Said by taking two business modules as an example in the embodiment of the present invention
It is bright, but the invention is not restricted to this.
Fig. 1 is the schematic flow sheet of the equal method for stream processing embodiments of Higig of the present invention, embodiments provides one
The equal method for stream processing of Higig is planted, the executive agent of the embodiment of the present invention one is management board CPU element.As shown in figure 1, this enforcement
The method of example can include:
Step 101, management board CPU element obtain the groove position letter of the first information and the first slot of the first business module transmission
Breath, and the second information that the second business module sends;Wherein, the first business module correspondence is inserted into first slot
Interior, the second business module correspondence is inserted in the second slot.
In this step, the first information includes that the CPLD units in the first business module are a corresponding Higig
The address information distributed by each port of business unit, and the status information of each port of a Higig business unit, wherein,
The status information of each port of the first Higig business unit includes link up states and link down states, people in the art
Member it is appreciated that Higig ports only can just carry out the forwarding of data under link up states, if by data distribution to link
Higig ports under down states, can cause the phenomenon of a large amount of frame losings of data.Therefore, a CPLD units need detection first
The status information of each port of Higig business unit, to guarantee that data carry out sending out when the state of Higig ports is as link up
Send, the reliability that Higig flows can be improved.
Second information includes that the 2nd CPLD units in the second business module pass through a Higig industry to a CPLD units
The receive information of the detection code stream sent by each port of business unit, and the corresponding source port address information of detection code stream.Its
In, receive information includes a Higig business unit of the 2nd CPLD units according to corresponding to detection code stream and the detection code stream
Port address information, judge obtain each port of a Higig business unit flow forwarding information.Specifically, first
CPLD units are periodically sent out to the 2nd CPLD units in the second business module by each port of a Higig business unit
Code stream, a Higig business of the 2nd CPLD units according to corresponding to the detection code stream and the detection code stream that receive are surveyed in censorship
The address information of the port of unit, judges the flow forwarding information of each port of a Higig business unit.Wherein, periodic quantity can
To be flexibly set to 1s, 2s etc. according to actual needs.During concrete implementation, the suitable cycle can be rule of thumb selected
Value, for the selection of the occurrence in cycle, the present embodiment here is not particularly limited.
Fig. 2 is the equal stream processing system structural representations of Higig of the present invention.As shown in Fig. 2 the Higig that the present embodiment is provided
Stream processing system includes the first business module, the second business module and management board, wherein, the first business module correspondence is inserted into
In first slot, the second business module correspondence is inserted in the second slot, and management board correspondence is inserted in the 3rd slot.First industry
Business module includes a CPLD units, a Higig business unit and the first CPU element;Second business module includes second
CPLD units, the 2nd Higig business unit and the second CPU element, management board include management board CPU element.
In the present embodiment, the first business module is inserted after the first slot, the first CPU element meeting automatic identification first is inserted
The groove position information of groove by the groove position information reporting management board CPU element.After first CPU element identification slot position information, first
CPLD units are the different address of all Higig port assignments of a corresponding Higig business unit, make each Higig end
Mouth all has unique address.During specifically realizing, it is possible to use the physical port number and logic of exchange chip itself
Port numbers by information MAP in the corresponding Higig address registers of a CPLD units, so as to realize Higig port address
Distribution.
Specifically, the corresponding Higig address registers of a CPLD units are 16, as shown in Table 1, wherein comprising machine
Case groove place value, the port address value of a Higig business unit and link status register values.
Table one
As shown in Table 1, according to the physical port number and logical port number of exchange chip itself by information MAP to first
In the corresponding Higig address registers of CPLD units, will Higig ports address value write Higig address registers in
4- the 7th, and it is sent to management board CPU element.
Step 102, management board CPU element according to the first information, the groove position information of the first slot and the second information, to first
Each port of the Higig business unit in business module carries out the equal stream process of Higig.
In this step, as shown in Fig. 2 the CPLD units in the first business module are by a Higig business unit
The address information of each port, the status information of each port of a Higig business unit, the groove position information reporting first of the first slot
The first CPU element in business module, the first CPU element send that information to management board CPU element again;Second business module
Reception of the 2nd interior CPLD units according to the detection code stream sent by each port of a Higig business unit for receiving
Information and the corresponding source port address information of the detection code stream, and the address information of the receive information and source port is reported into second
The second CPU element in business module, then the flow forwarding information is sent to into management board CPU element by the second CPU element.Pipe
According to the information for receiving, reason plate CPU element judges whether each port of a Higig business unit has showing for mass flow discrepancy weighing apparatus
As if having, updating network topology structure, flow equal flow point being fitted on all of the port that higig port status are link up
On, carry out the equal stream process of Higig.
The equal method for stream processing of Higig provided in an embodiment of the present invention, management board CPU element is by obtaining the first business module
Address information that an interior CPLD units are distributed by each port of a corresponding Higig business unit, a Higig industry
The 2nd CPLD units in the business each status information of port of unit, the groove position information of the first slot and the second business module are to the
The receive information and detection code stream of the detection code stream sent by each port of a Higig business unit by one CPLD units
Corresponding source port address information, carries out Higig to each port of the Higig business unit in the first business module and flows
Process.The status information of each port of a Higig business unit is detected by a CPLD units, and it is mono- by the 2nd CPLD
Unit judges the flow forwarding information of each port of a Higig business unit according to the detection code stream for receiving, it is to avoid existing skill
When detecting the status information and flow forwarding information of each port of Higig business unit in art using management board CPU element, cause
Congestion, the phenomenon of blocking, mitigate the burden of management board CPU element with this, it is therefore prevented that the phenomenon of frame losing, so as to improve Higig
The reliability of each port flow detection of business unit.
The equal method for stream processing embodiments of Higig as above, wherein, detection code stream include Higig not linear speed code stream and
Higig linear speed code streams.Linear speed code stream is not the group number of the detection code stream sent in predetermined period less than predetermined threshold value to Higig
Code stream, Higig linear speed code streams are the code stream of the group number not less than predetermined threshold value of the detection code stream sent in predetermined period.In tool
During body is realized, can rule of thumb or actual design demand chooses suitable predetermined period and predetermined threshold value, for predetermined week
The selection of the occurrence of phase and predetermined threshold value, the present embodiment here are not particularly limited.
Specifically, linear speed code stream and Higig linear speed code stream values are not 16bit to Higig, for example:Higig not linear speed code streams
Value can be 00FFH, and Higig linear speed code streams value can be 5555H.It will be understood by those skilled in the art that a CPLD units
Can be to generate detection code stream in the way of clock is produced, such as:Higig linear speed code streams value 0,101 0,101 0,101 0101 can
To be combined by four 0101 rectangular pulses;And the non-linear speed code stream values 0,000 0,000 1,111 1111 of Higig, then can be by
Through 2 frequencys multiplication, the cycle is changed into 4 times and produces for one 0101 pulse.As can be seen here, using CPLD macroelement and I/O generate and
The mode for arranging detection code stream is simpler, easily realizes, reduces the cost of system.
When a CPLD units are sent to the 2nd CPLD units by each port of a Higig business unit simultaneously
During 00FFH and 5555H, if the 2nd CPLD units only receive 00FFH, illustrate that the corresponding source port of the detection code stream forwards number
It is less according to flow;If the 2nd CPLD units receive 00FFH and 5555H simultaneously, the corresponding source port of detection code stream is illustrated
Data traffic transmitting is larger;If the 2nd CPLD units be both not received by 00FFH, 5555H is also not received by, then illustrates the inspection
Survey the corresponding source port of code stream and do not forward data, wherein, source port refers to each port of a Higig business unit.
Fig. 3 is the schematic flow sheet of the equal method for stream processing embodiments of Higig of the present invention two, embodiments provides one
The equal method for stream processing of Higig is planted, the executive agent of the embodiment of the present invention two is the first business module, as shown in figure 3, the present embodiment
Method can include:
Step 301, the first business module obtain the groove position information of the first slot, and are a corresponding Higig business sheets
Each port assignment address information of unit, judges the status information of each port of a Higig business unit;The first business mould
Block correspondence is inserted in the first slot.
Specifically, after the first CPU element identification slot position information in the first business module, a CPLD units are the groove position
The different address of all Higig port assignments of an interior Higig business unit, has each Higig port unique
Address.During specifically realizing, it is possible to use the physical port number and logical port number of exchange chip itself is by information
It is mapped in a CPLD units, so as to realize the distribution of Higig port address.
Step 302, the first business module are sent to the second business module by each port of a Higig business unit and are examined
Code stream is surveyed, so that the second business module sends the second information to management board CPU element, the second information is included in the second business module
The 2nd CPLD units to detecting the receive information of code stream, and the detection corresponding source port address information of code stream;Second business
Module correspondence is inserted in the second slot.
In the present embodiment, receive information includes the 2nd CPLD units according to corresponding to detection code stream and the detection code stream
The address information of the port of the first Higig business unit, judges that the flow of each port of a Higig business unit for obtaining is forwarded
Information.Specifically, the CPLD units in the first business module by each port of a Higig business unit periodically
Send detection code stream to the 2nd CPLD units in the second business module, the 2nd CPLD units according to the detection code stream for receiving and
The address information of the port of the corresponding Higig business unit of the detection code stream, judges each port of a Higig business unit
Flow forwarding information, and after the flow forwarding information to be reported the second CPU element in the second business module, then by second
The flow forwarding information is sent to management board CPU element by CPU element.Wherein, periodic quantity flexibly can be set according to actual needs
It is set to 1s, 2s etc..During concrete implementation, suitable periodic quantity can be rule of thumb selected, for the occurrence in cycle
Choose, the present embodiment here is not particularly limited.
Step 303, the first business module also send the groove position letter of the first information and the first slot to management board CPU element
Breath, the first information includes the address information of each port of a Higig business unit, and status information, for management board CPU
Unit according to the first information, the groove position information of the first slot and the second information, to the Higig business in the first business module
Each port of unit carries out the equal stream process of Higig.
In the present embodiment, the first business module is inserted after the first slot, the first CPU element in the first business module
Can the first slot of automatic identification groove position information and by the groove position information reporting management board CPU element.First CPU element identification slot
After the information of position, a CPLD units are the different address of all Higig port assignments of a corresponding Higig business unit,
Make each Higig port that there is unique address.During specifically realizing, it is possible to use the physics of exchange chip itself
Port numbers and logical port number by information MAP in a CPLD units, so as to realize the distribution of Higig port address.First
After CPLD units are all Higig port assignments addresses of a Higig business unit, sentencing for each port status information is carried out
It is disconnected, and by the first CPU element of the address information and state information report, and it is mono- to be sent to management board CPU by the first CPU element
Unit.
Management board CPU element according to the address information of each port of a Higig business unit for receiving, status information,
The groove position information of the first slot and the flow forwarding information of each port, judge whether each port of a Higig business unit has stream
Unbalanced phenomenon is measured, if having, network topology structure is updated, flow equal flow point is fitted on into higig port status for link up
All of the port on, carry out the equal stream process of Higig.
The equal method for stream processing of Higig provided in an embodiment of the present invention, the CPLD units in the first business module are right
Each port assignment address information of the Higig business unit answered, while judge each port of a Higig business unit
Status information, and the address information and status information are sent to into management board CPU element;First business module passes through first
Each port of Higig business unit sends detection code stream to the second business module, so that the second business module is according to the inspection for obtaining
Code stream and the corresponding source port address information of the detection code stream are surveyed, the flow of each port of a Higig business unit is known in judgement
Forwarding information, and the forwarding information is sent to into management board CPU element;A Higig industry of the management board CPU element by acquisition
The address information of each port of business unit, status information, the groove position information of the first slot and flow forwarding information carry out Higig and flow
Process.The status information of each port of a Higig business unit is detected by a CPLD units, and it is mono- by the 2nd CPLD
Unit judges the flow forwarding information of each port of a Higig business unit according to the detection code stream for receiving, it is to avoid existing skill
When detecting the status information and flow forwarding information of each port of Higig business unit in art using management board CPU element, cause
Congestion, the phenomenon of blocking, mitigate the burden of management board CPU element with this, it is therefore prevented that the phenomenon of frame losing, so as to improve Higig
The reliability of each port flow detection of business unit.
Fig. 4 is the schematic flow sheet of the equal method for stream processing embodiments of Higig of the present invention three, embodiments provides one
The equal method for stream processing of Higig is planted, the method can be performed by the first business module.The present embodiment is in the equal stream process sides of Higig
On the basis of method embodiment two, the detailed process of step 301 is elaborated, as shown in figure 4, the method for the present embodiment can be with
Including:
The level value of step 401, the signal in place of setting host backplane, by the level of the signal in place of the first business module
Value makees contrary process.
Specifically, the level value of signal in place is set in host backplane, power supply is such as grounded or connects, and by the first business
The signal in place of module is made contrary pullup or pulldown and is processed.
Step 402, detect the level value of corresponding signal in place in the host backplane whether with the first business mould
The level value of the signal in place of block is consistent, if unanimously, first business module inserts the signal in place of the host backplane
In corresponding groove position.
In the present embodiment, when the first business module inserts the groove position of host backplane, the letter in place of the first business module
Number it is connected with the signal in place of host backplane, then the level value of the signal in place of host backplane can occur saltus step, and the first business
The level value of the signal in place of module is consistent.If the first CPU element in the first business module detects corresponding in host backplane
Signal in place level value it is consistent with the level value of the signal in place of the first business module, then illustrate the first business module insert
In the corresponding slot of the signal in place;If inconsistent, illustrate that the first business module is not inserted in the slot.
Step 403, the groove position information for obtaining the groove position.
In this step, insert in the first slot when the first CPU element detects the first business module, then read the groove
The groove position information of position, and by the 8- the 11st of Higig address registers in groove position information write table one, and it is sent to management
Plate CPU element.
A CPLD units in step 404, the first business module are each port of a corresponding Higig business unit
Distribution address information.
Step 405, the value that Link status registers are set.
Specifically, after electricity on cabinet, by the beginning of the value of the Link status registers in Higig address registers in table one
Beginning turns to 1, i.e. the original state of each port of a Higig business unit is link down states.
Step 406, whether changed according to the value of Link status registers, obtain a Higig business unit
The status information of each port.
Wherein, the status information of each port of a Higig business unit includes link up states and link down states.
After the startup of whole machine is completed, the exchange chip in the first business module utilizes the linkcan functions of itself, is scanned using poll
Mode judge whether the value of Link status registers occurs saltus step, i.e., be changed into 0 from 1, if occur saltus step, illustrate that the port is
Link up states, otherwise, illustrate that the port is link down states.
Step 407, the first business module are sent to the second business module by each port of a Higig business unit and are examined
Code stream is surveyed, so that the second business module sends the second information to management board CPU element, the second information is included in the second business module
The 2nd CPLD units to detecting the receive information of code stream, and the detection corresponding source port address information of code stream;Second business
Module correspondence is inserted in the second slot.
Step 408, the first business module also send the groove position letter of the first information and the first slot to management board CPU element
Breath, the first information includes the address information of each port of a Higig business unit, and status information, for management board CPU
Unit according to the first information, the groove position information of the first slot and the second information, to the Higig business in the first business module
Each port of unit carries out the equal stream process of Higig
Step 407- step 408 is similar with the step 302- step 303 in the embodiment of the present invention two, will not be described here.
The equal method for stream processing of Higig provided in an embodiment of the present invention, obtains the groove of the first slot by the first business module
Position information, and the shape of each port for obtaining a Higig business unit that whether changed according to the value of Link status registers
State information, it is to avoid the shape of management board CPU element detect tank position information and Higig business unit each port is adopted in prior art
During state information, the congestion for causing, the phenomenon for blocking, with the burden that this mitigates management board CPU element, improve the efficiency of detection,
And when the port burst link down states of a Higig business unit, the first business module can be detected in time,
The phenomenon of frame losing is prevented, so as to improve the reliability of detection.
The equal method for stream processing embodiments of Higig as above, wherein, detection code stream include Higig not linear speed code stream and
Higig linear speed code streams.Linear speed code stream is not the group number of the detection code stream sent in predetermined period less than predetermined threshold value to Higig
Code stream, Higig linear speed code streams are the code stream of the group number not less than predetermined threshold value of the detection code stream sent in predetermined period.In tool
During body is realized, can rule of thumb or actual design demand chooses suitable predetermined period and predetermined threshold value, for predetermined week
The selection of the occurrence of phase and predetermined threshold value, the present embodiment here are not particularly limited.
Specifically, linear speed code stream and Higig linear speed code stream values are not 16bit to Higig, for example:Higig not linear speed code streams
Value can be 00FFH, and Higig linear speed code streams value can be 5555H.It will be understood by those skilled in the art that a CPLD units
Mode according to clock is produced generates detection code stream, for example:Higig linear speed code streams value 0,101 0,101 0,101 0101 is by four
0101 rectangular pulse is combined;And the non-linear speed code stream values 0,000 0,000 1,111 1111 of Higig, then by 0101 pulse
Through 2 frequencys multiplication, the cycle is changed into 4 times and produces.As can be seen here, generated using the macroelement and I/O of CPLD and detection code stream is set
Mode it is simpler, easily realize, reduce the cost of system.
When a CPLD units are sent to the 2nd CPLD units by each port of a Higig business unit simultaneously
During 00FFH and 5555H, if the 2nd CPLD units only receive 00FFH, illustrate that the corresponding source port of the detection code stream forwards number
It is less according to flow;If the 2nd CPLD units receive 00FFH and 5555H simultaneously, the corresponding source port of detection code stream is illustrated
Data traffic transmitting is larger;If the 2nd CPLD units be both not received by 00FFH, 5555H is also not received by, then illustrates the inspection
Survey the corresponding source port of code stream and do not forward data, wherein, source port refers to each port of a Higig business unit.
Fig. 5 is the schematic flow sheet of the equal method for stream processing example IVs of Higig of the present invention, embodiments provides one
The equal method for stream processing of Higig is planted, the executive agent of the embodiment of the present invention four is the second business module, as shown in figure 5, the present embodiment
Method can include:
Step 501, the second business module receive the detection code stream that the first business module sends, and obtain the second information, the
Two information include that the 2nd CPLD units in the second business module pass through first to the CPLD units in the first business mould
The receive information of the detection code stream sent by each port of Higig business unit, and the corresponding source port address of detection code stream
Information;Wherein, the first business module correspondence is inserted in the first slot, and the second business module correspondence is inserted in the second slot.
In this step, receive information includes the 2nd CPLD units according to corresponding to detection code stream and the detection code stream the
The address information of the port of one Higig business unit, judges that the flow forwarding of each port of a Higig business unit for obtaining is believed
Breath.Specifically, the CPLD units in the first business module by each port of a Higig business unit periodically to
The 2nd CPLD units in second business module send detection code stream, and the 2nd CPLD units are according to the detection code stream for receiving and are somebody's turn to do
The address information of each port of the corresponding Higig business unit of detection code stream, judges each port of a Higig business unit
Flow forwarding information.Wherein, periodic quantity can flexibly be set to 1s, 2s etc. according to actual needs.During concrete implementation,
Suitable periodic quantity can be rule of thumb selected, for the selection of the occurrence in cycle, the present embodiment here is not particularly limited.
Step 502, the second business module to management board CPU element send the second information, for management board CPU element according to
The first information and groove position information, second information of the first slot that first business module sends, to the in the first business module
Each port of one Higig business unit carries out the equal stream process of Higig;Wherein, the first information includes in the first business module
The address information that one CPLD units are distributed by each port of a corresponding Higig business unit, and a Higig business
The status information of each port of unit.
Specifically, the 2nd CPLD units in the second business module will determine that the flow forwarding information known reports the second industry
The second CPU element in business module, then the flow forwarding information is sent to into management board CPU element by the second CPU element;First
The groove position information of the first slot, the address information of each port of a Higig business unit and status information are sent out by business module
Management board CPU element is given, according to the information for receiving, management board CPU element judges that each port of a Higig business unit is
The no phenomenon for having mass flow discrepancy to weigh, if having, updates network topology structure, and flow equal flow point is fitted on higig port status is
On all of the port of link up, the equal stream process of Higig are carried out.
The equal method for stream processing of Higig provided in an embodiment of the present invention, the second business module pass through according to the first business module
The detection code stream and the corresponding source port address information of the detection code stream that each port of the first Higig business unit sends judges each
The flow forwarding information of port, and the forwarding information is sent to into management board CPU element;A CPLD in first business module
Unit is each port assignment address information of a corresponding Higig business unit, while judging a Higig business unit
The status information of each port, and the address information and status information are sent to into management board CPU element;Management board CPU element leads to
Address information, status information, the groove position information of the first slot and the flow for crossing each port of a Higig business unit for obtaining turns
Photos and sending messages carry out the equal stream process of Higig.The state letter of each port of a Higig business unit is detected by a CPLD units
Breath, and judge that the flow of a Higig business unit each port turn according to the detection code stream for receiving by the 2nd CPLD units
Photos and sending messages, it is to avoid detect the status information and stream of each port of Higig business unit in prior art using management board CPU element
During amount forwarding information, the congestion that causes, the phenomenon of blocking mitigate the burden of management board CPU element with this, it is therefore prevented that frame losing shows
As so as to improve the reliability of each port flow detection of Higig business unit.
The equal method for stream processing embodiments of Higig as above, wherein, detection code stream include Higig not linear speed code stream and
Higig linear speed code streams.Linear speed code stream is not the group number of the detection code stream sent in predetermined period less than predetermined threshold value to Higig
Code stream, Higig linear speed code streams are the code stream of the group number not less than predetermined threshold value of the detection code stream sent in predetermined period.In tool
During body is realized, can rule of thumb or actual design demand chooses suitable predetermined period and predetermined threshold value, for predetermined week
The selection of the occurrence of phase and predetermined threshold value, the present embodiment here are not particularly limited.
Specifically, linear speed code stream and Higig linear speed code stream values are not 16bit to Higig, for example:Higig not linear speed code streams
Value can be 00FFH, and Higig linear speed code streams value can be 5555H.It will be understood by those skilled in the art that a CPLD units
Mode according to clock is produced generates detection code stream, for example:Higig linear speed code streams value 0,101 0,101 0,101 0101 is by four
0101 rectangular pulse is combined;And the non-linear speed code stream values 0,000 0,000 1,111 1111 of Higig, then by 0101 pulse
Through 2 frequencys multiplication, the cycle is changed into 4 times and produces.As can be seen here, generated using the macroelement and I/O of CPLD and detection code stream is set
Mode it is simpler, easily realize, reduce the cost of system.
When a CPLD units are sent to the 2nd CPLD units by each port of a Higig business unit simultaneously
During 00FFH and 5555H, if the 2nd CPLD units only receive 00FFH, illustrate that the corresponding source port of the detection code stream forwards number
It is less according to flow;If the 2nd CPLD units receive 00FFH and 5555H simultaneously, the corresponding source port of detection code stream is illustrated
Data traffic transmitting is larger;If the 2nd CPLD units be both not received by 00FFH, 5555H is also not received by, then illustrates the inspection
Survey the corresponding source port of code stream and do not forward data, wherein, source port refers to each port of a Higig business unit.
Fig. 6 is the structural representation of the equal current processing device embodiments of Higig of the present invention, as shown in fig. 6, the present invention is implemented
The equal current processing devices of Higig that example is provided include:
Acquisition module 601, for obtaining the groove position information of the first information and the first slot of the transmission of the first business module, and
The second information that second business module sends;Wherein, the first business module correspondence is inserted in first slot, described
Second business module correspondence is inserted in the second slot;The first information includes the CPLD in first business module
The address information that unit is distributed by each port of a corresponding Higig business unit, and a Higig business sheets
The status information of each port of unit;Second information includes the 2nd CPLD units in second business module to described first
The receive information of the detection code stream sent by each port of a Higig business unit by CPLD units, and the detection
The corresponding source port address information of code stream;
Processing module 602, for according to the first information, the groove position information of first slot and second letter
Breath, carries out the equal stream process of Higig to each port of the Higig business unit in first business module.
The equal current processing device of Higig provided in an embodiment of the present invention, management board CPU element is by obtaining the first business module
Address information that an interior CPLD units are distributed by each port of a corresponding Higig business unit, a Higig industry
The 2nd CPLD units in the business each status information of port of unit, the groove position information of the first slot and the second business module are to the
The receive information and detection code stream of the detection code stream sent by each port of a Higig business unit by one CPLD units
Corresponding source port address information, carries out Higig to each port of the Higig business unit in the first business module and flows
Process.The status information of each port of a Higig business unit is detected by a CPLD units, and it is mono- by the 2nd CPLD
Unit judges the flow forwarding information of each port of a Higig business unit according to the detection code stream for receiving, it is to avoid existing skill
When detecting the status information and flow forwarding information of each port of Higig business unit in art using management board CPU element, cause
Congestion, the phenomenon of blocking, mitigate the burden of management board CPU element with this, it is therefore prevented that the phenomenon of frame losing, so as to improve Higig
The reliability of each port flow detection of business unit.
The equal current processing device embodiments of Higig as above, wherein, the detection code stream includes:Higig not linear speed codes
Stream and Higig linear speed code streams;Linear speed code stream is not the group number of the detection code stream sent in predetermined period less than pre- to the Higig
If the code stream of threshold value;The Higig linear speeds code stream is the group number of the detection code stream sent in predetermined period not less than default threshold
The code stream of value.
The equal current processing devices of Higig of the present embodiment, which is used to performing the Higig provided by various embodiments of the present invention and flows
Processing method, realizes that principle and technique effect to be reached above have been discussed, will not be described here.
Fig. 7 is the structural representation of the equal current processing device embodiments of Higig of the present invention two, as shown in fig. 7, the present invention is implemented
The equal current processing devices of Higig that example is provided include:
Processing module 701, for obtaining the groove position information of the first slot, and for a corresponding Higig business unit
Each port assignment address information, judges the status information of each port of a Higig business unit;The first business mould
Block correspondence is inserted in the first slot;
First sending module 702, is examined for being sent to the second business module by each port of a Higig business unit
Code stream is surveyed, so that second business module sends the second information to management board CPU element, second information includes described the
Receive information of the 2nd CPLD units in two business modules to the detection code stream, and the corresponding source of the detection code stream
Port address information;The second business module correspondence is inserted in the second slot;
Second sending module 703, for the groove of the first information and first slot is sent to the management board CPU element
Position information, the first information include the address information of each port of a Higig business unit, and state letter
Breath, so that the management board CPU element is according to the first information, the groove position information of first slot and second letter
Breath, carries out the equal stream process of Higig to each port of the Higig business unit in first business module.
The equal current processing device of Higig provided in an embodiment of the present invention, the CPLD units in the first business module are right
Each port assignment address information of the Higig business unit answered, while judge each port of a Higig business unit
Status information, and the address information and status information are sent to into management board CPU element;First business module passes through first
Each port of Higig business unit sends detection code stream to the second business module, so that the second business module is according to the inspection for obtaining
Code stream and the corresponding source port address information of the detection code stream are surveyed, the flow of each port of a Higig business unit is known in judgement
Forwarding information, and the forwarding information is sent to into management board CPU element;A Higig industry of the management board CPU element by acquisition
The address information of each port of business unit, status information, the groove position information of the first slot and flow forwarding information carry out Higig and flow
Process.The status information of each port of a Higig business unit is detected by a CPLD units, and it is mono- by the 2nd CPLD
Unit judges the flow forwarding information of each port of a Higig business unit according to the detection code stream for receiving, it is to avoid existing skill
When detecting the status information and flow forwarding information of each port of Higig business unit in art using management board CPU element, cause
Congestion, the phenomenon of blocking, mitigate the burden of management board CPU with this, it is therefore prevented that the phenomenon of frame losing, so as to improve Higig business
The reliability of each port flow detection of unit.
Fig. 8 is the structural representation of the equal current processing device embodiments of Higig of the present invention three, as shown in figure 8, the present embodiment exists
On the basis of embodiment illustrated in fig. 7, the processing module 701 includes:
First setting unit 7011, for arranging the level value of the signal in place of host backplane, by the first business module
The level value of signal in place makees contrary process;
First detector unit 7012, for detect in the host backplane level value of corresponding signal in place whether with institute
The level value for stating the signal in place of the first business module is consistent, if unanimously, first business module inserts the main frame back of the body
In the corresponding groove position of signal in place of plate;
Acquiring unit 7013, for obtaining the groove position information of the groove position.
Alternatively, the processing module 701 also includes:
Second setting unit 7014, for arranging the value of Link status registers;
Second detector unit 7015, for whether changing according to the value of Link status registers, obtains described first
The status information of each port of Higig business unit;
If so, then the port status of the Higig ports are link up states;
If it is not, then the port status of the Higig ports are link down states.
The equal current processing device embodiments of Higig as above, wherein, the detection code stream includes:Higig not linear speed codes
Stream and Higig linear speed code streams;Linear speed code stream is not the group number of the detection code stream sent in predetermined period less than pre- to the Higig
If the code stream of threshold value;The Higig linear speeds code stream is the group number of the detection code stream sent in predetermined period not less than default threshold
The code stream of value.
Fig. 9 is the structural representation of the equal current processing device example IVs of Higig of the present invention, as shown in figure 9, the present invention is implemented
The equal current processing devices of Higig that example is provided include:
Receiver module 901, for receiving the detection code stream that the first business module sends, and obtains the second information, and described the
Two information include the 2nd CPLD units in second business module to the CPLD units in the first business mould by the
The receive information of the detection code stream sent by each port of one Higig business unit, and the corresponding source of the detection code stream
Port address information;Wherein, the first business module correspondence is inserted in the first slot, and the second business module correspondence is inserted
To in the second slot;
Sending module 902, for sending second information to management board CPU element, for the management board CPU element
The first information sent according to first business module and groove position information, second information of first slot, to institute
The each port for stating the Higig business unit in the first business module carries out the equal stream process of Higig;Wherein, described
One information includes each port institute that the CPLD units in first business module are a corresponding Higig business unit
The address information of distribution, and the status information of each port of a Higig business unit.
The equal current processing device of Higig provided in an embodiment of the present invention, the second business module pass through according to the first business module
The detection code stream and the corresponding source port address information of the detection code stream that each port of the first Higig business unit sends judges each
The flow forwarding information of port, and the forwarding information is sent to into management board CPU element;A CPLD in first business module
Unit is each port assignment address information of a corresponding Higig business unit, while judging a Higig business unit
The status information of each port, and the address information and status information are sent to into management board CPU element;Management board CPU element leads to
Address information, status information, the groove position information of the first slot and the flow for crossing each port of a Higig business unit for obtaining turns
Photos and sending messages carry out the equal stream process of Higig.The state letter of each port of a Higig business unit is detected by a CPLD units
Breath, and judge that the flow of a Higig business unit each port turn according to the detection code stream for receiving by the 2nd CPLD units
Photos and sending messages, it is to avoid detect the status information and stream of each port of Higig business unit in prior art using management board CPU element
During amount forwarding information, the congestion for causing, the phenomenon for blocking mitigate the burden of management board CPU with this, it is therefore prevented that the phenomenon of frame losing,
So as to improve the reliability of each port flow detection of Higig business unit.
The equal current processing device embodiments of Higig as above, wherein, the detection code stream includes:Higig not linear speed codes
Stream and Higig linear speed code streams;Linear speed code stream is not the group number of the detection code stream sent in predetermined period less than pre- to the Higig
If the code stream of threshold value;The Higig linear speeds code stream is the group number of the detection code stream sent in predetermined period not less than default threshold
The code stream of value.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can be led to
Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, performs the step of including above-mentioned each method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above only to illustrate technical scheme, rather than a limitation;To the greatest extent
Pipe has been described in detail to the present invention with reference to foregoing embodiments, it will be understood by those within the art that:Its according to
So the technical scheme described in foregoing embodiments can be modified, or which part or all technical characteristic are entered
Row equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology
The scope of scheme.