Summary of the invention
Embodiments of the invention provide a kind of implementation method and device of Port Mirroring, can on the access-layer switch of the not function of Support Port Mirroring 1:N, realize road input data when backuping to multiple stage backup server function the same period, significantly improve the reliability of transmission data.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A kind of implementation method of Port Mirroring, described method is applied to the switch possessing Remote Switched Port Analyzer function, described switch at least comprises the destination interface of the source port of Remote Switched Port Analyzer source session, the destination interface of Remote Switched Port Analyzer source session, the source port of Remote Switched Port Analyzer object session and the session of at least two Remote Switched Port Analyzer objects, wherein, the destination interface of described Remote Switched Port Analyzer source session and the source port self-loop links of described Remote Switched Port Analyzer object session; Described method comprises:
By the data that the source port by described Remote Switched Port Analyzer source session receives, export from the destination interface of described Remote Switched Port Analyzer source session;
By the described data that the destination interface by described Remote Switched Port Analyzer source session exports, received by the source port of described Remote Switched Port Analyzer object session;
By the described data that the source port by the session of described Remote Switched Port Analyzer object receives, export from the destination interface of at least two described object sessions simultaneously.
A kind of implement device of Port Mirroring, described device is placed in the switch comprising and possess Remote Switched Port Analyzer function, described switch at least comprises the destination interface of the source port of Remote Switched Port Analyzer source session, the destination interface of Remote Switched Port Analyzer source session, the source port of Remote Switched Port Analyzer object session and the session of at least two Remote Switched Port Analyzer objects, wherein, the destination interface of described Remote Switched Port Analyzer source session and the source port self-loop links of described Remote Switched Port Analyzer object session;
Described device comprises:
Data outputting unit, for the data received by the source port by described Remote Switched Port Analyzer source session, exports from the destination interface of described Remote Switched Port Analyzer source session;
Receiving element, for receiving the described data exported through the destination interface of described Remote Switched Port Analyzer source session by described data outputting unit by the source port of described Remote Switched Port Analyzer object session;
Described data outputting unit, also for exporting from the destination interface of at least two described object sessions the described data received by the source port of described Remote Switched Port Analyzer object session simultaneously.
The implementation method of a kind of Port Mirroring that the embodiment of the present invention provides and device, the method is applied to the switch possessing Remote Switched Port Analyzer function, this switch at least comprises the source port of Remote Switched Port Analyzer source session, the destination interface of Remote Switched Port Analyzer source session, the source port of Remote Switched Port Analyzer object session and the destination interface of at least two Remote Switched Port Analyzer objects session, wherein, the destination interface of Remote Switched Port Analyzer source session and the source port self-loop links of Remote Switched Port Analyzer object session, in this process, first by data that the source port by the session of Remote Switched Port Analyzer source receives, export from the destination interface of Remote Switched Port Analyzer source session, and then receive this data via the source port of Remote Switched Port Analyzer object session again, finally make data export from the destination interface of at least two object sessions simultaneously, thus data backup to multiple stage backup server the same period, break away from prior art must add HUB limitation when realizing this function, and then also just avoid owing to introducing HUB and potential safety hazard is caused to network, ensure that the reliability of data.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
One embodiment of the invention provides a kind of implementation method of Port Mirroring, this method is applied to the switch possessing Remote Switched Port Analyzer function, this switch at least comprises the destination interface of the source port of Remote Switched Port Analyzer source session, the destination interface of Remote Switched Port Analyzer source session, the source port of Remote Switched Port Analyzer object session and the session of at least two Remote Switched Port Analyzer objects, wherein, the destination interface of Remote Switched Port Analyzer source session and the source port self-loop links of Remote Switched Port Analyzer object session.As shown in Figure 1, the method comprises:
101, the data that received by the source port by the session of Remote Switched Port Analyzer source of switch, export from the destination interface of Remote Switched Port Analyzer source session.
102, the data that exported by the destination interface by the session of Remote Switched Port Analyzer source of switch, are received by the source port of Remote Switched Port Analyzer object session.
What deserves to be explained is, after receiving data by the source port of Remote Switched Port Analyzer object session, data just import to switch again from the source port of this Remote Switched Port Analyzer object half-session.
103, the data that received by the source port by the session of Remote Switched Port Analyzer object of switch, export from the destination interface of at least two Remote Switched Port Analyzer objects session simultaneously.
In conjunction with the description of this step 103, when the destination interface of the object session of each Remote Switched Port Analyzer is connected with a backup server, the data received by a road just can be backuped on multiple backup server the same period, we's inventive embodiments does not limit the device type be connected with the destination interface of this Remote Switched Port Analyzer object session, as long as this equipment has memory function, by the data that the destination interface of this Remote Switched Port Analyzer object session exports, just the backup same period can be carried out on the equipment be connected with these ports.
What deserves to be explained is, the source port of the source port of Remote Switched Port Analyzer source session in the present embodiment, the destination interface of Remote Switched Port Analyzer source session, the session of Remote Switched Port Analyzer object and the destination interface of at least two Remote Switched Port Analyzer objects session, be the available port on switch.
The source port of Remote Switched Port Analyzer source session is used for, and sets up switch and data source and provides connection between equipment, can receive data source to make switch; The destination interface of Remote Switched Port Analyzer object session is used for, and sets up switch and needs the connection that receives between the backup server of data.
The implementation method of a kind of Port Mirroring that the embodiment of the present invention provides, the method is applied to the switch possessing Remote Switched Port Analyzer function, this switch at least comprises the source port of Remote Switched Port Analyzer source session, the destination interface of Remote Switched Port Analyzer source session, the source port of Remote Switched Port Analyzer object session and the destination interface of at least two Remote Switched Port Analyzer objects session, wherein, the destination interface of Remote Switched Port Analyzer source session and the source port self-loop links of Remote Switched Port Analyzer object session, in this process, first by data that the source port by the session of Remote Switched Port Analyzer source receives, export from the destination interface of Remote Switched Port Analyzer source session, and then receive this data via the source port of Remote Switched Port Analyzer object session again, finally make data export from the destination interface of at least two object sessions simultaneously, thus data backup to multiple stage backup server the same period, break away from prior art must add HUB limitation when realizing this function, and then also just avoid owing to introducing HUB and potential safety hazard is caused to network, ensure that the reliability of data.
In conjunction with the description of above-mentioned embodiment as shown in Figure 1, the destination interface of Remote Switched Port Analyzer source session and the source port self-loop links of Remote Switched Port Analyzer object session, in order to avoid data occur loop between these two ports, in a kind of implementation of the present invention, provide a kind of implementation method of Port Mirroring, this method comprises:
At the destination interface of Remote Switched Port Analyzer source session and the source port enable port isolation features respectively of Remote Switched Port Analyzer object session, as port-type of user Network Side Interface port-type uni (English full name: port-type User Networks interface, Chinese full name: port-type of user Network Side Interface) function, this enable function is used for realizing port isolation, the isolation destination interface of Remote Switched Port Analyzer source session and these two ports of source port of Remote Switched Port Analyzer object session, thus when data import to switch from the source port of Remote Switched Port Analyzer object session again, can not export from the destination interface of Remote Switched Port Analyzer source session again.
What deserves to be explained is, in conjunction with the description of above-mentioned method flow as shown in Figure 1, the execution sequence of step involved by the port enable operation proposed in the present embodiment and above-described embodiment is not construed as limiting.
Another embodiment of the present invention provides a kind of implementation method of Port Mirroring, this method comprises: arrange the destination interface of Remote Switched Port Analyzer source session, the source port of Remote Switched Port Analyzer object session and the destination interface of all Remote Switched Port Analyzer objects session, belong to same Remote Switched Port Analyzer VLAN (English full name: the abbreviation of Virtual Local Area Network, Chinese full name: VLAN).
In conjunction with the description of the present embodiment implementation step, because the destination interface of Remote Switched Port Analyzer source session, the source port of Remote Switched Port Analyzer object session are self-loop links, realization be same session, then these two ports need arrange and belong to same Remote Switched Port Analyzer VLAN.After data import to switch again by the source port of Remote Switched Port Analyzer object session, in order to these data can be sent on multiple backup server simultaneously, and the destination interface of each Remote Switched Port Analyzer object session is connected with a backup server, namely these data again imported in switch are exported by the destination interface of multiple Remote Switched Port Analyzer object session simultaneously, the source port of Remote Switched Port Analyzer object session and the destination interface of all Remote Switched Port Analyzer objects session are set, belong to same Remote Switched Port Analyzer VLAN.Wherein, Remote Switched Port Analyzer VLAN has the characteristic of inundation, after data import from the source port of Remote Switched Port Analyzer object session, the destination interface of all Remote Switched Port Analyzer objects session can be flooded to, thus export from the destination interface of at least two object sessions while of realizing data, backup at least two backup servers.
What deserves to be explained is, what relate in the present embodiment arranges the setting steps that port belongs to same Remote Switched Port Analyzer VLAN, with the method flow as shown in Figure 1 of foregoing description, and the execution sequence of above-mentioned enable operation not limiting in the present invention, be provided with after data are exported by the destination interface of Remote Switched Port Analyzer source session.
Another embodiment of the present invention provides a kind of implementation method of Port Mirroring, and the method is applied in the concrete network architecture, and in the present embodiment, and it is example explanation that input data in Yi Jiang mono-tunnel backup to two-server the same period.As shown in Figure 2, this network architecture comprises: data-source device 21, switch 22, backup server 23,24, wherein, switch 22 comprises 5 ports, is respectively G1 ... G5, and data-source device 21 is communicated with switch 22 by port G1, backup server 23 is communicated with switch 22 by port G4, backup server 24 is communicated with switch 22 by port G5, and port G2, G3 communicate from ring, and port G2, G3, G4, G5 belong to a Remote Switched Port Analyzer VLAN.
In the network architecture of foregoing description during actuating station port mirror image implementation method, as shown in Figure 3, the method also comprises:
301, switch 22 enable Remote Switched Port Analyzer source interactive function, receives the data of data-source device 21 transmission by G1.
302, switch 22 by the data image that received by G1 to G2.
The data image that this step relates to is exported to G2 and data by G2.
What deserves to be explained is, the execution flow process that this step 302 describes is by the Remote Switched Port Analyzer functional realiey of switch 22, and wherein, Remote Switched Port Analyzer is the function that switch generally possesses.
303, the data that will be exported by G2 of switch 22, are input to switch again by G3.
In conjunction with foregoing description, G2 and G3 self-loop links communicates, so the data exported by G2 can be got back in switch 22 again by G3.
What deserves to be explained is, because G2, G3 are from ring and these two ports belong to an identical Remote Switched Port Analyzer VLAN, therefore to there is loop.In order to evade loop, enable port-type uni function on port G2, G3, this enable function is used for realizing port isolation, these two ports of isolation G2, G3, thus when data are input to switch 22 from G4 again, data can not export from G2 again, only can export from G4, G5, thus evade G2, G3 loop.
304, enable Remote Switched Port Analyzer object interactive function, data, after G3 input, are flooded to G4 and G5.
In conjunction with foregoing description, G3, G4, G5 belong to a Remote Switched Port Analyzer VLAN, and Remote Switched Port Analyzer VLAN has the characteristic not learning message source MAC Address, inundation, port G4 and G5 can be flooded to after data input from port G3, and switch 22 is connected respectively at backup server 23,24 by port G4, G5, thus back up data to two backup servers 23,24.
What deserves to be explained is, the port G1 in this as shown in Figure 3 embodiment ... in G5, G1 is the source port of Remote Switched Port Analyzer source session; G2 is the destination interface of Remote Switched Port Analyzer source session; The source port of G3 Remote Switched Port Analyzer object session; G4, G5 are the destination interface of Remote Switched Port Analyzer object session.
In addition what deserves to be explained is, switch involved in the present invention is the general switch possessing Remote Switched Port Analyzer function, and prior art realized by switch data on multiple backup server, the same period backs up time, switch is needed to have Port Mirroring 1:N function, or need, under the switch of function not possessing Port Mirroring 1:N, HUB is installed, so when the data stating description in realization back up the same period, need the switch of the function (only possessing the basic functions such as Remote Switched Port Analyzer) by not possessing Port Mirroring 1:N, be updated to the new switch possessing Port Mirroring 1:N function, or a new interpolation HUB.What will certainly increase data backup like this realizes cost, by the method that the embodiment of the present invention provides, the Port Mirroring 1:N function of data can be realized at the switch of former poor performance, and while avoiding Network Security Vulnerabilities, also save considerably backup cost.
Another embodiment of the present invention provides a kind of implement device of Port Mirroring, this device is placed in the switch comprising and possess Remote Switched Port Analyzer function, this switch at least comprises the destination interface of the source port of Remote Switched Port Analyzer source session, the destination interface of Remote Switched Port Analyzer source session, the source port of Remote Switched Port Analyzer object session and the session of at least two Remote Switched Port Analyzer objects, wherein, the destination interface of Remote Switched Port Analyzer source session and the source port self-loop links of Remote Switched Port Analyzer object session.As shown in Figure 4, this device comprises: data outputting unit 41, receiving element 42.
Data outputting unit 41, for the data received by the source port by the session of Remote Switched Port Analyzer source, exports from the destination interface of Remote Switched Port Analyzer source session.
Receiving element 42, for by the source port of Remote Switched Port Analyzer object session, receives the data exported through the destination interface of Remote Switched Port Analyzer source session by data outputting unit 41.
Data outputting unit 41, also for the destination interface simultaneously from the session of at least two Remote Switched Port Analyzer objects, exports the data received through the source port of Remote Switched Port Analyzer object session by receiving element 42.
In the optional constituted mode of the one of this Port Mirroring implement device, as shown in Figure 5, this device also comprises: the enable unit 43 of function, port setting unit 44.
The enable unit 43 of function, for distinguishing enable port isolation features at the destination interface of Remote Switched Port Analyzer source session and the source port of Remote Switched Port Analyzer object session.Such as port-type of user Network Side Interface port-type uni function.
Port setting unit 44, for arranging the destination interface of Remote Switched Port Analyzer source session, the destination interface of the source port of Remote Switched Port Analyzer object session and the session of all Remote Switched Port Analyzer objects belongs to same Remote Switched Port Analyzer VLAN.
In the present embodiment, the destination interface of each Remote Switched Port Analyzer object session is connected with a backup server, thus can be backuped to by the data that the destination interface of Remote Switched Port Analyzer object session exports on the backup server that is connected with these ports.
What deserves to be explained is, the device that the invention process such as Fig. 4,5 provides is for realizing the method flow of above-mentioned embodiment as shown in Figure 1, 2, and the function that above-described embodiment relates to is enable, port method to set up flow process.
The back-up device of a kind of Port Mirroring that the embodiment of the present invention provides, this device is placed in the switch possessing Remote Switched Port Analyzer function, this switch at least comprises the source port of Remote Switched Port Analyzer source session, the destination interface of Remote Switched Port Analyzer source session, the source port of Remote Switched Port Analyzer object session and the destination interface of at least two Remote Switched Port Analyzer objects session, wherein, the destination interface of Remote Switched Port Analyzer source session and the source port self-loop links of Remote Switched Port Analyzer object session, in this process, first the data that the source port by the session of Remote Switched Port Analyzer source receives by several output unit are had, export from the destination interface of Remote Switched Port Analyzer source session, and then receiving element receives this data via the source port of Remote Switched Port Analyzer object session again, eventually through data outputting unit, data are exported from the destination interface of at least two object sessions simultaneously, thus data backup to multiple stage backup server the same period, break away from prior art must add HUB limitation when realizing this function, and then also just avoid owing to introducing HUB and potential safety hazard is caused to network, ensure that the reliability of data.
What another embodiment of the present invention provided a kind of Port Mirroring realizes system, this system comprises the switch of above-mentioned Port Mirroring implement device as shown in Figure 4,5, data source provides equipment, at least two backup servers, within the system, switch and data source are provided equipment to be connected by data/address bus and communicate, switch and each backup server are connected by communication bus and communicate, and the data being provided equipment to be input in switch can be backuped on multiple backup server simultaneously by switch by data source.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computer, hard disk or CD etc., comprise some instructions and perform method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.