CN102307140B - Port-trunking-based message processing method and device - Google Patents

Port-trunking-based message processing method and device Download PDF

Info

Publication number
CN102307140B
CN102307140B CN201110235587.0A CN201110235587A CN102307140B CN 102307140 B CN102307140 B CN 102307140B CN 201110235587 A CN201110235587 A CN 201110235587A CN 102307140 B CN102307140 B CN 102307140B
Authority
CN
China
Prior art keywords
port
switching equipment
message
aggregation group
ports
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
CN201110235587.0A
Other languages
Chinese (zh)
Other versions
CN102307140A (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201110235587.0A priority Critical patent/CN102307140B/en
Publication of CN102307140A publication Critical patent/CN102307140A/en
Application granted granted Critical
Publication of CN102307140B publication Critical patent/CN102307140B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a port-trunking-based message processing method and device, which is applied to switching equipment of which different ports are respectively connected with different ports of the same network equipment, wherein, the different ports of the network equipment are arranged on the same switching chip. The method comprises the following steps: when the ports of the switching equipment are in a learning state, the switching equipment sets a trunking group for the ports which learn the same MAC (media access control) address, and then takes the ports which learn the MAC address as member ports to be joined to the trunking group; when the ports of the switching equipment are in a forwarding state and the member ports in the trunking group receive a message, the switching equipment judges whether the other ports except the member ports in the trunking group on the switching equipment learn the source MAC address of the message; if yes, the switching equipment discards the message; otherwise, the switching equipment forwards the message. By adopting the port-trunking-based message processing method and device, the problem of overflowing broadcast traffic resulting from nonsupport of the network equipment on the port trunking is solved.

Description

A kind of message processing method based on port trunking and device thereof
Technical field
The present invention relates to communication technical field, particularly relate to a kind of message processing method based on port trunking and device thereof.
Background technology
Along with the development of IP Video Supervision Technique, the deployment of IP video monitoring is more and more extensive, and along with the propelling of the fast development of 3G technology and the networking speed of operator, video monitoring service can more and more come into ordinarily resident family.By Internet network, user can utilize mobile phone terminal, panel computer, net book, PC etc. to monitor the fact in a certain place in real time.The reliability requirement of IP video monitoring system is also thereupon more and more higher, and a lot of link all needs to consider reliability, and the EC (video encoder) of two network interface arises at the historic moment under this kind of background condition.
As shown in Figure 1, under networking diagram general at present, EC has two network interfaces, be connected with access-layer switch respectively, wherein, two network interfaces (i.e. port) of EC both can be connected with a switch as shown in the figure, also can connect from different switches respectively.Two ports that switch is connected with this EC utilize polymerization property to be aggregating.Due to cost control, two ports of EC are all on same exchange chip, and this chip functions does not simply support link aggregation characteristic.Thus, following problem can be caused:
Switch enables link aggregation and the EC of opposite end does not support port trunking, and business can be caused unavailable.Because as shown in Figure 2, after going out from the broadcasting packet that exchanger side is next from P11 mouth, can forward from P2 mouth after EC receives this broadcasting packet from P1 mouth, cause switch on P12 mouth, learn source MAC (the Media Access Control of this broadcasting packet again, medium education) address, this not only can cause broadcast traffic to spread unchecked, and traffic forwarding also can be caused obstructed.
Summary of the invention
The invention provides a kind of message processing method based on port trunking and device thereof, during in order to solve two network interface network equipment employing double-ascending network, because this network equipment does not support that the broadcast traffic that port trunking causes spreads unchecked problem.
Message processing method based on port trunking provided by the invention, is applied to the switching equipment that different ports is connected to the different port of consolidated network equipment, and the different port of the described network equipment is on same exchange chip, and the method comprises:
When the port of switching equipment is under learning state, this switching equipment correspondence study arranges aggregation group to the port of same MAC Address, and study is added this aggregation group to the port of this MAC Address as member port;
When the port of switching equipment is under forwarding state, when the member port of described aggregation group receives message, judge whether other ports on described switching equipment except the member port of this aggregation group learn the source MAC of this message, if be judged as YES, then abandon this message; Otherwise, forward this message.
Switching equipment provided by the invention, the different port of described switching equipment is connected on the different port of consolidated network equipment, and the different port of the described network equipment is on same exchange chip, and this switching equipment comprises:
Module of port cluster, for when the port of switching equipment is under learning state, corresponding study arranges aggregation group to the port of same MAC Address, and study is added this aggregation group to the port of this MAC Address as member port;
Message processing module (MPM), for when the port of switching equipment is under forwarding state, when the member port of described aggregation group receives message, judge whether other ports on described switching equipment except this aggregation group member port learn the source MAC of this message, if be judged as YES, then abandon this message; Otherwise, forward this message.
Advantageous Effects of the present invention comprises:
In the present invention, when switching equipment port is under learning state, study is aggregated in aggregation group to the port of identical MAC Address as member port, when there being message to enter the aggregation group member port of switch, by judging whether the source MAC of this message learnt at other port except this aggregation group member port of this switch, thus whether the inbound port can judging this message is the port that starts connecting this MAC Address equipment, if this inbound port is not the port that starts connecting this MAC Address equipment, then abandon this message, in order to avoid cause flow to spread unchecked, if this inbound port is the port that starts connecting this MAC Address equipment, then conveniently flow process forwards this message, normally carry out with guarantee business.
Accompanying drawing explanation
Fig. 1 is the two network interface networking schematic diagram of EC in prior art;
Fig. 2 is the schematic diagram that in prior art, in the two network interface networking of EC, flow is revealed;
Fig. 3 is the schematic diagram in the switch ports themselves MAC address learning stage in the embodiment of the present invention;
Fig. 4 is the schematic diagram of switch auto-polymerization port in the embodiment of the present invention;
Fig. 5 is based on the Message processing schematic flow sheet that the port of switch auto-polymerization realizes in the embodiment of the present invention;
The structural representation of the switching equipment that Fig. 6 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
Usually, switch power on or port UP (relieving) time, its port enters study (1earning) state.Port under learning state can learning MAC address, but does not E-Packet.After certain hour length (as 30 seconds), port moves to forwarding (forward) state by learning state, and the port under forwarding state can E-Packet.
In the embodiment of the present invention, the MAC address learning process of above-mentioned switch is improved, that is, when the MAC Address having two or more port to learn is identical, these study are arrived the port trunking of identical MAC Address together, forms aggregation group.
Concrete, as shown in Figure 3, when switch power on or port UP time (step 301), corresponding port enters learning state and carries out MAC address learning (if switch powers on, other port realizing message repeating for interconnection network equipment then except stack port enters learning state, if port UP, this port enters learning state, sees step 302); Whether the two or more ports judging to be in learning state acquire same MAC Address (step 303), if, then switch configuration aggregation group, and these study are added this aggregation group (step 304) to the port of same MAC Address as member port, after this, after setting is long-time, the migration of this aggregation port is forwarding state; Otherwise carry out MAC address learning in a conventional manner, after setting is long-time, the port migration being in learning state is forwarding state.Fig. 4 shows the schematic diagram after port trunking, and wherein, because port P11 with P12 of switch is connected with the different port of EC respectively, therefore study is to the MAC Address of this EC, and then port P11 and P12 condenses together.
In above-mentioned flow process, preferably, switch is configurable parameter from entering learning state to the time span that migration is forwarding state.(as less in network size or network performance better, then configurable shorter time span, as being less than or equal to 30 seconds can to configure suitable time span according to the network environment such as network size, network performance; Otherwise, network size is comparatively large or network performance is poor, then configurable longer time span, as being greater than 30 seconds), thus can ensure that switch ports themselves can learn the MAC Address of other equipment in this period on the one hand, this time span can be shortened again as far as possible, enter forwarding state as early as possible to process message to make switch ports themselves.
When through after a while, after the port of learning state moves to forwarding state, as shown in Figure 5, when there being message to arrive certain member port of aggregation group (step 501), switch checks whether the source MAC of this message learnt at other port (other port herein does not comprise the member port of this aggregation group), that is, whether the source MAC of this message is present in (step 502) in the mac address table of other port; If other port had learnt this MAC Address, then show that this aggregation group member port is not the port that starts connecting this MAC Address equipment (namely MAC Address is the equipment of the source MAC of this message), now, the aggregation group member port receiving this message abandons this message received, and do not learn the source MAC of this message on that port, in order to avoid flow is caused to spread unchecked the problems (step 503) such as obstructed with follow-up forwarding; If other port did not learn this MAC Address, then show that this port is the port that starts connecting this MAC Address equipment, now, the port receiving this message conveniently flow process forwards this message, namely, mac address table according to this port configures matches port, and forwards this message (step 504) by the outbound port matched.
Below in conjunction with the group-network construction shown in Fig. 2 and concrete scene, the implementation procedure of the embodiment of the present invention is described in detail.
After broadcasting packet enters switch from port P10, port P10 learns the MAC Address of this broadcasting packet, switch forwards to all of the port, naturally also forwards from aggregation port (member port of this aggregation port comprises P11 and P12), supposes to go out from P11 port repeat.EC receives this broadcasting packet from P1 port, because the exchange chip of EC does not support polymerization property, so EC is also to its all port repeat, sends comprising from port P2.Now, exchange opportunity receives from the another one member port P12 aggregation port the broadcasting packet just forwarded, but other ports (i.e. P10) study of the source MAC of this broadcasting packet in mac address table has in a switch been arrived, so port P12 abandons this message, thus no longer broadcast this message.
By describing above and can finding out, in the embodiment of the present invention, because two network interfaces of EC are on same exchange chip, therefore there is identical MAC Address, when the switch be connected with two network interfaces of this EC powers on, the port of switch enters learning state, is in learning state and will learns identical MAC Address with 2 switch ports themselves that two network interfaces of EC connect respectively, these 2 ports are added aggregation group by such switch, form aggregation port.When there being message to enter aggregation port (or certain member port of aggregation port) of switch, by judging whether the source MAC of this message learnt at other port of this switch, thus can judge whether this inbound port is the port that starts connecting this MAC Address equipment, if this inbound port is not the port that starts connecting this MAC Address equipment, then abandon this message, in order to avoid cause flow to spread unchecked, if this inbound port is the port that starts connecting this MAC Address equipment, then conveniently flow process forwards this message, to ensure that business is normally carried out.
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of switching equipment that can be applicable to above-mentioned flow process.As shown in Figure 6, this switching equipment can comprise:
Module of port cluster 601, for when the port of switching equipment is under learning state, corresponding study arranges aggregation group to the port of same MAC Address, and study is added this aggregation group to the port of this MAC Address as member port;
Message processing module (MPM) 602, for when the port of switching equipment is under forwarding state, when the member port of described aggregation group receives message, judge whether other ports on described switching equipment except this aggregation group member port learn the source MAC of this message, if be judged as YES, then abandon this message; Otherwise, forward this message.
Further, message processing module (MPM) 602 also for: after judging that other ports except described aggregation group member port learn the source MAC of this message, abandon the source MAC learning this message on this aggregation group member port.
Further, module of port cluster 601 specifically for: when switch power on or port UP time, port enters learning state, and the port under learning state carries out MAC address learning; When judging have at least 2 ports to acquire same MAC Address, aggregation group is set, and study is added this aggregation group to the port of this same MAC Address as member port.
Further, above-mentioned switching equipment also can comprise port status administration module 603, for after entering learning state at the switch ports themselves being in learning state after setting duration, be forwarding state by the migration of this port.Preferably, this setting duration can arrange according to network environment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprising some instructions in order to make a station terminal equipment (can be mobile phone, personal computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.

Claims (8)

1. based on a message processing method for port trunking, be applied to the switching equipment that different ports is connected to the different port of consolidated network equipment, the different port of the described network equipment is on same exchange chip, and it is characterized in that, the method comprises:
When the port of switching equipment is under learning state, this switching equipment correspondence study arranges aggregation group to the port of same MAC Address, and study is added this aggregation group to the port of this MAC Address as member port;
When the port of switching equipment is under forwarding state, when the member port of described aggregation group receives message, judge whether other ports on described switching equipment except the member port of this aggregation group learn the source MAC of this message, if be judged as YES, then abandon this message; Otherwise, forward this message;
Wherein, when switch power on or port UP time, port enters learning state, the switch ports themselves being in learning state after entering learning state after setting duration, move as forwarding state.
2. the method for claim 1, it is characterized in that, described switching equipment judges that other ports on it except described aggregation group member port also comprise after learning the source MAC of this message: the source MAC abandoning learning this message on this aggregation group member port.
3. the method for claim 1, it is characterized in that, when the port of switching equipment is under learning state, this switching equipment correspondence study arranges aggregation group to the port of same MAC Address, and study is added this aggregation group to the port of this MAC Address as member port, comprising:
Port under learning state carries out MAC address learning;
Described switch has judged whether that at least 2 ports acquire same MAC Address, if so, then arranges aggregation group, and study is added this aggregation group to the port of this same MAC Address as member port.
4. the method for claim 1, is characterized in that, described setting duration is arranged according to network environment.
5. a switching equipment, the different port of described switching equipment is connected on the different port of consolidated network equipment, and the different port of the described network equipment, on same exchange chip, is characterized in that, this switching equipment comprises:
Module of port cluster, for when the port of switching equipment is under learning state, corresponding study arranges aggregation group to the port of same MAC Address, and study is added this aggregation group to the port of this MAC Address as member port;
Message processing module (MPM), for when the port of switching equipment is under forwarding state, when the member port of described aggregation group receives message, judge whether other ports on described switching equipment except this aggregation group member port learn the source MAC of this message, if be judged as YES, then abandon this message; Otherwise, forward this message;
Wherein, when switch power on or port UP time, port enters learning state;
Described switching equipment also comprises:
Port status administration module, for after entering learning state at the switch ports themselves being in learning state after setting duration, be forwarding state by the migration of this port.
6. switching equipment as claimed in claim 5, it is characterized in that, described message processing module (MPM) also for, after judging that other ports on described switching equipment except described aggregation group member port learn the source MAC of this message, abandon the source MAC learning this message on this aggregation group member port.
7. switching equipment as claimed in claim 5, is characterized in that, described module of port cluster specifically for, the port under learning state carries out MAC address learning; When judging have at least 2 ports to acquire same MAC Address, aggregation group is set, and study is added this aggregation group to the port of this same MAC Address as member port.
8. switching equipment as claimed in claim 5, it is characterized in that, described setting duration is arranged according to network environment.
CN201110235587.0A 2011-08-17 2011-08-17 Port-trunking-based message processing method and device Active CN102307140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110235587.0A CN102307140B (en) 2011-08-17 2011-08-17 Port-trunking-based message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110235587.0A CN102307140B (en) 2011-08-17 2011-08-17 Port-trunking-based message processing method and device

Publications (2)

Publication Number Publication Date
CN102307140A CN102307140A (en) 2012-01-04
CN102307140B true CN102307140B (en) 2014-12-24

Family

ID=45380952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110235587.0A Active CN102307140B (en) 2011-08-17 2011-08-17 Port-trunking-based message processing method and device

Country Status (1)

Country Link
CN (1) CN102307140B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468855B (en) * 2013-09-25 2018-04-03 阿里巴巴集团控股有限公司 The treating method and apparatus of ARP message
CN106161231A (en) * 2015-04-24 2016-11-23 中兴通讯股份有限公司 aggregation port message forwarding method and device
CN106330547B (en) * 2016-08-26 2020-06-19 浙江宇视科技有限公司 Method and device for forwarding redundant link data packet
CN109218188B (en) * 2017-07-04 2021-11-19 华为技术有限公司 Link aggregation system, method, device, equipment and medium
CN110505166B (en) * 2018-05-16 2021-09-21 杭州海康威视数字技术股份有限公司 Broadcast packet forwarding method and device, electronic equipment and readable storage medium
CN108833306B (en) * 2018-08-30 2020-10-09 杭州迪普科技股份有限公司 VSM system message transmission device and method
CN109672618B (en) * 2019-01-18 2021-07-06 新华三技术有限公司合肥分公司 Redundant interface processing method, device, server and storage medium
CN110635839B (en) * 2019-10-12 2021-08-03 四川安迪科技实业有限公司 Broadcast pruning method and system, and receiving method and device of satellite network
CN111010343B (en) * 2019-12-18 2022-01-11 锐捷网络股份有限公司 Method, device, network equipment and storage medium for forwarding multicast message

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809021A (en) * 2005-01-17 2006-07-26 华为技术有限公司 Ethernet link converging method
CN101035050A (en) * 2007-03-15 2007-09-12 中兴通讯股份有限公司 Processing method of the virtual LAN aggregation
CN101232447A (en) * 2008-02-28 2008-07-30 中兴通讯股份有限公司 Method for controlling learning MAC address preaging
CN101355519A (en) * 2008-09-12 2009-01-28 杭州华三通信技术有限公司 Method and apparatus for implementing share of business stream load
CN101404619A (en) * 2008-11-17 2009-04-08 杭州华三通信技术有限公司 Method for implementing server load balancing and a three-layer switchboard
CN101834781A (en) * 2010-03-16 2010-09-15 中兴通讯股份有限公司 Media access control address keep-alive device and method for convergence port
CN101877667A (en) * 2009-04-30 2010-11-03 华为技术有限公司 Message forwarding method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100322251A1 (en) * 2009-06-22 2010-12-23 Changrong Li Method and System for Virtually Switching Digital Video/Audio and Auxiliary Control Signals for Digital Signage Applications

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809021A (en) * 2005-01-17 2006-07-26 华为技术有限公司 Ethernet link converging method
CN101035050A (en) * 2007-03-15 2007-09-12 中兴通讯股份有限公司 Processing method of the virtual LAN aggregation
CN101232447A (en) * 2008-02-28 2008-07-30 中兴通讯股份有限公司 Method for controlling learning MAC address preaging
CN101355519A (en) * 2008-09-12 2009-01-28 杭州华三通信技术有限公司 Method and apparatus for implementing share of business stream load
CN101404619A (en) * 2008-11-17 2009-04-08 杭州华三通信技术有限公司 Method for implementing server load balancing and a three-layer switchboard
CN101877667A (en) * 2009-04-30 2010-11-03 华为技术有限公司 Message forwarding method, device and system
CN101834781A (en) * 2010-03-16 2010-09-15 中兴通讯股份有限公司 Media access control address keep-alive device and method for convergence port

Also Published As

Publication number Publication date
CN102307140A (en) 2012-01-04

Similar Documents

Publication Publication Date Title
CN102307140B (en) Port-trunking-based message processing method and device
CN101286867B (en) Software updating method and system of network equipment
US20160080545A1 (en) Wireless device system-architecture
EP2627039B1 (en) Method and device for switching aggregation links
US9559984B2 (en) Communication system and network relay device
CN107465613B (en) Link aggregation interface communication state switching method and device
CN103944828A (en) Method and equipment for transmitting protocol messages
EP2922254A1 (en) Method for establishing control channel, forwarding point and controller
CN109450982B (en) Network communication method and system
CN102916857A (en) Stacking and splitting quick detection method and device
US9887910B2 (en) Method for retransmitting packet, data server using the same, and packet retransmitting system
CN103248567B (en) A kind of BFD session message transmitting method and equipment
CN103795518B (en) A kind of equipment room port mode synchronous method, equipment and system
CN103532863A (en) Method and device for realizing software stacking
CN101127637A (en) A method and system for realizing backup link of virtual private LAN service network
CN102857421B (en) A kind of VLL fault detection method and equipment
EP3487150A1 (en) Packet processing method and device
US8526470B2 (en) Synchronized commands for network testing
CN105262682A (en) Software defined network for power data communication and traffic grooming method thereof
US8649285B2 (en) Tracking packet sequence numbers
US8707100B2 (en) Testing a network using randomly distributed commands
CN111245733A (en) Data transmission method and device
CN102946348B (en) VRRPE message processing method and equipment in a kind of double layer network
CN104702602B (en) The system and method that cluster gateway dynamic creation passage and dilatation are realized based on SIP
CN110233872B (en) Data transmission method based on video network and video network terminal

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230627

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.