CN103209142A - Method and system for restraining Ethernet layer-two data package from forwarding through switching device - Google Patents
Method and system for restraining Ethernet layer-two data package from forwarding through switching device Download PDFInfo
- Publication number
- CN103209142A CN103209142A CN2012100086446A CN201210008644A CN103209142A CN 103209142 A CN103209142 A CN 103209142A CN 2012100086446 A CN2012100086446 A CN 2012100086446A CN 201210008644 A CN201210008644 A CN 201210008644A CN 103209142 A CN103209142 A CN 103209142A
- Authority
- CN
- China
- Prior art keywords
- mac address
- layer
- address
- data bag
- machine
- 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.)
- Pending
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention provides a method and a system for restraining Ethernet layer-two data package from forwarding through a switching device. The method includes that the switching device determines whether the MAC (Media Access Control) address of the layer-two data package can be identified or not after receiving the Ethernet layer-two data package and if the switching device cannot determine the MAC address of the layer-two data package, the MAC address of the layer-two data package is discarded. The method and the system achieve the restraining of the Ethernet layer-two data package from forwarding through the switching device.
Description
Technical field
The application relates to Ethernet Layer 2 data bag transmission field, relates in particular to a kind of switching equipment and suppresses the method and system that Ethernet Layer 2 data bag is transmitted.
Background technology
In the prior art, can transmit the Layer 2 data bag each other between the ethernet switching device, but in some Ethernet service, those skilled in the art wish to limit the forwarding of Layer 2 data bag to reach the purpose of saving the network bandwidth, avoiding broadcast storm.
Summary of the invention
The invention provides the method and system that a kind of switching equipment restriction Ethernet Layer 2 data bag is transmitted, how to realize that to solve ethernet switching device suppresses the technical problem that Ethernet Layer 2 data bag is transmitted.
For solving the problems of the technologies described above, the application provides a kind of switching equipment to suppress the method that Ethernet Layer 2 data bag is transmitted, and this method comprises: after switching equipment is received Ethernet Layer 2 data bag, judge whether to identify the MAC Address of this Layer 2 data bag; If described switching equipment can't be identified the MAC Address of this Layer 2 data bag, then abandon this Layer 2 data bag.
Further, if described switching equipment identifies the MAC Address of this Layer 2 data bag, then continue to judge that the MAC Address that identifies is multicast address or unicast address;
If the MAC Address that identifies is multicast address, then this Layer 2 data bag is transferred to local the processing.
Further, if the MAC Address that identifies is unicast address, then continue to judge whether this unicast mac address is this machine MAC Address, if non-machine MAC Address of this unicast mac address then abandons the Layer 2 data bag.
Further, if this unicast mac address is this machine MAC Address, continue to judge whether the purpose IP address of the Layer 2 data bag that carries this unicast mac address is this machine IP address; If this purpose IP address is this machine IP address, then the Layer 2 data bag is transferred to local the processing; If the Layer 2 data bag is then carried out the forwarding of network layer in non-machine IP address, this purpose IP address.
For solving the problems of the technologies described above, the invention provides a kind of switching equipment and suppress the system that Ethernet Layer 2 data bag is transmitted, described system comprises packet parsing module, judge module and packet forwarding module, wherein,
Described packet parsing module be used for the Ethernet Layer 2 data bag that switching equipment receives is resolved, and the MAC Address of this Layer 2 data bag that will parse is sent to judge module;
Whether described judge module is used for judgement and can identifies from the MAC Address of the Layer 2 data bag of packet parsing module; If the MAC Address of this Layer 2 data bag can't be identified, then send to described packet forwarding module and abandon this Layer 2 data bag instruction;
Described packet forwarding module is used for carrying out correspondingly operation according to the instruction of described judge module.
Further, described judge module also is used for judging that this MAC Address is multicast MAC Address or unicast mac address after the MAC Address that identifies this Layer 2 data bag; And when judging this MAC Address and be the multicast MAC Address, send local processing instruction to described packet forwarding module.
Further, described judge module also is used for judging whether this unicast mac address is this machine MAC Address after judging this MAC Address and being unicast mac address; And when judging non-machine MAC Address of this unicast mac address, abandon the instruction of Layer 2 data bag to described packet forwarding module transmission.
Further, described judge module also is used for judging this unicast mac address for after this machine MAC Address, and whether the purpose IP address that the data message of this unicast mac address is carried in judgement is this machine IP address; When judging this purpose IP address for this machine IP address, send local processing instruction to described packet forwarding module; When judging this purpose IP address and be non-machine IP address, send to described packet forwarding module and to abandon the instruction of Layer 2 data bag.
In the technique scheme, switching equipment is identified the Ethernet Layer 2 data bag that receives, filter out the Layer 2 data bag that satisfies different default conditions for identification and handle respectively, avoided all Ethernet Layer 2 data bags are transmitted the adverse effect that network is brought.
Description of drawings
Fig. 1 is that the switching equipment of present embodiment suppresses the method flow diagram that Ethernet Layer 2 data bag is transmitted;
Fig. 2 is the process chart at dissimilar Ethernet Layer 2 data bags;
Fig. 3 is that the switching equipment of present embodiment suppresses the system construction drawing that Ethernet Layer 2 data bag is transmitted.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, hereinafter will be elaborated to embodiments of the invention by reference to the accompanying drawings.Need to prove that under the situation of not conflicting, the embodiment among the application and the feature among the embodiment be combination in any mutually.
Fig. 1 is that the switching equipment of present embodiment suppresses the method flow diagram that Ethernet Layer 2 data bag is transmitted.
The S101 switching equipment receives Ethernet Layer 2 data bag;
The S102 switching equipment judges whether to identify the MAC Address of this Layer 2 data bag, as identifying this MAC Address, execution in step S103; Otherwise, execution in step S104;
S103 abandons this Layer 2 data bag;
The S104 flow process finishes.
Above-described embodiment has provided switching equipment and has suppressed the concrete steps that Ethernet Layer 2 data bag is transmitted.During the MAC Address of the Ethernet Layer 2 data bag that can't receive when switching equipment, according to the prior art scheme, switching equipment this Ethernet Layer 2 data bag that can flood, the Ethernet of this moment is prone to broadcast storm.Above-described embodiment has been avoided the appearance of broadcast storm by this part Ethernet Layer 2 data bag is abandoned, and implements simple.
In other embodiments of the invention, if the switching equipment among the above-mentioned steps S102 identifies the MAC Address of this Layer 2 data bag, can continue also to judge that the MAC Address that identifies is multicast address or unicast address;
If the MAC Address that identifies is multicast address, then this Layer 2 data bag is transferred to local the processing.
If the MAC Address that identifies is unicast address, can continue also to judge whether this unicast mac address is this machine MAC Address, if non-machine MAC Address of this unicast mac address then abandons the Layer 2 data bag.
If this unicast mac address is this machine MAC Address, can continue also to judge whether the purpose IP address of the Layer 2 data bag that carries this unicast mac address is this machine IP address; If this purpose IP address is this machine IP address, then the Layer 2 data bag is transferred to local the processing; If the Layer 2 data bag is then carried out the forwarding of network layer in non-machine IP address, this purpose IP address.
In above-mentioned other embodiment, switching equipment has been done different processing at dissimilar Ethernet Layer 2 data bags, as shown in Figure 2, has improved the flexibility of switching equipment processing Ethernet Layer 2 data bag greatly.
Switching equipment can adopt the processing method of all or part of Ethernet Layer 2 data bag among Fig. 2 according to user's actual demand when the Ethernet Layer 2 data bag that processing receives.Above-mentioned switching equipment can be carried out the action that the above-mentioned processing Ethernet of the present invention Layer 2 data bag is transmitted under the triggering from the order of webmaster; If switching equipment does not receive the order from webmaster, can carry out the Layer 2 data bag according to prior art and handle action.
Fig. 3 is that the switching equipment of present embodiment suppresses the system construction drawing that Ethernet Layer 2 data bag is transmitted.
This system comprises packet parsing module, judge module and packet forwarding module, wherein,
The packet parsing module be used for the Ethernet Layer 2 data bag that switching equipment receives is resolved, and the MAC Address of this Layer 2 data bag that will parse is sent to judge module;
This packet parsing module except being used for parsing the MAC Address from described Layer 2 data bag, also can be used for parsing protocol type from described Layer 2 data bag; And according to the protocol type that parses protocol package is put the reception mark;
Whether judge module is used for judgement and can identifies from the MAC Address of the Layer 2 data bag of packet parsing module; If the MAC Address of this Layer 2 data bag can't be identified, then send to described packet forwarding module and abandon this Layer 2 data bag instruction;
Above-mentioned judge module, also be used in the MAC Address that identifies this Layer 2 data bag after, judge that this MAC Address is multicast MAC Address or unicast mac address; And when judging this MAC Address and be the multicast MAC Address, send local processing instruction to described packet forwarding module;
Above-mentioned judge module, also be used in judge this MAC Address and be unicast mac address after, judge whether this unicast mac address is this machine MAC Address; And when judging non-machine MAC Address of this unicast mac address, abandon the instruction of Layer 2 data bag to described packet forwarding module transmission;
Above-mentioned judge module also is used in and judges this unicast mac address for after this machine MAC Address, judges whether the purpose IP address of the data message that carries this unicast mac address is this machine IP address; When judging this purpose IP address for this machine IP address, send local processing instruction to described packet forwarding module; When judging this purpose IP address and be non-machine IP address, send to described packet forwarding module and to abandon the instruction of Layer 2 data bag;
The packet forwarding module is used for carrying out correspondingly operation according to the instruction of described judge module.
One of ordinary skill in the art will appreciate that all or part of step in the said method can instruct related hardware to finish by program, described program can be stored in the computer-readable recording medium, as read-only memory, disk or CD etc.Alternatively, all or part of step of above-described embodiment also can use one or more integrated circuits to realize, correspondingly, each the module/unit in above-described embodiment can adopt the form of hardware to realize, also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
Need to prove; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.
Claims (8)
1. a switching equipment suppresses the method that Ethernet Layer 2 data bag is transmitted, and it is characterized in that described method comprises:
After switching equipment is received Ethernet Layer 2 data bag, judge whether to identify the MAC Address of this Layer 2 data bag; If described switching equipment can't be identified the MAC Address of this Layer 2 data bag, then abandon this Layer 2 data bag.
2. the method for claim 1 is characterized in that, described method also comprises:
If described switching equipment identifies the MAC Address of this Layer 2 data bag, then continue to judge that the MAC Address that identifies is multicast address or unicast address;
If the MAC Address that identifies is multicast address, then this Layer 2 data bag is transferred to local the processing.
3. method as claimed in claim 2 is characterized in that, described method also comprises:
If the MAC Address that identifies is unicast address, then continue to judge whether this unicast mac address is this machine MAC Address, if non-machine MAC Address of this unicast mac address then abandons the Layer 2 data bag.
4. method as claimed in claim 3 is characterized in that, described method also comprises:
If this unicast mac address is this machine MAC Address, continue to judge whether the purpose IP address of the Layer 2 data bag that carries this unicast mac address is this machine IP address; If this purpose IP address is this machine IP address, then the Layer 2 data bag is transferred to local the processing; If the Layer 2 data bag is then carried out the forwarding of network layer in non-machine IP address, this purpose IP address.
5. a switching equipment suppresses the system that Ethernet Layer 2 data bag is transmitted, and it is characterized in that described system comprises packet parsing module, judge module and packet forwarding module, wherein,
Described packet parsing module be used for the Ethernet Layer 2 data bag that switching equipment receives is resolved, and the MAC Address of this Layer 2 data bag that will parse is sent to judge module;
Whether described judge module is used for judgement and can identifies from the MAC Address of the Layer 2 data bag of packet parsing module; If the MAC Address of this Layer 2 data bag can't be identified, then send to described packet forwarding module and abandon this Layer 2 data bag instruction;
Described packet forwarding module is used for carrying out correspondingly operation according to the instruction of described judge module.
6. system as claimed in claim 5 is characterized in that,
Described judge module also is used for judging that this MAC Address is multicast MAC Address or unicast mac address after the MAC Address that identifies this Layer 2 data bag; And when judging this MAC Address and be the multicast MAC Address, send local processing instruction to described packet forwarding module.
7. system as claimed in claim 6 is characterized in that,
Described judge module also is used for judging whether this unicast mac address is this machine MAC Address after judging this MAC Address and being unicast mac address; And when judging non-machine MAC Address of this unicast mac address, abandon the instruction of Layer 2 data bag to described packet forwarding module transmission.
8. system as claimed in claim 7 is characterized in that,
Described judge module also is used for judging this unicast mac address for after this machine MAC Address, and whether the purpose IP address that the data message of this unicast mac address is carried in judgement is this machine IP address; When judging this purpose IP address for this machine IP address, send local processing instruction to described packet forwarding module; When judging this purpose IP address and be non-machine IP address, send to described packet forwarding module and to abandon the instruction of Layer 2 data bag.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100086446A CN103209142A (en) | 2012-01-11 | 2012-01-11 | Method and system for restraining Ethernet layer-two data package from forwarding through switching device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100086446A CN103209142A (en) | 2012-01-11 | 2012-01-11 | Method and system for restraining Ethernet layer-two data package from forwarding through switching device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103209142A true CN103209142A (en) | 2013-07-17 |
Family
ID=48756231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100086446A Pending CN103209142A (en) | 2012-01-11 | 2012-01-11 | Method and system for restraining Ethernet layer-two data package from forwarding through switching device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103209142A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101060498A (en) * | 2007-06-22 | 2007-10-24 | 杭州华三通信技术有限公司 | A method for realizing the gateway Mac binding, assembly, gateway and layer 2 switch |
CN101083664A (en) * | 2007-07-20 | 2007-12-05 | 中兴通讯股份有限公司 | Method for preventing dual-layer multicasting data stream flood |
US20100215042A1 (en) * | 2009-02-26 | 2010-08-26 | International Business Machines Corporation | Ethernet link aggregation |
CN102215170A (en) * | 2011-06-08 | 2011-10-12 | 中兴通讯股份有限公司 | Method and processor for restraining Internet storm |
-
2012
- 2012-01-11 CN CN2012100086446A patent/CN103209142A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101060498A (en) * | 2007-06-22 | 2007-10-24 | 杭州华三通信技术有限公司 | A method for realizing the gateway Mac binding, assembly, gateway and layer 2 switch |
CN101083664A (en) * | 2007-07-20 | 2007-12-05 | 中兴通讯股份有限公司 | Method for preventing dual-layer multicasting data stream flood |
US20100215042A1 (en) * | 2009-02-26 | 2010-08-26 | International Business Machines Corporation | Ethernet link aggregation |
CN102215170A (en) * | 2011-06-08 | 2011-10-12 | 中兴通讯股份有限公司 | Method and processor for restraining Internet storm |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9628295B2 (en) | Method, device, and routing system for data transmission of network virtualization | |
CN114073043B (en) | Method and device for managing Ethernet bridge ports | |
EP4142219A1 (en) | Message processing method and apparatus, announcement method and apparatus, network bridge node, source device, storage medium, and message processing system | |
CN102056227B (en) | Donor evolved node B, relay node and communication method thereof | |
CN105594165B (en) | A kind of distributing strategy machinery of consultation and device | |
EP2521320A1 (en) | Method and device for maintaining call during main/standby switching of voice over internet protocol devices | |
CN112217615B (en) | Method and device for supporting time-sensitive network | |
KR20220160639A (en) | Message interaction methods, devices, facilities and storage media | |
EP3035609B1 (en) | Data transmission method and device | |
CN202285423U (en) | Intelligent set top box | |
CN105227465A (en) | A kind of CPU Proxy Method and the network equipment | |
JP6472876B2 (en) | Computer program, apparatus and storage medium | |
CN103188120A (en) | Detection method for packet loss of multicast business and device thereof | |
CN103560970A (en) | Method for realizing downlink speed limitation of network device with multiple LAN ports | |
US20060034203A1 (en) | Mobile communication system and service control device | |
CN104104601A (en) | Data transmission method, device and system | |
CN103209142A (en) | Method and system for restraining Ethernet layer-two data package from forwarding through switching device | |
CN102055753B (en) | Method and device for processing Ethernet data packet carrying IPv6 data | |
CN105703997A (en) | Tunnel control method and apparatus | |
CN102404205A (en) | Method and device for inhibiting multicast router from oscillating | |
CN102244582B (en) | Multicast transmission method and system thereof in BIDIR-PIM network | |
CN110945847B (en) | Method, device and system for rapidly recovering service in path switching process | |
CN104022910A (en) | Parameter negotiation method and device | |
CN101848169B (en) | Message forwarding method in cluster management and exchanger | |
CN106330585A (en) | Flow monitoring method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130717 |