CN101232510A - Method and system for implementing multi-network port device multicast - Google Patents
Method and system for implementing multi-network port device multicast Download PDFInfo
- Publication number
- CN101232510A CN101232510A CNA2008101011525A CN200810101152A CN101232510A CN 101232510 A CN101232510 A CN 101232510A CN A2008101011525 A CNA2008101011525 A CN A2008101011525A CN 200810101152 A CN200810101152 A CN 200810101152A CN 101232510 A CN101232510 A CN 101232510A
- Authority
- CN
- China
- Prior art keywords
- port
- multicast
- message
- address
- port numbers
- 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
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a method for realizing the multicast of a multi-network-port device, and includes the following steps: step 1: mapping one or a plurality of multicast address to a port in a multi-network-port device to prevent the multicast objective machine from receiving the same messages; step 2: when the corresponding state of the port changes, the one or a plurality of multicast address will be updated to a corresponding port for avoiding the failure of sending GMP messages for the corresponding state change of the port. The method uses a fixed algorithm to realize the correspondence between a multi-cast address and a valid physical port, so that the IGMP report message of one multi-cast address can always be sent from one physical port.
Description
Technical field
The present invention relates to multicast, relate in particular to a kind of implementation method and system of multi-network port device multicast.
Background technology
For general server or client, two or more if it exists to external port, and when wishing that these ports all add same multicast group simultaneously, networking diagram is as shown in Figure 1.Go up at L2 switch (Switch) and open IGMP Snooping function this moment, will cause on the switch two ports all can listen to IGMP (IGMP) report (Report) message of same multicast group, and the multicast service message that send from multicast source this moment just have identical two parts and is sent to same multicast purpose machine.
At such networking, common way is two ports on the same equipment to be carried out polymerization by third party's agreement, thereby avoids multicast purpose machine to receive duplicate message.
Shortcoming in this processing is to realize by other agreements (as port trunking etc.), but not all equipment all is the such agreement of the similar port trunking of support, in the time can't carrying out port trunking, multicast purpose machine will be received the message of double (or many parts), can only accept or reject by upper-layer protocol, have a strong impact on handling property, can't satisfy the demand under the specified conditions.In addition, require than higher occasion for real-time, the such agreement of port trunking also can't meet specific requirement.
Especially for communication apparatus, as shown in Figure 2, normally form by interface card, exchange ply-yarn drill, protocol processes ply-yarn drill and the backboard that connects these ply-yarn drills.The exchange ply-yarn drill is the switching center of two layers of Ethernet, and function is equivalent to a L2 Switch; Interface card mainly is responsible for receiving the request of external user, and the protocol processes ply-yarn drill of being given to then in the network element is handled; The protocol processes ply-yarn drill has multiple, handles dissimilar service messages respectively, as tone decoding, real-time Data Transmission or the like.The part of interface card response external user request is referred to as the external user face, is given to the part that the protocol processes ply-yarn drill in the network element is handled by interface card, is called the internal user face.
In common networking shown in Figure 3, for the external user face, because the external network of its connection is standard ethernet, so suggestion adopts port aggregation protocol to carry out interconnected; For the internal user face,,, influence performance if realizing multicast scheme just need suitably handle the message that repeats owing to do not support port aggregation protocol.
Summary of the invention
In order to solve above-mentioned technical problem, a kind of implementation method and system of multi-network port device multicast are provided, its purpose is, carry out under the situation of port trunking not needing, can finish good load sharing, when port status changes, can very fast switching, the minimum business that influences.
The invention provides a kind of implementation method of multi-network port device multicast, comprising:
Step 1 is mapped to a port numbers with one or more multicast address on multi-network mouth device, be used to avoid multicast purpose machine to receive identical message;
In the step 1, the mapping relations table of multicast address and port numbers is set also.
In the step 1, the multicast ip address that multicast address adds for the protocol processes ply-yarn drill, described being mapped as according to multicast ip address and port status calculated port numbers.
In the step 1, port numbers is the port numbers of multicast address divided by the available port of the remainder correspondence of the maximum port number of protocol processes ply-yarn drill.
Step 1 also comprises:
Step 51 when the message of multicast group to be added such as receiving, adds multicast group with this message, and checks whether this multicast group exists, if exist, then execution in step 53, otherwise execution in step 52;
Step 52 is calculated port numbers according to multicast address, and with the mapping relations adding multicast address of this multicast address and port numbers and the mapping relations table of port numbers, execution in step 53;
Step 53 is provided with the IGMP type of message for report, joins the message transmit queue;
Step 54 is checked transmit queue, is ready for sending the IGMP message.
Step 1 also comprises:
Step 61 receives and waits for when leaving the message of multicast group, and checks whether this multicast group exists, if exist, then execution in step 62, otherwise do not carry out any processing;
Step 62 is according to the mapping relations of multicast group address deletion multicast address and port numbers;
Step 63 is provided with the IGMP type of message for leaving, and joins the message transmit queue;
Step 64 is checked transmit queue, is ready for sending the IGMP message.
Port status comprises that port can be with unavailable with port.
In the step 2, when port status is port when unavailable, the port numbers of selecting a port in all the other available ports is as corresponding ports number.
In the step 2, all the other available ports are arranged by the mode of poll.
The invention provides the realization system of multi-network port device multicast, comprising:
Multicast address and port numbers mapping block are used on multi-network mouth device one or more multicast address being mapped to a port numbers, receive identical message to avoid multicast purpose machine;
Multicast address and port numbers map updating module, be used for when described port numbers corresponding port state changes, described one or more multicast address are updated to corresponding ports number, cause to send the IGMP message because of described port numbers corresponding port state changes avoiding.
Multi-network port device multicast implementation method of the present invention adopts fixing algorithm, has realized the correspondence of multicast address and effective physical port, makes the IGMP Report message of some multicast address send from a physical port all the time; When having a plurality of multicast address, can realize good load sharing again; The variation of port status is minimum to service impact simultaneously.
Description of drawings
Fig. 1 is a common networking schematic diagram in the prior art;
Fig. 2 is that the device structure schematic diagram is handled in communication in the prior art;
Fig. 3 is that the equipment network schematic diagram is handled in communication in the prior art;
Fig. 4 is a multi-network port device multicast implementation method schematic flow sheet of the present invention;
Fig. 5 is that multi-network port device multicast of the present invention is realized system construction drawing.
Embodiment
Among the present invention, setting up, safeguard the mapping table of a multicast group address and port numbers on multi-network mouth device, can be the corresponding port numbers of the corresponding port numbers of a multicast group address or a plurality of multicast group address; Wherein, multicast group address is exactly the multicast ip address that a series of these protocol processes ply-yarn drills add; And port numbers is according to different multicast ip address and the port numbers calculated according to certain method in conjunction with the present state of port, these port numbers directly correspond to the physical port number of protocol processes ply-yarn drill, select to use when multicast group sends IGMP Report message outward.
In the above-mentioned multi-network port device multicast implementation method, when the port status of described protocol processes ply-yarn drill changed, correspondence was carried out suitable renewal with the clauses and subclauses of the port of this variation in the meeting his-and-hers watches, in conjunction with multicast address, calculates and change into an available port numbers.
Multi-network port device multicast implementation method flow chart of the present invention such as Fig. 4 specifically comprise following several steps:
The method of calculating port numbers in the above-mentioned steps is:
The remainder of the maximum port number of port numbers=multicast address/protocol processes ply-yarn drill;
Select the method for live end slogan to be in the above-mentioned steps:
The mode of live end slogan according to poll is mapped in the port array the maximum port number of the corresponding protocol processes ply-yarn drill of maximum clauses and subclauses of this array;
Suppose that the present maximum port number of protocol processes ply-yarn drill is 4, then can define a port array is aucPortIndex[4];
If this moment, available port number was 4, port numbering is respectively 1,2,3,4; Then correspond in the array value for 1,2,3,4};
If this moment, available port number was 1 (if available port numbers is 2); Then correspond in the array value for 2,2,2,2};
If this moment, available port number was 2 (if available port numbers is 1,4); Then correspond in the array value for 1,4,1,4};
If this moment, available port number was 3 (if available port numbers is 1,2,3); Then correspond in the array value for 1,2,3,1};
The principle of available port mapping is a poll, but requires to be evenly distributed in the array as far as possible.Therefore the system of selection of live end slogan is as follows:
The maximum port number of live end slogan=aucPortIndex[multicast address MOD protocol processes ply-yarn drill];
Step 412 sends the IGMP message from effective port.
When the ports physical state is changed to DOWN by UP, check whether port numbers corresponding this port is arranged in multicast address/port mapping relation table, if having, then forward top step 405 to, send Report message to the outside, upgrade changing port.
By some top steps, in the time of can guaranteeing multi-network mouth device and L2 Switch butt joint, networking as shown in Figure 3 can not cause the protocol processes ply-yarn drill to receive the multicast message of repetition.And when some or several port statuss changed, the port of finishing that can be very fast switched, and reduces professional packet loss.
In order to realize the implementation method of multi-network port device multicast provided by the invention, the invention provides a kind of realization system 500 of multi-network port device multicast, as shown in Figure 5, comprising:
Multicast address and port numbers mapping block 501 are used on multi-network mouth device one or more multicast address being mapped to a port numbers, receive identical message to avoid multicast purpose machine;
Multicast address and port numbers map updating module 502, be used for when described port numbers corresponding port state changes, described one or more multicast address are updated to corresponding ports number, cause to send the IGMP message because of described port numbers corresponding port state changes avoiding.
Those skilled in the art can also carry out various modifications to above content under the condition that does not break away from the definite the spirit and scope of the present invention of claims.Therefore scope of the present invention is not limited in above explanation, but determine by the scope of claims.
Claims (10)
1. the implementation method of a multi-network port device multicast is characterized in that, comprising:
Step 1 is mapped to a port numbers with one or more multicast address on multi-network mouth device, be used to avoid multicast purpose machine to receive identical message;
Step 2 when described port numbers corresponding port state changes, is updated to corresponding ports number with described one or more multicast address, is used to avoid cause sending the IGMP message because of described port numbers corresponding port state changes.
2. the implementation method of multi-network port device multicast as claimed in claim 1 is characterized in that, in the step 1, the mapping relations table of multicast address and port numbers is set also.
3. the implementation method of multi-network port device multicast as claimed in claim 2 is characterized in that, in the step 1, and the multicast ip address that multicast address adds for the protocol processes ply-yarn drill, described being mapped as according to multicast ip address and port status calculated port numbers.
4. the implementation method of multi-network port device multicast as claimed in claim 3 is characterized in that, in the step 1, port numbers is the port numbers of multicast address divided by the available port of the remainder correspondence of the maximum port number of protocol processes ply-yarn drill.
5. the implementation method of multi-network port device multicast as claimed in claim 3 is characterized in that, step 1 also comprises:
Step 51 when the message of multicast group to be added such as receiving, adds multicast group with this message, and checks whether this multicast group exists, if exist, then execution in step 53, otherwise execution in step 52;
Step 52 is calculated port numbers according to multicast address, and with the mapping relations adding multicast address of this multicast address and port numbers and the mapping relations table of port numbers, execution in step 53;
Step 53 is provided with the IGMP type of message for report, joins the message transmit queue;
Step 54 is checked transmit queue, is ready for sending the IGMP message.
6. the implementation method of multi-network port device multicast as claimed in claim 3 is characterized in that, step 1 also comprises:
Step 61 receives and waits for when leaving the message of multicast group, and checks whether this multicast group exists, if exist, then execution in step 62, otherwise do not carry out any processing;
Step 62 is according to the mapping relations of multicast group address deletion multicast address and port numbers;
Step 63 is provided with the IGMP type of message for leaving, and joins the message transmit queue;
Step 64 is checked transmit queue, is ready for sending the IGMP message.
7. the implementation method of multi-network port device multicast as claimed in claim 4 is characterized in that, port status comprises that port can be with unavailable with port.
8. the implementation method of multi-network port device multicast as claimed in claim 7 is characterized in that, in the step 2, when port status is port when unavailable, the port numbers of selecting a port in all the other available ports is as corresponding ports number.
9. the implementation method of multi-network port device multicast as claimed in claim 8 is characterized in that, in the step 2, all the other available ports are arranged by the mode of poll.
10. a system that is used for as the implementation method of any described multi-network port device multicast of claim 1-9 is characterized in that, comprising:
Multicast address and port numbers mapping block are used on multi-network mouth device one or more multicast address being mapped to a port numbers, receive identical message to avoid multicast purpose machine;
Multicast address and port numbers map updating module, be used for when described port numbers corresponding port state changes, described one or more multicast address are updated to corresponding ports number, cause to send the IGMP message because of described port numbers corresponding port state changes avoiding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101011525A CN101232510A (en) | 2008-02-28 | 2008-02-28 | Method and system for implementing multi-network port device multicast |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101011525A CN101232510A (en) | 2008-02-28 | 2008-02-28 | Method and system for implementing multi-network port device multicast |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101232510A true CN101232510A (en) | 2008-07-30 |
Family
ID=39898683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008101011525A Pending CN101232510A (en) | 2008-02-28 | 2008-02-28 | Method and system for implementing multi-network port device multicast |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101232510A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647720A (en) * | 2013-12-26 | 2014-03-19 | 迈普通信技术股份有限公司 | Method and device for processing internet group management protocol (IGMP) Snooping |
CN104348737A (en) * | 2013-08-02 | 2015-02-11 | 华为技术有限公司 | Multicast message transmission method and switches |
CN104883630A (en) * | 2015-05-08 | 2015-09-02 | 烽火通信科技股份有限公司 | Adaptive system and method of multicast cascade connection in PON system |
CN105978780A (en) * | 2016-05-10 | 2016-09-28 | 浙江宇视科技有限公司 | Port switching method and device |
-
2008
- 2008-02-28 CN CNA2008101011525A patent/CN101232510A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104348737A (en) * | 2013-08-02 | 2015-02-11 | 华为技术有限公司 | Multicast message transmission method and switches |
CN104348737B (en) * | 2013-08-02 | 2018-01-23 | 华为技术有限公司 | The transmission method and interchanger of a kind of multicast message |
CN103647720A (en) * | 2013-12-26 | 2014-03-19 | 迈普通信技术股份有限公司 | Method and device for processing internet group management protocol (IGMP) Snooping |
CN103647720B (en) * | 2013-12-26 | 2017-04-26 | 迈普通信技术股份有限公司 | Method and device for processing internet group management protocol (IGMP) Snooping |
CN104883630A (en) * | 2015-05-08 | 2015-09-02 | 烽火通信科技股份有限公司 | Adaptive system and method of multicast cascade connection in PON system |
CN104883630B (en) * | 2015-05-08 | 2018-11-06 | 烽火通信科技股份有限公司 | The cascade adaption system of multicast and method in PON system |
CN105978780A (en) * | 2016-05-10 | 2016-09-28 | 浙江宇视科技有限公司 | Port switching method and device |
CN105978780B (en) * | 2016-05-10 | 2020-01-14 | 浙江宇视科技有限公司 | Port switching method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102763380B (en) | For the system and method for routing packets | |
US6804233B1 (en) | Method and system for link level server/switch trunking | |
US10142160B1 (en) | System and methods for managing network hardware address requests with a controller | |
US7359383B2 (en) | Load balancing with mesh tagging | |
US7551616B2 (en) | Forwarding packets to aggregated links using distributed ingress card processing | |
US7145866B1 (en) | Virtual network devices | |
US7693169B2 (en) | Transmission apparatus and frame transmission method | |
CA2594267A1 (en) | End-to-end publish/subscribe middleware architecture | |
US7826465B2 (en) | Methods, systems and computer program products for dynamic communication data routing by a multi-network remote communication terminal | |
CN102404229A (en) | System, device and method for load balancing | |
CN103326948B (en) | A kind of exchange processing system and method | |
CN101257447A (en) | Method, system and routing apparatus of load sharing | |
CN101534253A (en) | Message forwarding method and device | |
US20110110372A1 (en) | Systems and methods to perform hybrid switching and routing functions | |
US20080298362A1 (en) | Session border control using multiple processors | |
WO2022253087A1 (en) | Data transmission method, node, network manager, and system | |
CN101232510A (en) | Method and system for implementing multi-network port device multicast | |
CN1859175A (en) | Internal reliable interconnect communication device | |
CN101547147A (en) | Method, device, line card and management unit for message processing | |
CN1157902C (en) | Ip address mapping and transmitting method for non-broadcast multipath access network | |
US6947375B2 (en) | System and method for network card switchovers in an IP network | |
CN104935509A (en) | Method and apparatus of avoiding loop generation in vertical stack system | |
CN108092896A (en) | Pile system and aggregation group establish device | |
CN110995609A (en) | Message sending method and device, electronic equipment and storage medium | |
CN101102231B (en) | An automatic discovery method and device of PPP link routing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20080730 |