CN101394288A - Port mirroring implementing method and apparatus for Ethernet apparatus - Google Patents

Port mirroring implementing method and apparatus for Ethernet apparatus Download PDF

Info

Publication number
CN101394288A
CN101394288A CNA2008101764182A CN200810176418A CN101394288A CN 101394288 A CN101394288 A CN 101394288A CN A2008101764182 A CNA2008101764182 A CN A2008101764182A CN 200810176418 A CN200810176418 A CN 200810176418A CN 101394288 A CN101394288 A CN 101394288A
Authority
CN
China
Prior art keywords
port
phy chip
interface module
optical
data message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008101764182A
Other languages
Chinese (zh)
Other versions
CN101394288B (en
Inventor
陈武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN2008101764182A priority Critical patent/CN101394288B/en
Publication of CN101394288A publication Critical patent/CN101394288A/en
Application granted granted Critical
Publication of CN101394288B publication Critical patent/CN101394288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for achieving a port mirroring of an Ethernet device and is applicable to a PHY chip provided with a photoelectric multiplexing port. The method comprises the following steps: when mirroring is conducted on an optical port connected with an optical interface module in the PHY chip, an electrical port connected with an electrical interface in the PHY layer enters a connection state, an interface multiplexer in the PHY chip is controlled, and then a data message received by the optical port or sent through the optical port is forwarded to the electrical port, so that port mirroring of the electrical port to the optical port is achieved; and when the electrical port conducts mirroring, the optical port enters a connection state, the port multiplexer is controlled, and then a data message received by the electrical port or sent through the electrical port is forwarded to the optical port, so that port mirroring of the optical port to the electrical port is achieved. The method and the device realizes the function of port mirroring by using a photoelectric multiplexing port in the same PHY chip, thereby effectively increasing the utilization ratio of the port.

Description

A kind of ethernet device Port Mirroring implementation method and device
Technical field
The present invention relates to Ethernet, relate in particular to a kind of Port Mirroring implementation method and device of ethernet device.
Background technology
Ethernet is by U.S. electric and (the Institute of Electrical andElectronics Engineers of Electronic Engineering Association, IEEE) standardized a kind of local area network (LAN) interconnection technique, the major technique standard of Ethernet defines in the normative document IEEE 802.3 of IEEE issue, (Media Access Control, MAC) functional mode of chip, layering and branch block message have specific definition in IEEE802.3 for ethernet physical layer (PHY) chip and media interviews control.The Ethernet of mainstream applications connects media optical fiber and unshielded twisted pair (Unshielded Twisted Paired, UTP) two kinds.Wherein optical fiber and UTP respectively have its advantage: the optical fiber price is relatively costly, but single channel optical fiber has transmission range far away usually, can reach 40 kilometers; And the UTP cable is more cheap, but because mainly be subjected to decaying isoparametric influence, can only transmit more than 100 meter usually, so a lot of ethernet device has all added photoelectric multiplexing port in order to realize the flexibility in this application.So-called photoelectric multiplexing port is actually two ports, and they are operated in optical fiber interface pattern and UTP electrical interface pattern respectively, realize normal exchange work but synchronization has only a port can be linked into exchange chip.These two ports are by providing with a slice PHY chip simultaneously.
PHY chip with photoelectric multiplexing port mainly comprises 4 modules, is respectively: MAC interface module, interface multiplexer, optical interface module and electrical interface module.A kind of design of common photoelectric multiplexing interface (has 2 photoelectric multiplexing ports) as shown in Figure 1, wherein:
The optical interface module connects optical port (as optical fiber interface), and be connected to interface multiplexer by the F line, electrical interface module connects electric port (as the UTP interface), and be connected to interface multiplexer by the T line, interface multiplexer is connected to MAC functional module in the exchange chip by the MAC interface module by the COM line, and can only have an interface module (optical interface module or electrical interface module) to be connected with the MAC functional module of exchange chip inside by the interface multiplexer decision at synchronization.The MAC functional module of exchange chip inside realizes different media interviews controlled function when distinct interface module in the PHY chip is connected, and defines in normative document IEEE 802.3 about the detail of media interviews control.
In order to carry out the monitoring of network flow monitoring, network supervision, virus monitoring or bad data, need to realize the Port Mirroring function of ethernet device.So-called Port Mirroring (English is commonly called as Mirror) is exactly with the transmission of a port (source mirror port) or intact the duplicating to another port (purpose mirror port) of data that receives.In the prior art, the ethernet device Port Mirroring is realized by exchange chip, promptly by the forwarding rule of exchange chip is set, realizes the function of a particular port toward another particular port mirror image.The implementation procedure of this mirror image is as shown in Figure 2:
After the data message of source mirror port (monitored port B) enters the PHY chip, be sent to exchange chip, exchange chip is according to the forwarding rule of setting then, message is forwarded to correct purpose receiving port (the A port among Fig. 2), simultaneously, owing to opened the image feature of B port, so the intact portion that duplicates of message that exchange chip also can be received the B port is to the purpose mirror port (policing port C) on the right to the C port.
In the prior art, another kind of mirror image scheme is on data image to a policing port with a plurality of ports, realize of the monitoring of a port to a plurality of ports, the problem that this mirror image scheme is introduced is that flow sum when a plurality of monitored ports is during greater than the policing port flow, blocking must appear in policing port, and this may cause important loss of data.And monitored port crucial port such as cochain normally, the flow of these ports is bigger usually, uses the disadvantage of a plurality of ports of port monitoring to embody more obviously at this moment.
In sum, there is following shortcoming in the ethernet device Port Mirroring in the prior art:
1) port utilization ratio is low.Policing port (purpose mirror port) and monitored port (source mirror port) have taken the port of a MAC and a PHY chip respectively separately, make need introduce effective port cost when realizing the Port Mirroring function.
2) increased the bandwidth burden of exchange chip.In the art methods, all must use exchange chip to participate in transmitting, redundant monitor data need be finished by exchange chip and duplicate, and has taken the switching bandwidth resource of exchange chip.
3) in the monitoring of carrying out one-to-many (being mirror image) is used, when monitored port flow is big, can't realize 100% monitoring, can occur blocking and the policing port packet loss.
Summary of the invention
The invention provides a kind of ethernet device Port Mirroring implementation method and device, utilize with the photoelectric multiplexing port in a slice PHY chip and realize the Port Mirroring function, effectively improve port utilization ratio.
One of ethernet device Port Mirroring implementation method provided by the invention is applied to have the PHY chip of photoelectric multiplexing port, comprising:
When the optical port that is connected with optical interface module in the described PHY chip is carried out mirror image, the electric port that is connected with electrical interface module in the described PHY chip is set enters connection status, and control data message that the interface multiplexer in the described PHY chip receives described optical port or the data message forwarding by described optical port transmission arrives described electric port.
Two of ethernet device Port Mirroring implementation method provided by the invention is applied to have the PHY chip of photoelectric multiplexing port, comprising:
When the electric port that is connected with electrical interface module in the described PHY chip is carried out mirror image, the optical port that is connected with optical interface module in the described PHY chip is set enters connection status, and control data message that the interface multiplexer in the described PHY chip receives described electric port or the data message forwarding by described electric port transmission arrives described optical port.
One of ethernet device Port Mirroring control device provided by the invention is applied to control the PHY chip with photoelectric multiplexing port, comprising:
Mirror image function modules, be used for when the optical port that is connected with the optical interface module of described PHY chip is carried out mirror image, control data message that the interface multiplexer in the described PHY chip receives described optical port or the data message forwarding that sends by described optical port to the electric port that is connected with electrical interface module in the described PHY chip;
The connection status control module is used to be provided with described electric port and enters connection status.
Two of ethernet device Port Mirroring control device provided by the invention is applied to control the PHY chip with photoelectric multiplexing port, comprising:
Mirror image function modules, be used for when the electric port that the electrical interface module with described PHY chip is connected carries out mirror image, control the interface multiplexer in the described PHY chip, data message that described electric port is received or the data message forwarding that sends by described electric port are to the optical port that is connected with optical interface module in the described PHY chip;
The connection status control module is used to be provided with described optical port and enters connection status.
Beneficial effect of the present invention is as follows:
Ethernet device Port Mirroring implementation method provided by the invention and device, be applied to have the PHY chip of photoelectric multiplexing port, when the optical port that is connected with optical interface module in the PHY chip is carried out mirror image, by being set, the electric port that is connected with electrical interface module in the described PHY chip enters connection status, and the interface multiplexer in the control PHY chip, data message that optical port is received or the data message forwarding that sends by optical port are to the electric port that is connected with electrical interface module in this PHY chip; So just realized by with the electric port in a slice PHY chip as the Port Mirroring of purpose mirror port to source mirror port (optical port).In like manner, when the electric port under the PHY chip is carried out mirror image, by being set, the optical port that is connected with optical interface module in the described PHY chip enters connection status, and the interface multiplexer in the control PHY chip, the data message that electric port is received or arrive optical port under this PHY chip by the data message forwarding that electric port sends; Realized by with the optical port in a slice PHY chip as the Port Mirroring of purpose mirror port to source mirror port (electric port).It (is that synchronization has only a port and exchange chip to realize normal exchange work that the present invention makes full use of with the photoelectric multiplexing characteristic of the photoelectric multiplexing port of a slice PHY chip, another port free time), realization is with the mutual mirror image of optical port under a slice PHY chip and electric port, when realizing the Port Mirroring function, do not need to monopolize in addition other port, effectively improved port utilization ratio; And owing to be in a slice PHY chip, to realize Port Mirroring, do not need exchange chip to participate in data message forwarding, do not need to take the bandwidth resources of exchange chip, effectively improved the bandwidth availability ratio of exchange chip.
Description of drawings
Fig. 1 is for having the PHY chip structure schematic diagram of photoelectric multiplexing port in the prior art;
Fig. 2 is a schematic diagram of realizing the Port Mirroring function in the prior art by exchange chip;
Interface multiplexer structural representation in the PHY chip that Fig. 3 provides for the embodiment of the invention;
One of current on off operating mode schematic diagram of each switching circuit in the interface multiplexer that Fig. 4 provides for the embodiment of the invention;
Fig. 5 transmits and is forwarded to one of schematic diagram of mirror port for the data message that the embodiment of the invention provides;
In the interface multiplexer that Fig. 6 provides for the embodiment of the invention two of the current on off operating mode schematic diagram of each switching circuit;
The data message that Fig. 7 provides for the embodiment of the invention transmit and be forwarded to mirror port schematic diagram two;
In the interface multiplexer that Fig. 8 provides for the embodiment of the invention three of the current on off operating mode schematic diagram of each switching circuit;
The data message that Fig. 9 provides for the embodiment of the invention transmit and be forwarded to mirror port schematic diagram three;
The data message that Figure 10 provides for the embodiment of the invention transmit and be forwarded to mirror port schematic diagram four;
One of ethernet device Port Mirroring control device structural representation that Figure 11 provides for the embodiment of the invention;
Two of the ethernet device Port Mirroring control device structural representation that Figure 12 provides for the embodiment of the invention;
The ethernet device Port Mirroring control device control PHY chip that Figure 13 provides for the embodiment of the invention is realized the control flow chart of Port Mirroring.
Embodiment
Below in conjunction with accompanying drawing, ethernet device Port Mirroring implementation method provided by the invention and device are described in detail.
The invention provides one of ethernet device Port Mirroring implementation method, be applied to have the PHY chip of photoelectric multiplexing port, by the electric port that is connected with electrical interface module in the PHY chip, realize that this method comprises to the mirror image of the optical port that is connected with optical interface module in the PHY chip:
When the optical port that is connected with optical interface module in the PHY chip is carried out mirror image, the electric port that is connected with electrical interface module in the PHY chip is set enters connection status, and control interface multiplexer in this PHY chip, data message that optical port is received or the data message forwarding that sends by optical port be to the electric port that is connected with electrical interface module in this PHY chip, realizes that electric port under the PHY chip is to the Port Mirroring of optical port.
The present invention provides two of ethernet device Port Mirroring implementation method in addition, be applied to have the PHY chip of photoelectric multiplexing port, by the optical port that is connected with optical interface module in the PHY chip, realize that this method comprises to the mirror image of the electric port that is connected with electrical interface module in the PHY chip:
When the electric port that is connected with electrical interface module in the PHY chip is carried out mirror image, the optical port that is connected with optical interface module in the PHY chip is set enters connection status, and control interface multiplexer in this PHY chip, the data message forwarding that electric port is received data message or send by electric port is to this PHY chip optical port down, and the optical port under the realization PHY chip is to the Port Mirroring of electric port.
Since in the PHY chip no matter be the optical interface module, or electrical interface module, can realize compulsory connection control by the register among the PHY, that is to say, as long as the opposite end of optical fiber interface has connected the equipment (equipment with standard ethernet interface) of same-interface, and the speed and duplex condition is known, then can make the optical interface module of this PHY realize correctly being connected (the connection here is called Link up) with Peer-Port by the register of configuration PHY.For the UTP interface also is the same.This means that two different interfaces can enter Link up state simultaneously below the PHY chip that uses same MAC.The present invention utilizes this principle, has realized with optical port under a slice PHY chip and the mutual mirror image between the electric port.
For realizing said method, the interface multiplexer structural model in a kind of PHY chip comprises as shown in Figure 3:
The first switching circuit SW1, an end is connected with the MAC interface module, and the other end is connected to optical interface module in the PHY chip by the F line, is used for being switched on or switched off the optical interface module and the MAC interface module of PHY chip;
Second switch circuit SW2, an end is connected with the MAC interface module, and the other end is connected to electrical interface module in the PHY chip by the T line, is used for being switched on or switched off the electrical interface module and the MAC interface module of PHY chip;
The 3rd switching circuit SW3, be connected between optical interface module in the PHY chip and the electrical interface module between, be used to be switched on or switched off optical interface module and electrical interface module.
Under the initial condition, the first switching circuit SW1, second switch circuit SW2 and the 3rd switching circuit SW3 are under the off-state.
In the practical application, the first switching circuit SW1, second switch circuit SW2 and the 3rd switching circuit SW3 can adopt Digital Logical Circuits to realize.
According to the PHY chip receiving data packets (receiving mode) and the different of (sending mode) that send datagram, concrete mirror image scheme comprises following four kinds, is described in detail as follows below in conjunction with interface multiplexer shown in Figure 3 to each scheme:
Scheme one: the mirror image implementation of the optical port receiving data packets under the PHY chip.
The implementation method of the optical port receiving data packets under the PHY chip being carried out mirror image is:
Connect first switching circuit that is connected in the interface multiplexer between optical interface module and the MAC interface module, and be connected in the 3rd switching circuit between optical interface module and the electrical interface module in the connection interface multiplexer, and make the electric port under the PHY chip enter connection status; When the optical port receiving data packets under the PHY chip, send data message to the MAC interface module by first switching circuit, and this data message is forwarded to electric port under the PHY chip by the 3rd switching circuit, realize that electric port under the PHY chip is to the Port Mirroring of described optical port.
In this scheme one, the current on off operating mode schematic diagram of each switching circuit as shown in Figure 4 in the interface multiplexer.Wherein, the first switching circuit SW1 is converted to on-state by initial off-state, and the 3rd switching circuit SW3 also is converted to on-state by initial off-state.
In this scheme one, the schematic diagram that data message transmitted and be forwarded to mirror port as shown in Figure 5.Among Fig. 5, the tentation data message need be sent to optical port (optical fiber interface) C under the PHY chip 2 from the optical port under the PHY chip 1 (optical fiber interface) B; The method that such scheme one provides according to the present invention then, the optical port under the PHY chip 1 (optical fiber interface) B is the source mirror port, the electric port under the PHY chip 1 (UTP interface) A is the purpose mirror port.
Scheme two: the mirror image implementation of the electric port receiving data packets under the PHY chip.
The implementation method of the electric port receiving data packets under the PHY chip being carried out mirror image is:
Connect the second switch circuit that is connected in the interface multiplexer between electrical interface module and the MAC interface module, and be connected in the 3rd switching circuit between optical interface module and the electrical interface module in the connection interface multiplexer, and make the optical port under the PHY chip enter connection status; When the electric port receiving data packets under the PHY chip, send data message to the MAC interface module by the second switch circuit, and this data message is forwarded to optical port under the PHY chip by the 3rd switching circuit, realize that optical port under the PHY chip is to the Port Mirroring of electric port.
In this scheme two, the current on off operating mode schematic diagram of each switching circuit as shown in Figure 6 in the interface multiplexer.Wherein, second switch circuit SW2 is converted to on-state by initial off-state, and the 3rd switching circuit SW3 also is converted to on-state by initial off-state.
In this scheme two, the schematic diagram that data message transmitted and be forwarded to mirror port as shown in Figure 7.Among Fig. 7, the tentation data message need be sent to electric port (UTP interface) D under the PHY chip 2 from the electric port under the PHY chip 1 (UTP interface) A; Then according to said method provided by the invention, the electric port under the PHY chip 1 (UTP interface) A is the source mirror port, and the optical port under the PHY chip 1 (optical fiber interface) B is the purpose mirror port.
Scheme three: the mirror image implementation that the optical port under the PHY chip sends datagram.
To the implementation method that (be that the MAC interface module receives the data message that exchange chip sends over by the COM line, need send by the optical port under the PHY chip) carry out mirror image that sends datagram of the optical port under the PHY chip be:
Connect the first switching circuit SW1 and second switch circuit SW2, and make the electric port under the PHY chip enter connection status; Send data message to optical port by the first switching circuit SW1 and optical interface module, and this data message is forwarded to electric port by second switch circuit SW2 and electrical interface module, the electric port under the realization PHY chip is to the Port Mirroring of optical port.
In this scheme three, the current on off operating mode schematic diagram of each switching circuit as shown in Figure 8 in the interface multiplexer.Wherein, the first switching circuit SW1 is converted to on-state by initial off-state, and second switch circuit SW2 also is converted to on-state by initial off-state.
In this scheme three, the schematic diagram that data message transmitted and be forwarded to mirror port as shown in Figure 9.Data message sends to optical port (optical fiber interface) B under the PHY chip, and by the second switch circuit SW2 in the control connection interface multiplexer, data message is forwarded to electric port (UTP interface) A under this PHY chip by electrical interface module, realizes mirror image optical port B by this electricity port A.
Scheme four: the mirror image implementation that the electric port under the PHY chip sends datagram.
To the implementation method that (be that the MAC interface module receives the data message that exchange chip sends over by the COM line, need send by the electric port under the PHY chip) carry out mirror image that sends datagram of the electric port under the PHY chip be:
Connect the second switch circuit SW2 and the first switching circuit SW1, and make optical port enter connection status; Send data message to electric port by second switch circuit SW2 and electrical interface module, and this data message is arrived optical port by the first switching circuit SW1 and optical interface module forwards, the optical port under the realization PHY chip is to the Port Mirroring of electric port.
In this scheme four, the current on off operating mode schematic diagram of each switching circuit is identical with Fig. 8 in the interface multiplexer.Wherein, second switch circuit SW2 is converted to on-state by initial off-state, and the first switching circuit SW1 also is converted to on-state by initial off-state.
In this scheme four, the schematic diagram that data message transmitted and be forwarded to mirror port as shown in figure 10.Data message sends to electric port (UTP interface) A under the PHY chip, and by the first switching circuit SW1 in the control connection interface multiplexer, with data message by the optical interface module forwards to this PHY chip optical port (optical fiber interface) B down, by the mirror image of this optical port B realization to electric port A.
In such scheme one, scheme two, scheme three and the scheme four, all need to control first switching circuit, second switch circuit and the 3rd switching circuit of connecting in the interface multiplexer.In concrete the application, can realize control by the Configuration Values that changes the register in the PHY chip, shown in following table one:
Table one
The register configuration value Source (Source) mirror port Purpose (Destination) mirror port
0101 F_RX (F represents optical port, and RX represents to receive) The electricity port sends
0110 F_TX (TX represents to send) The electricity port sends
1011 T_RX (T represents electric port) Optical port sends
1110 T_TX Optical port sends
In the last table one, the register configuration value is 4 bits (bit) positions, and the concrete implication of each bit is respectively: represent source mirror port selection, the first switching circuit SW1 on off operating mode, second switch circuit SW2 on off operating mode and the 3rd switching circuit SW3 on off operating mode successively from the higher bit position to low bit.
For the source mirror port: with " 0 " expression optical port (F) is the source mirror port, represents that with " 1 " electric port (T) is the source mirror port; SW1~SW3: " 1 " expression is connected respectively, disconnects with " 0 " expression.For example, for above-mentioned register configuration value 0101, just represent that optical port is an image source mirror port, SW1 and SW3 connect, and SW2 disconnects.Promptly by the mirror image of electric port realization to optical port, other are analogized.
In order to realize better with optical port under a slice PHY chip and the mutual image feature between the electric port, in concrete the application, be provided with electric port enter connection status before (when promptly realizing mirror image to optical port) by electric port, also comprise: obtain the work at present speed of optical port, the operating rate that disposes electric port is consistent with the work at present speed of optical port.In like manner, be provided with electric port enter connection status before (when promptly realizing mirror image to electric port) by optical port, also comprise: obtain the work at present speed of electric port, the operating rate of configuration optical port is consistent with the work at present speed of electric port.
Owing to adopt mirror image one to one, and adopt consistent operating rate with the purpose mirror port by the source of configuration mirror port, can guarantee can not occur not cause policing port (being the purpose mirror port) that the packet loss phenomenon takes place, thereby can guarantee the integrality of mirror image data because speed matches.
One of above-mentioned ethernet device Port Mirroring implementation method that provides according to the present invention, based on same inventive concept, the present invention also provides one of a kind of corresponding ethernet device Port Mirroring control device, be applied to control the PHY chip with photoelectric multiplexing port, the electric port under the realization PHY chip is to the Port Mirroring of optical port.Its structural representation comprises as shown in figure 11:
Mirror image function modules 111, be used for when the optical port that is connected with the optical interface module of PHY chip is carried out mirror image, control the interface multiplexer in this PHY chip, data message that optical port is received or the data message forwarding that sends by described optical port be to the electric port that is connected with electrical interface module in this PHY chip, realizes that electric port under the PHY chip is to the Port Mirroring of optical port;
Connection status control module 112, the electric port that is used to be provided with under the PHY chip enters connection status.
Among the embodiment, ethernet device Port Mirroring control device can also comprise:
Startup/shuts functional module 113 is used for starting or closing mirror image function modules 111 and connection status control module 112.
Among the embodiment, ethernet device Port Mirroring control device can also comprise:
Port speed is obtained and configuration feature module 114, is used to obtain the work at present speed of this optical port, and the operating rate that disposes the electric port under this PHY chip is consistent with the work at present speed of optical port, and notifies mirror image function modules 111 after configuration is finished.
Above-mentioned image functional module 111, connection status control module 112, startup/shuts functional module 113 and port speed is obtained and configuration feature module 114 can be a software module are promptly controlled realization with the mirror image of the electric port under a slice PHY chip to optical port by software program.
According to the present invention two of the above-mentioned ethernet device Port Mirroring implementation method that provides, based on same inventive concept, the present invention also provides two of a kind of corresponding ethernet device Port Mirroring control device, be applied to control the PHY chip with photoelectric multiplexing port, the optical port under the realization PHY chip is to the Port Mirroring of electric port.Its structural representation comprises as shown in figure 12:
Mirror image function modules 121, be used for when the electric port that the electrical interface module with the PHY chip is connected carries out mirror image, control the interface multiplexer in this PHY chip, data message that electric port is received or the data message forwarding that sends by electric port are to PHY chip optical port down, and the optical port under the realization PHY chip is to the Port Mirroring of electric port;
Connection status control module 122, the optical port that is used to be provided with under this PHY chip enters connection status.
Among the embodiment, ethernet device Port Mirroring control device can also comprise:
Startup/shuts functional module 123 is used for starting or closing mirror image function modules 121 and connection status control module 122.
Among the embodiment, ethernet device Port Mirroring control device can also comprise:
Port speed is obtained and configuration feature module 124, is used to obtain the work at present speed of this electricity port, and the operating rate that disposes the optical port under this PHY chip is consistent with the work at present speed of electric port, and notifies mirror image function modules 121 after configuration is finished.
Above-mentioned image functional module 121, connection status control module 122, startup/shuts functional module 123 and port speed is obtained and configuration feature module 124 can be a software module are promptly controlled realization with the Port Mirroring of the optical port under a slice PHY chip to electric port by software program.
The ethernet device Port Mirroring control device that adopts the above embodiment of the present invention to provide, the control flow of control PHY chip realization Port Mirroring comprises as shown in figure 13:
Step S131, open the Port Mirroring function.
One of ethernet device Port Mirroring control device that provides according to the foregoing description promptly starts mirror image function modules 111 and connection status control modules 112 by startup/shuts functional module 113, beginning actuating station port mirror image flow process;
Two of the ethernet device Port Mirroring control device that provides according to the foregoing description promptly starts mirror image function modules 121 and connection status control modules 122 by startup/shuts functional module 123, beginning actuating station port mirror image flow process.
The on off operating mode of each switching circuit in step S132, the control interface multiplexer.
One of ethernet device Port Mirroring control device that provides according to the foregoing description, when the optical port receiving data packets under the PHY core is carried out mirror image, connect by the first switching circuit SW1 and the 3rd switching circuit SW3 in the interface multiplexer in mirror image function modules 111 these PHY chips of control, when the optical port under the PHY core receives data message, send this data message to the MAC interface module by the first switching circuit SW1, and be forwarded to electric port under the PHY chip by the 3rd switching circuit SW3 and electrical interface module; When carrying out mirror image when the optical port under the PHY core is sent datagram, connect by the first switching circuit SW1 and second switch circuit SW2 in the interface multiplexer in mirror image function modules 111 these PHY chips of control, send this data message under this PHY chip optical port by the first switching circuit SW1, and be forwarded to electric port under the PHY chip by second switch circuit SW2 and electrical interface module, realize that electric port under the PHY chip is to the Port Mirroring of optical port.
Two of the ethernet device Port Mirroring control device that provides according to the foregoing description, when the electric port receiving data packets under the PHY core is carried out mirror image, connect by second switch circuit SW2 and the 3rd switching circuit SW3 in the interface multiplexer in mirror image function modules 121 these PHY chips of control, send this data message to the MAC interface module by second switch circuit SW2, and by the 3rd switching circuit SW3 and the optical interface module forwards optical port under the PHY chip; When carrying out mirror image when the electric port under the PHY core is sent datagram, connect by the second switch circuit SW2 and the first switching circuit SW1 in the interface multiplexer in mirror image function modules 121 these PHY chips of control, send this data message under this PHY chip electric port by second switch circuit SW2, and by the first switching circuit SW1 and optical interface module forwards to PHY chip optical port down, the optical port under the realization PHY chip is to the Port Mirroring of electric port.
Step S133, obtain the operating rate of source mirror port, and the operating rate of configuration purpose mirror port is consistent with the work at present speed of source mirror port, obtains and the configuration feature module realizes by port speed.
Step S134, pressure purpose mirror port enter connection status.
One of ethernet device Port Mirroring control device that provides according to the foregoing description, when sending datagram when carrying out mirror image to the optical port receiving data packets under the PHY chip or by this optical port, by connection status control module 112, the electric port under the control PHY chip enters connection status;
Two of the ethernet device Port Mirroring control device that provides according to the foregoing description, when sending datagram when carrying out mirror image to the electric port receiving data packets under the PHY chip or by this electricity port, by connection status control module 122, the optical port of controlling under this PHY chip enters connection status.
Step S135, determine whether the operating rate of source mirror port variation has taken place,, then return step S133 if variation has taken place, otherwise, following step continued;
Step S136, judge whether to have closed image feature, if not, return step S135 by startup/shuts functional module; If, execution in step S137;
Step S137, end Port Mirroring.
In sum, ethernet device Port Mirroring implementation method provided by the invention and device, be applied to have the PHY chip of photoelectric multiplexing port,, realized by with electric port in a slice PHY chip and the mutual mirror image between the optical port by the interface multiplexer in the control PHY chip.The present invention makes full use of the photoelectric multiplexing characteristic with the photoelectric multiplexing port of a slice PHY chip, when electric port receives or sends datagram, by optical port as its target mirror port, when optical port receives or sends datagram, by electric port as its target mirror port, make when realizing Port Mirroring, do not need to monopolize in addition other port, effectively improved port utilization ratio; And owing to be in a slice PHY, to realize Port Mirroring, do not need exchange chip to participate in data message forwarding, do not need to take the bandwidth resources of exchange chip, effectively improved the bandwidth availability ratio of exchange chip.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (12)

