CN108011828A - A kind of multicast switching method, device, core layer switch and storage medium - Google Patents

A kind of multicast switching method, device, core layer switch and storage medium Download PDF

Info

Publication number
CN108011828A
CN108011828A CN201711282821.9A CN201711282821A CN108011828A CN 108011828 A CN108011828 A CN 108011828A CN 201711282821 A CN201711282821 A CN 201711282821A CN 108011828 A CN108011828 A CN 108011828A
Authority
CN
China
Prior art keywords
core layer
layer switch
multicast message
software
role
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
CN201711282821.9A
Other languages
Chinese (zh)
Other versions
CN108011828B (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.)
Beijing Dongtu Jinyue Technology Co Ltd
Original Assignee
Beijing Dongtu Jinyue Technology 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 Beijing Dongtu Jinyue Technology Co Ltd filed Critical Beijing Dongtu Jinyue Technology Co Ltd
Priority to CN201711282821.9A priority Critical patent/CN108011828B/en
Publication of CN108011828A publication Critical patent/CN108011828A/en
Application granted granted Critical
Publication of CN108011828B publication Critical patent/CN108011828B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Abstract

The invention discloses a kind of multicast switching method, device, core layer switch and storage medium, the described method includes:When the first core layer switch in standby role receives the current multicast message that source access layer switches are sent, the software register pre-saved is updated according to the current multicast message;Wherein, the outlet VLAN of each software list item is not sky in the software register;When the first core layer switch determines that its own corresponding interchanger role is switched to primary role by standby role, hardware list is configured according to the software register;When the first core layer switch finds the corresponding hardware table item of the current multicast message in the hardware list, the current multicast message is forwarded to by target access layer switch according to the corresponding hardware table item of the current multicast message.Multicast switching time is shorter, and multicast switch speed is very fast.

Description

A kind of multicast switching method, device, core layer switch and storage medium
Technical field
The present embodiments relate to network communication technology field, more particularly to a kind of multicast switching method, device, core layer Interchanger and storage medium.
Background technology
Multicast is widely used in IP (internet protocol) network, is mainly used for point-to-multipoint communication pattern, and wide Broadcast and compare, multicast has a clear superiority in terms of bandwidth occupancy, server load and network load.Multicast routing protocol is IP network The route test agreement of multicast message forwarding is realized in network third layer.The function of multicast routing protocol is the forwarding for multicast message Routing iinformation is provided, that is, which direction received multicast message should be forwarded to forwarding engine explanation.It is common at present IP multicast routing protocols have three types:DVMRP (Distance Vector Multicast Routing Protocol, Distance vector multicast routing protocol), PIM-SM (Protocol Independent Multicast-Sparse Mode, agreement The sparse mode of independent multicast Routing Protocol) and PIM-DM (Protocol Independent Multicast-Dense Mode, the dense mode of Protocol Independent Multicast Routing Protocol).
The PIM-DM is a kind of multicast routing protocol unrelated with unicast routing protocol, it is independent of specific Unicast routing protocol, is a kind of multicast routing protocol of dense mode, is relatively specific for the densely distributed network of receiving station. PIM-DM is generally used for the situation table for having substantial amounts of receiving terminal in some multicast group, these receiving terminals are distributed than comparatively dense, multicast The traffic is bigger.PIM-DM uses the pattern for pushing away (Push), and multicast message is sent by multicast source, and by connecting multicast source The network equipment sends multicast message to all interfaces for being configured with PIM-DM, then again by checking whether network end-point has reception Person carrys out the upstream network equipment and sends prune packet, and the network equipment is transmitted to stop follow-up multicast message.Specifically, net Network equipment is right according to (S, the G) of multicast message, i.e., the source IP address of multicast message and purpose IP address calculate outer outgoing interface;If The outer outgoing interface calculated is not sky, then to (S, the G) to establishing the list item of an outer outgoing interface, and by the multicast message by The outer outgoing interface forwarding;If the outer outgoing interface calculated is sky, upstream neighbours send a prune packet, notify upstream Neighbours after Upstream Interface receives prune packet, do not cut again to multicast message of this interface forwarding from (S, G) this is sent The interface flag of branch message is beta pruning state, this process is known as " flood-beta pruning ".
Fig. 1 realizes flow diagram for multicast switching method in the prior art.As shown in Figure 1, J05 hands over for source access layer Change planes, J06 is target access layer switch;H01 is the first core layer switch, and H02 is the second core layer switch;Wherein, The interchanger role of first core layer switch H01 is primary role;The interchanger role of second core layer switch H02 is standby Use role.When the first core layer switch H01 is powered on, the flow trace of current multicast message is:J05—>H01—>J06; When electricity under the first core layer switch H01, the flow trace of current multicast message is:J05—>H02—>J06.Specifically, When the second core layer switch H02 determines that its own corresponding interchanger role is switched to primary role by standby role, the Two core layer switch H02 need to create the corresponding software list item of a current multicast message, then the second core layer switch H02 determines the corresponding hardware table item of current multicast message, the second last core according to the corresponding software list item of current multicast message Current multicast message is forwarded to target access layer switch by layer switch H02 according to the corresponding hardware table item of current multicast message J06。
In the implementation of the present invention, inventor has found that at least there are the following problems in the prior art:
In existing multicast switching method, when the first core layer switch determine its own corresponding interchanger role by When standby role is switched to primary role, the first core layer switch needs to create one in the software register locally preserved currently The corresponding software list item of multicast message, and the first core layer switch establishes current multicast message pair in the software register locally preserved The software list item answered needs to undergo the process of one " flood-beta pruning ", and therefore, multicast switching time is longer, multicast switch speed It is slower.
The content of the invention
The present invention provides a kind of multicast switching method based on PIM-DM agreements, device, core layer switch and storage and is situated between Matter, multicast switching time is shorter, and multicast switch speed is very fast.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
In a first aspect, an embodiment of the present invention provides a kind of multicast switching method, the described method includes:
The first core layer switch in standby role receives the current multicast message that source access layer switches are sent When, the software register pre-saved is updated according to the current multicast message;Wherein, each software list item goes out in the software register Mouth VLAN is not sky;
When the first core layer switch, to determine that its own corresponding interchanger role is switched to by standby role primary During role, hardware list is configured according to the software register;
When the first core layer switch finds the corresponding hardware of the current multicast message in the hardware list During list item, the current multicast message is forwarded to by target access layer according to the corresponding hardware table item of the current multicast message and is handed over Change planes.
In the above-described embodiments, the first core layer switch is pre-saved according to current multicast message renewal Software register, including:
The first core layer switch searches the corresponding software list item of the current multicast message in the software register;
When the first core layer switch, to find the current multicast message in the software list item corresponding soft During part list item, the first core layer switch is abandoned the current multicast message;
Corresponded to when the first core layer switch does not find the current multicast message in the software list item Software list item when, the first core layer switch creates the current multicast message in the software list item and corresponds to Software list item after, the current multicast message is abandoned.
In the above-described embodiments, after the software register pre-saved according to current multicast message renewal, institute The method of stating further includes:
First core switch by the source IP address of each software list item, purpose IP address in the software register, enter Mouth VLAN is added in the hardware list in the source IP address of each hardware table item, purpose IP address, ingress VLAN;Wherein, respectively The outlet VLAN of a hardware table item is sky.
In the above-described embodiments, the first core layer switch determines its own corresponding interchanger role by spare angle Color is switched to primary role, including:
The first core layer switch obtains the first priority of the first core layer switch according to predetermined period With the second priority of the second core layer switch;
When the first priority of the first core layer switch is more than the second preferential of the second core layer switch During level, the first core layer switch determines that its own corresponding interchanger role is switched to the master by the standby role Use role.
In the above-described embodiments, the method further includes:
When re-powering work after electricity under the second core layer exchange fault in primary role, obtained according to predetermined period Take the first priority of the first core layer switch and the second priority of the second core layer switch;
When the first priority of the first core layer switch is more than the second preferential of the second core layer switch During level, the second core layer switch determines that its own corresponding interchanger role is the standby role.
Second aspect, the embodiment of the present invention additionally provide a kind of multicast switching device, and described device includes:Updating block, Dispensing unit and retransmission unit;Wherein,
The updating block, for receiving the current multicast message of source access layer switches transmission in standby role When;The software register pre-saved according to current multicast message renewal;Wherein, each software list item goes out in the software register Mouth VLAN is not sky;
The dispensing unit, for determining its own corresponding interchanger role by standby when the first core layer switch When with role switching being primary role, hardware list is configured according to the software register;
The retransmission unit, for finding described current group in the hardware list when the first core layer switch When reporting literary corresponding hardware table item, the current multicast message is turned according to the current multicast message corresponding hardware table item It is sent to target access layer switch.
In the above-described embodiments, the updating block, specifically for searching the current multicast report in the software register The corresponding software list item of text;, will when finding the corresponding software list item of the current multicast message in the software list item The current multicast message is abandoned;It is corresponding soft when not finding the current multicast message in the software list item During part list item, after the corresponding software list item of the current multicast message is created in the software list item, will it is described currently Multicast message is abandoned.
In the above-described embodiments, the dispensing unit, is additionally operable to by the source IP of each software list item in the software register Location, purpose IP address, ingress VLAN are added to the source IP address of each hardware table item in the hardware list, purpose IP address, enter In mouth VLAN;Wherein, the outlet VLAN of each hardware table item is sky.
In the above-described embodiments, the dispensing unit, is additionally operable to obtain the first core layer exchange according to predetermined period Second priority of the first priority of machine and the second core layer switch;First when the first core layer switch is preferential When level is more than the second priority of the second core layer switch, determine its own corresponding interchanger role by described spare Role switching is the primary role.
The third aspect, the embodiment of the present invention additionally provide a kind of core layer switch, it is characterised in that including:
At least one processor;And
The memory being connected with least one processor communication;Wherein,
The memory storage has the instruction that can be performed by least one processor, and described instruction is by described at least one A processor performs, so that at least one processor is able to carry out the method described in any of the above-described embodiment.
Fourth aspect, the embodiment of the present invention additionally provide a kind of storage medium, are stored with computer executable instructions, described Computer executable instructions are used to perform the method as described in above-mentioned any embodiment.
The embodiment of the present invention proposes a kind of multicast switching method, device, core layer switch and storage medium.In standby When receiving the current multicast message that source access layer switches are sent with the first core layer switch of role, first according to current group Report the software register that text renewal pre-saves;Then when the first core layer switch determine its own corresponding interchanger role by When standby role is switched to primary role, hardware list can be configured according to software register;When the first core layer switch is in hardware list In when finding the corresponding hardware table item of current multicast message, can will be current according to the corresponding hardware table item of current multicast message Multicast message is forwarded to target access layer switch.That is, in the technical solution that the embodiment of the present invention proposes, the first core Central layer interchanger can be independently calculated with outlet according to hardware list of the software register configuration with transfer capability pre-saved The software register of VLAN and beta pruning VLAN;When the first core layer switch determines its own corresponding interchanger role by standby role When being switched to primary role, the first core layer switch can synchronously configuration has transfer capability according to the software register locally preserved Hardware list, and the first core layer switch need not then create a current multicast message pair in the software register locally preserved The software list item answered.Therefore, the first core layer switch more rapidly can be switched to primary role by standby role.And existing Multicast switching method in, when the first core layer switch determines that its own corresponding interchanger role is switched to by standby role During primary role, the first core layer switch needs a newly-built current multicast message in the software register locally preserved corresponding Software list item, and the first core layer switch establishes the corresponding software list item of current multicast message in the software register locally preserved Need the process of experience one " flood-beta pruning ".Therefore, compared to the prior art, the multicast switching that the embodiment of the present invention proposes Method, apparatus, core layer switch and storage medium, multicast switching time is shorter, and multicast switch speed is very fast;Also, this hair The technical solution of bright embodiment realize it is simple and convenient, easy to popularize, the scope of application is wider.
Brief description of the drawings
Fig. 1 realizes flow diagram for multicast switching method in the prior art;
Fig. 2 is that multicast switching method realizes flow diagram in the embodiment of the present invention;
Fig. 3 is the composition structure diagram of hardware table item in the embodiment of the present invention;
Fig. 4 is the composition structure diagram of software list item in the embodiment of the present invention;
Fig. 5 is the composition structure diagram of multicast switching device in the embodiment of the present invention.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just It illustrate only part related to the present invention rather than entire infrastructure in description, attached drawing.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body is either operated to be distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or order.For example, in the first core layer switch and the second core layer switch " the One " is used for the core layer switch that to distinguish two different with " second ".
Technical solution provided in an embodiment of the present invention, is not only adapted to the scene shown in Fig. 1, is further adapted to need active and standby cut The scene changed:In Fig. 1, between core layer equipment, core layer equipment and access layer equipment connected using trunk mouthful.User equipment It is connected in the access layer equipment with two layers of transfer capability.Two core layer equipments in active-standby mode open PIM-DM associations View, VRRP (Virtual Router RedundancyProtocol, Virtual Router Redundacy Protocol) agreements and MSTP agreements, and With three layers of transfer capability.Two core layer equipment patterns are active-standby mode in Fig. 1, i.e. two core layer equipments only have one to set Standby forwarding, another core layer equipment play the role of redundancy backup.
Fig. 2 is that multicast switching method realizes flow diagram in the embodiment of the present invention.As shown in Fig. 2, multicast switching side Method may comprise steps of:
Step 201, the first core layer switch in standby role receive the current of source access layer switches transmission During multicast message, the software register pre-saved is updated according to current multicast message.
In a specific embodiment of the present invention, the interchanger role of the first core layer switch can be primary role;The The interchanger role of one core layer switch can also be standby role.In addition, the interchanger role of the second core layer switch It can be primary role;The interchanger role of second core layer switch can also be standby role.When the first core layer exchanges When the interchanger role of machine is primary role, the first core layer switch can receive current group that source access layer switches are sent Report text;When the interchanger role of the first core layer switch is standby role, the first core layer switch can also receive The current multicast message that source access layer switches are sent.Similarly, when the interchanger role of the second core layer switch is primary During role, the second core layer switch can receive the current multicast message that source access layer switches are sent;When the second core layer When the interchanger role of interchanger is standby role, the second core layer switch can also receive what source access layer switches were sent Current multicast message.
Specifically, in a specific embodiment of the present invention, the first core layer switch in standby role receives source During the current multicast message that access layer switches are sent, the first core layer switch can update advance according to current multicast message The software register of preservation.Specifically, the first core layer switch can search the corresponding software of current multicast message in software register List item;When the first core layer switch finds the corresponding software list item of current multicast message in software list item, the first core Central layer interchanger can be abandoned current multicast message;When the first core layer switch is not found in software list item During the corresponding software list item of current multicast message, the first core layer switch can create a current multicast in software list item After the corresponding software list item of message, current multicast message is abandoned.That is, determined in the first core layer switch Before its own corresponding interchanger role is switched to primary role by standby role, each outlet VLAN is sky in hardware list, Therefore when the first core layer switch finds the corresponding software list item of current multicast message in software list item can directly by Current multicast message is abandoned;Alternatively, when the first core layer switch does not find current multicast report in software list item During literary corresponding software list item, it is corresponding that the first core layer switch can create a current multicast message in software list item After software list item, current multicast message is abandoned.
It is preferred that in a specific embodiment of the present invention, the first core layer switch is updated according to current multicast message After the software register pre-saved, the first core layer switch can be by source IP address, the mesh of each software list item in software register IP address, ingress VLAN is added in hardware list in the source IP address of each hardware table item, purpose IP address, ingress VLAN; Wherein, the outlet VLAN of each hardware table item is sky.Alternatively, the first core layer switch can also be by each hardware in hardware list Source IP address, purpose IP address, ingress VLAN and the outlet VLAN of list item are each configured to sky.
It is preferred that in a specific embodiment of the present invention, between the first core layer switch and the second core layer switch HELLO messages and ASSERT messages are no longer sent mutually, it is ensured that the first core layer switch and the second core layer switch Independently calculate the software register of itself, and the software register that calculates of the first core layer switch and the second core layer switch calculate The software register gone out is identical.In this way, in the situation of the first core layer switch and the second equal working stability of core layer switch Under, when the first interchanger determines that the interchanger role of its own is switched to primary role by standby role, the first core layer is handed over Hardware list can be configured according to software register by changing planes.Specifically, if the source IP address of each hardware table item, mesh in hardware list at this time IP address, ingress VLAN and outlet VLAN it is empty, the first core layer switch can be by each software list item in software register Source IP address, purpose IP address, ingress VLAN and outlet VLAN are added to the source IP address of each hardware table item, mesh in hardware list IP address, ingress VLAN and outlet VLAN.If the source IP address of each hardware table item, destination IP in hardware list at this time Location, ingress VLAN for sky, and the outlet VLAN of only each hardware table item for sky, then the first core layer switch only need by The outlet VLAN of each software list item is added in the outlet VLAN of each hardware table item in hardware list in software register.So when When one core layer switch finds the corresponding hardware table item of current multicast message in hardware list, the first core layer switch can Current multicast message is forwarded to target access layer switch according to current multicast message corresponding hardware table item, so as to Shorten multicast switching time, improve multicast switch speed.
Step 202, determine that its own corresponding interchanger role is switched to by standby role when the first core layer switch During primary role, hardware list is configured according to software register.
In a specific embodiment of the present invention, the first core layer switch is receiving working as source access layer switches transmission After preceding multicast message, the first core layer switch can according to its own corresponding interchanger role to current multicast message into The different processing of row.Specifically, when the interchanger role of the first core layer switch is primary role, the first core layer exchanges Current multicast message can be forwarded to by machine according to the corresponding hardware table item of current multicast message;When the first core layer switch Interchanger role when being standby role, the first core layer switch can will according to the corresponding hardware table item of current multicast message Current multicast message is abandoned.Similarly, the second core layer switch is receiving the current of source access layer switches transmission After multicast message, the second core layer switch can also according to its own corresponding interchanger role to current multicast message into The different processing of row.Specifically, when the interchanger role of the second core layer switch is primary role, the second core layer exchanges Current multicast message can be forwarded to by machine according to the corresponding hardware table item of current multicast message;When the second core layer switch Interchanger role when being standby role, the second core layer switch can will according to the corresponding hardware table item of current multicast message Current multicast message is abandoned.
Specifically, in a specific embodiment of the present invention, when the interchanger role of the first core layer switch is primary angle During color, the first core layer switch is after the current multicast message that source access layer switches are sent is received, the first core layer Interchanger can first search the corresponding hardware table item of current multicast message in hardware list;When the first core layer switch is in hardware When the corresponding hardware table item of current multicast message is found in table, the first core layer switch can be according to current group found Report text corresponding hardware table item and current multicast message is forwarded to target access layer switch.When the first core layer switch exists When the corresponding hardware table item of current multicast message is not found in hardware list, the first core layer switch can be in software register Search the corresponding software list item of current multicast message;When the first core layer switch finds current multicast message in software register During corresponding software list item, the first core layer switch can give birth to according to the corresponding software list item of the current multicast message found Into the corresponding hardware table item of current multicast message, then the first core layer switch can be corresponding hard according to current multicast message Current multicast message is forwarded to target access layer switch by part list item.When the first core layer switch is not looked into software register When finding the corresponding software list item of current multicast message, the first core layer switch can create one current group in software register The corresponding software list item of text is reported, the first core layer switch can be according to the newly-built corresponding software of current multicast message at this time The corresponding hardware table item of list item generation current multicast message, then the first core layer switch can be according to current multicast message pair Current multicast message is forwarded to target access layer switch by the hardware table item answered.
Specifically, in a specific embodiment of the present invention, the storage organization of hardware list can be as described in Table 1:
Hardware table item 1 Source IP address 1 Purpose IP address 1 Ingress VLAN 1 Export VLAN1
Hardware table item 2 Source IP address 2 Purpose IP address 2 Ingress VLAN 2 Export VLAN2
Hardware table item M Source IP address M Purpose IP address M Ingress VLAN M Export VLAN M
Table 1
In table 1 above, hardware list can include M hardware table item, be respectively:Hardware table item 1, hardware table item 2 ..., Hardware table item M;Wherein, M is the natural number more than or equal to 1.Hardware table item 1 can include:Source IP address 1, purpose IP address 1, Ingress VLAN 1 and outlet VLAN1;Hardware table item 2 can include:Source IP address 2, purpose IP address 2, ingress VLAN 2 and outlet VLAN2;…;Hardware table item M can include:Source IP address M, purpose IP address M, ingress VLAN M and outlet VLAN M.Need Illustrate, in each hardware table item, outlet VLAN there can be one, it is possibility to have multiple.For example, in hardware table item 1, Outlet VLAN1 can have one, it is possibility to have multiple.
Fig. 3 is the composition structure diagram of hardware table item in the embodiment of the present invention.As shown in figure 3, hardware table item can wrap Include:Source IP address, purpose IP address, ingress VLAN and outlet VLAN.In a specific embodiment of the present invention, the first core layer is handed over Change planes when the corresponding hardware table item of current multicast message is searched in hardware list, the first core layer switch can be according to current group Report source IP address, purpose IP address and the ingress VLAN of text hardware table item 1, hardware table item 2 ..., search in hardware table item M The corresponding hardware table item of current multicast message.If the source IP address of current multicast message, purpose IP address and ingress VLAN and Hardware table item 1, hardware table item 2 ..., in hardware table item M any one hardware table item source IP address, purpose IP address and entrance VLAN is identical, then the hardware table item is determined as the corresponding hardware table item of current multicast message by the first core layer switch.
Specifically, in a specific embodiment of the present invention, the storage organization of software register can be as described in Table 2:
Software list item 1 Source IP address 1 Purpose IP address 1 Ingress VLAN 1 Export VLAN1 Beta pruning VLAN1
Software list item 2 Source IP address 2 Purpose IP address 2 Ingress VLAN 2 Export VLAN2 Beta pruning VLAN2
Software list item N Source IP address N Purpose IP address N Ingress VLAN N Export VLAN N Beta pruning VLAN N
Table 2
In above-mentioned table 2, software register can include N number of software list item, be respectively:Software list item 1, software list item 2 ..., Software list item N;Wherein, N is the natural number more than or equal to M.Software list item 1 can include:Source IP address 1, purpose IP address 1, Ingress VLAN 1, outlet VLAN1 and beta pruning VLAN1;Software list item 2 can include:Source IP address 2, purpose IP address 2, entrance VLAN2, outlet VLAN2 and beta pruning VLAN2;…;Software list item N can include:Source IP address N, purpose IP address N, entrance VLAN N, outlet VLAN N and beta pruning VLAN N.It should be noted that in each software list item, outlet VLAN can have one It is a, it is possibility to have multiple;In addition, beta pruning VLAN can have one, it is possibility to have multiple.For example, in software list item 1, outlet VLAN1 can have one, it is possibility to have multiple;Beta pruning VLAN1 can have one, it is possibility to have multiple.
Fig. 4 is the composition structure diagram of software list item in the embodiment of the present invention.As shown in figure 4, software list item can wrap Include:Source IP address, purpose IP address, ingress VLAN, outlet VLAN and beta pruning VLAN.In a specific embodiment of the present invention, When one core layer switch searches the corresponding software list item of current multicast message in software register, the first core layer switch can be with According to the source IP address of current multicast message, purpose IP address and ingress VLAN software list item 1, software list item 2 ..., software The corresponding software list item of current multicast message is searched in list item N.If the source IP address of current multicast message, purpose IP address and Ingress VLAN and software list item 1, software list item 2 ..., the source IP address of any one software list item, destination IP in software list item N Address is identical with ingress VLAN, then the software list item is determined as the corresponding software of current multicast message by the first core layer switch List item.
Specifically, in a specific embodiment of the present invention, when the interchanger role of the first core layer switch is spare angle During color, the first core layer switch is after the current multicast message that source access layer switches are sent is received, the first core layer Interchanger searches the corresponding software list item of current multicast message in software register;When the first core layer switch is in software list item When finding the corresponding software list item of current multicast message, the first core layer switch directly can carry out current multicast message Abandon;When the first core layer switch does not find the corresponding software list item of current multicast message in software list item, , then will be current after one core layer switch can create the corresponding software list item of a current multicast message in software list item Multicast message is abandoned.That is, the first core layer switch in standby role receives source access layer switches During the current multicast message of transmission, since the outlet VLAN of each hardware table item in hardware list is sky, the first core Layer switch can only be lost current multicast message after the current multicast message that source access layer switches are sent is received Abandon.
Specifically, based on determining that its own corresponding interchanger role switches by standby role when the first core layer switch During with role, the first core layer switch can configure hardware list according to software register.Specifically, specifically, if hardware at this time The source IP address of each hardware table item, purpose IP address, ingress VLAN and outlet VLAN are empty in table, the first core layer switch The source IP address of each software list item, purpose IP address, ingress VLAN and outlet VLAN in software register can be added to hardware The source IP address of each hardware table item, purpose IP address, ingress VLAN and outlet VLAN in table.It is if each in hardware list at this time Source IP address, purpose IP address, the ingress VLAN of hardware table item are not sky, and the outlet VLAN of only each hardware table item is Sky, then the first core layer switch the outlet VLAN of each software list item in software register need to be only added to each hard in hardware list In the outlet VLAN of part list item.So when the first core layer switch, that current multicast message is found in hardware list is corresponding hard During part list item, the first core layer switch can forward current multicast message according to the corresponding hardware table item of current multicast message To target access layer switch, so as to shorten multicast switching time, multicast switch speed is improved.
Step 203, find the corresponding hardware table item of current multicast message when the first core layer switch in hardware list When, current multicast message is forwarded to by target access layer switch according to the corresponding hardware table item of current multicast message.
In a specific embodiment of the present invention, when the first core layer switch finds current multicast message in hardware list During corresponding hardware table item, the first core layer switch can be according to the corresponding hardware table item of current multicast message by current multicast Message is forwarded to target access layer switch;When the first core layer switch does not find current multicast message in hardware list During corresponding hardware table item, the first core layer switch can search the corresponding software register of current multicast message in software register , when the first core layer switch finds the corresponding software list item of current multicast message in software register, the first core layer Interchanger can be according to the corresponding hardware table item of the corresponding software list item generation current multicast message of current multicast message, Ran Hougen Current multicast message is forwarded to target access layer switch according to current multicast message corresponding hardware table item;When the first core layer When interchanger does not find the corresponding software list item of current multicast message in software register, the first core layer switch can be After creating the corresponding software list item of a current multicast message in software register, given birth to according to the corresponding software list item of current multicast message Into the corresponding hardware table item of current multicast message, then according to the corresponding hardware table item of current multicast message by current multicast message It is forwarded to target access layer switch.
It is preferred that in a specific embodiment of the present invention, the first core layer switch can obtain the according to predetermined period Second priority of the first priority of one core layer switch and the second core layer switch;When the first core layer switch When first priority is more than the second priority of the second core layer switch, the first core layer switch can determine that its own is right The interchanger role answered is switched to primary role by standby role.Specifically, the second core layer switch in primary role When re-powering work under failure after electricity, the second core layer switch can also obtain the first core layer according to predetermined period and exchange Second priority of the first priority of machine and the second core layer switch;When the first priority of the first core layer switch is big When the second priority of the second core layer switch, the second core layer switch determines that its own corresponding interchanger role is Standby role.For example, when the interchanger role of the first core layer switch is standby role, the first core layer can be exchanged First priority of machine is configured to 90;, can be by second when the interchanger role of the second core layer switch is primary role Second priority of core layer switch is configured to 100.If the first core layer switch determines the interchanger role of its own When being switched to primary role by standby role, the second priority of the first core layer switch can be configured to 254.Herein it Afterwards, when the second core layer switch re-powers, the second core layer can obtain the first core layer according to predetermined period and exchange Second priority of the first priority of machine and the second core layer switch, when the first priority of the first core layer switch is big When the second priority of the second core layer switch, the second core layer switch then will not be by its own corresponding interchanger angle Color is by standby role switchback to primary role.That is, when the second core layer switch re-powers, due to the second core Second priority 100 of layer switch is less than the first priority 254 of the first core layer switch, and therefore, the second core layer is handed over Change planes and determine that its own corresponding interchanger role is standby role, can not between such first interchanger and second switch The protocol massages for role's switchback are forwarded again, can not only save flow, and are also prevented from the second core layer switch Loss by standby role switchback to data message during primary role, ensures that the first core layer for being now in primary role exchanges Machine is more stablized.
Multicast switching method provided in an embodiment of the present invention, the first core layer switch in standby role receive source During the current multicast message that access layer switches are sent, the software register pre-saved is first updated according to current multicast message;Then When the first core layer switch determines that its own corresponding interchanger role is switched to primary role by standby role, Ke Yigen Hardware list is configured according to software register;When the first core layer switch finds the corresponding hardware list of current multicast message in hardware list Xiang Shi, can be forwarded to target access layer switch according to the corresponding hardware table item of current multicast message by current multicast message. That is, in the technical solution that the embodiment of the present invention proposes, the first core layer switch can be soft according to what is pre-saved Hardware list of the part table configuration with transfer capability independently calculates the software register with outlet VLAN and beta pruning VLAN;When the first core When layer switch determines that its own corresponding interchanger role is switched to primary role by standby role, the first core layer switch Hardware list with transfer capability can synchronously be configured according to the software register locally preserved, and the first core layer switch is then not required to The corresponding software list item of a current multicast message is created in the software register locally preserved.Therefore, the first core layer exchanges Machine more rapidly can be switched to primary role by standby role.And in existing multicast switching method, when the first core layer is handed over Change planes when determining that its own corresponding interchanger role is switched to primary role by standby role, the first core layer switch needs The corresponding software list item of a current multicast message is created in the software register locally preserved, and the first core layer switch is at this The corresponding software list item of current multicast message is established in the software register that ground preserves to be needed to undergo the process of one " flood-beta pruning ". Therefore, compared to the prior art, the multicast switching method that the embodiment of the present invention proposes, multicast switching time is shorter, multicast switching Speed;Also, the technical solution of the embodiment of the present invention realize it is simple and convenient, easy to popularize, the scope of application is wider.
Fig. 5 is the composition structure diagram of multicast switching device in the embodiment of the present invention.As shown in figure 5, described device bag Include:Updating block 501, dispensing unit 502 and retransmission unit 503;Wherein,
The updating block 501, for receiving the current multicast report of source access layer switches transmission in standby role Wen Shi;The software register pre-saved according to current multicast message renewal;Wherein, each software list item in the software register It is not sky to export VLAN;
The dispensing unit 502, for determining its own corresponding interchanger role when the first core layer switch When being switched to primary role by standby role, hardware list is configured according to the software register;
The retransmission unit 503, for finding described work as in the hardware list when the first core layer switch During the corresponding hardware table item of preceding multicast message, according to the corresponding hardware table item of the current multicast message by the current multicast report Text is forwarded to target access layer switch.
Further, the updating block 501, specifically for searching the current multicast message pair in the software register The software list item answered;When finding the corresponding software list item of the current multicast message in the software list item, will described in Current multicast message is abandoned;When not finding the corresponding software register of the current multicast message in the software list item Xiang Shi, after the corresponding software list item of the current multicast message is created in the software list item, by the current multicast Message is abandoned.
Further, the dispensing unit 502, be additionally operable to by the source IP address of each software list item in the software register, Purpose IP address, ingress VLAN are added to the source IP address of each hardware table item, purpose IP address, entrance in the hardware list In VLAN;Wherein, the outlet VLAN of each hardware table item is sky.
Further, the dispensing unit 502, is additionally operable to obtain the first core layer switch according to predetermined period Second priority of the first priority and the second core layer switch;When the first priority of the first core layer switch is big When the second priority of the second core layer switch, determine its own corresponding interchanger role by the standby role It is switched to the primary role.
The multicast switching device that the embodiment of the present invention proposes, the first core layer switch in standby role receive source During the current multicast message that access layer switches are sent, the software register pre-saved is first updated according to current multicast message;Then When the first core layer switch determines that its own corresponding interchanger role is switched to primary role by standby role, Ke Yigen Hardware list is configured according to software register;When the first core layer switch finds the corresponding hardware list of current multicast message in hardware list Xiang Shi, can be forwarded to target access layer switch according to the corresponding hardware table item of current multicast message by current multicast message. That is, in the technical solution that the embodiment of the present invention proposes, the first core layer switch can be soft according to what is pre-saved Hardware list of the part table configuration with transfer capability independently calculates the software register with outlet VLAN and beta pruning VLAN;When the first core When layer switch determines that its own corresponding interchanger role is switched to primary role by standby role, the first core layer switch Hardware list with transfer capability can synchronously be configured according to the software register locally preserved, and the first core layer switch is then not required to The corresponding software list item of a current multicast message is created in the software register locally preserved.Therefore, the first core layer exchanges Machine more rapidly can be switched to primary role by standby role.And in existing multicast switching method, when the first core layer is handed over Change planes when determining that its own corresponding interchanger role is switched to primary role by standby role, the first core layer switch needs The corresponding software list item of a current multicast message is created in the software register locally preserved, and the first core layer switch is at this The corresponding software list item of current multicast message is established in the software register that ground preserves to be needed to undergo the process of one " flood-beta pruning ". Therefore, compared to the prior art, the multicast switching device that the embodiment of the present invention proposes, multicast switching time is shorter, multicast switching Speed;Also, the technical solution of the embodiment of the present invention realize it is simple and convenient, easy to popularize, the scope of application is wider.
The embodiment of the present invention also provides a kind of storage medium, is stored with computer executable instructions, and the computer can be held Row instruction is used to perform the method described in any of the above-described embodiment.
The embodiment of the present invention additionally provides a kind of core layer switch, including:At least one processor;And with it is described extremely The memory of few processor communication connection;Wherein, the memory storage, which has, to be performed by least one processor Instruction, described instruction is performed by least one processor, so that at least one processor is able to carry out as above-mentioned Method described in any embodiment.
Certainly, the storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer can be held The method operation that row instruction is not limited to the described above, can also carry out in the authentication method that any embodiment of the present invention is provided Relevant operation.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases Good embodiment.Based on such understanding, what technical scheme substantially in other words contributed the prior art Part can be embodied in the form of software product, which can be stored in computer-readable recording medium In, floppy disk, read-only storage (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server, or network equipment etc.) performs the method described in each embodiment of the present invention.
It is worth noting that, in the embodiment of above-mentioned searcher, included unit and module are simply according to work( Energy logic is divided, but is not limited to above-mentioned division, as long as corresponding function can be realized;In addition, each work( The specific name of energy unit is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (11)

  1. A kind of 1. multicast switching method, it is characterised in that the described method includes:
    When the first core layer switch in standby role receives the current multicast message that source access layer switches are sent, root The software register pre-saved according to current multicast message renewal;Wherein, in the software register each software list item outlet VLAN is not sky;
    When the first core layer switch determines that its own corresponding interchanger role is switched to primary role by standby role When, hardware list is configured according to the software register;
    When the first core layer switch finds the corresponding hardware table item of the current multicast message in the hardware list When, the current multicast message is forwarded to by target access layer according to the corresponding hardware table item of the current multicast message and is exchanged Machine.
  2. 2. according to the method described in claim 1, it is characterized in that, the first core layer switch is according to the current multicast The software register that message renewal pre-saves, including:
    The first core layer switch searches the corresponding software list item of the current multicast message in the software register;
    When the first core layer switch finds the corresponding software register of the current multicast message in the software list item Xiang Shi, the first core layer switch are abandoned the current multicast message;
    When the first core layer switch, not find the current multicast message in the software list item corresponding soft During part list item, it is corresponding soft that the first core layer switch creates a current multicast message in the software list item After part list item, the current multicast message is abandoned.
  3. 3. according to the method described in claim 1, it is characterized in that, protected in advance in described updated according to the current multicast message After the software register deposited, the method further includes:
    First core switch is by source IP address, purpose IP address, the entrance of each software list item in the software register VLAN is added in the hardware list in the source IP address of each hardware table item, purpose IP address, ingress VLAN;Wherein, it is each The outlet VLAN of hardware table item is sky.
  4. 4. according to the method described in claim 1, it is characterized in that, the first core layer switch determines that its own is corresponding Interchanger role is switched to primary role by standby role, including:
    The first core layer switch obtains the first priority and the of the first core layer switch according to predetermined period Second priority of two core layer switch;
    When the first priority of the first core layer switch is more than the second priority of the second core layer switch, The first core layer switch determines that its own corresponding interchanger role is switched to the primary angle by the standby role Color.
  5. 5. according to the method described in claim 1, it is characterized in that, the method further includes:
    When re-powering work after electricity under the second core layer exchange fault in primary role, institute is obtained according to predetermined period State the first priority of the first core layer switch and the second priority of the second core layer switch;
    When the first priority of the first core layer switch is more than the second priority of the second core layer switch, The second core layer switch determines that its own corresponding interchanger role is the standby role.
  6. 6. a kind of multicast switching device, it is characterised in that described device includes:Updating block, dispensing unit and retransmission unit;Its In,
    The updating block, during for receiving the current multicast message that source access layer switches are sent in standby role;Root The software register pre-saved according to current multicast message renewal;Wherein, in the software register each software list item outlet VLAN is not sky;
    The dispensing unit, for determining its own corresponding interchanger role by spare angle when the first core layer switch When color is switched to primary role, hardware list is configured according to the software register;
    The retransmission unit, for finding the current multicast report in the hardware list when the first core layer switch During literary corresponding hardware table item, the current multicast message is forwarded to according to the current multicast message corresponding hardware table item Target access layer switch.
  7. 7. device according to claim 6, it is characterised in that the updating block, specifically in the software register Search the corresponding software list item of the current multicast message;When finding the current multicast message pair in the software list item During the software list item answered, the current multicast message is abandoned;When not finding described work as in the software list item During the corresponding software list item of preceding multicast message, the corresponding software of the current multicast message is created in the software list item After list item, the current multicast message is abandoned.
  8. 8. device according to claim 6, it is characterised in that the dispensing unit, being additionally operable to will be each in the software register Source IP address, purpose IP address, the ingress VLAN of a software list item are added to the source IP of each hardware table item in the hardware list In address, purpose IP address, ingress VLAN;Wherein, the outlet VLAN of each hardware table item is sky.
  9. 9. device according to claim 6, it is characterised in that the dispensing unit, is additionally operable to obtain according to predetermined period Second priority of the first priority of the first core layer switch and the second core layer switch;When first core When first priority of layer switch is more than the second priority of the second core layer switch, its own corresponding friendship is determined The role that changes planes is switched to the primary role by the standby role.
  10. A kind of 10. core layer switch, it is characterised in that including:
    At least one processor;And
    The memory being connected with least one processor communication;Wherein,
    The memory storage has the instruction that can be performed by least one processor, and described instruction is by least one place Manage device to perform, so that at least one processor is able to carry out the method as described in claim 1 to 5 any claim.
  11. 11. a kind of storage medium, is stored with computer executable instructions, it is characterised in that the computer executable instructions are used In method of the execution as described in claim 1 to 5 any claim.
CN201711282821.9A 2017-12-07 2017-12-07 Multicast switching method, device, core layer switch and storage medium Active CN108011828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711282821.9A CN108011828B (en) 2017-12-07 2017-12-07 Multicast switching method, device, core layer switch and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711282821.9A CN108011828B (en) 2017-12-07 2017-12-07 Multicast switching method, device, core layer switch and storage medium

Publications (2)

Publication Number Publication Date
CN108011828A true CN108011828A (en) 2018-05-08
CN108011828B CN108011828B (en) 2020-09-11

Family

ID=62057344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711282821.9A Active CN108011828B (en) 2017-12-07 2017-12-07 Multicast switching method, device, core layer switch and storage medium

Country Status (1)

Country Link
CN (1) CN108011828B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901133A (en) * 2020-08-07 2020-11-06 北京东土军悦科技有限公司 Multicast switching method, device, network equipment and storage medium
CN112187578A (en) * 2020-09-28 2021-01-05 新华三信息安全技术有限公司 Table entry generation method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557342A (en) * 2009-05-18 2009-10-14 杭州华三通信技术有限公司 Forwarding method of multicast messages and router
CN104065494A (en) * 2014-07-03 2014-09-24 上海斐讯数据通信技术有限公司 Rack-type OLT equipment and method for achieving multicast VLAN therefor
US20150172173A1 (en) * 2013-12-16 2015-06-18 Fujitsu Limited Communication system, communication apparatus and path switching method
CN105306356A (en) * 2014-07-30 2016-02-03 上海博达数据通信有限公司 Method for realizing master-slave switching of multicast routing on distributed system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557342A (en) * 2009-05-18 2009-10-14 杭州华三通信技术有限公司 Forwarding method of multicast messages and router
US20150172173A1 (en) * 2013-12-16 2015-06-18 Fujitsu Limited Communication system, communication apparatus and path switching method
CN104065494A (en) * 2014-07-03 2014-09-24 上海斐讯数据通信技术有限公司 Rack-type OLT equipment and method for achieving multicast VLAN therefor
CN105306356A (en) * 2014-07-30 2016-02-03 上海博达数据通信有限公司 Method for realizing master-slave switching of multicast routing on distributed system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
祝晓龙: "《虚拟化条件下按需组播技术的探究与实现》", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901133A (en) * 2020-08-07 2020-11-06 北京东土军悦科技有限公司 Multicast switching method, device, network equipment and storage medium
CN111901133B (en) * 2020-08-07 2023-07-11 北京东土军悦科技有限公司 Multicast switching method, device, network equipment and storage medium
CN112187578A (en) * 2020-09-28 2021-01-05 新华三信息安全技术有限公司 Table entry generation method, device and equipment
CN112187578B (en) * 2020-09-28 2022-11-25 新华三信息安全技术有限公司 Table entry generation method, device and equipment

Also Published As

Publication number Publication date
CN108011828B (en) 2020-09-11

Similar Documents

Publication Publication Date Title
US9077551B2 (en) Selection of multicast router interfaces in an L2 switch connecting end hosts and routers, which is running IGMP and PIM snooping
US9647959B2 (en) Method, device, and system for creating bidirectional multicast distribution tree based on interior gateway protocol
US8064441B2 (en) Upstream label allocation on Ethernets for MP2MP LSPS
CN102142970B (en) Method for constructing multicast tree in two-layer Ethernet and network node equipment
US9237025B2 (en) Source routing in multicast transmissions
CN103346968A (en) Method and apparatus for routing multicast data
CN103841037B (en) The method and apparatus of multicast message forwarding
CN102143026B (en) Method for avoiding loop circuit in virtual two layer network
CN103873373A (en) Multicast data message forwarding method and equipment
CN102035729A (en) Multicast data forwarding method and device thereof
CN105162704A (en) Multicast replication method and device in Overlay network
CN103209134B (en) Method and equipment for multicast forwarding
CN103716169B (en) Point-to-multipoint method of realizing group broadcasting, network node and system
US20160043878A1 (en) Multicast communications method and aggregation switch
CN103609063B (en) The method and apparatus that protocol independent multicast last hop router finds
CN107547367B (en) Multicast switching method, device and machine readable storage medium
CN104702506A (en) Message transmission method, network node and message transmission system
CN108011828A (en) A kind of multicast switching method, device, core layer switch and storage medium
CN104734961B (en) Route selection method based on FC exchange networks
CN105553857B (en) A kind of IP Multicast Routings retransmission method and system
CN102843303B (en) Multicast message processing method in PIM and device
EP3968584A1 (en) Method and apparatus for implementing multicasting
CN114465942A (en) Forwarding method and system for simultaneously supporting two-layer multicast traffic and three-layer multicast traffic
CN109981302A (en) The method and apparatus of cast communication
Matsuo et al. TE-Cast: Supporting general broadcast/multicast communications in virtual networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant