CN101877671A - Sending method of mirror image message, switch chip and Ethernet router - Google Patents

Sending method of mirror image message, switch chip and Ethernet router Download PDF

Info

Publication number
CN101877671A
CN101877671A CN2009102414335A CN200910241433A CN101877671A CN 101877671 A CN101877671 A CN 101877671A CN 2009102414335 A CN2009102414335 A CN 2009102414335A CN 200910241433 A CN200910241433 A CN 200910241433A CN 101877671 A CN101877671 A CN 101877671A
Authority
CN
China
Prior art keywords
message
mirror image
vlan
exchange chip
port
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
CN2009102414335A
Other languages
Chinese (zh)
Other versions
CN101877671B (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.)
Beijing Star Net Ruijie Networks Co Ltd
Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks 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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN2009102414335A priority Critical patent/CN101877671B/en
Publication of CN101877671A publication Critical patent/CN101877671A/en
Application granted granted Critical
Publication of CN101877671B publication Critical patent/CN101877671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a sending method of a mirror image message, a switch chip and an Ethernet router. The method comprises the following steps of: receiving a mirror image sending message by using the switch chip, wherein the identification of a first virtual local area network is carried in the mirror image sending message; transmitting the mirror image sending message by using the switch chip through the first virtual local area network; receiving a mirror image receiving message by using the switch chip, wherein the identification of a second virtual local area network is carried in the mirror image receiving message; and transmitting the mirror image receiving message by using the switch chip through the second virtual local area network. By using the method, a message of a routing port on the router can be normally sent out from a mirror image port, and the content of the message is undistorted.

Description

