CN104796340B - A kind of multicast data transmission method and equipment - Google Patents

A kind of multicast data transmission method and equipment Download PDF

Info

Publication number
CN104796340B
CN104796340B CN201410029674.4A CN201410029674A CN104796340B CN 104796340 B CN104796340 B CN 104796340B CN 201410029674 A CN201410029674 A CN 201410029674A CN 104796340 B CN104796340 B CN 104796340B
Authority
CN
China
Prior art keywords
multicast
openflow
network equipment
openflow network
flow entry
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.)
Active
Application number
CN201410029674.4A
Other languages
Chinese (zh)
Other versions
CN104796340A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201410029674.4A priority Critical patent/CN104796340B/en
Publication of CN104796340A publication Critical patent/CN104796340A/en
Application granted granted Critical
Publication of CN104796340B publication Critical patent/CN104796340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of multicast data transmission method and equipment, this method includes:OpenFlow controller receives the multicast packet sent on the first OpenFlow network equipment, and multicast destination address is parsed from the multicast packet;In multicast list corresponding without the maintenance multicast destination address on the OpenFlow controller, the OpenFlow controller creates the corresponding multicast list of the multicast destination address;The OpenFlow controller sends the first flow entry for carrying the multicast destination address to the first OpenFlow network equipment, and first flow entry is used to indicate the first OpenFlow network equipment and abandons the multicast packet that the purpose IP address received is the multicast destination address.In the embodiment of the present invention, the process performance of OpenFlow controller can be improved to avoid the first OpenFlow network equipment by all transmitting multicast datas to OpenFlow controller.

Description

