Summary of the invention
Embodiments provide a kind of method sending message in multilink transparent interconnection TRILL network, be intended to the problem solving the utilance how improving link.
First aspect, a kind of method sending message in multilink transparent interconnection TRILL network, described method comprises:
Edge device obtains the first information of the first multicast source, and the described first information at least comprises the mark of described first multicast source, and described edge device is the equipment be connected with described multicast source in described TRILL network;
According to the first information of described first multicast source, determine whether described first multicast source is new multicast source;
When described first multicast source is new multicast source, broadcast transmission first Link State Packet LSP in described TRILL network, a described LSP carries the second information, described second information at least comprises the mark of described first multicast source, the mark of described edge device, multicast rerun mark, and described second information determines whether to access described first multicast source according to the mark of described first multicast source and the mark of described edge device for making the network node receiving described LSP; Described multicast mark of reruning is used to indicate described network node with the described edge device multicast transmit tree new for root node calculates;
Receive the response message of the described LSP that described network node sends, described response message is used for notifying whether described network node accesses described first multicast source, carries the mark of described network node in described response message to described edge device;
According to described response message, beta pruning is carried out to described new multicast transmit tree, the network node not accessing described first multicast source is deleted from described new multicast transmit tree;
Multicast forward table is generated, the message that described multicast forward table sends for forwarding described first multicast source according to the mark of the described multicast transmit tree after beta pruning, described edge device and the mark of described first multicast source.
In conjunction with first aspect, in the first possible implementation of first aspect, described obtain the first information of the first multicast source at edge device before, also comprise:
Described edge device receives the message that described first multicast source sends, and described message at least comprises the first information of described first multicast source;
The described first information according to described first multicast source, determine whether described first multicast source is new multicast source, comprising:
The first information of the multicast source in the first information of more described first multicast source of described edge device and the described multicast network that stored;
If the first information of described first multicast source is not stored in described edge device, determine that described first multicast source is new multicast source;
If the first information of described first multicast source is stored in described edge device, determine that described first multicast source is not new multicast source.
In conjunction with the first possible implementation of first aspect or first aspect, in the implementation that the second of first aspect is possible, after the mark generation multicast forward table of the described mark according to the described multicast transmit tree after beta pruning, described edge device, described first multicast source, described method also comprises:
Whether described edge device statistics receives the message that described first multicast source sends within the time pre-set;
When described edge device does not receive the message of described first multicast source transmission, determine that described first multicast source does not access described edge device;
Broadcast transmission the 2nd LSP in described TRILL network, described 2nd LSP are for notifying that described network node deletes described new multicast transmit tree.
In conjunction with first aspect or the first possible implementation of first aspect or the possible implementation of the second of first aspect, in the third possible implementation of first aspect, the mark of described first multicast source comprises mark and the accessing virtual LAN mark of multicast group.
Second aspect, a kind of equipment sending message in multilink transparent interconnection TRILL network, described equipment comprises:
Acquiring unit, for obtaining the first information of the first multicast source, the described first information at least comprises the mark of described first multicast source, and described edge device is the equipment be connected with described multicast source in described TRILL network;
Determining unit, for the first information according to described first multicast source, determines whether described first multicast source is new multicast source;
Transmitting element, for when described first multicast source is new multicast source, broadcast transmission first Link State Packet LSP in described TRILL network, the second information is carried in a described LSP, described second information at least comprises the mark of described first multicast source, the mark of described edge device, multicast rerun mark, and described second information determines whether to access described first multicast source according to the mark of described first multicast source and the mark of described edge device for making the network node receiving described LSP; Described multicast mark of reruning is used to indicate described network node with the described edge device multicast transmit tree new for root node calculates;
First receiving element, for receiving the response message of the described LSP that described network node sends, described response message is used for notifying whether described network node accesses described first multicast source, carries the mark of described network node in described response message to described edge device;
Delete cells, for carrying out beta pruning according to described response message to described new multicast transmit tree, deletes the network node not accessing described first multicast source from described new multicast transmit tree;
Generation unit, for generating multicast forward table according to the mark of the described multicast transmit tree after beta pruning, described edge device and the mark of described first multicast source, the message that described multicast forward table sends for forwarding described first multicast source.
In conjunction with second aspect, in the first possible implementation of the first aspect of second aspect, described equipment also comprises:
Second receiving element, for receiving the message that described first multicast source sends, described message at least comprises the first information of described first multicast source;
Described determining unit, for:
The first information of the multicast source in the first information of more described first multicast source and the described multicast network that stored;
If the first information of described first multicast source is not stored in described edge device, determine that described first multicast source is new multicast source;
If the first information of described first multicast source is stored in described edge device, determine that described first multicast source is not new multicast source.
In conjunction with the first possible implementation of second aspect or second aspect, in the implementation that the second of second aspect is possible, described equipment also comprises:
Statistic unit, for adding up the message whether receiving described first multicast source transmission within the time pre-set;
Determining unit, also for do not receive at described edge device described first multicast source send message, determine that described first multicast source does not access described edge device;
Transmitting element, also for broadcast transmission in described TRILL network the 2nd LSP, described 2nd LSP is for notifying that described network node deletes described new multicast transmit tree.
In conjunction with second aspect or the first possible implementation of second aspect or the possible implementation of the second of second aspect, in the third possible implementation of second aspect, the mark of described first multicast source comprises mark and the accessing virtual LAN mark of multicast group.
By edge device, the present invention judges whether described multicast source is new multicast source, if, then send LSP to all nodes in described TRILL network, the new multicast transmit tree that it is root that all nodes notifying in described TRILL network regenerate with described edge device, thus when achieving that flux of multicast is more in described TRILL network, utilize shortest path forwarding multicasting message, improve the utilance of network link.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
A kind of scene schematic diagram sending message in multilink transparent interconnection TRILL network that the embodiment of the present invention provides with reference to figure 1, Fig. 1.
Edge device 101 connects multicast source and TRILL network, and described edge device 101 is the network nodes in described TRILL network.Edge device 101 in described TRILL network receives the message that described multicast source sends, and forwards described message to the multicast user in described TRILL network.
By edge device 101, the present invention judges whether described multicast source is new multicast source, if, then send LSP to all nodes in described TRILL network, the new multicast transmit tree that it is root that all nodes notifying in described TRILL network regenerate with described edge device, thus when achieving that flux of multicast is more in described TRILL network, utilize shortest path forwarding multicasting message, improve the utilance of network link.
A kind of method flow diagram sending message in multilink transparent interconnection TRILL network that the embodiment of the present invention provides with reference to figure 2, Fig. 2.As shown in Figure 2, said method comprising the steps of:
Step 201, edge device obtains the first information of multicast source, and the described first information at least comprises the mark of described multicast source, and described edge device is the equipment be connected with described multicast source in described TRILL network;
Wherein, the mark of described multicast source comprises mark and the VLAN (English: VirtualLocal Area Network of multicast group, abbreviation: VLAN) identify, the mark of described multicast group can be that multicast ip address or multicast media access control are (English: Media Access Control, abbreviation: MAC) address, described access VLAN refers to the VLAN that described multicast source transmission message uses, and the mark of described multicast group and described access VLAN mark determine a unique described multicast source.
Step 202, according to the first information of described multicast source, determines whether described multicast source is new multicast source;
Alternatively, described obtain the first information of the first multicast source at edge device before, also comprise:
Described edge device receives the message that described first multicast source sends, and described message at least comprises the first information of described first multicast source;
The described first information according to described first multicast source, determine whether described first multicast source is new multicast source, comprising:
The first information of the multicast source in the first information of more described first multicast source of described edge device and the described multicast network that stored;
If the first information of described first multicast source is not stored in described edge device, determine that described first multicast source is new multicast source;
If the first information of described first multicast source is stored in described edge device, determine that described first multicast source is not new multicast source.
Step 203, when described first multicast source is new multicast source, in described TRILL network, broadcast transmission first Link State Packet is (English: Link State Packet, abbreviation: LSP), the second information is carried in a described LSP, described second information at least comprises the mark of described multicast source, the mark of described edge device, multicast rerun mark, and described second information determines whether to access described multicast source according to the mark of the mark of described multicast source and described edge device for making the network node receiving described LSP; Described multicast mark of reruning is used to indicate described network node with the described edge device multicast transmit tree new for root node calculates;
Step 204, receives the response message of the described LSP that described network node sends, and described response message is used for notifying whether described network node accesses described first multicast source, carries the mark of described network node in described response message to described edge device;
Concrete, described network node determines whether to need to access described first multicast source according to the mark of described first multicast source carried in a LSP.If so, then send the response message of a LSP to described edge device, and in described response message, carry the described information of the first multicast source of access and the mark of this network node.If not, then send the response message of a LSP to described edge device, and carry in described response message and do not access the described information of the first multicast source and the mark of this network node.
Step 205, carries out beta pruning according in the response message of a described LSP to described new multicast transmit tree, is deleted by the network node not accessing described first multicast source from described new multicast transmit tree;
Concrete, described edge device carries out beta pruning according to the mark not accessing the network node of described first multicast source in the response message of a described LSP to described new multicast transmit tree, is deleted the network node not accessing described first multicast source in described new multicast transmit tree.
Step 206, generate multicast forward table according to the mark of the described multicast transmit tree after beta pruning, described edge device and the mark of described first multicast source, described multicast forward table is used for the message sent to the first multicast source described in described target node.
As a kind of optional embodiment, after the mark generation multicast forward table of the described mark according to the described multicast transmit tree after beta pruning, described edge device, described first multicast source, described method also comprises:
Whether described edge device statistics receives the message that described first multicast source sends within the time pre-set;
When described edge device does not receive the message of described first multicast source transmission, determine that described first multicast source does not access described edge device;
Broadcast transmission the 2nd LSP in described TRILL network, described 2nd LSP are for notifying that described network node deletes described new multicast transmit tree.
By edge device, the present invention judges whether described multicast source is new multicast source, if, then send LSP to all nodes in described TRILL network, the new multicast transmit tree that it is root that all nodes notifying in described TRILL network regenerate with described edge device, thus when achieving that flux of multicast is more in described TRILL network, utilize shortest path forwarding multicasting message, improve the utilance of network link.
A kind of equipment structure chart sending message in multilink transparent interconnection TRILL network that the embodiment of the present invention provides with reference to figure 3, Fig. 3.As shown in Figure 3, described equipment comprises with lower unit:
Acquiring unit 301, for obtaining the first information of the first multicast source, the described first information at least comprises the mark of described first multicast source, and described edge device is the equipment be connected with described multicast source in described TRILL network;
Wherein, the mark of described first multicast source comprises the mark of multicast group and accessing virtual LAN VLAN identifies.The mark of described multicast group can be multicast IP or multicast MAC, and described access VLAN refers to the VLAN that described multicast source transmission message uses, and the mark of described multicast group and described access VLAN determine a unique described multicast source.
Determining unit 302, for the first information according to described first multicast source, determines whether described first multicast source is new multicast source;
Alternatively, described equipment also comprises:
Second receiving element, for receiving the message that described first multicast source sends, described message at least comprises the first information of described first multicast source;
Described determining unit 302, for:
The first information of the multicast source in the first information of more described first multicast source and the described multicast network that stored;
If the first information of described first multicast source is not stored in described edge device, determine that described first multicast source is new multicast source;
If the first information of described first multicast source is stored in described edge device, determine that described first multicast source is not new multicast source.
Transmitting element 303, for when described first multicast source is new multicast source, broadcast transmission first Link State Packet LSP in described TRILL network, the second information is carried in a described LSP, described second information at least comprises the mark of described first multicast source, the mark of described edge device, multicast rerun mark, and described second information determines whether to access described first multicast source according to the mark of described first multicast source and the mark of described edge device for making the network node receiving described LSP; Described multicast mark of reruning is used to indicate described network node with the described edge device multicast transmit tree new for root node calculates;
First receiving element 304, for receiving the response message of the described LSP that described network node sends, described response message is used for indicating described network node whether to access described first multicast source to described edge device, carries the mark of described network node in described response message;
Concrete, described network node determines whether to need to access described first multicast source according to the mark of described first multicast source carried in a LSP.If so, then send the response message of a LSP to described edge device, and carry in described response message and determine the described information of the first multicast source of access and the mark of this network node.If not, then send the response message of a LSP to described edge device, and carry in described response message and do not access the described information of the first multicast source and the mark of this network node.
Delete cells 305, for carrying out beta pruning according in the response message of a described LSP to described new multicast transmit tree, deletes the network node not accessing described first multicast source from described new multicast transmit tree;
Concrete, described edge device carries out beta pruning according to the mark not accessing the network node of described first multicast source in the response message of a described LSP to described new multicast transmit tree, is deleted the network node not accessing described first multicast source in described new multicast transmit tree.
Generation unit 306, for generating multicast forward table according to the mark of the described multicast transmit tree after beta pruning, described edge device and the mark of described first multicast source, the message that described multicast forward table sends for forwarding described first multicast source.
As a kind of optional embodiment, described equipment also comprises:
Statistic unit, for adding up the message whether receiving described first multicast source transmission within the time pre-set;
Determining unit 302, also for do not receive at described edge device described first multicast source send message, determine that described first multicast source does not access described edge device;
Transmitting element 303, also for broadcast transmission in described TRILL network the 2nd LSP, described 2nd LSP is for notifying that described network node deletes described new multicast transmit tree.
By edge device, the present invention judges whether described multicast source is new multicast source, if, then send LSP to all nodes in described TRILL network, the new multicast transmit tree that it is root that all nodes notifying in described TRILL network regenerate with described edge device, thus when achieving that flux of multicast is more in described TRILL network, utilize shortest path forwarding multicasting message, improve the utilance of network link.
Fig. 4 is the structure drawing of device of a kind of edge device that the embodiment of the present invention provides.Be a kind of edge device 400 that the embodiment of the present invention provides with reference to figure 4, Fig. 4, described edge device 400 comprises:
Processor (English: processor) 401, communication interface (English: CommunicationsInterface) 402, and memory (English: memory) 403, bus 404.
Processor 401, communication interface 402, memory 403 completes mutual communication by bus 404.
Communication interface 402, for communicating with other equipment;
Processor 401, for executive program.
Particularly, program can comprise program code, and described program code comprises computer-managed instruction.
Processor 401 may be that a central processing unit is (English: central processing unit, abbreviation: CPU), or specific integrated circuit is (English: Application Specific Integrated Circuit, abbreviation: ASIC), or be configured to the one or more integrated circuits implementing the embodiment of the present invention.
Memory 403, for storage program.Memory 403 can be that volatile memory is (English: volatile memory), such as random access memory is (English: random-access memory, abbreviation: RAM), or nonvolatile memory is (English: non-volatile memory), such as read-only memory is (English: read-only memory, abbreviation: ROM), flash memory is (English: flashmemory), hard disk is (English: hard disk drive, abbreviation: HDD) or solid state hard disc (English: solid-state drive, abbreviation: SSD).The program command that processor 401 stores according to memory 403, performs following methods:
Edge device obtains the first information of the first multicast source, and the described first information at least comprises the mark of described first multicast source, the equipment that described edge device connects for multicast source described in described TRILL network neutralization first;
According to the first information of described first multicast source, determine whether described first multicast source is new multicast source;
When described first multicast source is new multicast source, broadcast transmission first Link State Packet LSP in described TRILL network, a described LSP carries the second information, described second information at least comprises the mark of described first multicast source, the mark of described edge device, multicast rerun mark, and described second information determines whether to access described first multicast source according to the mark of described first multicast source and the mark of described edge device for making the network node receiving described LSP; Described multicast mark of reruning is used to indicate described network node with the described edge device multicast transmit tree new for root node calculates;
Receive the response message of the described LSP that described network node sends, described response message is used for notifying whether described network node accesses described first multicast source, carries the mark of described network node in described response message to described edge device;
According to described response message, beta pruning is carried out to described new multicast transmit tree, the network node not accessing described first multicast source is deleted from described new multicast transmit tree;
Multicast forward table is generated, the message that described multicast forward table sends for forwarding described first multicast source according to the mark of the described multicast transmit tree after beta pruning, described edge device and the mark of described first multicast source.
Described obtain the first information of the first multicast source at edge device before, also comprise:
Described edge device receives the message that described first multicast source sends, and described message at least comprises the first information of described first multicast source;
The described first information according to described first multicast source, determine whether described first multicast source is new multicast source, comprising:
The first information of the multicast source in the first information of more described first multicast source of described edge device and the described multicast network that stored;
If the first information of described first multicast source is not stored in described edge device, determine that described first multicast source is new multicast source;
If the first information of described first multicast source is stored in described edge device, determine that described first multicast source is not new multicast source.
After the mark generation multicast forward table of the described mark according to the described multicast transmit tree after beta pruning, described edge device, described first multicast source, described method also comprises:
Whether described edge device statistics receives the message that described first multicast source sends within the time pre-set;
When described edge device does not receive the message of described first multicast source transmission, determine that described first multicast source does not access described edge device;
Broadcast transmission the 2nd LSP in described TRILL network, described 2nd LSP are for notifying that described network node deletes described new multicast transmit tree.
The mark of described first multicast source comprises mark and the accessing virtual LAN mark of multicast group.
The invention provides a kind of equipment sending message in multilink transparent interconnection TRILL network, judge whether described multicast source is new multicast source by edge device, if, then send LSP to all nodes in described TRILL network, the new multicast transmit tree that it is root that all nodes notifying in described TRILL network regenerate with described edge device, thus when achieving that flux of multicast is more in described TRILL network, utilize shortest path forwarding multicasting message, improve the utilance of network link.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.