CN101877671B - 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
CN101877671B
CN101877671B CN2009102414335A CN200910241433A CN101877671B CN 101877671 B CN101877671 B CN 101877671B CN 2009102414335 A CN2009102414335 A CN 2009102414335A CN 200910241433 A CN200910241433 A CN 200910241433A CN 101877671 B CN101877671 B CN 101877671B
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.)
Active
Application number
CN2009102414335A
Other languages
Chinese (zh)
Other versions
CN101877671A (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 CPU, last one or more ethernet controllers that carry of CPU, and exchange chip constitutes.Exchange chip links to each other with ethernet controller on the CPU through the ether port of self; This mouthful is called UPLINK mouth (being uplink port) on the exchange chip, and (the route mouth here only is meant and is used for transmitting data, possibly be 2 layers of forwarding and other ports on the exchange chip expand to the route mouth; Also possibly be 3 layers of forwarding; Just be used to be different from mirror port, say something), like route mouth A-D among the figure; Usually let a mouth on the exchange chip be mirror port (mirror port is not participated in message and is transmitted, just be used for the transmission on other interfaces, receive message all the mirror image portion send 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 other route mouths of ethernet controller expansion on the CPU through regular meeting, like 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, by figure can know that the UPLINK mouth can be in 5 vlan simultaneously; 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 explain), 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 and transmit (these ports that externally provide adopt the untag mode simultaneously, and the UPLINK mouth does not adopt untag) through 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 through 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 give the vlan tag of outgoing interface on this message band when CPU sends message, thus message can in this vlan of exchange chip, transmit, and send 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 add the MAC+VID list item of learning to exchange chip inner MAC+VID and show (if also do not learn, just first message can be learnt).The inner MAC+VID table of exchange chip is seen 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 corresponding result of key) that finds, and has a problem here; 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 just expanding on the exchange chip, sending message all will be by mirror image; Wherein the purpose of mirror image is in order to monitor, and whether monitoring has what illegal content etc. through 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 through the UPLINK mouth top sending direction, two kinds of messages of receive direction exactly from mirror port.
Fig. 3 is the sketch map 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 (like 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; Occur as the target MAC (Media Access Control) address of some messages simultaneously 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).
To 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
To 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, a kind of sending method of mirror image message is provided.
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 through 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 through 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 through 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 through 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 through 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 through the mirror port that belongs to first VLAN with uplink port; Exchange chip receives message through 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 through the mirror port that belongs to second VLAN with uplink port.
To achieve these goals, according to a further aspect in the invention, a kind of exchange chip is provided.
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 through 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 through 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, a kind of ethernet router is provided.
Ethernet router according to the present invention comprises: CPU is used for adding the sign of first VLAN to mirror image and sends message and add the sign of second VLAN to mirror image and receive in the message; Exchange chip is used for mirror image transmission message being transmitted and through second VLAN mirror image reception message being transmitted through first VLAN.
Preferably, above-mentioned exchange chip also is used for carrying out MAC address learning through 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.
Through 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 through 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 through 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 sketch map 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 sketch map according to the configuration of exchange chip under the ethernet router framework of the embodiment of the invention;
Fig. 6 is the sketch map 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 sketch map 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 through 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 through second VLAN to mirror image and transmits.
Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.Below with reference to accompanying drawing and combine embodiment to specify the present invention.
Method embodiment
According to embodiments of the invention, a kind of sending method of mirror image message is provided.
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 through 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 through second VLAN to mirror image and transmits.
Alternatively, the order of above-mentioned step is variable.
To combine instance that the implementation procedure of the embodiment of the invention is described in detail below.
Fig. 5 is the sketch map according to the configuration of exchange chip under the ethernet router framework of the embodiment of the invention.
As shown in Figure 5, to 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), like Fig. 5; Let in this method design 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; Two vlan are arranged between two mouths; Article two, message logical forwarding passage, the core point of this patent invention that Here it is, how illustrated later 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 with the reception message to sending 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 sketch map 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 of sending 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 for the study of MAC, exchange chip is only just learnt when a MAC Address appears at message for the first time as source MAC, and 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 need carry out that but message is transmitted; Because exchange chip receives a message from a port; Must this message 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 inner MAC+VID of exchange chip shows 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 the vlan id that exchange chip was got purpose MAC and the message of message when message was transmitted looks into this top MAC-VID as key and shows, if found, the result of the list item that is found so is exactly the port that this message will be transmitted; 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 receives that message adds is another VID, removes to look into the MAC-VID table with the purpose MAC and the new VID of message; 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 explaining why acting this patent is; Because particularly step S602 has explained 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, and both are different, can not hit so table look-up.
From above description, can find out that the present invention has realized making that the message of any route mouth can both send from mirror port on the router, message content information is undistorted.
Device embodiment
According to embodiments of the invention, a kind of exchange chip is provided.
Fig. 7 is the sketch map 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 through 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 through 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, a kind of ethernet router is provided.
Ethernet router according to the embodiment of the invention can be realized the sending method 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 and sends message and add the sign of second VLAN to mirror image and receive in the message; Exchange chip is used for mirror image transmission message being transmitted and through second VLAN mirror image reception message being transmitted through first VLAN.
Preferably, above-mentioned exchange chip also is used for carrying out MAC address learning through 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 logical order has been shown in flow chart, in some cases, can have carried out step shown or that describe with the order that is different from here.
Obviously, it is apparent to those skilled in the art 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; Can they be stored in the storage device and carry out, 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 by calculation element.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, 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, said mirror image sends the sign that carries first VLAN in the message;
Said exchange chip sends message through said first VLAN to said mirror image and transmits;
Said exchange chip receives mirror image and receives message, and wherein, said mirror image receives the sign that carries second VLAN in the message, wherein, and the sign that the sign of said first VLAN is different with being designated of said second VLAN;
Said exchange chip receives message through said second VLAN to said mirror image and transmits.
2. method according to claim 1 is characterized in that, before exchange chip received mirror image transmission message, said method also comprised:
Central processor CPU adds the sign of first VLAN to said mirror image and sends in the message;
Said CPU sends the uplink port that message sends to said exchange chip with said mirror image.
3. method according to claim 1 is characterized in that, before exchange chip received mirror image reception message, said method also comprised:
Said CPU adds the sign of second VLAN to said mirror image and receives in the message;
Said CPU receives the uplink port that message sends to said exchange chip with said mirror image.
4. method according to claim 1 is characterized in that,
Before said exchange chip was transmitted said mirror image transmission message through said first VLAN, said method also comprised:
Said exchange chip sends message according to said mirror image and carries out learning of media accessing control address;
Before said exchange chip was transmitted said mirror image reception message through said second VLAN, said method also comprised:
Said exchange chip receives message according to said 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; Said exchange chip comprises uplink port and mirror port, and wherein, said uplink port and said mirror port all are configured to belong to said first VLAN and said second VLAN.
6. according to each described method in the claim 1 to 4, it is characterized in that,
Said exchange chip is transmitted said mirror image transmission message through said first VLAN and is comprised:
Said exchange chip sends message according to said mirror image purpose medium access control is sent message with said mirror image and is broadcasted away through the mirror port that belongs to first VLAN with uplink port;
Said exchange chip is transmitted said mirror image reception message through said second VLAN and is comprised:
Said exchange chip receives message according to said mirror image purpose medium access control receives message with said mirror image and broadcasts away through the mirror port that belongs to second VLAN with said 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, said mirror image sends the sign that carries first VLAN in the message;
First forwarding module is used for through said first VLAN said mirror image being sent message and transmits;
Second receiver module is used to receive mirror image and receives message, and wherein, said mirror image receives the sign that carries second VLAN in the message, wherein, and the sign that the sign of said first VLAN is different with being designated of said second VLAN;
Second forwarding module is used for through said second VLAN said mirror image being received message and transmits.
8. exchange chip according to claim 7 is characterized in that, said exchange chip also comprises:
Study module is used for learning according to said 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 said exchange chip also comprises:
Uplink port and mirror port, wherein,
Said uplink port and said mirror port all are configured to belong to said first VLAN and said second VLAN.
10. an ethernet router is characterized in that, said ethernet router comprises each described exchange chip in central processor CPU and the claim 7 to 9, wherein,
Said CPU is used for adding the sign of first VLAN to said mirror image and sends message and add the sign of second VLAN to said mirror image and receive in the 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 CN101877671A (en) 2010-11-03
CN101877671B true 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)

Families Citing this family (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
CN102025544B (en) * 2010-12-16 2015-09-16 中兴通讯股份有限公司 Stream mirror image capturing method and device
CN102957619B (en) * 2011-08-25 2016-05-18 清华大学 Virtual route system and method
CN103975561B (en) * 2011-12-02 2017-02-22 华为技术有限公司 Message sending method, message receiving method, openflow controller, and first openflow switch
EP2787694B1 (en) 2011-12-02 2016-06-15 Huawei Technologies Co., Ltd. Message sending method, message receiving method, openflow controller, and first openflow switch
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
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
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
CN111614580B (en) * 2019-02-26 2023-06-27 迈普通信技术股份有限公司 Data forwarding method, device and equipment
CN111262752B (en) * 2020-01-13 2022-05-27 新华三信息安全技术有限公司 In-band telemetry method and device

Citations (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

Patent Citations (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

Also Published As

Publication number Publication date
CN101877671A (en) 2010-11-03

Similar Documents

Publication Publication Date Title
CN101877671B (en) Sending method of mirror image message, switch chip and Ethernet router
CN103841023B (en) The method and apparatus of data forwarding
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
CN101616014B (en) Method for realizing cross-virtual private local area network multicast
EP2912812B1 (en) Traffic interconnection between virtual devices
CN103929461B (en) Mac address information synchronous method and device in pile system
CN103685006A (en) Packet forwarding method for edge device and edge device
US20070060147A1 (en) Apparatus for transmitting data packets between wireless sensor networks over internet, wireless sensor network domain name server, and data packet transmission method using the same
US20070127459A1 (en) Network apparatus and method for forwarding multicast packets for the same
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
CN102413060B (en) User private line communication method and equipment used in VPLS (Virtual Private LAN (Local Area Network) Service) network
CN104869042A (en) Message forwarding method and message forwarding device
CN100531138C (en) Operator's boundary notes, virtual special LAN service communication method and system
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
CN101257447A (en) Method, system and routing apparatus of load sharing
CN101778035B (en) Virtual private LAN service communication method and device
CN100382531C (en) Switching in method for virtual special network and realizing apparatus
CN101964719B (en) Based on the data processing method of master control board switching, line card and master control borad
CN100559772C (en) Mixed virtual private network system and backbone network edge apparatus and collocation method thereof
US20120243521A1 (en) Gateway device

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