A kind of multicast data transmission method and equipment
Technical field
The present invention relates to field of communication technology more particularly to a kind of multicast data transmission methods and equipment.
Background technique
OpenFlow is SDN as new network exchange model(Software Defined Network, software definition Network)A communication interface standard between controller and forwarding defined in framework, basic thought are specially:Separation control Plane processed and data plane, are communicated using standard agreement therebetween, and data plane is forwarded by the way of based on stream. As shown in Figure 1, the networking schematic diagram for OpenFlow network specifically includes OpenFlow network and sets in OpenFlow network It is standby(Such as OpenFlow interchanger), OpenFlow controller(OpenFlow Controller)And channel OpenFlow etc..
Wherein, the channel OpenFlow is between the OpenFlow network equipment and OpenFlow controller, by matching in advance The exit passageway set(Based on SSL(Secure Sockets Layer, Secure Socket Layer))It securely communicates.OpenFlow control Device processed is OpenFlow network-based control center, and possible running experiment program or third party develop software, and for flow table It is operated, flow table is generated according to user configuration or dynamic operation agreement, and send the OpenFlow network equipment for flow table. The OpenFlow network equipment instructs Message processing according to flow table for receiving the flow table that OpenFlow controller issues;Wherein, It include a series of flow entrys for matching message in flow table, the message for entering the OpenFlow network equipment flows The matching of list item;Corresponding actions processing is carried out if successful match, is such as forwarded to multiple ports or discarding;If matching is not It is successful then OpenFlow controller is forwarded to by the channel OpenFlow, it is handled by OpenFlow controller;On the other hand, The OpenFlow network equipment is actively to the state and event of OpenFlow controller report itself, such as port UP(Normally)/DOWN (Failure).
For example, to create flow entry on the OpenFlow network equipment as follows for OpenFlow controller:[destination IP 5.6.7.8, It is forwarded to port1];Based on this flow entry, the OpenFlow network equipment is receiving the data traffic that purpose IP address is 5.6.7.8 When, it can be matched to above-mentioned flow entry, and data traffic is forwarded to port1.
In the prior art, for multicast packet, OpenFlow controller can create flow table on the OpenFlow network equipment , there are multicast source devices relevant information and recipient's device-dependent messages in the flow entry, in no recipient's equipment phase In the case where closing information, OpenFlow controller will not issue flow entry on the OpenFlow network equipment, at this point, OpenFlow The network equipment can not be matched to corresponding flow entry when receiving multicast packet, and OpenFlow network equipment needs pass through The multicast packet received is forwarded to OpenFlow controller by the channel OpenFlow, and all multicast packets are forwarded to OpenFlow controller is handled, and is caused biggish impact to OpenFlow controller, is reduced OpenFlow controller Process performance.
Summary of the invention
The embodiment of the present invention provides a kind of multicast data transmission method and equipment, turns to avoid by all multicast packets It is dealt into OpenFlow controller to be handled, improves the process performance of OpenFlow controller.
In order to achieve the above object, the embodiment of the present invention provides a kind of multicast data transmission method, applied to including OpenFlow controller, the OpenFlow network equipment, multicast source devices and recipient's equipment network in, the method packet It includes:The OpenFlow controller receives the multicast packet sent on the first OpenFlow network equipment, and from the multicast packet In parse multicast destination address, wherein the first OpenFlow network equipment is received from corresponding multicast source devices The multicast packet;In multicast list corresponding without the maintenance multicast destination address on the OpenFlow controller, The OpenFlow controller creates the corresponding multicast list of the multicast destination address;The OpenFlow controller is to described The first OpenFlow network equipment sends the first flow entry for carrying the multicast destination address, and first flow entry is used for Indicate that the first OpenFlow network equipment abandons the multicast packet that the purpose IP address received is the multicast destination address.
Before the OpenFlow controller receives the multicast packet sent on the first OpenFlow network equipment, the method Further include:The OpenFlow controller sends second to the corresponding first OpenFlow network equipment of the multicast source devices List item;Wherein, the priority of first flow entry is higher than the priority of second flow entry, and second flow entry is used It is described in indicating the first OpenFlow network equipment for the multicast packet that purpose IP address is multicast address and being sent to OpenFlow controller.
The OpenFlow controller creates the process of the corresponding multicast list of the multicast destination address, specifically includes: The first OpenFlow network equipment is received the port of the multicast packet as the first inbound port by OpenFlow controller, And the multicast destination address pair is created using the multicast destination address, the first OpenFlow network equipment and the first inbound port The multicast list answered;Wherein, the content recorded in the multicast list includes the first OpenFlow network equipment, multicast mesh Address, the first inbound port.
The method further includes:The OpenFlow controller is that the multicast list starts the first aging timing Device;When preset time before first ageing timer time-out, the OpenFlow controller is to described first The OpenFlow network equipment sends the third flow entry for carrying the multicast destination address;Wherein, the third flow entry is excellent First grade is higher than the priority of first flow entry, and the third flow entry is used to indicate the first OpenFlow network and sets It is standby that the multicast packet that the purpose IP address received is the multicast destination address is sent to the OpenFlow controller;Institute Before stating the first ageing timer time-out, if it is the multicast destination that the OpenFlow controller, which receives purpose IP address, The multicast packet of location, the OpenFlow controller refresh the first ageing timer of the corresponding multicast list of the multicast packet Ageing time, and indicate that the first OpenFlow network equipment removes the third flow entry;It is fixed in first aging When device time-out when, the OpenFlow controller deletes the corresponding multicast list of first ageing timer.
The method further includes:The OpenFlow controller is to recipient's equipment corresponding second The OpenFlow network equipment sends the 4th flow entry and the 5th flow entry;Wherein, the 4th flow entry is used to indicate described The 2nd OpenFlow network equipment sends Internet igmpinternet IGMP general polling message, institute to recipient's equipment State the 5th flow entry be used to indicate the 2nd OpenFlow network equipment will from the IGMP of recipient's equipment be added report Text is sent to the OpenFlow controller;The OpenFlow controller, which receives, comes from the 2nd OpenFlow network equipment IGMP join message, from the IGMP join message in parse the multicast destination that recipient's device request is added Location, and the 2nd OpenFlow network equipment is received into port that the IGMP joins message as the second inbound port, and benefit It is corresponding that the multicast destination address is created with the multicast destination address, the 2nd OpenFlow network equipment and the second inbound port List item is added in multicast;Wherein, it includes the 2nd OpenFlow network equipment, group that the content recorded in list item, which is added, in the multicast Broadcast destination address, the second inbound port.
The method further includes:The OpenFlow controller is that multicast addition list item the second aging of starting is fixed When device, and the OpenFlow controller be the 4th flow entry start period transmission timer;It is fixed to send in the period When device time-out when, the OpenFlow controller again to the 2nd OpenFlow network equipment send the 4th flow entry, and Restart the period transmission timer;Before the second ageing timer time-out, if the OpenFlow is controlled Device is received for requesting the IGMP that the multicast destination address is added to join message, then described in the OpenFlow controller refreshing IGMP join message corresponding multicast be added list item the second ageing timer ageing time;In second ageing timer When overtime, the OpenFlow controller deletes the corresponding multicast of second ageing timer and list item is added.
The method further includes:List item is added according to the multicast list and multicast in the OpenFlow controller, It obtains the multicast source devices and sends multicast packet to the forward-path of recipient's equipment, determine each in the forward-path The OpenFlow network equipment, each OpenFlow network equipment into the forward-path issue corresponding flow entry, with guidance Each OpenFlow network equipment is based on corresponding flow entry and is forwarded to the multicast packet.
The OpenFlow controller obtains the multicast source devices transmission multicast packet and turns to recipient's equipment Path is sent out, is specifically included:The OpenFlow controller is added list item using the multicast list and multicast and generates multicast forwarding List item, the multicast forwarding list item include multicast destination address, the first OpenFlow network equipment, the first inbound port, second The OpenFlow network equipment, the second inbound port, the first OpenFlow network equipment and the 2nd OpenFlow network equipment it Between each OpenFlow network equipment for passing through and port;The OpenFlow controller is obtained using the multicast forwarding list item The multicast source devices send multicast packet to the forward-path of recipient's equipment.
The embodiment of the present invention provides a kind of OpenFlow controller, be applied to including the OpenFlow controller, In the network of the OpenFlow network equipment, multicast source devices and recipient's equipment, which is characterized in that the OpenFlow control Implement body includes:Receiving module, for receiving the multicast packet sent on the first OpenFlow network equipment, wherein described first The OpenFlow network equipment receives the multicast packet from corresponding multicast source devices;Maintenance module, for from described group Multicast destination address is parsed in multicast data, and without safeguarding that the multicast destination address is corresponding on this OpenFlow controller Multicast list when, create the corresponding multicast list of the multicast destination address;Sending module is used for described first The OpenFlow network equipment sends the first flow entry for carrying the multicast destination address, and first flow entry is used to indicate The first OpenFlow network equipment abandons the multicast packet that the purpose IP address received is the multicast destination address.
The sending module is also used to send second to the corresponding first OpenFlow network equipment of the multicast source devices Flow entry;Wherein, the priority of first flow entry is higher than the priority of second flow entry, and second flow entry Be used to indicate the first OpenFlow network equipment multicast packet that purpose IP address is multicast address is sent to it is described OpenFlow controller.
The maintenance module, specifically for the first OpenFlow network equipment is received the port of the multicast packet as First inbound port, and described group is created using the multicast destination address, the first OpenFlow network equipment and the first inbound port Broadcast the corresponding multicast list of destination address;Wherein, the content recorded in the multicast list includes the first OpenFlow net Network equipment, multicast destination address, the first inbound port.
The maintenance module is further used for starting the first ageing timer for the multicast list;It is old described first Before changing timer expiry, if receiving the multicast packet that purpose IP address is the multicast destination address, refresh described group The ageing time of first ageing timer of the corresponding multicast list of multicast data, and indicate the first OpenFlow network equipment Remove the third flow entry;In the first ageing timer time-out, the corresponding institute of first ageing timer is deleted State multicast list;The sending module, when the preset time being also used to before first ageing timer time-out, to described The first OpenFlow network equipment sends the third flow entry for carrying the multicast destination address;Wherein, the third flow entry Priority be higher than the priority of first flow entry, and the third flow entry is used to indicate the first OpenFlow net The multicast packet that the purpose IP address received is the multicast destination address is sent to the OpenFlow controller by network equipment.
The sending module is also used to send the 4th to the corresponding 2nd OpenFlow network equipment of recipient's equipment Flow entry and the 5th flow entry;Wherein, the 4th flow entry is used to indicate the 2nd OpenFlow network equipment to institute It states recipient's equipment and sends Internet igmpinternet IGMP general polling message, the 5th flow entry is used to indicate described The 2nd OpenFlow network equipment, which joins message the IGMP from recipient's equipment, is sent to the OpenFlow control Device;The receiving module is also used to receive the IGMP from the 2nd OpenFlow network equipment and joins message, the IGMP The multicast destination address of recipient's device request addition is carried in joining message;The maintenance module is also used to from described IGMP parses the multicast destination address that recipient's device request is added in joining message, and by the 2nd OpenFlow The network equipment receives port that the IGMP joins message as the second inbound port, and utilizes the multicast destination address, second The OpenFlow network equipment and the second inbound port create the corresponding multicast of the multicast destination address and list item are added;Wherein, described It includes the 2nd OpenFlow network equipment, multicast destination address, the second inbound port that the content recorded in list item, which is added, in multicast.
The maintenance module is further used for that list item the second ageing timer of starting is added for the multicast, and is described 4th flow entry starts period transmission timer;The sending module is also used in the period transmission timer time-out, weight The 4th flow entry newly is sent to the 2nd OpenFlow network equipment, and restarts the period transmission timer;It is described Maintenance module is further used for before the second ageing timer time-out, if received for requesting that the multicast is added The IGMP of destination address joins message, then refreshes join message corresponding multicast of the IGMP and the second aging timing of list item is added The ageing time of device;In the second ageing timer time-out, the corresponding multicast of second ageing timer is deleted List item is added.
The sending module is also used to that list item is added according to the multicast list and multicast, obtains the multicast source devices Multicast packet is sent to the forward-path of recipient's equipment, determines each OpenFlow network equipment in the forward-path, Each OpenFlow network equipment into the forward-path issues corresponding flow entry, to instruct each OpenFlow network equipment The multicast packet is forwarded based on corresponding flow entry.
The maintenance module is also used to that list item generation multicast forwarding list item, institute are added using the multicast list and multicast Stating multicast forwarding list item includes multicast destination address, the first OpenFlow network equipment, the first inbound port, the 2nd OpenFlow net Pass through between network equipment, the second inbound port, the first OpenFlow network equipment and the 2nd OpenFlow network equipment each The OpenFlow network equipment and port;
The sending module is further used for obtaining the multicast source devices transmission multicast using the multicast forwarding list item Data are to the forward-path of recipient's equipment, and each OpenFlow network equipment into the forward-path issues correspondence Flow entry, with instruct each OpenFlow network equipment be based on corresponding flow entry the multicast packet is forwarded.
Compared with prior art, the embodiment of the present invention has at least the following advantages:In the embodiment of the present invention, do not receiving In the case where person's device-dependent message, OpenFlow controller can generate to be carried in the multicast packet of multicast source devices transmission The corresponding multicast list of multicast destination address, and send to carry to the corresponding first OpenFlow network equipment of multicast source devices and be somebody's turn to do First flow entry of multicast destination address, to instruct the first OpenFlow network equipment to abandon the mesh received by the first flow entry IP address be the multicast destination address all multicast packets, to avoid the first OpenFlow network equipment by all groups Multicast data is forwarded to OpenFlow controller and is handled, and improves the process performance of OpenFlow controller.
Detailed description of the invention
Fig. 1 is the networking schematic diagram of OpenFlow network in the prior art;
Fig. 2 is the application scenarios schematic diagram of the embodiment of the present invention
Fig. 3 and Fig. 4 is a kind of multicast data transmission method flow diagram provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of OpenFlow controller provided in an embodiment of the present invention.
Specific embodiment
Aiming at the problems existing in the prior art, the embodiment of the present invention provides a kind of multicast data transmission method, this method Applied to include OpenFlow controller, the OpenFlow network equipment, multicast source devices and recipient's equipment network in, with Fig. 2 is the application scenarios schematic diagram of the embodiment of the present invention, and the OpenFlow network equipment 1 is connected with multicast source devices, OpenFlow The network equipment 2 is connected with recipient's equipment.
As shown in figure 3, the multicast data transmission method proposed in the embodiment of the present invention includes the following steps:
Step 301, OpenFlow controller receives the multicast packet that send on the first OpenFlow network equipment, and from the group Multicast destination address is parsed in multicast data, wherein the first OpenFlow network equipment is set from corresponding multicast source It is standby to receive the multicast packet.
Step 302, when not safeguarding the corresponding multicast list of the multicast destination address on OpenFlow controller, OpenFlow controller creates the corresponding multicast list of multicast destination address.
Step 303, OpenFlow controller sends to the first OpenFlow network equipment and carries the multicast destination address First flow entry;Wherein, which is used to indicate the first OpenFlow network equipment with abandoning the destination IP received Location is the multicast packet of the multicast destination address.
OpenFlow controller is by sending the first flow entry to the first OpenFlow network equipment, to pass through the first flow table Item the first OpenFlow network equipment of guidance abandons the multicast packet that the purpose IP address received is corresponding multicast destination address, from And in the case where there is no recipient's device-dependent message namely multicast source being added without multicast user, OpenFlow controller First-class list item can be issued on the first OpenFlow network equipment, so that the first OpenFlow network equipment is receiving multicast number According to when, the multicast packet that the purpose IP address that receives is corresponding multicast destination address is abandoned based on the first flow entry, avoids first All multicast packets are forwarded to OpenFlow controller and handled by the OpenFlow network equipment, improve OpenFlow control The process performance of device processed.
Below in conjunction with application scenarios shown in Fig. 2, to the multicast data transmission method that the embodiment of the present invention proposes carry out into The explanation of one step.As shown in figure 4, the multicast data transmission method includes the following steps:
Step 401, OpenFlow controller sends second to the corresponding first OpenFlow network equipment of multicast source devices Flow entry;Wherein, it is multicast address which, which is used to indicate the first OpenFlow network equipment for purpose IP address, Multicast packet is sent to OpenFlow controller.
There are in the OpenFlow network of multicast source devices and recipient's equipment, OpenFlow controller passes through The channel OpenFlow is connect with all OpenFlow network equipments respectively, and OpenFlow controller can know OpenFlow The topology situation of network is based on this, and OpenFlow controller can send second to the OpenFlow network equipment at all edges Flow entry;Due to including that the corresponding first OpenFlow network of multicast source devices is set in the OpenFlow network equipment at these edges It is standby, therefore the first OpenFlow network equipment can receive the second flow entry from OpenFlow controller.
Under application scenarios shown in Fig. 2, the OpenFlow network equipment connecting with multicast source devices is OpenFlow net Network equipment 1, the OpenFlow network equipment connecting with recipient's equipment are the OpenFlow network equipment 2.OpenFlow controller By sending the second flow entry to OpenFlow network equipment 1-4, so that the OpenFlow network connecting with multicast source devices is set Standby 1 can receive second flow entry.In addition, when issuing the second flow entry control OpenFlow can also be passed through by administrator Controller is issued to the specific OpenFlow network equipment, is not particularly limited to this present embodiment.
The corresponding first OpenFlow network equipment of multicast source devices refers to the OpenFlow net connecting with multicast source devices Network equipment, the first OpenFlow network equipment is the OpenFlow network equipment 1 in Fig. 2.
It should be noted that in OpenFlow network, if OpenFlow controller is not in the OpenFlow network equipment On issue any flow entry, then the OpenFlow network equipment is when receiving multicast packet, also due to flow entry can not be matched to, And OpenFlow controller will be sent on the multicast packet received, and therefore, even if step 401 is not executed in the embodiment of the present invention, I.e. OpenFlow controller does not send the second flow entry, the first OpenFlow network equipment to the first OpenFlow network equipment The multicast packet that purpose IP address is multicast address can be sent to OpenFlow controller.Therefore, above-mentioned steps 401 are not The steps necessary of the embodiment of the present invention is illustrated in the embodiment of the present invention for executing above-mentioned steps 401.
In the embodiment of the present invention, OpenFlow controller is sending the second flow entry to the first OpenFlow network equipment When, OpenFlow controller, which is specifically as follows, is sent to the first OpenFlow network equipment for packet-in message, should Packet-in message is the second flow entry.
It by purpose IP address is multicast address to enable the second flow entry to instruct the first OpenFlow network equipment Multicast packet is sent to OpenFlow controller, then the rule of second flow entry is:Purpose IP address is multicast address(I.e. 224.0.1.0-239.255.255.255)Multicast packet outgoing interface be the first OpenFlow network equipment on connect The interface of OpenFlow controller.When the first OpenFlow network equipment maintains above-mentioned second flow entry in the flow table of itself It later, is multicast address when receiving purpose IP address(That is 224.0.1.0-239.255.255.255)Multicast packet after, utilize The outgoing interface(That is the interface of OpenFlow controller is connected on the first OpenFlow network equipment)The multicast packet is sent, thus The multicast packet is sent to OpenFlow controller.
For example, OpenFlow controller sends the second flow entry, the rule of second flow entry to the OpenFlow network equipment 1 Then it is:The outgoing interface for the multicast packet that purpose IP address is 224.0.1.0-239.255.255.255 is interface 3.Later, The OpenFlow network equipment 1 is after receiving the multicast packet that purpose IP address is 224.0.1.0, using interface 3 by the multicast number According to being sent to OpenFlow controller.
Step 402, OpenFlow controller receives the multicast packet that send on the first OpenFlow network equipment, and from the group Multicast destination address is parsed in multicast data.
Wherein, when multicast source devices send multicast packet, the first OpenFlow network equipment is receiving the multicast packet Afterwards, it can be matched to the second flow entry, so that the multicast packet is sent to OpenFlow controller.OpenFlow controller is being received To after multicast packet, due to that can carry multicast destination address in the multicast packet, OpenFlow controller can directly from Multicast destination address is parsed in multicast packet.
Step 403, when not safeguarding the corresponding multicast list of the multicast destination address on OpenFlow controller, OpenFlow controller creates the corresponding multicast list of multicast destination address.When maintenance has the group on OpenFlow controller When broadcasting the corresponding multicast list of destination address, when OpenFlow controller will refresh the aging of the ageing timer of the multicast list Between, which illustrates in the next steps.
Wherein, the multicast list, that is, the list item of multicast source devices relevant information is had recorded, such as may include group The corresponding multicast group address of source device is broadcast, the corresponding OpenFlow network equipment receives the interface of the multicast packet of multicast source devices Etc. information;Based on the multicast list, OpenFlow controller can send multicast to other edge OpenFlow network equipments and be added Information, so that the corresponding multicast group of the multicast source devices can be added in the user equipment connected with the edge OpenFlow network equipment. It will illustrate below.
In a kind of preferred embodiment of the embodiment of the present invention, the content recorded in the multicast list includes but is not limited to The one OpenFlow network equipment(That is the mark of the first OpenFlow network equipment), multicast destination address, the first inbound port(I.e. The one OpenFlow network equipment receives the port of multicast packet).Based on this, OpenFlow controller creates multicast destination address pair The process for the multicast list answered, specifically includes:The first OpenFlow network equipment is received multicast packet by OpenFlow controller Port as the first inbound port, and utilize multicast destination address, the first OpenFlow network equipment(That is the first OpenFlow net The mark of network equipment)And first inbound port create the corresponding multicast list of multicast destination address.
For example, when multicast source devices send the multicast packet that multicast destination address is 231.0.0.1, OpenFlow controller Determine that multicast destination address is 231.0.0.1, determine the first OpenFlow network equipment is identified as the OpenFlow network equipment 1, determine that the first inbound port is the port 1 that the OpenFlow network equipment 1 receives multicast packet;Based on this, OpenFlow controller The multicast list of creation can be as shown in table 1.
Table 1
Multicast destination address The first OpenFlow network equipment First inbound port
231.0.0.1 The OpenFlow network equipment 1 Port 1
Step 404, OpenFlow controller sends to the first OpenFlow network equipment and carries the of multicast destination address One flow entry.Wherein, which, which is used to indicate the first OpenFlow network equipment and abandons the purpose IP address that receives, is The multicast packet of the multicast destination address.
In the embodiment of the present invention, OpenFlow controller is sending the first flow entry to the first OpenFlow network equipment When, which is specifically as follows Drop(It abandons)List item.In order to enable the first flow entry to instruct the first OpenFlow The network equipment abandons the multicast packet that the purpose IP address received is the multicast destination address, then the rule of first flow entry For:Purpose IP address is multicast destination address(Such as 223.0.0.1)Multicast packet outgoing interface be sky.As the first OpenFlow It is multicast destination address when receiving purpose IP address after the network equipment maintains above-mentioned first flow entry in the flow table of itself (Such as 223.0.0.1)Multicast packet after, due to outgoing interface be sky, the first OpenFlow network equipment need abandon receives Purpose IP address be multicast destination address(Such as 223.0.0.1)Multicast packet.
After the first OpenFlow network equipment maintains above-mentioned first flow entry in the flow table of itself, then this first To have above-mentioned first flow entry and above-mentioned second flow entry in the flow table of the OpenFlow network equipment, simultaneously in order to guarantee first It is multicast destination address that the OpenFlow network equipment, which abandons the purpose IP address received,(Such as 223.0.0.1)Multicast packet, then The priority of first flow entry needs the priority higher than the second flow entry, and the priority that the first flow entry is such as arranged is 2, second The priority of flow entry is 1.
Based on above-mentioned processing, OpenFlow controller can generate the group carried in the multicast packet that multicast source devices are sent The corresponding multicast list of destination address is broadcast, and is sent to the first OpenFlow network equipment and carries the first of the multicast destination address Flow entry, to instruct the first OpenFlow network equipment to abandon the purpose IP address received as the multicast by first flow entry The multicast packet of destination address, so as to avoid the first OpenFlow net in the case where multicast source is added in no user equipment All multicast packets are forwarded to OpenFlow controller and handled by network equipment, improve the place of OpenFlow controller Rationality energy avoids multicast packet from occupying the bandwidth of OpenFlow controller, while avoiding multicast packet to OpenFlow Controller causes biggish impact.
In a kind of preferred embodiment of the embodiment of the present invention, OpenFlow controller can also start for multicast list First ageing timer, as shown in table 2, the ageing time of first ageing timer are 180s.
Table 2
Multicast destination address The first OpenFlow network equipment First inbound port Ageing time
231.0.0.1 The OpenFlow network equipment 1 Port 1 180s
Preset time before the first ageing timer time-out(Such as 10s, i.e. multicast list 170s shown in generation table 2 Afterwards)When, OpenFlow controller sends the third flow entry for carrying multicast destination address to the first OpenFlow network equipment, should Third flow entry is used to indicate group of the first OpenFlow network equipment by the purpose IP address received for the multicast destination address Multicast data is sent to OpenFlow controller.
In the embodiment of the present invention, when OpenFlow controller sends third flow entry to the first OpenFlow network equipment, In order to enable third flow entry instruct the first OpenFlow network equipment by the purpose IP address received be multicast destination address Multicast packet be sent to OpenFlow controller, then the rule of the third flow entry is:Purpose IP address is multicast destination Location(Such as 223.0.0.1)The outgoing interface of multicast packet be that OpenFlow controller is connected on the first OpenFlow network equipment Interface.After the first OpenFlow network equipment maintains above-mentioned third flow entry in the flow table of itself, when receiving purpose IP address is multicast destination address(Such as 223.0.0.1)Multicast packet after, utilize outgoing interface(I.e. the first OpenFlow network is set The interface of standby upper connection OpenFlow controller)Be sent to multicast packet, using by purpose IP address as multicast destination address (223.0.0.1)Multicast packet be sent to OpenFlow controller.
After the first OpenFlow network equipment maintains above-mentioned third flow entry in the flow table of itself, then this first To have above-mentioned first flow entry, above-mentioned second flow entry and above-mentioned third stream in the flow table of the OpenFlow network equipment simultaneously List item, in order to guarantee multicast packet of the first OpenFlow network equipment by the purpose IP address received for the multicast destination address It is sent to OpenFlow controller, then the priority of third flow entry needs the priority higher than the first flow entry, is such as arranged The priority of third flow entry is 3, and the priority of the first flow entry of setting is 2, and the priority of the second flow entry of setting is 1.
Based on above-mentioned processing, before the first ageing timer time-out, if OpenFlow controller is with receiving destination IP Location is the multicast packet of multicast destination address, then OpenFlow controller refreshes the corresponding multicast list of multicast packet(That is multicast The multicast list that the corresponding multicast destination address of data, the first OpenFlow network equipment and the first inbound port are matched to)'s The ageing time of first ageing timer(Such as ageing time is refreshed as 180s), and indicate that the first OpenFlow network equipment is clear Except third flow entry.The first OpenFlow network equipment after removing third flow entry, the first OpenFlow network equipment To have above-mentioned first flow entry and above-mentioned second flow entry in flow table simultaneously, therefore the first OpenFlow network equipment can abandon The purpose IP address received is multicast destination address(Such as 223.0.0.1)Multicast packet.
If the ageing time of multicast list never refreshes, in the first ageing timer time-out, OpenFlow Controller deletes the corresponding multicast list of the first ageing timer, no longer safeguards the multicast list.
Step 405, OpenFlow controller sends the 4th to the corresponding 2nd OpenFlow network equipment of recipient's equipment Flow entry and the 5th flow entry.Wherein, the 4th flow entry is used to indicate the 2nd OpenFlow network equipment to recipient's equipment Send IGMP(Internet Group Management Protocol, Internet igmpinternet)General polling message, 5th flow entry, which is used to indicate the 2nd OpenFlow network equipment IGMP from recipient's equipment joins message, to be sent to OpenFlow controller.
Wherein, which can specifically be immediately performed after OpenFlow controller creates multicast list.
There are in the OpenFlow network of multicast source devices and recipient's equipment, OpenFlow controller passes through The channel OpenFlow is connect with all OpenFlow network equipments respectively, and OpenFlow controller can know OpenFlow The topology situation of network is based on this, and OpenFlow controller can send the 4th to the OpenFlow network equipment at all edges Flow entry and the 5th flow entry;Due to including recipient's equipment corresponding second in the OpenFlow network equipment at these edges The OpenFlow network equipment, therefore, the 2nd OpenFlow network equipment can receive the 4th stream from OpenFlow controller List item and the 5th flow entry.Under application scenarios shown in Fig. 2, the OpenFlow network equipment connecting with multicast source devices is The OpenFlow network equipment 1, the OpenFlow network equipment connecting with recipient's equipment are the OpenFlow network equipment 2.Herein In the case of, OpenFlow controller is made by sending the 4th flow entry and the 5th flow entry to OpenFlow network equipment 1-4 The 4th flow entry and the 5th flow entry can be received by obtaining the OpenFlow network equipment 2 connecting with recipient's equipment.
The corresponding 2nd OpenFlow network equipment of recipient's equipment refers to the OpenFlow net connecting with recipient's equipment Network equipment, the 2nd OpenFlow network equipment is the OpenFlow network equipment 2 in Fig. 2.
In the embodiment of the present invention, the 4th flow entry that OpenFlow controller is sent to the 2nd OpenFlow network equipment, It is specifically as follows packet-out message, carries IGMP general polling message(It can add for notifying recipient's equipment currently The multicast group entered sends corresponding IGMP and joins message by recipient's equipment when needing that multicast group is added).In order to make this Four flow entrys can instruct the 2nd OpenFlow network equipment to send IGMP general polling message to recipient's equipment, then the 4th stream The rule of list item is:The outgoing interface of the IGMP general polling message of OpenFlow controller construction is that the 2nd OpenFlow network is set The interface of standby upper connection recipient's equipment.After the 2nd OpenFlow network equipment receives four flow entrys, it can pass through The outgoing interface(That is the interface of recipient's equipment is connected on the 2nd OpenFlow network equipment)IGMP general polling message is sent Recipient's equipment is given, by recipient's equipment when needing that multicast group is added, is sent to the 2nd OpenFlow network equipment corresponding IGMP joins message.
In the embodiment of the present invention, the 5th flow entry that OpenFlow controller is sent to the 2nd OpenFlow network equipment, It is specifically as follows packet-in message, it, will thereon for when the 2nd OpenFlow network equipment receives IGMP and joins message It send to OpenFlow controller, is handled by OpenFlow controller.
In order to enable the 5th flow entry to instruct the 2nd OpenFlow network equipment that will add from the IGMP of recipient's equipment Enter message and be sent to OpenFlow controller, then the rule of the 5th flow entry is:The TYPE of message(Type)Field is 0x16 Message(Indicate that the message joins message for IGMP)Outgoing interface be the 2nd OpenFlow network equipment on connect OpenFlow The interface of controller.After the 2nd OpenFlow network equipment maintains above-mentioned five flow entry in the flow table of itself, when Receive the message that TYPE field is 0x16(I.e. IGMP joins message)Later, the outgoing interface is utilized(That is the 2nd OpenFlow network The interface of OpenFlow controller is connected in equipment)It sends the IGMP to join message, be sent to so that the IGMP be joined message OpenFlow controller.
Step 406, OpenFlow controller receives the IGMP from the 2nd OpenFlow network equipment and joins message, and benefit It is joined message with the IGMP and creates the corresponding multicast addition list item of multicast destination address.
Wherein, multicast addition list item is specifically used to indicate to be added the user equipment of the corresponding multicast group of multicast source devices Relevant information, such as may include the multicast group address that user equipment is added, and the OpenFlow network being connect with user equipment Facility information etc..
In a kind of preferred embodiment of the embodiment of the present invention, which is added the content that records in list item and includes but unlimited In the 2nd OpenFlow network equipment(That is the mark of the 2nd OpenFlow network equipment), multicast destination address(I.e. recipient sets The multicast destination address that standby request is added), the second inbound port(I.e. the 2nd OpenFlow network equipment receives what IGMP joined message Port).Based on this, OpenFlow controller is joined message using the IGMP creates the corresponding multicast addition table of multicast destination address The process of item, specifically includes:OpenFlow controller from IGMP join message in parse recipient's device request be added group It broadcasts destination address, and the 2nd OpenFlow network equipment is received into port that IGMP joins message as the second inbound port, and benefit With multicast destination address, the 2nd OpenFlow network equipment(That is the mark of the 2nd OpenFlow network equipment)With the second inbound port It creates the corresponding multicast of multicast destination address and list item is added.
Further, OpenFlow controller also needs to safeguard that list item is added in the multicast.For example, what recipient's equipment was sent It is 231.0.0.1 that IGMP, which joins message and requests the multicast destination address of addition, and OpenFlow controller determines multicast destination address For 231.0.0.1, the 2nd OpenFlow network equipment is identified as the OpenFlow network equipment 2, and the second inbound port is The OpenFlow network equipment 2 receives the port 4 that IGMP joins message.Based on this, the multicast of OpenFlow controller maintenance is added List item is as shown in table 3.
Table 3
Multicast destination address The 2nd OpenFlow network equipment Second inbound port
231.0.0.1 The OpenFlow network equipment 2 Port 4
In a kind of preferred embodiment of the embodiment of the present invention, table can also be added for the multicast in OpenFlow controller Item the second ageing timer of starting, as shown in table 4, the ageing time of second ageing timer can be 260s.It is new in order to guarantee Recipient's equipment of addition can also be added in corresponding multicast group, then the 4th flow entry needs periodicity sending, is based on this, OpenFlow controller can also start period transmission timer for the 4th flow entry, every time in period transmission timer time-out When, OpenFlow controller is required to send the 4th flow entry to the 2nd OpenFlow network equipment again, and restarts week The transmission process of phase transmission timer, the 4th flow entry is identical as transmission process in above-mentioned steps 405, is not repeated to go to live in the household of one's in-laws on getting married herein It states.
Table 4
Multicast destination address The 2nd OpenFlow network equipment Second inbound port Ageing time
231.0.0.1 The OpenFlow network equipment 2 Port 4 260s
In a kind of specific implementation, in order to guarantee the ageing time of the second ageing timer(260s)It can be timely Refresh, then the time-out time of period transmission timer is also less than the ageing time of the second ageing timer, such as by the period The time-out time setting of transmission timer can be 125s.The time of above-mentioned each timer can be set as needed, specific setting value It is not particularly limited.
Based on above-mentioned processing, before the second ageing timer time-out, if OpenFlow controller is received for requesting The IGMP that multicast destination address is added joins message, then OpenFlow controller refreshes join message corresponding multicast of IGMP and is added List item(That is join message corresponding multicast destination address, the 2nd OpenFlow network equipment and the second inbound port of IGMP is matched List item is added in the multicast arrived)The second ageing timer ageing time, such as again by the ageing time of the second ageing timer Refreshing is 260s.
If the ageing time that list item is added in multicast never refreshes, in the second ageing timer time-out, OpenFlow controller also needs to delete the corresponding multicast of the second ageing timer and list item is added.
In the embodiment of the present invention, OpenFlow controller generate the corresponding multicast of multicast destination address be added list item it Afterwards, if the corresponding multicast list of multicast destination address has been maintained on this OpenFlow controller, in order to guarantee at this time Multicast source devices are still in the multicast packet for sending the multicast destination address, then OpenFlow controller is to the first OpenFlow net Network equipment sends the third flow entry for carrying the multicast destination address, which is used to indicate the first OpenFlow network The multicast packet that the purpose IP address received is the multicast destination address is sent to OpenFlow controller by equipment.First It is the multicast mesh when receiving purpose IP address after the OpenFlow network equipment maintains third flow entry in the flow table of itself Address multicast packet after, by purpose IP address be the multicast destination address multicast packet be sent to OpenFlow control Device.OpenFlow controller after the multicast packet for receiving the multicast destination address, be still somebody's turn to do in transmission by confirmation multicast source devices The multicast packet of multicast destination address executes subsequent step 407;If OpenFlow controller does not receive the multicast destination The multicast packet of location then confirms the multicast packet of the currently not sent multicast destination address of multicast source devices, does not execute subsequent step Rapid 407.
Step 407, list item is added according to multicast list and multicast in OpenFlow controller, obtains multicast source devices transmission group Multicast data determines each OpenFlow network equipment in the forward-path to the forward-path of recipient's equipment, and to forward-path In each OpenFlow network equipment issue corresponding flow entry, with instruct each OpenFlow network equipment be based on corresponding flow table Item is forwarded multicast packet.
In the present embodiment, when the maintenance of OpenFlow controller is the multicast list of corresponding multicast source devices and corresponding group When broadcasting addition list item, multicast source devices can be obtained and passed to the multicast that corresponding multicast is added between the corresponding user equipment of list item Turning for multicast packet is instructed so that each OpenFlow network equipment into multicast path issues corresponding flow entry in defeated path Hair, it will be understood by those skilled in the art that the priority of the flow entry should be greater than the first above-mentioned flow entry, the second flow entry, Third flow entry etc..
In a kind of concrete implementation mode, above-mentioned steps 407 specifically include following steps:
Step 1, OpenFlow controller are added list item using multicast list and multicast and generate multicast forwarding list item.Wherein, The multicast forwarding list item includes multicast destination address, the first OpenFlow network equipment, the first inbound port, the 2nd OpenFlow net Pass through between network equipment, the second inbound port, the first OpenFlow network equipment and the 2nd OpenFlow network equipment each The OpenFlow network equipment and port.
After the processing by above-mentioned steps, table is added based on multicast shown in multicast list shown in table 1 and table 3 , then multicast forwarding list item shown in table 5 can be generated in OpenFlow controller.
Table 5
In order to generate multicast forwarding list item shown in table 5, then OpenFlow controller is also it needs to be determined that the first OpenFlow Each OpenFlow network equipment passed through between the network equipment and the 2nd OpenFlow network equipment and port.Based on this, OpenFlow controller need to find connection relationship between each OpenFlow network equipment in OpenFlow network and Path cost between each OpenFlow network equipment, based between each OpenFlow network equipment connection relationship and Path cost between each OpenFlow network equipment, OpenFlow controller can use related algorithm(Such as shortest path Algorithm)Determine each OpenFlow network passed through between the first OpenFlow network equipment and the 2nd OpenFlow network equipment Equipment and port repeat no more this calculating process in the embodiment of the present invention.
Since OpenFlow controller is connect with all OpenFlow network equipments respectively by the channel OpenFlow, and The OpenFlow controller can know the topology situation of OpenFlow network, and therefore, which can know Connection relationship between each OpenFlow network equipment and each OpenFlow network equipment in OpenFlow network it Between path cost.
In a kind of specific implementation, in order to find between each OpenFlow network equipment in OpenFlow network Connection relationship, OpenFlow controller can to all OpenFlow network equipments send packet-out message, should The data carried in packet-out message are specially LLDP(Link Layer Discovery Protocol, link layer discovery Agreement)Message, and the packet-out message is used to indicate each OpenFlow network equipment broadcast LLDP message.Each OpenFlow The network equipment broadcasts the LLDP message carried in the packet-out message after receiving packet-out message.Further, Each OpenFlow network equipment adds the interface that this OpenFlow network equipment receives the LLDP message after receiving LLDP message It is added in LLDP message, and LLDP message is encapsulated into packet-in message by treated, and is sent out to OpenFlow controller Give the packet-in message.OpenFlow controller is receiving the packet-in message from each OpenFlow network equipment Afterwards, outgoing interface is parsed from the LLDP message of packet-in message, these interfaces are connected between each OpenFlow network equipment Interface.Based on these interfaces, OpenFlow controller is it can be found that connection relationship between each OpenFlow network equipment.
Step 2, OpenFlow controller using above-mentioned multicast forwarding list item obtain multicast source devices send multicast packet to The forward-path of recipient's equipment.Wherein, the corresponding forward-path of each OpenFlow network equipment is specially OpenFlow network Equipment sends outgoing interface when multicast packet.
Step 3, OpenFlow controller is by way of issuing flow entry to the OpenFlow network equipment by first The OpenFlow network equipment, the 2nd OpenFlow network equipment, each OpenFlow network equipment(I.e. the first OpenFlow network is set The standby each OpenFlow network equipment passed through between the 2nd OpenFlow network equipment, as shown in table 5)Corresponding forward-path It is sent respectively to the first OpenFlow network equipment, the 2nd OpenFlow network equipment, each OpenFlow network equipment.
The first OpenFlow network equipment, the 2nd OpenFlow network equipment and each OpenFlow network equipment itself Corresponding flow entry is safeguarded in flow table, is then utilized respectively the forward-path forwarding instructed in corresponding flow entry from multicast source The multicast packet of equipment, finally to give multicast data sending to recipient's equipment.
OpenFlow controller is sent out the corresponding forward-path of the first OpenFlow network equipment by way of flow entry When giving the first OpenFlow network equipment, the priority for carrying the flow entry of forward-path needs to be higher than the excellent of the first flow entry First grade, and it is higher than the priority of the second flow entry, and be higher than the priority of third flow entry.It is handed down to other OpenFlow networks The priority of the corresponding flow entry of equipment also should be higher than that the priority of the first flow entry, and be higher than the priority of the second flow entry, And it is higher than the priority of third flow entry.
Based on inventive concept same as the above method, the embodiment of the invention also provides a kind of OpenFlow controller, Applied to include the OpenFlow controller, the OpenFlow network equipment, multicast source devices and recipient's equipment network In, as shown in figure 5, the OpenFlow controller specifically includes:
Receiving module 11, for receiving the multicast packet sent on the first OpenFlow network equipment, wherein described first The OpenFlow network equipment receives the multicast packet from corresponding multicast source devices;
Maintenance module 12 is controlled for parsing multicast destination address from the multicast packet, and in this OpenFlow On device when multicast list corresponding without the maintenance multicast destination address, the corresponding multicast table of the multicast destination address is created ?;
Sending module 13 carries the of the multicast destination address for sending to the first OpenFlow network equipment One flow entry, and first flow entry is used to indicate the first OpenFlow network equipment and abandons the purpose IP address received For the multicast packet of the multicast destination address.
The sending module 13 is also used to send the to the corresponding first OpenFlow network equipment of the multicast source devices Two flow entrys;Wherein, the priority of first flow entry is higher than the priority of second flow entry, and second flow table Item be used to indicate the first OpenFlow network equipment multicast packet that purpose IP address is multicast address is sent to it is described OpenFlow controller.
The maintenance module 12, specifically for the first OpenFlow network equipment to be received to the port of multicast packet as One inbound port, and the multicast is created using the multicast destination address, the first OpenFlow network equipment and the first inbound port The corresponding multicast list of destination address;Wherein, the content recorded in the multicast list includes the first OpenFlow network Equipment, multicast destination address, the first inbound port.
The maintenance module 12 is further used for starting the first ageing timer for the multicast list;Described first Before ageing timer time-out, if receiving the multicast packet that purpose IP address is the multicast destination address, described in refreshing The ageing time of first ageing timer of the corresponding multicast list of multicast packet, and indicate that the first OpenFlow network is set It is standby to remove the third flow entry;In the first ageing timer time-out, it is corresponding to delete first ageing timer The multicast list;
The sending module 13, when the preset time being also used to before first ageing timer time-out, to described The first OpenFlow network equipment sends the third flow entry for carrying the multicast destination address;Wherein, the third flow entry Priority be higher than the priority of first flow entry, and the third flow entry is used to indicate the first OpenFlow net The multicast packet that the purpose IP address received is the multicast destination address is sent to the OpenFlow controller by network equipment.
The sending module 13 is also used to send the to the corresponding 2nd OpenFlow network equipment of recipient's equipment Four flow entrys and the 5th flow entry;Wherein, the 4th flow entry be used to indicate the 2nd OpenFlow network equipment to Recipient's equipment sends Internet igmpinternet IGMP general polling message, and the 5th flow entry is used to indicate institute It states the 2nd OpenFlow network equipment IGMP from recipient's equipment joins message and be sent to OpenFlow control Device processed;
The receiving module 11 is also used to receive the IGMP from the 2nd OpenFlow network equipment and joins message, described IGMP carries the multicast destination address that recipient's device request is added in joining message;
The maintenance module 12, be also used to join message from the IGMP in parse recipient's device request and be added Multicast destination address, and the 2nd OpenFlow network equipment is received into port that the IGMP joins message as second Inbound port, and the multicast mesh is created using the multicast destination address, the 2nd OpenFlow network equipment and the second inbound port The corresponding multicast in address list item is added;Wherein, it includes described second that the content recorded in list item, which is added, in the multicast The OpenFlow network equipment, multicast destination address, the second inbound port.
The maintenance module 12 is further used for that list item the second ageing timer of starting is added for the multicast, and is institute State the 4th flow entry starting period transmission timer;
The sending module 13 is also used in the period transmission timer time-out, again to described second The OpenFlow network equipment sends the 4th flow entry, and restarts the period transmission timer;
The maintenance module 12 is further used for before the second ageing timer time-out, if received for asking It asks the IGMP that the multicast destination address is added to join message, then refreshes join message corresponding multicast of the IGMP and list item is added The second ageing timer ageing time;In the second ageing timer time-out, second ageing timer is deleted List item is added in the corresponding multicast.
The sending module 13 is also used to that list item is added according to the multicast list and multicast, obtains the multicast source and set Preparation send multicast packet to the forward-path of recipient's equipment, determines that each OpenFlow network is set in the forward-path Standby, each OpenFlow network equipment into the forward-path issues corresponding flow entry, to instruct each OpenFlow network Equipment is based on corresponding flow entry and is forwarded to the multicast packet.
The maintenance module 12 is also used to that list item generation multicast forwarding list item is added using the multicast list and multicast, The multicast forwarding list item includes multicast destination address, the first OpenFlow network equipment, the first inbound port, the 2nd OpenFlow Pass through between the network equipment, the second inbound port, the first OpenFlow network equipment and the 2nd OpenFlow network equipment Each OpenFlow network equipment and port;
The sending module 13 is further used for obtaining the multicast source devices transmission group using the multicast forwarding list item Multicast data is to the forward-path of recipient's equipment, and each OpenFlow network equipment into the forward-path issues pair The flow entry answered is forwarded the multicast packet with instructing each OpenFlow network equipment to be based on corresponding flow entry.
Wherein, the modules of apparatus of the present invention can integrate in one, can also be deployed separately.Above-mentioned module can close And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which is stored in a storage medium, if including Dry instruction is used so that a computer equipment(It can be personal computer, server or the network equipment etc.)Execute this hair Method described in bright each embodiment.
It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment, module or stream in attached drawing Journey is not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment It is distributed in the device of embodiment, corresponding change can also be carried out and be located in one or more devices different from the present embodiment.On The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Disclosed above is only several specific embodiments of the invention, and still, the present invention is not limited to this, any ability What the technical staff in domain can think variation should all fall into protection scope of the present invention.

Claims (16)

1. a kind of multicast data transmission method is set applied to including OpenFlow controller, the OpenFlow network equipment, multicast source In standby and recipient's equipment network, which is characterized in that the method includes:
The OpenFlow controller receives the multicast packet sent on the first OpenFlow network equipment, and from the multicast packet In parse multicast destination address, wherein the first OpenFlow network equipment is received from corresponding multicast source devices The multicast packet;
It is described in multicast list corresponding without the maintenance multicast destination address on the OpenFlow controller OpenFlow controller creates the corresponding multicast list of the multicast destination address;Based on the multicast list to other edges The OpenFlow network equipment sends multicast and information is added, so as to the user equipment connecting with other edge OpenFlow network equipments The corresponding multicast group of the multicast source devices is added;
The OpenFlow controller is sent to the first OpenFlow network equipment carries the of the multicast destination address One flow entry, and first flow entry is used to indicate the first OpenFlow network equipment and abandons the purpose IP address received For the multicast packet of the multicast destination address.
2. the method as described in claim 1, which is characterized in that the OpenFlow controller receives the first OpenFlow network Before the multicast packet sent in equipment, the method also includes:
The OpenFlow controller sends the second flow table to the corresponding first OpenFlow network equipment of the multicast source devices ?;Wherein, the priority of first flow entry is higher than the priority of second flow entry, and second flow entry is used for It is described to indicate that the multicast packet that purpose IP address is multicast address is sent to by the first OpenFlow network equipment OpenFlow controller.
3. the method as described in claim 1, which is characterized in that the OpenFlow controller creates the multicast destination address The process of corresponding multicast list, specifically includes:
The first OpenFlow network equipment is received the port of the multicast packet as by the OpenFlow controller One inbound port, and the multicast is created using the multicast destination address, the first OpenFlow network equipment and the first inbound port The corresponding multicast list of destination address;Wherein, the content recorded in the multicast list includes the first OpenFlow network Equipment, multicast destination address, the first inbound port.
4. method as claimed in claim 1,2 or 3, which is characterized in that the method further includes:
The OpenFlow controller is that the multicast list starts the first ageing timer;
When preset time before first ageing timer time-out, the OpenFlow controller is to described first The OpenFlow network equipment sends the third flow entry for carrying the multicast destination address;Wherein, the third flow entry is excellent First grade is higher than the priority of first flow entry, and the third flow entry is used to indicate the first OpenFlow network and sets It is standby that the multicast packet that the purpose IP address received is the multicast destination address is sent to the OpenFlow controller;
Before the first ageing timer time-out, if it is described group that the OpenFlow controller, which receives purpose IP address, Broadcast the multicast packet of destination address, it is first old to refresh the corresponding multicast list of the multicast packet for the OpenFlow controller Change the ageing time of timer, and indicates that the first OpenFlow network equipment removes the third flow entry;
In the first ageing timer time-out, it is corresponding that the OpenFlow controller deletes first ageing timer The multicast list.
5. method as claimed in claim 1,2 or 3, which is characterized in that the method further includes:
The OpenFlow controller sends the 4th flow table to the corresponding 2nd OpenFlow network equipment of recipient's equipment Item and the 5th flow entry;Wherein, the 4th flow entry is used to indicate the 2nd OpenFlow network equipment and connects to described Receipts person's equipment sends Internet igmpinternet IGMP general polling message, and the 5th flow entry is used to indicate described second IGMP from recipient's equipment is joined message and is sent to the OpenFlow controller by the OpenFlow network equipment;
The OpenFlow controller receives the IGMP from the 2nd OpenFlow network equipment and joins message, from described IGMP parses the multicast destination address that recipient's device request is added in joining message, and by the 2nd OpenFlow The network equipment receives port that the IGMP joins message as the second inbound port, and utilizes the multicast destination address, second The OpenFlow network equipment and the second inbound port create the corresponding multicast of the multicast destination address and list item are added;Wherein, described It includes the 2nd OpenFlow network equipment, multicast destination address, the second inbound port that the content recorded in list item, which is added, in multicast.
6. method as claimed in claim 5, which is characterized in that the method further includes:
The OpenFlow controller is that list item the second ageing timer of starting is added in the multicast, and the OpenFlow is controlled Device is that the 4th flow entry starts period transmission timer;
In the period transmission timer time-out, the OpenFlow controller is set to the 2nd OpenFlow network again Preparation send the 4th flow entry, and restarts the period transmission timer;
Before the second ageing timer time-out, if the OpenFlow controller is received for requesting to be added described group The IGMP for broadcasting destination address joins message, then the OpenFlow controller refreshes the IGMP corresponding multicast that joins message and adds Enter the ageing time of the second ageing timer of list item;
In the second ageing timer time-out, it is corresponding that the OpenFlow controller deletes second ageing timer List item is added in the multicast.
7. method as claimed in claim 5, which is characterized in that the method further includes:
List item is added according to the multicast list and multicast in the OpenFlow controller, obtains the multicast source devices transmission group Multicast data determines each OpenFlow network equipment in the forward-path to the forward-path of recipient's equipment, to described Each OpenFlow network equipment in forward-path issues corresponding flow entry, to instruct each OpenFlow network equipment to be based on phase The flow entry answered is forwarded the multicast packet.
8. the method for claim 7, which is characterized in that the OpenFlow controller obtains the multicast source devices hair Multicast packet is sent to specifically include to the forward-path of recipient's equipment:
The OpenFlow controller is added list item using the multicast list and multicast and generates multicast forwarding list item, the multicast Forwarding-table item includes that multicast destination address, the first OpenFlow network equipment, the first inbound port, the 2nd OpenFlow network are set Pass through between standby, the second inbound port, the first OpenFlow network equipment and the 2nd OpenFlow network equipment each The OpenFlow network equipment and port;
The OpenFlow controller obtains the multicast source devices using the multicast forwarding list item and sends multicast packet to institute State the forward-path of recipient's equipment.
9. a kind of OpenFlow controller is applied to include the OpenFlow controller, the OpenFlow network equipment, multicast source In the network of equipment and recipient's equipment, which is characterized in that the OpenFlow controller specifically includes:
Receiving module, for receiving the multicast packet sent on the first OpenFlow network equipment, wherein the first OpenFlow The network equipment receives the multicast packet from corresponding multicast source devices;
Maintenance module does not have for parsing multicast destination address from the multicast packet, and on this OpenFlow controller When having the corresponding multicast list of the maintenance multicast destination address, the corresponding multicast list of the multicast destination address is created;Base In the multicast list to other edge OpenFlow network equipments send multicast be added information, so as to other edges The corresponding multicast group of the multicast source devices is added in the user equipment of OpenFlow network equipment connection;
Sending module, for sending the first flow table for carrying the multicast destination address to the first OpenFlow network equipment , and it is described that first flow entry, which is used to indicate the first OpenFlow network equipment to abandon the purpose IP address received, The multicast packet of multicast destination address.
10. OpenFlow controller as claimed in claim 9, which is characterized in that
The sending module is also used to send the second flow table to the corresponding first OpenFlow network equipment of the multicast source devices ?;Wherein, the priority of first flow entry is higher than the priority of second flow entry, and second flow entry is used for It is described to indicate that the multicast packet that purpose IP address is multicast address is sent to by the first OpenFlow network equipment OpenFlow controller.
11. OpenFlow controller as claimed in claim 9, which is characterized in that
The maintenance module, specifically for the first OpenFlow network equipment is received the port of the multicast packet as first Inbound port, and the multicast mesh is created using the multicast destination address, the first OpenFlow network equipment and the first inbound port The corresponding multicast list in address;Wherein, the content recorded in the multicast list includes that the first OpenFlow network is set Standby, multicast destination address, the first inbound port.
12. the OpenFlow controller as described in claim 9,10 or 11, which is characterized in that
The maintenance module is further used for starting the first ageing timer for the multicast list;It is fixed in first aging When device time-out before, if receive purpose IP address be the multicast destination address multicast packet, refresh the multicast number According to the ageing time of the first ageing timer of corresponding multicast list, and indicate that the first OpenFlow network equipment is removed Third flow entry;In the first ageing timer time-out, the corresponding multicast table of first ageing timer is deleted ?;
The sending module, when the preset time being also used to before first ageing timer time-out, to described first The OpenFlow network equipment sends the third flow entry for carrying the multicast destination address;Wherein, the third flow entry is excellent First grade is higher than the priority of first flow entry, and the third flow entry is used to indicate the first OpenFlow network and sets It is standby that the multicast packet that the purpose IP address received is the multicast destination address is sent to the OpenFlow controller.
13. the OpenFlow controller as described in claim 9,10 or 11, which is characterized in that
The sending module is also used to send the 4th flow table to the corresponding 2nd OpenFlow network equipment of recipient's equipment Item and the 5th flow entry;Wherein, the 4th flow entry is used to indicate the 2nd OpenFlow network equipment and connects to described Receipts person's equipment sends Internet igmpinternet IGMP general polling message, and the 5th flow entry is used to indicate described second IGMP from recipient's equipment is joined message and is sent to the OpenFlow controller by the OpenFlow network equipment;
The receiving module is also used to receive the IGMP from the 2nd OpenFlow network equipment and joins message, described IGMP carries the multicast destination address that recipient's device request is added in joining message;
The maintenance module, be also used to join message from the IGMP in parse the multicast that recipient's device request is added Destination address, and the 2nd OpenFlow network equipment is received into the port that the IGMP joins message and enters end as second Mouthful, and the multicast destination is created using the multicast destination address, the 2nd OpenFlow network equipment and the second inbound port List item is added in the corresponding multicast in location;Wherein, it includes the 2nd OpenFlow net that the content recorded in list item, which is added, in the multicast Network equipment, multicast destination address, the second inbound port.
14. OpenFlow controller as claimed in claim 13, which is characterized in that
The maintenance module is further used for that list item the second ageing timer of starting is added for the multicast, and is the described 4th Flow entry starts period transmission timer;
The sending module is also used in the period transmission timer time-out, again to the 2nd OpenFlow network Equipment sends the 4th flow entry, and restarts the period transmission timer;
The maintenance module is further used for before the second ageing timer time-out, if received for requesting to be added The IGMP of the multicast destination address joins message, then refreshes join message corresponding multicast of the IGMP and be added the second of list item The ageing time of ageing timer;In the second ageing timer time-out, it is corresponding to delete second ageing timer List item is added in the multicast.
15. OpenFlow controller as claimed in claim 13, which is characterized in that
The sending module is also used to that list item is added according to the multicast list and multicast, obtains the multicast source devices and sends Multicast packet determines each OpenFlow network equipment in the forward-path, to institute to the forward-path of recipient's equipment Each OpenFlow network equipment stated in forward-path issues corresponding flow entry, to instruct each OpenFlow network equipment to be based on Corresponding flow entry is forwarded the multicast packet.
16. OpenFlow controller as claimed in claim 15, which is characterized in that
The maintenance module is also used to be added list item using the multicast list and multicast and generates multicast forwarding list item, and described group Broadcasting forwarding-table item includes that multicast destination address, the first OpenFlow network equipment, the first inbound port, the 2nd OpenFlow network are set Pass through between standby, the second inbound port, the first OpenFlow network equipment and the 2nd OpenFlow network equipment each The OpenFlow network equipment and port;
The sending module is further used for obtaining the multicast source devices transmission multicast packet using the multicast forwarding list item Each OpenFlow network equipment to the forward-path of recipient's equipment, and into the forward-path issues corresponding stream List item is forwarded the multicast packet with instructing each OpenFlow network equipment to be based on corresponding flow entry.
CN201410029674.4A 2014-01-22 2014-01-22 A kind of multicast data transmission method and equipment Active CN104796340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410029674.4A CN104796340B (en) 2014-01-22 2014-01-22 A kind of multicast data transmission method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410029674.4A CN104796340B (en) 2014-01-22 2014-01-22 A kind of multicast data transmission method and equipment

Publications (2)

Publication Number Publication Date
CN104796340A CN104796340A (en) 2015-07-22
CN104796340B true CN104796340B (en) 2018-11-27

Family

ID=53560861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410029674.4A Active CN104796340B (en) 2014-01-22 2014-01-22 A kind of multicast data transmission method and equipment

Country Status (1)

Country Link
CN (1) CN104796340B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107204867B (en) 2016-03-18 2020-03-24 中兴通讯股份有限公司 Information transmission method, device and system
CN107733850A (en) * 2017-08-23 2018-02-23 中国船舶重工集团公司第七0九研究所 Multicast partition method and system based on centralized Control framework
CN107612809B (en) * 2017-10-31 2021-01-01 新华三技术有限公司 Multicast table item synchronization method and equipment
WO2020263259A1 (en) * 2019-06-27 2020-12-30 Huawei Technologies Co., Ltd. On-path telemetry for multicast traffic
CN113490162B (en) * 2021-07-04 2022-05-17 芯河半导体科技(无锡)有限公司 Optimization method for multicast data stream forwarding

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494280A (en) * 2002-11-02 2004-05-05 ��Ϊ�������޹�˾ Method of control message transmission in network equipment
CN102685006A (en) * 2012-05-03 2012-09-19 中兴通讯股份有限公司 Method and device for forwarding data messages
CN103181128A (en) * 2010-10-28 2013-06-26 日本电气株式会社 Network system and method for controlling communication traffic
CN103346969A (en) * 2013-07-05 2013-10-09 中国科学院计算机网络信息中心 Method for achieving dynamic multicast spanning tree path adjustment based on OpenFlow
CN103428094A (en) * 2013-08-12 2013-12-04 杭州华三通信技术有限公司 Method and device for packet transmitting in Open Flow system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494280A (en) * 2002-11-02 2004-05-05 ��Ϊ�������޹�˾ Method of control message transmission in network equipment
CN103181128A (en) * 2010-10-28 2013-06-26 日本电气株式会社 Network system and method for controlling communication traffic
CN102685006A (en) * 2012-05-03 2012-09-19 中兴通讯股份有限公司 Method and device for forwarding data messages
CN103346969A (en) * 2013-07-05 2013-10-09 中国科学院计算机网络信息中心 Method for achieving dynamic multicast spanning tree path adjustment based on OpenFlow
CN103428094A (en) * 2013-08-12 2013-12-04 杭州华三通信技术有限公司 Method and device for packet transmitting in Open Flow system

Also Published As

Publication number Publication date
CN104796340A (en) 2015-07-22

Similar Documents

Publication Publication Date Title
CN106572017B (en) Sending method, receiving method and device of BIER information
CN104796340B (en) A kind of multicast data transmission method and equipment
CN103748835B (en) The dynamic renewal of label switched path
CN103944828B (en) The transmission method and equipment of a kind of protocol massages
CN110768817B (en) Upgrading method and device for video networking terminal
CN105072038B (en) A kind of data message forwarding method and device
US8730979B2 (en) Method and system for increasing forwarding efficiency of virtual private LAN service network
CN102685006A (en) Method and device for forwarding data messages
CN104243270A (en) Tunnel setup method and tunnel setup device
CN105119911B (en) A kind of safety certifying method and system based on SDN streams
CN103763207A (en) In-band control connection establishment method and device in SDN
WO2014017631A1 (en) Control device, communication system, communication method and program
CN103117935A (en) Multicast data forwarding method and multicast data forwarding device applied to multi-homing networking
WO2022021818A1 (en) Method and device for processing data message, storage medium, and electronic device
CN104144157B (en) A kind of TCP session establishing method, device, multihome node and satellite node
CN103096300B (en) Base station virtual local area network identifier automatic obtaining method and system
CN110784452B (en) Video data pushing method and device
CN109803178B (en) Terminal upgrading method and device
CN102801622A (en) Transmitting method and device for data messages
CN110138633A (en) A kind of storage gateway method of network entry and device
CN102882555B (en) Domain access control method, domain searching method and communication apparatus
CN103401788B (en) A kind of SPT method for building up and equipment
WO2015090087A1 (en) Routing diffusion method and device
JP6206493B2 (en) CONTROL DEVICE, COMMUNICATION SYSTEM, RELAY DEVICE CONTROL METHOD, AND PROGRAM
Abaid et al. Convergence Time Analysis of Border Gateway Protocol Using GNS3

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant