CN113676410A - Network multicast method and device, electronic equipment and computer readable storage medium - Google Patents

Network multicast method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113676410A
CN113676410A CN202110954726.9A CN202110954726A CN113676410A CN 113676410 A CN113676410 A CN 113676410A CN 202110954726 A CN202110954726 A CN 202110954726A CN 113676410 A CN113676410 A CN 113676410A
Authority
CN
China
Prior art keywords
multicast
multicast source
source
forwarding path
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110954726.9A
Other languages
Chinese (zh)
Other versions
CN113676410B (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202110954726.9A priority Critical patent/CN113676410B/en
Publication of CN113676410A publication Critical patent/CN113676410A/en
Application granted granted Critical
Publication of CN113676410B publication Critical patent/CN113676410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a network multicast method and device, electronic equipment and a computer readable storage medium, wherein the method comprises the steps of acquiring a multicast group address and service requirements of a multicast source; searching whether a first target multicast source exists in a multicast service database, wherein the multicast group address and the service requirement of the first target multicast source are the same as those of the multicast source; if the first target multicast source is found, a forwarding path corresponding to the first target multicast source is obtained in the multicast path management database, and the forwarding path corresponding to the first target multicast source is used as a forwarding path of the multicast message of the multicast source between the multicast source side router and the receiving side router. According to the technical scheme of the embodiment of the application, the forwarding path can be managed through the multicast path management database according to the service requirement of the multicast source, the forwarding path of the multicast source is reasonably planned, multiple path calculations in the similar service requirement are omitted, and the efficient utilization of the multicast data path is realized.

Description

Network multicast method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of network technologies and security technologies, and in particular, to a network multicast method and apparatus, an electronic device, and a computer-readable storage medium.
Background
Multicast is commonly used in an ip (internet protocol) network, when an active host sends a request for information to a multipoint target host, the information is sent to a certain multicast group by multicast, in the multicast process, the source host only sends a copy of data to a multicast group address, and all members of the group receive the copy of the data sent by the source host, but other hosts not receiving the data in the multicast group address do not receive the data.
The multicast can effectively solve the problems of repeated copying of data and repeated occupation of bandwidth caused by unicast and can also solve the problem of bandwidth resource waste caused by broadcast. Therefore, in the case of rapid development of services such as live webcast, online education, high-definition conference, etc., network communication is often performed in a multicast manner. The existing multicast technology also has the problems of poor multicast security, repeated data packets, repeated multicast calculation and the like, meanwhile, the burst of services causes more and more multicast sources accessed on line, users have more and more requirements on service quality, and how to manage the multicast sources by multicast based on an operator network becomes an urgent problem to be solved.
The existing multicast source management method is often used for manually modifying the outbound strategy of a router at the multicast source side when a multicast source is newly added or changed in a network, and the manual configuration method has high labor cost, is complex and tedious in configuration process, cannot be effectively configured in real time, and cannot meet the requirement of network communication speed.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present application provide a network multicast method and apparatus, an electronic device, and a computer-readable storage medium, which omit multiple path computations for similar service requirements according to service requirements of a multicast source, and improve multicast efficiency.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of an embodiment of the present application, there is provided a network multicast method, including: acquiring a multicast group address and a service requirement of a multicast source; searching whether a first target multicast source exists in a multicast service database, wherein the multicast group address and the service requirement of the first target multicast source are the same as those of the multicast source; if the first target multicast source is found, acquiring a forwarding path corresponding to the first target multicast source in a multicast path management database, and taking the forwarding path corresponding to the first target multicast source as a forwarding path of the multicast message of the multicast source between a multicast source side router and a receiving side router.
In an embodiment, the acquiring the multicast group address and the service requirement of the multicast source includes:
according to the service requirement corresponding to the multicast source sent by the application, newly adding a multicast group corresponding to the multicast source in the multicast service database;
registering and authenticating the multicast source according to a first communication message sent by a router at the multicast source side, wherein the first communication message is generated after the router at the multicast source side receives a message for applying for opening the multicast service sent by the multicast source;
and after the multicast source registration and authentication are successful, recording the multicast group address and the service requirement corresponding to the multicast source in the multicast group corresponding to the multicast source.
In an embodiment, the method further comprises:
if the first target multicast source is not found, searching whether a second target multicast source exists in the multicast path management database, wherein the service requirement of the second target multicast source is the same as that of the multicast source, and the multicast group address of the second target multicast source is different from that of the multicast source;
if the second target multicast source is not found, calculating a first forwarding path for multicast of the multicast message of the multicast source according to a second communication message, taking the first forwarding path as a forwarding path of the multicast message of the multicast source between the router at the multicast source side and the router at the receiving side, and the second communication message is generated after the router at the receiving side receives a multicast adding application message sent by a receiver of the multicast source according to the multicast group address corresponding to the multicast source.
In an embodiment, the method further comprises: if the second target multicast source is found, calculating a first forwarding path for multicast of the multicast message of the multicast source and a second forwarding path for multicast of both the second target multicast source and the multicast source according to the second communication message, and taking the first forwarding path or the second forwarding path as a forwarding path of the multicast message of the multicast source between the router at the multicast source side and the router at the receiving side.
In an embodiment, the method further comprises: after the forwarding path corresponding to the multicast source is obtained, the forwarding path corresponding to the multicast source is newly added in a multicast path management database, and the multicast path management database comprises the multicast group address and the service requirement of the multicast source.
In an embodiment, the method further comprises: after the forwarding path corresponding to the multicast source is obtained, the forwarding path is sent to a router at the multicast source side, so that the router at the multicast source side is controlled to multicast the multicast message from the multicast source according to the forwarding path.
In an embodiment, the method further comprises: and sending a control label to the receiving side router to control the receiving side router to copy and forward the multicast message of the multicast source to a receiving party of the multicast source according to the control label.
According to an aspect of an embodiment of the present application, there is provided a network multicast apparatus, including: the multicast source information acquisition module is configured to acquire the multicast group address and the service requirement of the multicast source; the first target multicast source searching module is configured to search whether a first target multicast source exists in a multicast service database, wherein the multicast group address and the service requirement of the first target multicast source are the same as those of the multicast source; and the forwarding path acquisition module is configured to acquire a forwarding path corresponding to the first target multicast source in a multicast path management database if the first target multicast source is found, and use the forwarding path corresponding to the first target multicast source as a forwarding path of the multicast message of the multicast source between a multicast source side router and a receiving side router.
According to an aspect of an embodiment of the present application, there is provided an electronic device including one or more processors; a storage device for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the network multicast method as described above.
According to an aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored thereon computer-readable instructions, which, when executed by a processor of a computer, cause the computer to execute the network multicast method as described above.
According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the network multicast method provided in the various alternative embodiments described above.
In the technical scheme provided by the embodiment of the application, the forwarding path is managed through the multicast path management database according to the service requirement of the multicast source, the forwarding path of the multicast source is reasonably planned, multiple path calculations in the similar service requirement are omitted, and the efficient utilization of the multicast data path is realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a schematic illustration of an implementation environment to which the present application relates;
fig. 2 is a flowchart illustrating a network multicast method according to an exemplary embodiment of the present application;
FIG. 3 is a flow chart of step S210 in the embodiment shown in FIG. 2 in an exemplary embodiment;
fig. 4 is a flowchart illustrating a network multicast method according to another exemplary embodiment of the present application;
fig. 5 is a flowchart illustrating a network multicast method according to another exemplary embodiment of the present application;
fig. 6 is a schematic structural diagram of a network multicast apparatus according to an exemplary embodiment of the present application;
FIG. 7 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It should also be noted that: reference to "a plurality" in this application means two or more. "and/or" describe the association relationship of the associated objects, meaning that there may be three relationships, e.g., A and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Referring to fig. 1, fig. 1 is a schematic diagram of an implementation environment related to the present application, which includes a controller, an application, a receiver, and a plurality of routers including a multicast source side router PE1 for receiving a multicast source, an intermediate router, and a receiver side router PE2 (destination address/multicast group address) on the receiver side.
The controller stores a multicast service database and a multicast path management database, and realizes the management of a multicast source through the two databases; meanwhile, the controller provides a northbound service interface for the application for interaction between the application and the controller; the controller may further perform communication connection with each router, for example, receive a first communication message sent by PE1, perform registration and authentication of a multicast source, and may also send a forwarding path to PE1, so that PE1 receives a multicast packet of the multicast source, and if the controller receives a second communication message sent by PE2, and obtains the forwarding path of the multicast source according to the second communication message, the controller may also send a control tag to PE2, and control the replication and forwarding of the multicast packet.
And the application calls a service interface, and when the multicast service requirement is newly added, the application sends the new service requirement and the authentication information to the controller, so that the controller updates the multicast service database.
The receiver and the application form communication, and can send service requirements to the application, and simultaneously, the receiver acquires the multicast group address and the multicast source address from the application and sends a message for applying to join the multicast to the receiving side router PE2, so that the receiving side router PE2 joins the multicast.
The method includes that a router PE1 on the multicast source side receives a multicast service application message sent by a multicast source, converts the multicast service application message into a first communication message and sends the first communication message to a controller, the controller registers and authenticates the multicast source according to the first communication message, meanwhile, the router PE1 on the multicast source side also receives a forwarding path sent by the controller, and after the router PE1 on the multicast source side receives the forwarding path, the multicast source is informed that the multicast source can send multicast messages to a router PE1 on the multicast source side, and the multicast messages are sent to the next router according to the forwarding path.
The receiving side router PE2 receives the join multicast application message sent by the receiver, converts the join multicast application message into a second communication message, and sends the second communication message to the controller. And other routers realize the copy and forwarding of the multicast message in the network.
In an embodiment, referring to fig. 1, there is a multicast source 1-3 that needs to perform multicast, the multicast source 1-3 sends to PE1 to apply for opening of a respective multicast service, PE1 sends a first communication message of the multicast source 1-3 to a controller, the controller implements registration and authentication of the multicast source 1-3, and simultaneously writes data of the multicast source 1-3 into a multicast service database, a recipient corresponding to the multicast source 1-3 sends a multicast adding application to PE2, PE2 sends a second communication message corresponding to the multicast source 1-3 to the controller, the controller calculates a forwarding path corresponding to the multicast source 1-3, and simultaneously stores the forwarding path of the multicast source 1-3 into a multicast path management database and sends the forwarding path to PE1, PE1 copies and forwards multicast messages corresponding to the multicast source 1-3 according to the forwarding path, until the multicast messages of multicast sources 1-3 reach PE 2.
Fig. 2 is a flowchart illustrating a network multicast method according to an exemplary embodiment, applied to the controller shown in fig. 1, the method including steps S210 to S2250, which is described in detail as follows:
step S210: and acquiring the multicast group address and the service requirement of the multicast source.
In this embodiment, a multicast group address and a service requirement of a newly added multicast source are obtained, where the service requirement is, for example, a large bandwidth, and it is necessary to provide an ultra-clear video data service, and the multicast group address is an address of a receiving-side router (for example, PE2 in fig. 1).
Step S230: and searching whether a first target multicast source exists in the multicast service database, wherein the multicast group address and the service requirement of the first target multicast source are the same as those of the multicast source.
In this embodiment, a first target multicast source is searched in a multicast service database, and the multicast group addresses and service requirements of the first target multicast source and the multicast source are the same; if the newly added multicast source is the multicast source 4, the multicast source 4 needs to provide a low-latency service, and wants to use an operator network for transmission, and the service requirement of the multicast source 1 is the same as that of the multicast source 4, and the multicast group address of the multicast source 1 is also the same as that of the multicast source 4, the data representation of the multicast source 1 and the multicast source 4 in the multicast service database can refer to table 1:
service group 1 Service group 2 Service group 3
Multicast group address Multicast group 1 Multicast group 2 Multicast group 3
Multicast source information Multicast source 1, multicast source 4 Multicast source 2 Multicast source 3
Authentication information Authentication information 1 Authentication information 2 Authentication information 3
TABLE 1
As can be seen from table 1, the multicast source 1 is the first target multicast source of the multicast source 4.
Step S250: if the first target multicast source is found, a forwarding path corresponding to the first target multicast source is obtained in the multicast path management database, and the forwarding path corresponding to the first target multicast source is used as a forwarding path of the multicast message of the multicast source between the multicast source side router and the receiving side router.
In this embodiment, a forwarding path corresponding to the service multicast source is stored in the multicast path management database, and after a forwarding path corresponding to the multicast source is obtained, a forwarding path corresponding to a BitString (BS for short) is newly added in the multicast path management database, for example, service groups 1 to 3 corresponding to multicast sources 1 to 3 proposed in fig. 1, and finally, 3 forwarding paths are established for 3 service groups through the controller, and corresponding to BS1-3, the forwarding paths corresponding to the 3 service groups are recorded in the multicast path management database, and the forwarding paths corresponding to the 3 service groups are recorded in the multicast path management database, which can refer to table 2:
Figure BDA0003220031930000071
TABLE 2
When the multicast source 1-3 performs multicast in the same multicast source side router and the same receiving side router, the multicast path management database records the forwarding path of each service group in the multicast source side router and the receiving side router.
In this embodiment, after the first target multicast source is found, since the multicast group address (receiving side router) of the first target multicast source is the same as that of the multicast source, it is not necessary to recalculate the forwarding path of the multicast source, and the forwarding path corresponding to the first target multicast source is acquired in the multicast path management database as the forwarding path of the multicast source.
Meanwhile, when the forwarding path corresponding to the first target multicast source is taken as the forwarding path of the multicast source, the forwarding path of the multicast source is recorded in a multicast path management database; for example, when the multicast source 1 is the first target multicast source of the multicast source 4, in the multicast path management database, the data representation of the multicast source 1 and the multicast source 4 may refer to table 3:
Figure BDA0003220031930000072
TABLE 3
As can be seen from table 4, the forwarding paths of both multicast source 1 and multicast source 4 are BS 1.
In this embodiment, for a newly added multicast source, according to the service requirement and the multicast group address of the multicast source, a first target multicast source may be searched in the multicast service database, and if the first target multicast source can be searched, the forwarding path of the first target multicast source is simultaneously used as the forwarding path of the multicast packet of the multicast source, by the above method, multiple path calculations in the same service requirement may be omitted, the multicast efficiency is improved, and after the forwarding path is obtained, the multicast source information and the corresponding forwarding path information are recorded in the multicast path management database, which facilitates the subsequent multicast path management for the same service requirement; the method in the embodiment can rapidly expand the service according to the requirement of the user.
Fig. 3 is a flowchart illustrating step S210 in fig. 2 according to an exemplary embodiment. As shown in fig. 3, in an exemplary embodiment, the acquiring the multicast group address and the service requirement of the multicast source may include steps S310 to S350, which are described in detail as follows:
step S310: and according to the service requirement corresponding to the multicast source sent by the application, newly adding a multicast group corresponding to the multicast source in a multicast service database.
In this embodiment, before multicast, the controller provides a northbound service interface to the application, the application calls the service interface, when a new multicast service requirement is added, a new service requirement and authentication information are issued to the controller, the controller updates the multicast service database, and a new multicast group is added, where the new multicast group corresponds to the new service requirement type and the authentication information.
Step S330: and registering and authenticating the multicast source according to the first communication message sent by the router at the multicast source side.
In this embodiment, when a Multicast source corresponding to a newly added service needs to be registered and authenticated, a Multicast service application message is first sent to a router on the Multicast source side (e.g., PE1 in fig. 1), where the Multicast service application message may be an extended IGMPv3(Internet Group Management Protocol v3, Internet Group Management Protocol) message or an MLDv2(Multicast Listener discovery Protocol) message that carries Group authentication information, or may also be another Multicast service application message, where no specific limitation is made here.
After receiving the multicast service application message, the router on the multicast source side converts the multicast service application message into a first Communication message, and sends the first Communication message to the controller for registration and authentication of the multicast source, where the first Communication message may be a PCEP (Path computing Element Communication Protocol) message or other messages for enabling the controller to perform registration and authentication of the multicast source.
Step S350: after the multicast source registration and authentication are successful, recording the multicast group address and the service requirement corresponding to the multicast source in the multicast group corresponding to the multicast source.
In this embodiment, after the registration and the authentication are successful, the controller may record a multicast group address and a service requirement corresponding to the multicast source in a multicast group corresponding to the multicast source in the multicast service database.
In an embodiment, referring to fig. 1, after the multicast source 1-3 performs registration and authentication of the multicast source, 3 groups of newly added multicast groups are recorded in the multicast service database, and the data of the 3 groups of newly added multicast groups may refer to table 4:
service group 1 Service group 2 Service group 3
Multicast group address Multicast group 1 Multicast group 2 Multicast group 3
Multicast source information Multicast source 1 Multicast source 2 Multicast source 3
Authentication information Authentication information 1 Authentication information 2 Authentication information 3
TABLE 4
The multicast service database takes service requirements as a main body, records multicast source information, multicast group addresses and authentication information under different service requirements, and each service group in the table 4 corresponds to a certain service requirement, for example, service group 1 corresponds to a large bandwidth and needs to provide ultra-clear video data service and the like.
In this embodiment, after the multicast source is registered and authenticated, the information of the multicast source and the multicast group address are recorded in the multicast service database, which facilitates the same management of the multicast source and facilitates the subsequent forwarding path search of the multicast source.
Fig. 4 is a flow chart illustrating a network multicast method according to another example embodiment. As shown in fig. 4, in an exemplary embodiment, the network multicast method may be used after step S230 in fig. 2, and includes steps S410 to S450, which are described in detail as follows:
step S410: if the first target multicast source is not found, whether a second target multicast source exists in the multicast path management database is found.
In this embodiment, after the first target multicast source is not found in the multicast service database, a second target multicast source is found in the multicast path management database, where the service requirement of the second target multicast source is the same as the service requirement of the multicast source, and the multicast group address (the receiving-side router) of the second target multicast source is different from the multicast group address of the multicast source; of course, the second target multicast source may also be searched in the multicast service database.
Step S430: if the second target multicast source is not found, calculating a first forwarding path for multicast of the multicast message of the multicast source according to the second communication message, and taking the first forwarding path as a forwarding path of the multicast message of the multicast source between the router at the multicast source side and the router at the receiving side.
In this embodiment, if the second target multicast source is not found, a first forwarding path of the multicast packet of the multicast source between the multicast source router and the receiving side router is calculated according to the second communication message.
In this embodiment, when performing registration and authentication of a Multicast source, a receiving side of the Multicast source sends a Multicast adding application message to a receiving side router (e.g., PE2 in fig. 1) according to a Multicast Group address and a Multicast source address issued by an application, so that the receiving side router adds a Multicast of the Multicast source, where the Multicast adding application message may be an IGMPv3(Internet Group Management Protocol v3, Internet Group Management Protocol) message, may also be an MLDv2(Multicast Listener discovery Protocol v 2) message, and may also be another message that enables the receiving side router to add a Multicast of the Multicast source, which is not limited herein.
The method comprises the steps that a receiving side router receives multicast adding application messages sent by receivers in different levels, converts the multicast adding application messages into second communication messages and sends the second communication messages to a controller, and the controller performs path calculation according to service requirements of a multicast source and the second communication messages to obtain a forwarding path; the second communication message may be a PCEP message, or may be other messages used for calculating the multicast source path, and is not limited herein.
Step S450: if the second target multicast source is found, calculating a first forwarding path for multicast of the multicast message of the multicast source and a second forwarding path for multicast of both the second target multicast source and the multicast source according to the second communication message, and taking the first forwarding path or the second forwarding path as a forwarding path of the multicast message of the multicast source between the router at the multicast source side and the router at the receiving side.
In this embodiment, if the second target multicast source is searched in the multicast path management database, that is, the second target multicast source already has a forwarding path in the multicast path management database, the first forwarding path for performing multicast on the multicast packet of the multicast source is calculated according to the second communication message, and meanwhile, the second forwarding path for performing multicast on both the second target multicast source and the multicast source is also calculated. Certainly, the second target multicast source may also be searched in the multicast service database, if the second target multicast source is searched in the multicast service database, whether a forwarding path exists in the second target multicast source in the multicast path management database is searched, if so, the first forwarding path and the second forwarding path are calculated according to the above method, and when in actual use, the first forwarding path or the second forwarding path is used as the forwarding path of the multicast packet of the multicast source.
In this embodiment, a new receiver joins in multicast through another receiving-side router, for example, the multicast source 4 joins in multicast through the receiving-side router 2, meanwhile, the multicast path management database is stored in one multicast source 1, the multicast source 1 has a multicast address BS1 in the multicast path management database, meanwhile, the service requirement of the multicast source 1 is the same as that of the multicast source 4, and the receiving-side routers of the multicast source 1 and the multicast source 4 are different, then the multicast source 1 is a second target multicast source of the multicast source 4, a first forwarding path BS4 for performing multicast on the multicast packet of the multicast source 4 is obtained according to the above process, and a second forwarding path BS7 for performing multicast on both the second target multicast source and the multicast source 4 is also obtained through calculation; the data representation of the multicast source 1 and the multicast source 4 in the multicast path management database may refer to table 5:
Figure BDA0003220031930000111
TABLE 5
In this embodiment, when a multicast source is newly added, if a first target multicast source is not found in the multicast service database, it is found whether a second target multicast source exists, if so, two forwarding paths of the multicast source are calculated, one forwarding path is used for multicast of the multicast source alone, the other forwarding path can implement multicast for the multicast source and the second target multicast source, by acquiring two groups of multicast forwarding paths, multicast forwarding efficiency can be improved, and meanwhile, the multicast security can be improved by redundant standby multicast paths; and when the second target multicast source is not found, directly acquiring a forwarding path which is independently used for the multicast of the multicast source, and improving the efficiency of acquiring the forwarding path on the premise of ensuring that the multicast source can complete the multicast. In this embodiment, a multicast source slicing management mode is provided by the multicast service database and the multicast path management database, so that service iteration and service fulfillment can be performed more conveniently according to the requirements of users.
Fig. 5 is a flow chart illustrating a network multicast method according to another exemplary embodiment. As shown in fig. 5, in an exemplary embodiment, the method may include step S510, which is applicable after acquiring the forwarding path of the multicast source in the network multicast process, and is described in detail as follows:
step S510: after obtaining the forwarding path corresponding to the multicast source, sending the forwarding path to the router at the multicast source side, so as to control the router at the multicast source side to multicast the multicast message from the multicast source according to the forwarding path.
In this embodiment, after obtaining the forwarding path of the multicast source, the controller issues the forwarding path to the multicast source-side router in a BitString manner, after receiving the forwarding path, the multicast source-side router notifies the multicast source that the multicast packet can be sent, the multicast source sends the multicast packet of the multicast source to the multicast source-side router, the multicast packet is replicated and forwarded in the network according to the forwarding path, for example, in a BIER (explicit replication technology with bit index) network, the multicast packet is replicated and forwarded in a BIER-TE (BIER-traffic engineering path) manner until reaching the receiving-side router, and then the receiving-side router replicates and forwards the application multicast packet to the receiver according to the control tag, thereby implementing multicast of the multicast packet.
Fig. 6 is a schematic structural diagram illustrating a network multicast apparatus according to an exemplary embodiment. As shown in fig. 6, in an exemplary embodiment, the network multicast apparatus includes:
the multicast source information obtaining module 610 is configured to obtain a multicast group address and a service requirement of a multicast source.
The first target multicast source searching module 630 is configured to search whether a first target multicast source exists in the multicast service database, where the multicast group address and the service requirement of the first target multicast source are the same as those of the multicast source.
The forwarding path obtaining module 650 is configured to, if the first target multicast source is found, obtain a forwarding path corresponding to the first target multicast source in the multicast path management database, and use the forwarding path corresponding to the first target multicast source as a forwarding path of the multicast packet of the multicast source between the multicast source side router and the receiving side router.
In this embodiment, a network multicast apparatus is disclosed, and through the combined action of the multicast source information obtaining module 610, the first target multicast source searching module 630, and the forwarding path obtaining module 650, according to the service requirement and the multicast group address of the newly added multicast source, the forwarding path of the first target multicast source searched in the multicast service database is simultaneously used as the forwarding path of the multicast packet of the multicast source, so that multiple path calculations in the similar service requirements can be omitted, and the multicast efficiency is improved.
In one embodiment, the multicast source information obtaining module 610 includes:
the multicast group adding unit is configured to add a multicast group corresponding to the multicast source in the multicast service database according to the service requirement corresponding to the multicast source sent by the application;
the multicast source registration and authentication unit is configured to perform registration and authentication on a multicast source according to a first communication message sent by a multicast source side router, wherein the first communication message is generated after the multicast source side router receives a multicast service opening application message sent by the multicast source;
and the multicast group address and service requirement recording unit is configured to record the multicast group address and the service requirement corresponding to the multicast source in the multicast group corresponding to the multicast source after the registration and the authentication of the multicast source are successful.
In one embodiment, the apparatus further comprises:
the second target multicast source searching module is configured to search whether a second target multicast source exists in the multicast path management database if the first target multicast source is not searched, wherein the service requirement of the second target multicast source is the same as that of the multicast source, and the multicast group address of the second target multicast source is different from that of the multicast source;
and the first forwarding path acquisition module is configured to calculate a first forwarding path for multicast of the multicast message of the multicast source according to the second communication message if the second target multicast source is not found, use the first forwarding path as a forwarding path of the multicast message of the multicast source between the multicast source side router and the receiving side router, and generate the second communication message after the receiving side router receives a multicast adding application message sent by the receiving side of the multicast source according to the multicast group address corresponding to the multicast source.
In one embodiment, the apparatus further comprises: and the first forwarding path and second forwarding path acquisition module is configured to calculate a first forwarding path for multicast of the multicast message of the multicast source according to the second communication message and a second forwarding path for multicast of both the second target multicast source and the multicast source if the second target multicast source is found, and use the first forwarding path or the second forwarding path as a forwarding path for the multicast message of the multicast source between the multicast source side router and the receiving side router.
In one embodiment, the apparatus further comprises: and the forwarding path storage module is configured to newly add a forwarding path corresponding to the multicast source in the multicast path management database after the forwarding path corresponding to the multicast source is obtained, wherein the multicast path management database comprises the multicast group address and the service requirement of the multicast source.
In one embodiment, the apparatus further comprises: and the multicast module is configured to send the forwarding path to the router at the multicast source side after the forwarding path corresponding to the multicast source is obtained, so as to control the router at the multicast source side to multicast the multicast message from the multicast source according to the forwarding path.
In one embodiment, the apparatus further comprises: and the control label sending module is configured to send a control label to the receiving side router so as to control the receiving side router to copy and forward the multicast message of the multicast source to a receiving party of the multicast source according to the control label.
FIG. 7 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
It should be noted that the computer system 1600 of the electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 7, computer system 1600 includes a Central Processing Unit (CPU)1601, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 1602 or a program loaded from a storage portion 1608 into a Random Access Memory (RAM) 1603. In the RAM 1603, various programs and data necessary for system operation are also stored. The CPU 1601, ROM 1602, and RAM 1603 are connected to each other via a bus 1604. An Input/Output (I/O) interface 1605 is also connected to the bus 1604.
The following components are connected to the I/O interface 1605: an input portion 1606 including a keyboard, a mouse, and the like; an output section 1607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage portion 1608 including a hard disk and the like; and a communication section 1609 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 1609 performs communication processing via a network such as the internet. The driver 1610 is also connected to the I/O interface 1605 as needed. A removable medium 1611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1610 as necessary, so that a computer program read out therefrom is mounted in the storage portion 1608 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication portion 1609, and/or installed from the removable media 1611. When the computer program is executed by a Central Processing Unit (CPU)1601, various functions defined in the system of the present application are executed.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the network multicast method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist separately without being incorporated in the electronic device.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the network multicast method provided in the above embodiments.
The above description is only a preferred exemplary embodiment of the present application, and is not intended to limit the embodiments of the present application, and those skilled in the art can easily make various changes and modifications according to the main concept and spirit of the present application, so that the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A network multicast method, comprising:
acquiring a multicast group address and a service requirement of a multicast source;
searching whether a first target multicast source exists in a multicast service database, wherein the multicast group address and the service requirement of the first target multicast source are the same as those of the multicast source;
if the first target multicast source is found, acquiring a forwarding path corresponding to the first target multicast source in a multicast path management database, and taking the forwarding path corresponding to the first target multicast source as a forwarding path of the multicast message of the multicast source between a multicast source side router and a receiving side router.
2. The method of claim 1, wherein the obtaining the multicast group address and the service requirement of the multicast source comprises:
according to the service requirement corresponding to the multicast source sent by the application, newly adding a multicast group corresponding to the multicast source in the multicast service database;
registering and authenticating the multicast source according to a first communication message sent by a router at the multicast source side, wherein the first communication message is generated after the router at the multicast source side receives a message for applying for opening the multicast service sent by the multicast source;
and after the multicast source registration and authentication are successful, recording the multicast group address and the service requirement corresponding to the multicast source in the multicast group corresponding to the multicast source.
3. The method of claim 1, further comprising:
if the first target multicast source is not found, searching whether a second target multicast source exists in the multicast path management database, wherein the service requirement of the second target multicast source is the same as that of the multicast source, and the multicast group address of the second target multicast source is different from that of the multicast source;
if the second target multicast source is not found, calculating a first forwarding path for multicast of the multicast message of the multicast source according to a second communication message, taking the first forwarding path as a forwarding path of the multicast message of the multicast source between the router at the multicast source side and the router at the receiving side, and the second communication message is generated after the router at the receiving side receives a multicast adding application message sent by a receiver of the multicast source according to the multicast group address corresponding to the multicast source.
4. The method of claim 3, further comprising:
if the second target multicast source is found, calculating a first forwarding path for multicast of the multicast message of the multicast source and a second forwarding path for multicast of both the second target multicast source and the multicast source according to the second communication message, and taking the first forwarding path or the second forwarding path as a forwarding path of the multicast message of the multicast source between the router at the multicast source side and the router at the receiving side.
5. The method of claim 1, further comprising:
after the forwarding path corresponding to the multicast source is obtained, the forwarding path corresponding to the multicast source is newly added in a multicast path management database, and the multicast path management database comprises the multicast group address and the service requirement of the multicast source.
6. The method of claim 1, further comprising:
after the forwarding path corresponding to the multicast source is obtained, the forwarding path is sent to a router at the multicast source side, so that the router at the multicast source side is controlled to multicast the multicast message from the multicast source according to the forwarding path.
7. The method of claim 6, further comprising:
and sending a control label to the receiving side router to control the receiving side router to copy and forward the multicast message of the multicast source to a receiving party of the multicast source according to the control label.
8. A network multicast apparatus, comprising:
the multicast source information acquisition module is configured to acquire the multicast group address and the service requirement of the multicast source;
the first target multicast source searching module is configured to search whether a first target multicast source exists in a multicast service database, wherein the multicast group address and the service requirement of the first target multicast source are the same as those of the multicast source;
and the forwarding path acquisition module is configured to acquire a forwarding path corresponding to the first target multicast source in a multicast path management database if the first target multicast source is found, and use the forwarding path corresponding to the first target multicast source as a forwarding path of the multicast message of the multicast source between a multicast source side router and a receiving side router.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the electronic device to carry out the method of any of claims 1-7.
10. A computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor of a computer, cause the computer to perform the method of any one of claims 1-7.
CN202110954726.9A 2021-08-19 2021-08-19 Network multicast method and device, electronic equipment and computer readable storage medium Active CN113676410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110954726.9A CN113676410B (en) 2021-08-19 2021-08-19 Network multicast method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110954726.9A CN113676410B (en) 2021-08-19 2021-08-19 Network multicast method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113676410A true CN113676410A (en) 2021-11-19
CN113676410B CN113676410B (en) 2022-10-18

Family

ID=78544026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110954726.9A Active CN113676410B (en) 2021-08-19 2021-08-19 Network multicast method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113676410B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114727235A (en) * 2022-03-29 2022-07-08 中国电信股份有限公司 Multicast service processing method, device, storage medium and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5982775A (en) * 1997-08-14 1999-11-09 Tektronix, Inc. Forwarding multicast frames on an ethernet bridge
US20040218536A1 (en) * 2002-12-11 2004-11-04 Nippon Telegraph And Telephone Corp. Multicast communication path calculation method and multicast communication path calculation apparatus
CN101330466A (en) * 2008-07-24 2008-12-24 华为技术有限公司 Method and device for forwarding multicast message
CN101425973A (en) * 2008-11-25 2009-05-06 中兴通讯股份有限公司 Method for route selection by IP multicast on equivalent multiple paths
CN101478477A (en) * 2008-12-01 2009-07-08 北京星网锐捷网络技术有限公司 Multicast packet forwarding method and device
CN101534209A (en) * 2009-04-20 2009-09-16 杭州华三通信技术有限公司 A method and device for sending multicast messages
CN101605103A (en) * 2009-07-16 2009-12-16 杭州华三通信技术有限公司 A kind of method of static forwarding multicast data and device
CN101789900A (en) * 2009-11-19 2010-07-28 福建星网锐捷网络有限公司 Multicast forwarding route query method, intermediate node and management node
CN102396190A (en) * 2009-06-03 2012-03-28 上海贝尔股份有限公司 Method and device for multiple rendezvous points processing multicast services of mobile multicast source jointly
CN104579982A (en) * 2015-01-06 2015-04-29 杭州华三通信技术有限公司 Second-layer multicast data message forwarding method and device
CN109039922A (en) * 2018-09-18 2018-12-18 深圳市风云实业有限公司 Multicast processing method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5982775A (en) * 1997-08-14 1999-11-09 Tektronix, Inc. Forwarding multicast frames on an ethernet bridge
US20040218536A1 (en) * 2002-12-11 2004-11-04 Nippon Telegraph And Telephone Corp. Multicast communication path calculation method and multicast communication path calculation apparatus
CN101330466A (en) * 2008-07-24 2008-12-24 华为技术有限公司 Method and device for forwarding multicast message
CN101425973A (en) * 2008-11-25 2009-05-06 中兴通讯股份有限公司 Method for route selection by IP multicast on equivalent multiple paths
CN101478477A (en) * 2008-12-01 2009-07-08 北京星网锐捷网络技术有限公司 Multicast packet forwarding method and device
CN101534209A (en) * 2009-04-20 2009-09-16 杭州华三通信技术有限公司 A method and device for sending multicast messages
CN102396190A (en) * 2009-06-03 2012-03-28 上海贝尔股份有限公司 Method and device for multiple rendezvous points processing multicast services of mobile multicast source jointly
CN101605103A (en) * 2009-07-16 2009-12-16 杭州华三通信技术有限公司 A kind of method of static forwarding multicast data and device
CN101789900A (en) * 2009-11-19 2010-07-28 福建星网锐捷网络有限公司 Multicast forwarding route query method, intermediate node and management node
CN104579982A (en) * 2015-01-06 2015-04-29 杭州华三通信技术有限公司 Second-layer multicast data message forwarding method and device
CN109039922A (en) * 2018-09-18 2018-12-18 深圳市风云实业有限公司 Multicast processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114727235A (en) * 2022-03-29 2022-07-08 中国电信股份有限公司 Multicast service processing method, device, storage medium and electronic equipment
CN114727235B (en) * 2022-03-29 2024-01-30 中国电信股份有限公司 Multicast service processing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN113676410B (en) 2022-10-18

Similar Documents

Publication Publication Date Title
CN111382174B (en) Multi-party data joint query method, device, server and storage medium
US20200052918A1 (en) Overlay signaling for bit indexed explicit replication
US8379641B2 (en) Light host management protocol on multicast capable router
WO2019206295A1 (en) Network access method and device for edge router
CN105556899A (en) Bit indexed explicit replication
WO2019153491A1 (en) Student information storage method and apparatus, readable storage medium, and terminal device
US20140241352A1 (en) Dynamic adjustment of mldp tunnel and pim binding
CN113676410B (en) Network multicast method and device, electronic equipment and computer readable storage medium
US8325725B2 (en) Efficient host management protocol on multicast capable router
WO2017124712A1 (en) Message generating method, message forwarding method and device
US20230388754A1 (en) Communication method and apparatus for multicast and broadcast service, medium, and electronic device
TWI536842B (en) Method and system for providing a video service
CN112187756A (en) Multicast data transmission method, device, equipment and storage medium
CN109828832B (en) Block chain-based data circulation method, device, equipment and medium
CN114172958B (en) Privacy computing node, system, method, device and storage medium
WO2018108168A1 (en) Method for implementing multicast service of packet transmission network, device thereof and communication system
US20220342524A1 (en) Online conference tools for meeting-assisted content editing and posting content on a meeting board
WO2020244372A1 (en) Method and apparatus for implementing multicasting
CN110660205B (en) Alarm information processing method and device, electronic equipment and readable storage medium
CN109309583B (en) Information acquisition method and device based on distributed system, electronic equipment and medium
CN113382050A (en) Message transmission method, system, computing device and storage medium
CN112422881A (en) P2P video conference method for free networking
WO2012109863A1 (en) Multicast program forwarding method, device and system
CN115967505A (en) Authentication method, device, system and non-volatile computer readable storage medium
WO2017096915A1 (en) Base station software maintenance method and system based on multicast technology

Legal Events

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