1, a kind of ethernet device Port Mirroring implementation method is applied to have the PHY chip of photoelectric multiplexing port, it is characterized in that, comprising:
When the optical port that is connected with optical interface module in the described PHY chip is carried out mirror image, the electric port that is connected with electrical interface module in the described PHY chip is set enters connection status, and control data message that the interface multiplexer in the described PHY chip receives described optical port or the data message forwarding by described optical port transmission arrives described electric port.
2, the method for claim 1 is characterized in that, when described optical port receiving data packets is carried out mirror image, specifically comprises:
Connect first switching circuit between the media interviews control MAC interface module that is connected in the described interface multiplexer in described optical interface module and the described PHY chip and be connected in the 3rd switching circuit between described optical interface module and the electrical interface module, described electric port is set enters connection status, when described optical port receives data message, send described data message to described MAC interface module by described first switching circuit, and described data message is forwarded to described electric port by described the 3rd switching circuit.
3, the method for claim 1 is characterized in that, when carrying out mirror image when described optical port is sent datagram, specifically comprises:
Connect first switching circuit between the media interviews control MAC interface module that is connected in the described interface multiplexer in described optical interface module and the described PHY chip and be connected in second switch circuit between described media interviews control MAC interface module and the electrical interface module, described electric port is set enters connection status, when described media interviews are controlled the MAC interface module when optical port sends datagram, send described data message to described optical port by described first switching circuit, and described data message is forwarded to described electric port by described second switch circuit.
4, as claim 2 or 3 described methods, it is characterized in that, be provided with before described electric port enters connection status, also comprise:
Obtain the work at present speed of described optical port, the operating rate that disposes described electric port is consistent with the work at present speed of described optical port.
5, a kind of ethernet device Port Mirroring implementation method is applied to have the PHY chip of photoelectric multiplexing port, it is characterized in that, comprising:
When the electric port that is connected with electrical interface module in the described PHY chip is carried out mirror image, the optical port that is connected with optical interface module in the described PHY chip is set enters connection status, and control data message that the interface multiplexer in the described PHY chip receives described electric port or the data message forwarding by described electric port transmission arrives described optical port.
6, method as claimed in claim 5 is characterized in that, when described electric port receiving data packets is carried out mirror image, specifically comprises:
Connect be connected in the described interface multiplexer described electrical interface module and and described PHY chip in the MAC interface module between the second switch circuit and described interface multiplexer in be connected in the 3rd switching circuit between described optical interface module and the electrical interface module, described optical port is set enters connection status, when described electric port receiving data packets, send described data message to described MAC interface module by described second switch circuit, and described data message is forwarded to described optical port by described the 3rd switching circuit.
7, method as claimed in claim 5 is characterized in that, when carrying out mirror image when described electric port is sent datagram, specifically comprises:
Connect be connected in the described interface multiplexer described electrical interface module and and described PHY chip in the MAC interface module between the second switch circuit and be connected in described optical interface module and described PHY chip in media interviews control MAC interface module between first switching circuit, described optical port is set enters connection status, when described media interviews are controlled the MAC interface module when electric port sends datagram, send described data message to described electric port by described second switch circuit, and described data message is forwarded to described optical port by described first switching circuit.
8, as claim 6 or 7 described methods, it is characterized in that, be provided with before described optical port enters connection status, also comprise:
Obtain the work at present speed of described electric port, the operating rate that disposes described optical port is consistent with the work at present speed of described electric port.
9, a kind of ethernet device Port Mirroring control device is applied to control the PHY chip with photoelectric multiplexing port, it is characterized in that, comprising:
Mirror image function modules, be used for when the optical port that is connected with the optical interface module of described PHY chip is carried out mirror image, control data message that the interface multiplexer in the described PHY chip receives described optical port or the data message forwarding that sends by described optical port to the electric port that is connected with electrical interface module in the described PHY chip;
The connection status control module is used to be provided with described electric port and enters connection status.
10, device as claimed in claim 9 is characterized in that, also comprises:
Startup/shuts functional module is used for starting or closing described mirror image function modules and described connection status control module; And
Port speed is obtained and the configuration feature module, is used to obtain the work at present speed of described optical port, and the operating rate that disposes described electric port is consistent with the work at present speed of described optical port, and notifies described mirror image function modules after configuration is finished.
11, a kind of ethernet device Port Mirroring control device is applied to control the PHY chip with photoelectric multiplexing port, it is characterized in that, comprising:
Mirror image function modules, be used for when the electric port that the electrical interface module with described PHY chip is connected carries out mirror image, control the interface multiplexer in the described PHY chip, data message that described electric port is received or the data message forwarding that sends by described electric port are to the optical port that is connected with optical interface module in the described PHY chip;
The connection status control module is used to be provided with described optical port and enters connection status.
12, device as claimed in claim 11 is characterized in that, also comprises:
Startup/shuts functional module is used for starting or closing described mirror image function modules and described connection status control module; And
Port speed is obtained and the configuration feature module, is used to obtain the work at present speed of described electric port, and the operating rate that disposes described optical port is consistent with the work at present speed of described electric port, and notifies described mirror image function modules after configuration is finished.
CN2008101764182A 2008-11-07 2008-11-07 Port mirroring implementing method and apparatus for Ethernet apparatus Active CN101394288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101764182A CN101394288B (en) 2008-11-07 2008-11-07 Port mirroring implementing method and apparatus for Ethernet apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101764182A CN101394288B (en) 2008-11-07 2008-11-07 Port mirroring implementing method and apparatus for Ethernet apparatus

