CN1323524C - 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
CN1323524C
CN1323524C CNB031279384A CN03127938A CN1323524C CN 1323524 C CN1323524 C CN 1323524C CN B031279384 A CNB031279384 A CN B031279384A CN 03127938 A CN03127938 A CN 03127938A CN 1323524 C CN1323524 C CN 1323524C
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.)
Expired - Lifetime
Application number
CNB031279384A
Other languages
Chinese (zh)
Other versions
CN1540935A (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 present invention discloses a method for directionally transmitting multicast data in a virtual local area network (VLAN), which comprises the following procedures: A. a storage structure is arranged on a VLAN port; B. an enquiry message is broadcast in the VLAN, and a host computer belonging to a multicast group returns a response message through a certain port which is connected with the host computer in the VLAN; C. after the VLAN port receives the response message of the host computer, the corresponding relation of a record port and the multicast group is recorded in the arranged storage structure in the procedure A; D. after the VLAN port receives the multicast data, the current multicast data is transmitted to a port of the host computer which contains the multicast group according to a multicast group address in the current multicast data and the recorded corresponding relation of the port and the multicast group in the port of the VLAN. By adopting the method of the present invention, the multicast data input in the VLAN is only transmitted to the port which contains the multicast group.

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) A, a storage organization is set on VLAN interface; Storage organization adopts the port chained list, this port chained list is provided with: be used for identifying each port among the VLAN port index (PortIndex), be used for identifying contained multicast group under the port group chained list (Group), be used for identifying port place VLAN VLAN identifier (VLAN ID), be used for identifying the port parameter (Parameter) of the state of port, wherein, also be provided with in the Group table: be used for identifying multicast group address multicast group address (Address), be used for describing this group and remain how long overtime group time-out time (Time).
2) broadcast query message in the VLAN, described query message sends to the main frame that links to each other with described vlan port respectively by each vlan port that belongs to different switches, 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 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 LAN VLAN 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, described query message sends to the main frame that links to each other with described vlan port respectively by each vlan port that belongs to different switches, 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 vlan 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 vlan port that is write down in the storage organization of VLAN interface and the corresponding relation between the multicast group, current multicast packet is sent to the vlan port that main frame connected that belongs to this multicast group.
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 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 CN1540935A (en) 2004-10-27
CN1323524C true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1332574C (en) * 2005-02-25 2007-08-15 华为技术有限公司 Method of implementing directional in mobile data
CN100579062C (en) * 2006-03-24 2010-01-06 中兴通讯股份有限公司 Apparatus and method for improving SUPERVLAN broadcasting efficiency
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
CN104010018B (en) * 2013-02-27 2017-09-12 联想企业解决方案(新加坡)私人有限公司 The method and apparatus of synchronization multicast group

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1253641A (en) * 1997-04-23 2000-05-17 摩托罗拉公司 System, device and method for managing multicast group memberships in multicast network
CN1298592A (en) * 1998-04-27 2001-06-06 因特纳普网络服务公司 Establishing connectivity in networks

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1253641A (en) * 1997-04-23 2000-05-17 摩托罗拉公司 System, device and method for managing multicast group memberships in multicast network
CN1298592A (en) * 1998-04-27 2001-06-06 因特纳普网络服务公司 Establishing connectivity in networks

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"高性能以太网交换机硬件及IMA关键技术研究" 朱志良,西安电子科技大学硕士研究生学位论文 2002 *

Also Published As

Publication number Publication date
CN1540935A (en) 2004-10-27

Similar Documents

Publication Publication Date Title
EP0948853B1 (en) Port based default virtual local area network
CN102427410B (en) Method, device and system for processing fiber channel identity, and network equipment
JP4587446B2 (en) NETWORK SYSTEM, SWITCH DEVICE, ROUTE MANAGEMENT SERVER, ITS CONTROL METHOD, COMPUTER PROGRAM, AND COMPUTER-READABLE STORAGE MEDIUM
CN101997725A (en) System and device for bearing data over cable service interface specification (DOCSIS) service based on passive optical network (PON)
CN103404084A (en) MAC address forced forwarding device and method
CN103259726A (en) Method, device and system for storing and sending MAC address table entries
KR20130068849A (en) Hierarchical message delivery system and method among devices in heterogeneous networks environment
CN102055641A (en) Distribution method for virtual local area network and related device
CN112583655B (en) Data transmission method and device, electronic equipment and readable storage medium
CN103931144A (en) Method, equipment and system for communication in virtual domain
CN108471390A (en) The reorientation method of service message straddle processing system and service message
CN104734930B (en) Method and device for realizing access of Virtual Local Area Network (VLAN) to Variable Frequency (VF) network and Fiber Channel Frequency (FCF)
CN103532851A (en) Method and device for processing data flow in distributed link aggregation network
CN1323524C (en) Method for making data be directional transmitted in virtual local area network
EP3691210B1 (en) Flexible ethernet message forwarding method and apparatus
CN105052106A (en) Methods and systems for receiving and transmitting internet protocol (ip) data packets
CN106330783B (en) A kind of method and device of OpenFlow interchanger capability reporting
CN102647338A (en) Network communication method and equipment
CN103297344A (en) Distributed data communicating system and multicast message transmitting method thereof
CN105812221A (en) Data transmission device and method in virtual extensible local area network
US12003417B2 (en) Communication method and apparatus
CN109286564B (en) Message forwarding method and device
CN101115001B (en) Host computer of ADSL router and PVC dynamic binding method
CN102316002B (en) Method and apparatus for configuration of virtual local area network
CN111865801B (en) Virtio port-based data transmission method 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
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20070627