CN1540935A - Method for making data be directional transmitted in virtual local area network - Google Patents

Method for making data be directional transmitted in virtual local area network Download PDF

Info

Publication number
CN1540935A
CN1540935A CNA031279384A CN03127938A CN1540935A CN 1540935 A CN1540935 A CN 1540935A CN A031279384 A CNA031279384 A CN A031279384A CN 03127938 A CN03127938 A CN 03127938A CN 1540935 A CN1540935 A CN 1540935A
Authority
CN
China
Prior art keywords
port
vlan
multicast group
group
multicast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA031279384A
Other languages
Chinese (zh)
Other versions
CN1323524C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB031279384A priority Critical patent/CN1323524C/en
Publication of CN1540935A publication Critical patent/CN1540935A/en
Application granted granted Critical
Publication of CN1323524C publication Critical patent/CN1323524C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The method includes steps: (A) setting up a storage structure on interface of VLAN; (B) in VLAN, broadcasting a query message, hosts belongs to multicasting group through connected a port in VLAN return response messages; (C) after VLAN interface receives response messages, coincidence relations between port and multicasting group are recorded in storage structure setup at (A); (D) after VLAN interface receives multicasting data, based on addresses of multicasting groups in current multicasting data, and the said coincidence relations between port and multicasting group, current multicasting data are sent to port containing hosts of multicasting groups. In the invention VLAN multicasting data are only sent to ports containing multicasting group specified in storage structure.

Description