The sending method of mirror image message, exchange chip and ethernet router
Technical field
The present invention relates to the communications field, in particular to a kind of sending method, exchange chip and ethernet router of mirror image message.
Background technology
Fig. 1 is the general ethernet router configuration diagram according to correlation technique.
As shown in Figure 1, this router is mainly by one or more ethernet controllers that carry on CPU, the CPU, and exchange chip constitutes.Exchange chip links to each other with ethernet controller on the CPU by the ether port of self, this mouth is called UPLINK mouth (being uplink port) on the exchange chip, (the route mouth here only is meant and is used for transmitting data and other ports on the exchange chip expand to the route mouth, may be 2 layers of forwarding, also may be 3 layers of forwarding, just be used to be different from mirror port, say something), as route mouth A-D among the figure, usually allow the mouth on the exchange chip be that (mirror port does not participate in message and transmits mirror port, just is used for the transmission on other interfaces, reception message all mirror image portion sends from this interface).
Expand a plurality of route mouths and only use an ethernet controller to connect exchange chip; though can work; but the low performance requirement that does not reach the middle and high end router of performance; use other ethernet controllers on the CPU to expand other route mouths through regular meeting; as the independent route mouth E among the figure, F (saying so of independent route mouth is used to be different from the route mouth of exchange chip expansion).
Fig. 2 is the configuration schematic diagram according to exchange chip under the general ethernet router framework of correlation technique.
Among Fig. 2, two ports that the exchange chip inner dotted line links to each other are in same VLAN (Virtual Local Area Network, abbreviate Vlan as), and the port on the exchange chip be connected with outside vlan the expression port belong to this vlan, the UPLINK mouth can be in 5 vlan simultaneously as seen from the figure, be operated in trunk mouth pattern, detailed configuration sees the following form 1:
Table 1
??Vlan The port that belongs to this vlan
??VLAN1 The UPLINK mouth, route mouth A
??VLAN2 The UPLINK mouth, route mouth B
??VLAN3 The UPLINK mouth, route mouth C
??VLAN4 The UPLINK mouth, route mouth D
??VLAN5 The UPLINK mouth, mirror port
Also might belong to a vlan by a plurality of route mouths, (it doesn't matter for this to form one 2 layers exchange, irrelevant with the problem that we will illustrate), the key point of this kind router architectures configuration is to be in a plurality of vlan (being operated in the trunk pattern) except that the UPLINK mouth, the port that router externally provides (comprises all route mouth A-D, and mirror port) all only joins an acquiescence vlan, be in a vlan, only carry out message (these ports that externally provide adopt the untag mode simultaneously, and the UPLINK mouth does not adopt untag) is provided by this vlan and uplink.Whether adopt untag to be meant that message sends the vlan tag that whether peels message before off from the port of exchange chip, untag will peel vlan tag off exactly, and does not adopt untag not peel vlan tag off.
The message that the exchange chip external interface of this Ethernet routing framework receives can be submitted to CPU with the vlan tag that goes up the port acquiescence by the UPLINK mouth automatically, CPU is with vlan tag to know that message is to receive from which interface according to message, message the enterprising walking along the street of CPU by and the decision from which interface transmit, if outgoing interface is the port on the exchange chip, can be when CPU sends message to the vlan tag of outgoing interface on this message band, thereby message can be transmitted in this vlan of exchange chip, and sends from the outgoing interface of route decision.
The port of this Ethernet routing framework exchange chip receives message, can learn the source MAC+VID of key=message, result=receives the port of message, and the MAC+VID list item of learning is added to the MAC+VID table (if also do not learn, just first message can be learnt) of exchange chip inside.The MAC+VID table of exchange chip inside sees Table 2 in detail:
Table 2
??Key ??Result
The source MAC+VID of message Receive the port of message
The message of exchange chip is transmitted and just is based on this table, just transmit the purpose MAC that is based on message, the purpose MAC+VID of the key=message of promptly searching, message can send from the port (being the result of key correspondence) that finds, here there is a problem, if the port that finds is exactly the port that receives this message, this message can be dropped and can not transmit.
And this problem just in time can appear in a kind of application of router, the mirror port of this router will be accomplished the message of the route mouth that mirror image is all, the reception of the independent route mouth outside the port of expanding on the exchange chip just, sending message all will be by mirror image, wherein the purpose of mirror image is in order to monitor, whether monitoring has what illegal content etc. by the flow content of these interfaces, and the mirror port of router can be received on the relevant watch-dog in the practical application.
Transmission on the independent route mouth E, reception message situation: general Ethernet independence route mouth E sends the source MAC of message and the target MAC (Media Access Control) address of reception message is identical, all is the MAC Address of independent route mouth itself.The MAC Address of supposing independent route mouth E itself is MAC1, if the target MAC (Media Access Control) address of the transmission message of independent route mouth E is MAC2, if it is MAC3 that independent route mouth E receives the source MAC of message, purpose MAC, source MAC such as the following table 3 of the transmission of so independent route mouth E, reception message:
Table 3
Purpose MAC Source MAC
Sending direction ??MAC2 ??MAC1
Receive direction ??MAC1 ??MAC3
And mirror image will send by the UPLINK mouth top sending direction, two kinds of messages of receive direction exactly from mirror port.
Fig. 3 is the schematic diagram according to the transmission on the independent route mouth E of the general ethernet router of correlation technique, reception message mirror.
By shown in Figure 3, substep diagram step comprises the steps that S1 is to step S5:
Step S1: by the transmission message of mirror image, it is Vlan5 that the CPU in the router puts by the transmission message vlan tag of mirror image, sends to the UPLINK mouth of exchange chip then for (independent route mouth), this message (DA, SA) be (MAC2, MAC1), vlan tag is VLAN5; (annotate DA, destination MAC address, the MAC Address of feeling the pulse with the finger-tip; SA, source MAC address refers to source MAC, MAC1, MAC2 or the like are the code names of MAC Address, down together).
Step S2:UPLINK receives this message, and exchange chip is learnt Key=MAC1+VLAN5, and the MAC+VID list item of Result=UPLINK mouth adds in the MAC+VID table of self;
Step S3: exchange chip can not find out the list item of Key=MAC2+VLAN5, and message is broadcasted away from the mirror port that belongs to VLAN5 with UPLINK;
Step S4: by the reception message of mirror image, it is VLAN5 that the CPU in the router puts by the reception message vlan tag of mirror image, sends to the UPLINK mouth of exchange chip then for (independent route mouth), this message (DA, SA) be (MAC1, MAC3), vlan tag is VLAN5;
Step S5: exchange chip uses Key=MAC1+VLAN5 inquiry MAC+VID table (can find this list item, be exactly the list item that step 2 is added), find that outlet is UPLINK mouth itself, will dropping packets, so just do not reach the independently purpose of the reception message of mouth of mirror image.
This system architecture has following problem: under original router generalization configuration, mirror port only can belong to a vlan (as Fig. 1) as an external interface (generally directly connecing PC or server), the router message that will send from this interface like this, router will add message the vlan tag of mirror port, could send message from this mouth, if MAC Address is both as the source MAC of message, while occurs as the target MAC (Media Access Control) address of some messages again, the port that will occur acquiring purpose MAC like this is exactly the port that receives this message, thus message can not exchange chip inner transmit by and the problem that abandon.(situation that above-mentioned MAC Address MAC1 comes to this, it is the source MAC of independent route mouth E, also can appear in the target MAC (Media Access Control) address if the two-way mirror picture will inevitably both appear in the source MAC).
At the mirror image independence route mouth transmission simultaneously of exchange chip in the correlation technique, reception message, thereby the problem that causes message not to be dropped inner forwarding of exchange chip does not propose effective solution at present as yet.
Summary of the invention
At exchange chip mirror image independence route mouth transmission simultaneously, reception message, thereby cause the problem that message can not be dropped inner forwarding of exchange and propose the present invention, for this reason, main purpose of the present invention is to provide a kind of sending method, exchange chip and ethernet router of mirror image message, to address the above problem.
To achieve these goals, according to an aspect of the present invention, provide a kind of sending method of mirror image message.
Sending method according to mirror image message of the present invention comprises: exchange chip receives mirror image and sends message, and wherein, mirror image sends the sign that carries first VLAN in the message; Exchange chip sends message by first VLAN to mirror image and transmits; Exchange chip receives mirror image and receives message, and wherein, mirror image receives the sign that carries second VLAN in the message; Exchange chip receives message by second VLAN to mirror image and transmits.
Preferably, before exchange chip received mirror image transmission message, method also comprised: CPU adds the sign of first VLAN to mirror image and sends in the message; CPU sends the uplink port that message sends to exchange chip with mirror image.
Preferably, before exchange chip received mirror image reception message, method also comprised: CPU adds the sign of second VLAN to mirror image and receives in the message; CPU receives the uplink port that message sends to exchange chip with mirror image.
Preferably, before exchange chip was transmitted mirror image transmission message by first VLAN, method also comprises: exchange chip sent message according to mirror image and carries out the media access control MAC address learning; Before exchange chip was transmitted mirror image reception message by second VLAN, method also comprises: exchange chip received message according to mirror image and carries out MAC address learning.
Preferably, above-mentioned exchange chip sends message according to mirror image and carries out MAC address learning and comprise: exchange chip carries out MAC address learning according to the source MAC that mirror image sends message; Exchange chip carries out MAC address learning according to mirror image reception message and comprises: exchange chip carries out MAC address learning according to the source MAC that mirror image receives message.
Preferably, exchange chip comprises uplink port and mirror port, and wherein, uplink port and mirror port all are configured to belong to first VLAN and second VLAN.
Preferably, above-mentioned exchange chip sends message by first VLAN to mirror image and transmits and comprise: exchange chip sends message according to mirror image purpose MAC sends message with mirror image and broadcasts away by the mirror port that belongs to first VLAN with uplink port; Exchange chip receives message by second VLAN to mirror image and transmits and comprise: exchange chip receives message according to mirror image purpose MAC receives message with mirror image and broadcasts away by the mirror port that belongs to second VLAN with uplink port.
To achieve these goals, according to a further aspect in the invention, provide a kind of exchange chip.
Exchange chip according to the present invention comprises: first receiver module, and be used to receive mirror image and send message, wherein, mirror image sends the sign that carries first VLAN in the message; First forwarding module is used for by first VLAN mirror image being sent message and transmits; Second receiver module is used to receive mirror image and receives message, and wherein, mirror image receives the sign that carries second VLAN in the message; Second forwarding module is used for by second VLAN mirror image being received message and transmits.
Preferably, above-mentioned exchange chip also comprises: study module is used for learning according to mirror image transmission message and/or mirror image reception message.
Preferably, above-mentioned exchange chip comprises uplink port and mirror port, and wherein, uplink port and mirror port all are configured to belong to first VLAN and second VLAN.
To achieve these goals, according to a further aspect in the invention, provide a kind of ethernet router.
Ethernet router according to the present invention comprises: CPU is used for adding the sign of first VLAN to mirror image transmission message and the sign of second VLAN being added in the mirror image reception message; Exchange chip is used for mirror image transmission message being transmitted and by second VLAN mirror image reception message being transmitted by first VLAN.
Preferably, above-mentioned exchange chip also is used for carrying out MAC address learning by mirror image transmission message and/or mirror image reception message.
Preferably, above-mentioned exchange chip comprises uplink port and mirror port, and wherein, uplink port and mirror port all are configured to belong to first VLAN and second VLAN.
By the present invention, adopt exchange chip to receive mirror image and send message, wherein, mirror image sends the sign that carries first VLAN in the message; Exchange chip sends message by first VLAN to mirror image and transmits; Exchange chip receives mirror image and receives message, and wherein, mirror image receives the sign that carries second VLAN in the message; Exchange chip receives message by second VLAN to mirror image and transmits, solve exchange chip mirror image independence route mouth transmission simultaneously, received message, thereby the problem that causes message not to be dropped inner forwarding of exchange, and then the message that has reached the route mouth that makes on the router can send and the distortionless effect of message content from mirror port.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the general ethernet router configuration diagram according to correlation technique;
Fig. 2 is the configuration schematic diagram according to exchange chip under the general ethernet router framework of correlation technique;
Fig. 3 is the schematic diagram according to the transmission on the independent route mouth E of the general ethernet router of correlation technique, reception mirror image message;
Fig. 4 is the flow chart according to the sending method of the mirror image message of the embodiment of the invention;
Fig. 5 is the schematic diagram according to the configuration of exchange chip under the ethernet router framework of the embodiment of the invention;
Fig. 6 is the schematic diagram according to the transmission on the independent route mouth E of the ethernet router of the embodiment of the invention, reception mirror image message;
Fig. 7 is the schematic diagram according to the exchange chip of the embodiment of the invention.
Embodiment
Consider exchange chip mirror image independence route mouth transmission simultaneously, receive message, thereby cause message not transmit and be dropped in exchange inside, the embodiment of the invention provides a kind of sending method, exchange chip and ethernet router of mirror image message.Wherein, this method comprises: exchange chip receives mirror image and sends message, and wherein, mirror image sends the sign that carries first VLAN in the message; Exchange chip sends message by first VLAN to mirror image and transmits; Exchange chip receives mirror image and receives message, and wherein, mirror image receives the sign that carries second VLAN in the message; Exchange chip receives message by second VLAN to mirror image and transmits.
Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
Method embodiment
According to embodiments of the invention, provide a kind of sending method of mirror image message.
Fig. 4 is the flow chart according to the sending method of the mirror image message of the embodiment of the invention.
As shown in Figure 4, this method comprises that following step S402 is to step S408:
Step S402, exchange chip receives mirror image and sends message, and wherein, mirror image sends the sign that carries first VLAN in the message;
Step S404, exchange chip sends message by first VLAN to mirror image and transmits;
Step S406, exchange chip receives mirror image and receives message, and wherein, mirror image receives the sign that carries second VLAN in the message;
Step S408, exchange chip receives message by second VLAN to mirror image and transmits.
Alternatively, the order of above-mentioned step is variable.
Be described in detail below in conjunction with the implementation procedure of example the embodiment of the invention.
Fig. 5 is the schematic diagram according to the configuration of exchange chip under the ethernet router framework of the embodiment of the invention.
As shown in Figure 5, compare with Fig. 2 general switch chip configuration, this method increases a vlan6 (equally among this figure, two ports that the exchange chip inner dotted line links to each other are in same vlan, form a vlan territory), as Fig. 5, allow in this method design and have two dotted lines between UPLINK and the mirror port, that is to say that UPLINK belongs to two vlan simultaneously with mirror port, mirror port also belongs to two vlan simultaneously like this, and two vlan are arranged between two mouths, two message logical forwarding passages, the core point of this patent invention that Here it is, how the back explanation uses this two passes.
With respect to the general switch chip configuration, the vlan territory that disposes among the present invention is as shown in table 4:
Table 4
??Vlan The port that belongs to this vlan
??Vlan1 The UPLINK mouth, route mouth A
??Vlan2 The UPLINK mouth, route mouth B
??Vlan3 The UPLINK mouth, route mouth C
??Vlan4 The UPLINK mouth, route mouth D
??Vlan5 The UPLINK mouth, mirror port
??Vlan6 The UPLINK mouth, mirror port
Independence route mouth of the present invention is by the transmission principle of mirror image message: independent route mouth drives just knows when receiving a message or sending a message that this message is to receive (direction) message or send (direction) message, if the message of independent route mouth need be by mirror image, need stamp sign respectively to sending message and receiving message, expression is to send message or reception message.
Used Vlan5 to send for (independent route mouth) by the transmission message of mirror image, used Vlan6 to send for (independent route mouth) by the reception message of mirror image, just the message of the message of independent route mouth sending direction and receive direction sends in two different vlan domains respectively in new scheme.
Fig. 6 is the schematic diagram according to the transmission on the independent route mouth E of the ethernet router of the embodiment of the invention, reception mirror image message.
Ethernet router according to the embodiment of the invention comprises CPU and exchange chip.
As shown in Figure 6, this method may further comprise the steps:
Step S601: by the transmission message of mirror image, it is Vlan5 that CPU puts by the transmission message vlan tag of mirror image, sends to the UPLINK mouth of exchange chip then for (independent mouthful), this message (DA, SA) be (MAC2, MAC1), vlan tag is Vlan5;
Step S602:UPLINK receives this message, and exchange chip is learnt Key=MAC1+Vlan5, and the MAC+VID list item of Result=UPLINK mouth adds them in the MAC+VID table of self to;
Step S603: exchange chip can not find out the list item of Key=MAC2+Vlan5, and message is broadcasted away from the mirror port that belongs to Vlan5 with UPLINK;
Step S604: by the reception message of mirror image, it is Vlan6 that CPU puts by the reception message vlan tag of mirror image, sends to the UPLINK mouth of exchange chip then for (independent mouthful), message (DA, SA) be (MAC1, MAC3), vlan tag is Vlan6;
Step S605:UPLINK receives this message, and exchange chip is learnt Key=MAC3+Vlan6, and the MAC+VID list item of Result=UPLINK mouth adds it in MAC+VID table of self to;
Step S606: same, exchange chip can not find out the list item of Key=MAC1+Vlan6, and message is broadcasted away from the mirror port that belongs to Vlan6 with UPLINK; Reached the purpose that sends this message like this.
Preferably, the method is not limited to independent port mirror image message and sends, and can receive and transmit the message of a MAC as source MAC as long as relate to a switching chip port, also can transmit the message as purpose MAC with this MAC simultaneously.
In the present invention, exchange chip has two operations for the message that receives, and one is MAC address learning, and one is that message is transmitted.Wherein, MAC address learning carries out according to source MAC (being SA), and the message forwarding is carried out according to purpose MAC (being DA).
And study for MAC, exchange chip is only just learnt when a MAC Address appears at message for the first time as source MAC, just for same MAC Address, MAC address learning is only learnt once (because learnt, just not learnt naturally) again.
It is that each message all needs to carry out that but message is transmitted, because exchange chip receives a message from a port, this message must be sent (comprising discard processing) from a port, alternatively, how determining from which port to send is exactly that message is transmitted the processing that will do.
In the present invention, MAC address learning is exactly an exchange chip with the source MAC (being SA) of the message that receives on the switching chip port and Vlan id as key, the port numbers that receives the exchange chip of this message is added in exchange chip internal mac-VID table as result, wherein, the MAC+VID table of exchange chip inside is as shown in table 5: (VID is writing a Chinese character in simplified form of vlan id, down together).
Table 5
?Key ??Result
The source MAC+VID of message Receive the port of message
Above-mentioned mentioning, it is according to purpose MAC that message is transmitted, so exchange chip was got the purpose MAC of message and the vlan id of message looks into this top MAC-VID table as key when message was transmitted, if found, the result of the list item that is found is exactly the port that this message will be transmitted so, exchange chip only sends this message from the port of this appointment, if do not find, exchange chip can be broadcasted this message in the indicated vlan of the vlan of this message id, just from all are in the port of this vlan message is sent.
In addition, though be to use source MAC and VID in the time of study, and be to use purpose MAC and vid when searching, no matter be source MAC or purpose MAC, when depositing in the exchange chip in the MAC-VID table, a MAC Address all is the data of 6 bytes, shown in the MAC+VID table 6 of embodiment of the invention exchange chip inside:
Table 6
??Key ??Result
??MAC+VID Switching chip port
In the present invention, that mirror image reception message adds is another VID, purpose MAC and new VID with message remove to look into the MAC-VID table, do not search and can hit (because mirror image sends message, the MAC Address of learning is identical, but vlan id is different, so key is just inequality, key is identical for list item, be identical), message can be broadcasted away (and mirror port is exactly a port that belongs to this new vlan) in this new vlan like this, sends the purpose that mirror image receives message so can reach.
Top step S602 and step S605 are used for illustrating why this patent works, because particularly step S602 has illustrated that the key that uses when MAC-VID list item that it is learnt and step 6 are tabled look-up is inequality, the key of step S602 is MAC1+Vlan5, and the key that step S606 tables look-up is MAC1+Vlan6, both are different, can not hit so table look-up.
As can be seen from the above description, the present invention has realized making that the message of any route mouth can both send from mirror port on the router, and message content information is undistorted.
Device embodiment
According to embodiments of the invention, provide a kind of exchange chip.
Fig. 7 is the schematic diagram according to the exchange chip of the embodiment of the invention.
As shown in Figure 7, this exchange chip comprises: first receiver module 701; First forwarding module 702; Second receiver module 703; Second forwarding module 704.
Wherein, first receiver module 701 is used to receive mirror image and sends message, and mirror image sends the sign that carries first VLAN in the message; First forwarding module 702 is used for by first VLAN mirror image being sent message and transmits; Second receiver module 703 is used to receive mirror image and receives message, and mirror image receives the sign that carries second VLAN in the message; Second forwarding module 704 is used for by second VLAN mirror image being received message and transmits.
Preferably, this exchange chip also comprises: study module 705 is used for learning according to mirror image transmission message and/or mirror image reception message.
According to embodiments of the invention, provide a kind of ethernet router.
Can realize sending method according to the ethernet router of the embodiment of the invention according to the mirror image message of the embodiment of the invention.
Ethernet router according to the embodiment of the invention comprises: CPU and exchange chip.
Wherein, CPU is used for adding the sign of first VLAN to mirror image transmission message and the sign of second VLAN being added in the mirror image reception message; Exchange chip is used for mirror image transmission message being transmitted and by second VLAN mirror image reception message being transmitted by first VLAN.
Preferably, above-mentioned exchange chip also is used for carrying out MAC address learning by mirror image transmission message and/or mirror image reception message.
Preferably, above-mentioned exchange chip comprises uplink port and mirror port, and wherein, uplink port and mirror port all are configured to belong to first VLAN and second VLAN.
Need to prove, can in computer system, carry out in the step shown in the flow chart of accompanying drawing such as a set of computer-executable instructions, and, though there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the sending method of a mirror image message is characterized in that, comprising:
Exchange chip receives mirror image and sends message, and wherein, described mirror image sends the sign that carries first VLAN in the message;
Described exchange chip sends message by described first VLAN to described mirror image and transmits;
Described exchange chip receives mirror image and receives message, and wherein, described mirror image receives the sign that carries second VLAN in the message;
Described exchange chip receives message by described second VLAN to described mirror image and transmits.
2. method according to claim 1 is characterized in that, before exchange chip received mirror image transmission message, described method also comprised:
Central processor CPU adds the sign of first VLAN to described mirror image and sends in the message;
Described CPU sends the uplink port that message sends to described exchange chip with described mirror image.
3. method according to claim 1 is characterized in that, before exchange chip received mirror image reception message, described method also comprised:
Described CPU adds the sign of second VLAN to described mirror image and receives in the message;
Described CPU receives the uplink port that message sends to described exchange chip with described mirror image.
4. method according to claim 1 is characterized in that,
Before described exchange chip was transmitted described mirror image transmission message by described first VLAN, described method also comprised:
Described exchange chip sends message according to described mirror image and carries out learning of media accessing control address;
Before described exchange chip was transmitted described mirror image reception message by described second VLAN, described method also comprised:
Described exchange chip receives message according to described mirror image and carries out learning of media accessing control address.
5. according to each described method in the claim 1 to 4, it is characterized in that, described exchange chip comprises uplink port and mirror port, and wherein, described uplink port and described mirror port all are configured to belong to described first VLAN and described second VLAN.
6. according to each described method in the claim 1 to 4, it is characterized in that,
Described exchange chip is transmitted described mirror image transmission message by described first VLAN and is comprised:
Described exchange chip sends message according to described mirror image purpose medium access control sends message with described mirror image and broadcasts away by the mirror port that belongs to first VLAN with uplink port;
Described exchange chip is transmitted described mirror image reception message by described second VLAN and is comprised:
Described exchange chip receives message according to described mirror image purpose medium access control receives message with described mirror image and broadcasts away by the mirror port that belongs to second VLAN with described uplink port.
7. an exchange chip is characterized in that, comprising:
First receiver module is used to receive mirror image and sends message, and wherein, described mirror image sends the sign that carries first VLAN in the message;
First forwarding module is used for by described first VLAN described mirror image being sent message and transmits;
Second receiver module is used to receive mirror image and receives message, and wherein, described mirror image receives the sign that carries second VLAN in the message;
Second forwarding module is used for by described second VLAN described mirror image being received message and transmits.
8. exchange chip according to claim 7 is characterized in that, described exchange chip also comprises:
Study module is used for learning according to described mirror image transmission message and/or mirror image reception message.
9. according to claim 7 or 8 described exchange chips, it is characterized in that described exchange chip also comprises:
Uplink port and mirror port, wherein,
Described uplink port and described mirror port all are configured to belong to described first VLAN and described second VLAN.
10. an ethernet router is characterized in that, described ethernet router comprises each described exchange chip in central processor CPU and the claim 7 to 9, wherein,
Described CPU is used for adding the sign of first VLAN to described mirror image transmission message and the sign of second VLAN being added in the described mirror image reception message.
CN2009102414335A 2009-12-02 2009-12-02 Sending method of mirror image message, switch chip and Ethernet router Active CN101877671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102414335A CN101877671B (en) 2009-12-02 2009-12-02 Sending method of mirror image message, switch chip and Ethernet router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102414335A CN101877671B (en) 2009-12-02 2009-12-02 Sending method of mirror image message, switch chip and Ethernet router

Publications (2)

Publication Number Publication Date
CN101877671A true CN101877671A (en) 2010-11-03
CN101877671B CN101877671B (en) 2012-06-27

Family

ID=43020139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102414335A Active CN101877671B (en) 2009-12-02 2009-12-02 Sending method of mirror image message, switch chip and Ethernet router

Country Status (1)

Country Link
CN (1) CN101877671B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997778A (en) * 2010-11-19 2011-03-30 中兴通讯股份有限公司 Method and device for sending messages
WO2012079373A1 (en) * 2010-12-16 2012-06-21 中兴通讯股份有限公司 Method and device for capturing traffic mirror
CN102957619A (en) * 2011-08-25 2013-03-06 清华大学 Virtual routing system and method
CN103220224A (en) * 2013-04-18 2013-07-24 福建星网锐捷网络有限公司 Message forwarding processing method and device and network equipment
CN103685041A (en) * 2012-09-04 2014-03-26 清华大学 Programmable router and routing method based on bit granularity
CN103975561A (en) * 2011-12-02 2014-08-06 华为技术有限公司 Message sending method, message receiving method, openflow controller, and first openflow switch
CN104158768A (en) * 2014-07-01 2014-11-19 汉柏科技有限公司 Method and system for extending network interfaces, and method for receiving and sending message
CN104468421A (en) * 2014-11-27 2015-03-25 汉柏科技有限公司 Method and system for achieving output port mirroring
CN105072033A (en) * 2015-07-06 2015-11-18 北京汉柏科技有限公司 Message forwarding method of switch chip, and switch chip
US9641421B2 (en) 2011-12-02 2017-05-02 Huawei Technologies Co., Ltd. Message transmitting method, message receiving method, openflow controller and first openflow switch
CN103731349B (en) * 2012-10-16 2017-10-03 新华三技术有限公司 Message forwarding method and edge device between a kind of Ethernet virtualization interconnection neighbours
CN108712387A (en) * 2018-04-19 2018-10-26 深圳市联软科技股份有限公司 The system of user identity in a kind of identification network
CN111262752A (en) * 2020-01-13 2020-06-09 新华三信息安全技术有限公司 In-band telemetry method and device
CN111614580A (en) * 2019-02-26 2020-09-01 迈普通信技术股份有限公司 Data forwarding method, device and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068248A (en) * 2007-06-07 2007-11-07 杭州华三通信技术有限公司 Long-distance mirror image method, image source equipment and image destination equipment

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012065474A1 (en) * 2010-11-19 2012-05-24 中兴通讯股份有限公司 Method and device for transmitting messages
CN101997778A (en) * 2010-11-19 2011-03-30 中兴通讯股份有限公司 Method and device for sending messages
WO2012079373A1 (en) * 2010-12-16 2012-06-21 中兴通讯股份有限公司 Method and device for capturing traffic mirror
CN102957619B (en) * 2011-08-25 2016-05-18 清华大学 Virtual route system and method
CN102957619A (en) * 2011-08-25 2013-03-06 清华大学 Virtual routing system and method
CN103975561A (en) * 2011-12-02 2014-08-06 华为技术有限公司 Message sending method, message receiving method, openflow controller, and first openflow switch
US9641421B2 (en) 2011-12-02 2017-05-02 Huawei Technologies Co., Ltd. Message transmitting method, message receiving method, openflow controller and first openflow switch
CN103975561B (en) * 2011-12-02 2017-02-22 华为技术有限公司 Message sending method, message receiving method, openflow controller, and first openflow switch
CN103685041A (en) * 2012-09-04 2014-03-26 清华大学 Programmable router and routing method based on bit granularity
CN103685041B (en) * 2012-09-04 2017-04-19 清华大学 Programmable router and routing method based on bit granularity
CN103731349B (en) * 2012-10-16 2017-10-03 新华三技术有限公司 Message forwarding method and edge device between a kind of Ethernet virtualization interconnection neighbours
CN103220224B (en) * 2013-04-18 2016-01-27 福建星网锐捷网络有限公司 The processing method of message repeating and device and the network equipment
CN103220224A (en) * 2013-04-18 2013-07-24 福建星网锐捷网络有限公司 Message forwarding processing method and device and network equipment
CN104158768A (en) * 2014-07-01 2014-11-19 汉柏科技有限公司 Method and system for extending network interfaces, and method for receiving and sending message
CN104158768B (en) * 2014-07-01 2018-05-04 汉柏科技有限公司 A kind of method and system of extended network interface, the method for receiving and dispatching message
CN104468421A (en) * 2014-11-27 2015-03-25 汉柏科技有限公司 Method and system for achieving output port mirroring
CN104468421B (en) * 2014-11-27 2018-02-13 汉柏科技有限公司 A kind of method and system for realizing exit port mirror image
CN105072033A (en) * 2015-07-06 2015-11-18 北京汉柏科技有限公司 Message forwarding method of switch chip, and switch chip
CN108712387A (en) * 2018-04-19 2018-10-26 深圳市联软科技股份有限公司 The system of user identity in a kind of identification network
CN111614580A (en) * 2019-02-26 2020-09-01 迈普通信技术股份有限公司 Data forwarding method, device and equipment
CN111614580B (en) * 2019-02-26 2023-06-27 迈普通信技术股份有限公司 Data forwarding method, device and equipment
CN111262752A (en) * 2020-01-13 2020-06-09 新华三信息安全技术有限公司 In-band telemetry method and device

Also Published As

Publication number Publication date
CN101877671B (en) 2012-06-27

Similar Documents

Publication Publication Date Title
CN101877671B (en) Sending method of mirror image message, switch chip and Ethernet router
CN102957616B (en) In the method and system of ASIC repeating TRILL network message
CN101127681B (en) Method and device for binding server MAC address with uplink port
CN103841023B (en) The method and apparatus of data forwarding
CN103929461B (en) Mac address information synchronous method and device in pile system
US20070127459A1 (en) Network apparatus and method for forwarding multicast packets for the same
CN101616014B (en) Method for realizing cross-virtual private local area network multicast
CN100407704C (en) Method of dynamically learning address on MAC layer
CN101702679B (en) Message processing method and exchange apparatus based on virtual local area network
CN100450080C (en) Method and apparatus for astringing two layer MAC address
CN103685006A (en) Packet forwarding method for edge device and edge device
CN100531138C (en) Operator's boundary notes, virtual special LAN service communication method and system
CN101257447A (en) Method, system and routing apparatus of load sharing
CN101635702B (en) Method for forwarding data packet using security strategy
CN100563215C (en) A kind of packet routing switch device and method thereof
CN102868614A (en) Packet forwarding method in TRILL (transparent interconnection of lots of links) network and routing bridge
CN101964719B (en) Based on the data processing method of master control board switching, line card and master control borad
CN101778035B (en) Virtual private LAN service communication method and device
CN100382531C (en) Switching in method for virtual special network and realizing apparatus
CN109639552A (en) A kind of three-layer forwarding method and device
CN105187311A (en) Message forwarding method and message forwarding device
CN104168338A (en) Network address conversion device and network address conversion method
US7394810B2 (en) Layer 2 switch and method of processing expansion VLAN tag of layer 2 frame
CN1980176A (en) Mixed virtual private network system and backbone network edge apparatus and configuration method
CN102263679B (en) Source role information processing method and forwarding chip

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