Publications (2)

Publication Number Publication Date
CN101394288A true CN101394288A (en) 2009-03-25
CN101394288B CN101394288B (en) 2010-10-27

Family

ID=40494384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101764182A Active CN101394288B (en) 2008-11-07 2008-11-07 Port mirroring implementing method and apparatus for Ethernet apparatus

Country Status (1)

Country Link
CN (1) CN101394288B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800653A (en) * 2010-03-23 2010-08-11 烽火通信科技股份有限公司 Ethernet disk PCB (Printed Circuit Board) compatible with Ethernet TX and FX interfaces and manufacture method thereof
CN102064967A (en) * 2010-12-31 2011-05-18 成都市华为赛门铁克科技有限公司 BYPASS realizing method, equipment and system
CN102075410A (en) * 2009-11-20 2011-05-25 杭州华三通信技术有限公司 Port mirroring method and device in stacking equipment
CN102739316A (en) * 2012-06-29 2012-10-17 杭州迪普科技有限公司 Method and device for implementing transmission mode
CN102025544B (en) * 2010-12-16 2015-09-16 中兴通讯股份有限公司 Stream mirror image capturing method and device
CN106201541A (en) * 2016-07-20 2016-12-07 浪潮电子信息产业股份有限公司 A kind of method utilizing Baseboard Management Controller to adjust network interface card start-up mode
CN107276674A (en) * 2017-08-08 2017-10-20 深圳市三旺通信技术有限公司 A kind of photoelectric port multiplex circuit of ethernet device
CN108123899A (en) * 2017-12-21 2018-06-05 湖南恒茂高科股份有限公司 The statistical method and monitoring method of a kind of interchanger outlet message flow
WO2021146964A1 (en) * 2020-01-21 2021-07-29 华为技术有限公司 Switch element and switch apparatus
CN115297195A (en) * 2022-06-20 2022-11-04 深圳海油工程水下技术有限公司 Cross-platform linkage turn-off communication method for offshore oilfield

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075410A (en) * 2009-11-20 2011-05-25 杭州华三通信技术有限公司 Port mirroring method and device in stacking equipment
CN101800653A (en) * 2010-03-23 2010-08-11 烽火通信科技股份有限公司 Ethernet disk PCB (Printed Circuit Board) compatible with Ethernet TX and FX interfaces and manufacture method thereof
CN102025544B (en) * 2010-12-16 2015-09-16 中兴通讯股份有限公司 Stream mirror image capturing method and device
CN102064967A (en) * 2010-12-31 2011-05-18 成都市华为赛门铁克科技有限公司 BYPASS realizing method, equipment and system
CN102064967B (en) * 2010-12-31 2013-01-02 成都市华为赛门铁克科技有限公司 BYPASS realizing method, equipment and system
CN102739316A (en) * 2012-06-29 2012-10-17 杭州迪普科技有限公司 Method and device for implementing transmission mode
CN102739316B (en) * 2012-06-29 2015-05-06 杭州迪普科技有限公司 Method and device for implementing transmission mode
CN106201541A (en) * 2016-07-20 2016-12-07 浪潮电子信息产业股份有限公司 A kind of method utilizing Baseboard Management Controller to adjust network interface card start-up mode
CN106201541B (en) * 2016-07-20 2019-10-01 浪潮电子信息产业股份有限公司 A method of network interface card start-up mode is adjusted using Baseboard Management Controller
CN107276674A (en) * 2017-08-08 2017-10-20 深圳市三旺通信技术有限公司 A kind of photoelectric port multiplex circuit of ethernet device
CN108123899A (en) * 2017-12-21 2018-06-05 湖南恒茂高科股份有限公司 The statistical method and monitoring method of a kind of interchanger outlet message flow
WO2021146964A1 (en) * 2020-01-21 2021-07-29 华为技术有限公司 Switch element and switch apparatus
CN114731294A (en) * 2020-01-21 2022-07-08 华为技术有限公司 Exchange network chip and exchange equipment
CN115297195A (en) * 2022-06-20 2022-11-04 深圳海油工程水下技术有限公司 Cross-platform linkage turn-off communication method for offshore oilfield