The method of data direction propagation in VLAN
Technical field
The present invention relates to the virtual local area network technology field, be meant the method for a kind of multicast packet direction propagation in Virtual Local Area Network especially.
Background technology
At present, the common method of dividing VLAN is to divide according to the port of Ethernet switch, and the port that belongs to same VLAN can be discontinuous, also can cross over several Ethernet switches.Such as: two switches are arranged--switch 1 and switch 2, each switch has several ports, and each port can connect a plurality of main frames again, 1~6 port of switch 1 and 1~4 port of switch 2 can be divided into same VLAN.Usually, a plurality of ports among VLAN are by a VLAN interface and extraneous communication, so only be required to be IP address of VLAN interface configuration, can realize the whole communication with the outside of VLAN.
When VLAN and external communication, external data is sent on the VLAN interface, because corresponding several physical ports of VLAN interface, therefore, the data that are sent on the VLAN interface will be transmitted down from these ports, the promptly outside information that sends will be broadcasted in VLAN, the main frame under interior each port of VLAN is shared data, and the data of importing into only can be sent to certain concrete port.VLAN compares with Local Area Network, has overcome the restriction of region, can be divided on the port of different switches.When the data volume that sends when the outside was big, the broadcasting of these data in VLAN may relate to more than one switch, therefore can take a large amount of bandwidth resources but therefore.
For instance, suppose that the main frame under certain port has added certain multicast group in the VLAN.Multicast group described here, it is the notion that has adopted group address, it is in the multicast group that the user of needs reception identical data is enrolled a group, therefore the destination address of the packet that sends of multicast source is not one but one group, form group address, all add the member of this group, can both receive the data that flow to this group address.Simultaneously, according to multicast route protocol, if certain main frame under vlan port adds a multicast group, then this VLAN adds multicast tree with integral body as a branch.Therefore, issue the multicast packet of this multicast group and can broadcast in VLAN, this multicast packet can be received and transmit to all ports all in the VLAN.Main frame under each port of VLAN may add different multicast group, in this case, have the propagation of a large amount of multicast packets in the VLAN, because each port that VLAN comprises is usually crossed over several Ethernet switches, when multicast packet is broadcasted, must take a large amount of network bandwidths, make spendable bandwidth sharply to descend.On the other hand, because data are broadcasted, these data may be utilized by other illegal members, form potential safety hazard.
Summary of the invention
In view of this, main purpose of the present invention is to provide the method for a kind of data direction propagation in VLAN, make multicast packet in VLAN only directive sending to the port that contains this multicast group main frame.
Realize the present invention, need following steps:
1) storage organization is set on VLAN interface, storage organization adopts the port chained list, this port chained list is provided with: the port index (PortIndex) that is used for identifying each port among the VLAN, be used for identifying the group chained list (Group) of contained multicast group under the port, be used for identifying the VLAN identifier (VLAN ID) of port place VLAN, be used for identifying the port parameter (Parameter) of the state of port, wherein, also be provided with in the Group table: the multicast group address (Address) that is used for identifying multicast group address, be used for describing the how long overtime group time-out time (time) of this group residue.
2) broadcast query message in the VLAN belongs to the vlan port echo reply message of main frame by being attached thereto of multicast group.
3) after VLAN interface is received the main frame response message, the corresponding relation of record port and multicast group: in the port chained list, find and be designated the PortIndex that receives the response message port, insert under this port the address of multicast group under the transmission response message main frame then under the Address in the Group of this PortIndex correspondence table.
4) after VLAN interface receives multicast packet, according to the multicast group address in the current multicast packet, and port that is write down in the VLAN interface and the corresponding relation between the multicast group, current multicast packet is sent to the port that contains this multicast group main frame.
This method further comprises: VLAN interface is at VLAN intercycle broadcast query message, and the time that belongs to the main frame echo reply message of multicast group surpasses in the port chained list under this main frame place port index the Time value of this corresponding multicast group in the Group table; Or the main frame that belongs to multicast group returns leave message by the port that is attached thereto, and thinks that then this main frame withdraws from this multicast group.When all main frames that belong to same multicast group withdraw from this multicast group under the vlan port, delete the corresponding relation of this port and this multicast group: in the corresponding Group chained list of the PortIndex of multicast group chained list, the multicast group address that is withdrawed among the deletion Address.
By said method as can be seen, the present invention corresponds to each port of VLAN to the management of multicast member in VLAN, according to the port return information of the main frame that belongs to multicast group by being attached thereto, set up the relation of port and multicast group that is:; When VLAN receives data that should multicast group, only to sending these multicast packets with the related port of this multicast group, the port of having avoided haveing nothing to do with this multicast group among the VLAN is received unnecessary multicast data message, thereby has saved the network bandwidth, improves fail safe.
Description of drawings
Fig. 1 is an embodiment schematic diagram of VLAN networking.
The port list structure schematic diagram of Fig. 2 on VLAN interface, being provided with among the present invention.
Embodiment
Core concept of the present invention is: the storage organization of each port information among the storage VLAN is set, to realize the direction propagation of data in VLAN on VLAN interface.
Fig. 1 is an embodiment schematic diagram of VLAN networking, and as shown in Figure 1, ethernet switch port 1 and port 2 are in the same VLAN, and each port can directly connect main frame, also can connect main frame by Layer 2 switch.
With multicast group data direction propagation in VLAN shown in Figure 1 is example.In the present embodiment, set storage organization adopts the port chained list, and this port chained list is a double-linked circular list; Supposing currently has and only has host A to add a multicast group.So, with reference to shown in Figure 1, multicast group data direction propagation in VLAN mainly comprises the steps:
Step 1: operation IGMP agreement on VLAN interface, the igmp querying message is broadcasted in this VLAN, sends to host A, B, C under the port separately respectively from port one, port 2; Simultaneously, IGMP is provided with the also structure of initialization port chained list:
Search ports all under the interface, in the VLAN interface data structure, add the port chained list.Fig. 2 is port list structure figure.As shown in Figure 2, the port chained list comprises port parameter (Parameter), port index (PortIndex), group chained list (Group), VLAN identifier (VLAN ID) etc.Wherein, contain the port status parameter of VLAN etc. among the Parameter, be used for illustrating the state of each port; PortIndex is the index of port, with each port among the sign VLAN; The Group table is a sublist of port chained list, is used for illustrating which multicast group institute's each port of VLAN contains, and the Group table further comprises multicast group address (Address), group time-out time (Time) etc., and the Group table is a double-linked circular list; VLAN ID is used for identifying this port and belongs to which VLAN.
Step 2: after host A, B, C receive the IGMP message, because host A has added multicast group, so have only host A to return the IGMP response message from ethernet switch port 1.
Step 3: after Ethernet switch is received the IGMP response message of host A from port one, upgrade the content of VLAN when the front port chained list:
In the port chained list, find the PortIndex that is designated port one, insert the multicast group address that host A added under the Address in the Group of this PortIndex correspondence table then, thereby set up the relation between port one and this multicast group.
Set up the relation of port and multicast group at the port chained list after, if when having multicast group data to send over, search the port chained list of VLAN interface, if the Address in the Group of PortIndex correspondence table finds this multicast group address, multicast packet is just transmitted to the port that this PortIndex identified, otherwise does not just transmit to this port.In the present embodiment, have only the host A under the port one to add multicast group, has only the relation between the affiliated multicast group of port one and host A in the port chained list, so, when being sent to the multicast packet of this multicast group, only port one can be transmitted current multicast packet, and the port 2 under same VLAN is no longer transmitted current multicast packet.
Step 4: when host A withdraws from multicast group, host A can send leave message to port one, after VLAN receives this message from port one, upgrade its port chained list content, concrete way is: find the PortIndex that is designated port one in the port chained list, then the deletion multicast group address that host A withdrawed under the Address in the Group of this PortIndex correspondence table.
When host A withdraws from multicast group, also can not send out leave message, VLAN can be known withdrawing from of host A by periodic detection.Specific practice is: VLAN interface is broadcasting igmp querying message in VLAN regularly, host A is not when withdrawing from, meeting is the echo reply message immediately, so, in case the time of host A response surpasses the Time value of this multicast group in the Group table of the PortIndex correspondence that is designated port one under the port chained list, promptly do not receive the response message of host A in during this period of time, then think not response of host A, withdrawed from this multicast group, this moment is same by method renewal port chained list content recited above.
In actual applications, more be to connect not only main frame under the ethernet switch port, these main frames all can add same multicast group, at this moment, if there is main frame to leave, at first send group-specific query to this port, if this port also has other main frame need receive data down, these main frames will send the IGMP response message, and port thinks to also have main frame to be in this multicast group under the port like this, does not delete the multicast group on the port.Only when main frames all under this port all withdraws from this multicast group, when promptly not having main frame echo reply message, just carry out above step 4, the port chained list is upgraded.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1, the method for a kind of multicast packet direction propagation in Virtual Local Area Network is characterized in that this method may further comprise the steps:
A, a storage organization is set on VLAN interface;
Broadcast query message in B, the VLAN belongs to the vlan port echo reply message of main frame by being attached thereto of multicast group;
After C, VLAN interface are received the main frame response message, the corresponding relation of record port and multicast group in the set storage organization of steps A;
D, after VLAN interface receives multicast packet, according to the multicast group address in the current multicast packet, and port that is write down in the VLAN interface and the corresponding relation between the multicast group, current multicast packet is sent to the port that contains this multicast group main frame.
2, method according to claim 1, it is characterized in that: the described storage organization of steps A is the port chained list, and this method further comprises: be provided with and comprise the port index (PortIndex) that is used for identifying each port among the VLAN, the group chained list (Group) that is used for identifying contained multicast group under the port in this port chained list at least; Also be provided with in this Group table: the multicast group address (Address) that is used for identifying multicast group address.
3, method according to claim 2 is characterized in that: further be provided with in the described port chained list: be used for identifying port place VLAN VLAN identifier (VLAN ID), be used for identifying the port parameter (Parameter) of the state of port.
4, how long overtime method according to claim 2 is characterized in that: further be provided with in described group of chained list: be used for describing this group residue group time-out time (time).
5, method according to claim 2, it is characterized in that described in the step C that the record port and the method for multicast group corresponding relation further comprise: in the port chained list, find and be designated the PortIndex that receives the response message port, insert under this port the address of multicast group under the transmission response message main frame then under the Address in the Group of this PortIndex correspondence table.
6, method according to claim 1 is characterized in that this method further comprises: when all main frames that belong to same multicast group withdraw from this multicast group under vlan port, delete the corresponding relation of this port and this multicast group.
7, method according to claim 6 is characterized in that described deletion port further comprises with the method for multicast group corresponding relation: in the corresponding Group chained list of the PortIndex of multicast group chained list, and the multicast group address that is withdrawed among the deletion Address.
8, method according to claim 6, it is characterized in that determining that the method that each main frame withdraws from this multicast group further comprises: VLAN interface is at VLAN intercycle broadcast query message, and the time that belongs to the main frame echo reply message of multicast group surpasses in the port chained list under this main frame place port index the Time value of this corresponding multicast group in the Group table.
9, method according to claim 6, it is characterized in that the method that definite each main frame withdraws from this multicast group further comprises: the main frame that belongs to multicast group returns leave message by the port that is attached thereto.
CNB031279384A 2003-04-25 2003-04-25 Method for making data be directional transmitted in virtual local area network Expired - Lifetime CN1323524C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031279384A CN1323524C (en) 2003-04-25 2003-04-25 Method for making data be directional transmitted in virtual local area network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031279384A CN1323524C (en) 2003-04-25 2003-04-25 Method for making data be directional transmitted in virtual local area network

Publications (2)

Publication Number Publication Date
CN1540935A true CN1540935A (en) 2004-10-27
CN1323524C CN1323524C (en) 2007-06-27

Family

ID=34322091

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031279384A Expired - Lifetime CN1323524C (en) 2003-04-25 2003-04-25 Method for making data be directional transmitted in virtual local area network

Country Status (1)

Country Link
CN (1) CN1323524C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006089488A1 (en) * 2005-02-25 2006-08-31 Huawei Technologies Co., Ltd. Implementing method of directional broadcasting in mobile data broadcasting
WO2007109974A1 (en) * 2006-03-24 2007-10-04 Zte Corporation A device and method to improve the broadcast efficiency of supervlan
CN101729283B (en) * 2008-10-29 2012-05-23 中兴通讯股份有限公司 Object management system for virtual local area network and method thereof
CN101594301B (en) * 2009-06-23 2012-05-23 杭州华三通信技术有限公司 Method and device for processing message
WO2014131328A1 (en) * 2013-02-27 2014-09-04 International Business Machines Corporation Synchronizing multicast groups

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU735576B2 (en) * 1997-04-23 2001-07-12 Motorola, Inc. System, device, and method for managing multicast group memberships in a multicast network
US6167052A (en) * 1998-04-27 2000-12-26 Vpnx.Com, Inc. Establishing connectivity in networks

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006089488A1 (en) * 2005-02-25 2006-08-31 Huawei Technologies Co., Ltd. Implementing method of directional broadcasting in mobile data broadcasting
AU2006217352B2 (en) * 2005-02-25 2009-03-05 Huawei Technologies Co., Ltd. Method, device and system for implementing directional broadcast in mobile data broadcasting
US7773936B2 (en) 2005-02-25 2010-08-10 Huawei Technologies Co., Ltd. Method, device and system for implementing directional broadcast in mobile data broadcasting
WO2007109974A1 (en) * 2006-03-24 2007-10-04 Zte Corporation A device and method to improve the broadcast efficiency of supervlan
CN101729283B (en) * 2008-10-29 2012-05-23 中兴通讯股份有限公司 Object management system for virtual local area network and method thereof
CN101594301B (en) * 2009-06-23 2012-05-23 杭州华三通信技术有限公司 Method and device for processing message
WO2014131328A1 (en) * 2013-02-27 2014-09-04 International Business Machines Corporation Synchronizing multicast groups
US9292326B2 (en) 2013-02-27 2016-03-22 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Synchronizing multicast groups
US9372708B2 (en) 2013-02-27 2016-06-21 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Synchronizing multicast groups