Also Published As

Publication number Publication date
CN101394288B (en) 2010-10-27

Similar Documents

Publication Publication Date Title
CN101394288B (en) Port mirroring implementing method and apparatus for Ethernet apparatus
US7957283B2 (en) Multi-port ethernet transceiver
US6556589B2 (en) Network transceiver for steering network data to selected paths based on determined link speeds
US20080068985A1 (en) Network redundancy method and middle switch apparatus
US20040208180A1 (en) System and method for supporting auto-negotiation among standards having different rates
CN100399778C (en) Device of physical layer adaptive different network transmission link medium and its control method
CN104145448A (en) Low power idle signaling for gigabit media independent interfaces operating in legacy modes
CN102318267A (en) Data communication method, communication equipment and communication system
US20070217438A1 (en) Ring node device and method of connecting terminal to ring node device
CN109753392B (en) Network bridging device, bus testing method and system
CN105516288B (en) Using device, its control method and the control system of single Serdes extension physical interface
CN107749798B (en) Communication network system, shunt device and method for accessing bidirectional transmission network
CN110943889B (en) Intelligent substation in-place looped network communication testing device and method
US7403548B2 (en) System for interfacing media access control module to small form factor pluggable module
CN105704068B (en) Service mixing centralized processing method and device
CN102412992A (en) Controllable multi-port multimedia over coax alliance (MoCA) terminal
KR20020069562A (en) Ethernet system for use in a high speed data communication using a pair of signal lines
CN101150478B (en) A method, system and router for establishing master/slave link
CN204928874U (en) A communication equipment that be used for can redundant operation industry communications network
US7428599B2 (en) Method for detecting link partner state during auto negotiation and switching local state to establish link
CN102215134B (en) Hot standby switcher of IP (Internet Protocol) code stream
CN207399226U (en) Network interface expanding unit
CN114039810B (en) Flexible automatic control system based on Ethernet
CN101094238A (en) Cluster system with multiple machine frames, and machine frame
EP1128607A2 (en) Flow integrity for path transitioning data switch

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 350015 M9511 Industrial Park, fast road, Mawei District, Fujian, Fuzhou

Patentee after: RUIJIE NETWORKS Co.,Ltd.

Address before: 350015 M9511 Industrial Park, fast road, Mawei District, Fujian, Fuzhou

Patentee before: Fujian Star Network Ruijie Networks Co.,Ltd.