Also Published As

Publication number Publication date
CN1323524C (en) 2007-06-27

Similar Documents

Publication Publication Date Title
CN103814554B (en) A kind of communication means of virtual easily extensible local area network (LAN), device and system
US6188691B1 (en) Multicast domain virtual local area network
EP2356775B1 (en) Central controller for coordinating multicast message transmissions in distributed virtual network switch environment
JP3131137B2 (en) Virtual network system
CN102427410B (en) Method, device and system for processing fiber channel identity, and network equipment
CN101133605A (en) Performing extended lookups on MAC-based tables
CN101848186B (en) Three-layer plastic optical fiber Ethernet switch
EP0948853A1 (en) Port based default virtual local area network
CN101997725A (en) System and device for bearing data over cable service interface specification (DOCSIS) service based on passive optical network (PON)
CN114095430B (en) Access message processing method, system and working node
CN1825804A (en) System and method for implementing communication between distributed system boards
US10382391B2 (en) Systems and methods for managing network address information
CN1848807A (en) Group broadcasting business realizing method
CN100440848C (en) Data package transmitting method and network exchanger adopting said method
CN101834781B (en) Media access control address keep-alive device and method for convergence port
CN104734930B (en) Method and device for realizing access of Virtual Local Area Network (VLAN) to Variable Frequency (VF) network and Fiber Channel Frequency (FCF)
CN1540935A (en) Method for making data be directional transmitted in virtual local area network
CN111865655B (en) ARP table configuration method and system for service board card
EP1997280B1 (en) Method and network element for limiting the number of virtual local area networks
CN112583655A (en) Data transmission method and device, electronic equipment and readable storage medium
CN108111323B (en) Realization system of igmpsnooping protocol under vxworks system
CN101115001A (en) Host computer of ADSL router and PVC dynamic binding method
EP4304144A1 (en) Communication method and apparatus
CN100464529C (en) Special virtual local network realizing method, apparatus and system
KR20000059426A (en) Multicasting software upgrade system in network and multicasting software upgrade method using the same

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
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20070627