CN110324155B - Multicast updating method, device and communication equipment - Google Patents

Multicast updating method, device and communication equipment Download PDF

Info

Publication number
CN110324155B
CN110324155B CN201910607678.9A CN201910607678A CN110324155B CN 110324155 B CN110324155 B CN 110324155B CN 201910607678 A CN201910607678 A CN 201910607678A CN 110324155 B CN110324155 B CN 110324155B
Authority
CN
China
Prior art keywords
bootstrap router
pim
information
new
router
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
CN201910607678.9A
Other languages
Chinese (zh)
Other versions
CN110324155A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201910607678.9A priority Critical patent/CN110324155B/en
Publication of CN110324155A publication Critical patent/CN110324155A/en
Application granted granted Critical
Publication of CN110324155B publication Critical patent/CN110324155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • 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

Landscapes

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

Abstract

The application provides a multicast updating method, a device and communication equipment, and relates to the technical field of data communication. The method may be applied to a PIM device currently being a candidate collection point, the method comprising: when PIM equipment needs to withdraw the identity of a candidate collection point of the PIM equipment, searching the routing information of the bootstrap router from the current pre-stored information set; when the routing information is not found in the information set, judging whether a new bootstrap router exists in a preset period after the routing information is not found, and according to a judging result, cancelling the identity of the candidate collection point of the PIM equipment, so that the problem that the PIM equipment cannot cancel itself as the candidate collection point can be solved.

Description

Multicast updating method, device and communication equipment
Technical Field
The present application relates to the field of data communications technologies, and in particular, to a method and an apparatus for multicast update, and a communication device.
Background
The protocols commonly used for multicast today are the protocol independent multicast routing protocol (Protocol Independent Multicast, PIM) and the internet group management protocol (Internet Group Manage Protocol, IGMP). Wherein IGMP is a group management protocol responsible for querying and finding whether there are group members in a direct network segment, so as to learn about users who need multicast services. PIM is multicast routing protocol, maintains multicast routing table, forms a loop-free multicast distribution tree in network, and is responsible for forwarding multicast service data, and completes transmission of service data from source host to user by cooperation with IGMP protocol. In PIM, a protocol independent multicast routing protocol-Sparse Mode (PIM-SM) protocol is also commonly used.
In the PIM-SM working model, there is a key node named Rendezvous Point (RP). The RP operates in the PIM device for receiving multicast traffic from the multicast source on the one hand and the multicast router requiring multicast traffic sends PIM join messages towards the RP on the other hand, thus building a branch of the shared tree (RPT) between itself and the RP, which is then responsible for forwarding the multicast traffic it receives from the source down along the RPT.
To prevent an RP from being abnormal or otherwise inoperable, PIM-SM supports the configuration of multiple Candidate collection points (C-RPs) in the network, which are candidates for the RP, allowing one or more C-RPs to exist in the network. In the prior art there is the problem that the identity of the C-RP cannot be revoked when the PIM device no longer has to be the C-RP.
Disclosure of Invention
The application provides a multicast updating method, a device and communication equipment, which can solve the problem that PIM equipment cannot be withdrawn as a candidate collection point.
In order to achieve the above object, the technical solution provided by the embodiments of the present application is as follows:
in a first aspect, an embodiment of the present application provides a multicast update method applied to a PIM device currently being a candidate collection point, the method comprising:
when the PIM equipment needs to withdraw the identity of the candidate collection point of the PIM equipment, searching the routing information of the bootstrap router from the current pre-stored information set; when the routing information is not found in the information set, judging whether a new bootstrap router exists in a preset period after the routing information is not found, and cancelling the identity of the candidate collection point of the PIM equipment according to a judging result.
In the above implementation manner, when the PIM device needs to revoke the identity of its candidate collection point, if no bootstrap router is found, the PIM device may detect whether a new bootstrap router exists in the network, which is conducive to timely finding the new bootstrap router, so that revocation of the identity of the candidate collection point of the PIM device can be timely achieved through the new bootstrap router.
With reference to the first aspect, in some optional embodiments, determining whether a new bootstrap router exists within a preset period after the routing information is not found, and according to a determination result, cancelling an identity of a candidate collection point of the PIM device includes:
when a notification message sent by a new bootstrap router is received within the preset period, determining that the new bootstrap router exists within the preset period; and sending a revocation notification message to the new bootstrap router, wherein the new bootstrap router is used for controlling each PIM device stored with the information set to delete the registration information of the candidate collection point from the information set according to the revocation notification message so as to update the information set.
In the above embodiment, whether a new bootstrap router appears in the preset period is determined by determining whether an advertisement message sent by the bootstrap router exists in the preset period, which is conducive to timely finding out the new bootstrap router, so that timely revocation of candidate collection point identities of PIM by the new bootstrap router is facilitated.
With reference to the first aspect, in some optional embodiments, after the routing information is not found, and before the revocation advertisement packet is sent to the new bootstrap router, the method further includes:
together with other routers in the network where the PIM device is located, a router is elected in the network as the new bootstrap router for the new bootstrap router to send the advertisement message to each PIM device.
In the above embodiment, when the bootstrap router does not exist currently, a new bootstrap router may be selected, and after the new bootstrap router is selected, an announcement message may be sent to PIM devices in the whole network to inform about the existence of the new bootstrap router. Based on the method, the candidate collection point identity of the PIM equipment is withdrawn through the new bootstrap router in time, and the duration of the withdrawal operation is shortened.
With reference to the first aspect, in some optional embodiments, the method further includes: deleting the revocation notification message from a cache storing the revocation notification message.
In the above embodiment, the PIM device may delete the revocation notification message from its own cache, and reduce the use rate of the cache in time, and increase the remaining storage space of the cache.
With reference to the first aspect, in some optional embodiments, determining whether a new bootstrap router exists within a preset period after the routing information is not found, and according to a determination result, cancelling an identity of a candidate collection point of the PIM device includes:
when the notification message sent by the new bootstrap router is not received within the preset period, determining that the new bootstrap router does not exist within the preset period; and deleting the registration information of the candidate collection points from the information set so as to update the information set.
In the above embodiment, when no new bootstrap router is monitored to exist within the preset period, the PIM device may revoke itself as the identity of the candidate collection point by means of a timed deletion, thereby improving the problem that the identity of the candidate collection point cannot be revoked in time due to the fact that the bootstrap router is waiting for indefinitely.
With reference to the first aspect, in some optional embodiments, the method further includes: from the updated information set a PIM device is determined from a plurality of PIM devices in said updated information set as a new collection point.
In the embodiment, the new assembly point can be used for updating the multicast mode of the network in time, thereby being beneficial to improving the stability and the robustness of the multicast network.
With reference to the first aspect, in some optional embodiments, the routing information includes at least one of address information of the bootstrap router and communication path information of the PIM device to the bootstrap router.
In the above embodiment, the use of the address information of the bootstrap router and the above communication path information is beneficial to quickly and accurately judging whether the bootstrap router exists in the network.
In a second aspect, an embodiment of the present application further provides a multicast updating apparatus applied to a PIM device currently serving as a candidate collection point, the apparatus including:
an information searching unit, configured to search routing information of the bootstrap router from a currently pre-stored information set when the PIM device needs to revoke an identity of its own candidate aggregation point;
and the revocation unit is used for judging whether a new bootstrap router exists in a preset period after the routing information is not found when the routing information is not found in the information set, and revokes the identity of the candidate collection point of the PIM equipment according to a judging result.
With reference to the second aspect, in some optional embodiments, the revocation unit is further configured to:
when a notification message sent by a new bootstrap router is received within the preset period, determining that the new bootstrap router exists within the preset period; and sending a revocation notification message to the new bootstrap router, wherein the new bootstrap router is used for controlling each PIM device stored with the information set to delete the registration information of the candidate collection point from the information set according to the revocation notification message so as to update the information set.
With reference to the second aspect, in some optional embodiments, the apparatus further includes an election unit, after the information searching unit does not find the routing information, and before the revocation unit sends the revocation notification packet to the new bootstrap router, the election unit is configured to elect, together with other routers in a network where the PIM device is located, one router in the network as the new bootstrap router, where the new bootstrap router is configured to send the notification packet to each PIM device.
With reference to the second aspect, in some optional embodiments, the apparatus further includes a deleting unit, configured to delete the revocation notification packet from a cache storing the revocation notification packet.
With reference to the second aspect, in some optional embodiments, the revocation unit is further configured to:
when the notification message sent by the new bootstrap router is not received within the preset period, determining that the new bootstrap router does not exist within the preset period; and deleting the registration information of the candidate collection points from the information set so as to update the information set.
With reference to the second aspect, in some optional embodiments, the apparatus further comprises a node determining unit configured to determine, from the updated information set, a PIM device from a plurality of PIM devices in the updated information set as a new collection point.
In a third aspect, an embodiment of the present application further provides a communication device, where the communication device includes a processor and a memory coupled to each other, and the memory stores a computer program, where the computer program, when executed by the processor, causes the communication device to perform the method described above.
In a fourth aspect, embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, which when run on a computer causes the computer to perform the above-described method.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described. It is to be understood that the following drawings illustrate only certain embodiments of the application and are therefore not to be considered limiting of its scope, for the person of ordinary skill in the art may admit to other equally relevant drawings without inventive effort.
Fig. 1 is a schematic diagram of communication connection of a multicast network system according to an embodiment of the present application.
Fig. 2 is a flow chart of a multicast updating method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a communication device according to an embodiment of the present application.
Fig. 4 is a functional block diagram of a multicast update apparatus according to an embodiment of the present application.
Icon: a 10-PIM device; a 20-bootstrap router; a 30-PIM device; 40-a communication device; 41-a processing module; 42-a memory module; a 43-communication module; 100-multicasting an updating device; 110-an information searching unit; 120-revocation unit.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. It should be noted that the terms "first," "second," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
The applicant has found that in a multicast network, when a PIM device does not need to act as a Candidate collection Point (C-RP), after the Bootstrap Router (BSR) is not present in the network, the PIM device does not continue to send withdrawal advertisement messages, nor does the PIM device timely withdraw its own Candidate collection Point identity. At this point the PIM device is an invalid candidate collection point and will continue to participate in the election of a subsequent collection point, thereby affecting the reliability of the elected collection point.
In view of the above problems, the applicant of the present application has long studied and developed the following examples to solve the above problems. Embodiments of the present application will be described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, the multicast network system provided by the present application may include a PIM device 10 and a PIM device 30, and the PIM device 10 and the PIM device 30 may establish a communication connection through a network for data interaction. Wherein the PIM device 10 is the PIM device currently acting as a candidate point of collection and the PIM device needs to be revoked as candidate point of collection, and the PIM device 30 is a PIM device other than the PIM device 10 in the network. The number of PIM devices 10 and 30 may be determined according to the actual situation, and the number of devices is not particularly limited here.
The PIM device (including the PIM device 10, the PIM device 30) may be a router, a switch or the like supporting a protocol independent multicast routing protocol-Sparse Mode (PIM-SM). Wherein routers in the network may also be elected as bootstrap routers 20.
Understandably, after the bootstrap router 20 is determined, the bootstrap router 20 informs the PIM devices in the whole network of its own presence. The PIM device 10 in the network may listen to the advertisement message flooded by the bootstrap router 20 and save the relevant information of the bootstrap router 20, such as the MAC address of the bootstrap router 20, the IP address, the communication path information of the bootstrap router 20 to the PIM device 10, etc. Each candidate aggregation point may send a respective candidate advertisement message to bootstrap router 20. After the bootstrap router 20 collects the candidate advertisements sent by all candidate collection points, the collected advertisement messages may be summarized, and then the summarized information is flooded to the whole network, so that PIM devices in the whole network are aware of all candidate collection points in the whole network. Among them, flooding can be understood as: a message received from one interface of the router is sent out to all interfaces except that interface.
Referring to fig. 2, the multicast updating method provided by the embodiment of the present application may be applied to the multicast network system described above, and may be executed or implemented by the PIM device 10, so as to improve the problem that the PIM device 10 cannot timely cancel the candidate collection point, and shorten the duration of the cancellation operation.
In this embodiment, the multicast update method may include the steps of:
step S210 of searching for routing information of the bootstrap router 20 from a currently pre-stored information set when the PIM device 10 needs to revoke the identity of its own candidate collection point;
step S220, when the routing information is not found in the information set, determining whether a new bootstrap router exists within a preset period after the routing information is not found, and cancelling the identity of the candidate collection point of the PIM device 10 according to the determination result.
In the above embodiment, when the PIM device 10 needs to revoke the identity of its own candidate collection point, the PIM device 10 may detect whether a new bootstrap router exists in the network if the bootstrap router 20 is not found. The detection and judgment actions are helpful to timely find a new bootstrap router, so that the candidate collection point identity of the PIM device 10 can be timely revoked through the new bootstrap router, and the problem that the candidate collection point identity of the PIM device cannot be timely revoked due to the fact that the bootstrap router does not exist in a network is solved.
The following describes in detail each step of the multicast update method provided in the embodiment:
step S210 of looking up the routing information of the bootstrap router 20 from the currently pre-stored set of information when said PIM device 10 needs to revoke the identity of its own candidate collection point.
In the present embodiment, each PIM device in the network environment may serve as a candidate collection point, or a part of PIM devices in the network environment may serve as candidate collection points, and the number of PIM devices 10 serving as candidate collection points is not particularly limited herein. Wherein the network environment is the network environment in which the PIM device currently being the candidate collection point is located. In addition, the collection point usually operates in a PIM device 10 of higher performance. Situations where the PIM device 10 needs to revoke the identity of its own candidate collection point may include, but are not limited to: the candidate assembly point has failed, the current load of the PIM device 10 is large, etc.
For example, if the survival time of the candidate collection point exceeds a specified duration, the candidate collection point is considered to be invalid, and the specified duration can be set according to actual situations. Alternatively, if the current memory usage of the PIM device 10 exceeds the set value, the current load of the PIM device 10 is considered to be large, and the condition as the candidate collection point is not satisfied. The set value may be set according to actual situations, and is not particularly limited herein.
The PIM device 10 has stored in advance a SET of information, which may be referred to as RP-SET (or RP SET), which may include, but is not limited to: registration information of a collection point in a network where the PIM device 10 is located, registration information of a candidate collection point, a communication path, routing information of the bootstrap router 20, and the like.
Understandably, if the bootstrap router 20 is not present in the network, the information set does not include the routing information of the bootstrap router 20. The routing information of the bootstrap router 20 may include at least one of address information of the bootstrap router 20 (such as a MAC address, an IP address of the bootstrap router 20), and communication path information of the PIM device 10 to the bootstrap router 20.
In addition, devices such as routers, switches etc. running or supporting PIM-SM in the network in which the PIM device 10 is located, such as the above-mentioned PIM device 30, store the above-mentioned information sets.
When the PIM device 10 needs to revoke its identity as a candidate collection point, the PIM device 10 may look up the routing information of the bootstrap router 20 from its own stored set of information. If no routing information of the bootstrap router 20 is present in the information set, the PIM device 10 will assume that no bootstrap router 20 is present in the network.
For example, the PIM device 10 does not find the MAC address of the bootstrap router 20 or the IP address of the bootstrap router 20 in its own stored information set, or the communication path information of the PIM device 10 to the bootstrap router 20 is not found, it is considered that no route information of the bootstrap router 20 is found in the information set.
Step S220, when the routing information is not found in the information set, determining whether a new bootstrap router exists within a preset period after the routing information is not found, and cancelling the identity of the candidate collection point of the PIM device 10 according to the determination result.
In the present embodiment, if the PIM device 10 does not find the routing information of the bootstrap router 20 in the information set, the PIM device 10 may consider that the bootstrap router 20 is not present in the current network. At this time, the PIM device 10 waits for a period of time in the future (which may be understood as the above-mentioned preset period of time) whether a new bootstrap router is present in the network, and if the period of time in the future is equal to the occurrence of the new bootstrap router, the PIM device 10 determines that a first determination result indicating the presence of the new bootstrap router within the preset period of time is obtained. The preset period may be set according to practical situations, for example, may be 1 minute, 2 minutes, 3 minutes, and so on.
When the determination result is the first determination result (i.e., it is determined that a new bootstrap router exists within the preset period of time), the PIM device 10 may be revoked as the candidate collection point in such a manner that: the PIM device 10 sends a revocation advertisement message to the new bootstrap router for the new bootstrap router to advertise to PIM devices in the whole network so that the PIM devices in the whole network delete registration information of the PIM device 10 as a candidate collection point from among various stored sets of information, thereby revoke the identity of the PIM device 10 as a candidate collection point.
If the PIM device 10 does not wait until a new bootstrap router appears within a future period of time, the PIM device 10 determines that a second determination result indicating that no new bootstrap router exists within a preset period of time is obtained. At this time, the manner of canceling the PIM device 10 as the candidate collection point may be: a timer (or timer) may be set in advance in the information set of each PIM device (including the PIM device 10, the PIM device 30), the time at which the respective timers start to count is the same time, and the times of the respective timers are synchronized. Each PIM device may delete the corresponding registration information in the information set stored by itself, respectively, whenever the duration recorded by the timer is a preset duration. Understandably, the deleted registration information is the registration information of the PIM device 10 (the PIM device 10 that needs to revoke the identity of the candidate collection point) as the candidate collection point, thereby enabling PIM devices in the whole network to automatically delete the registration information at regular time for the purpose of revoke the identity of the PIM device 10 as the candidate collection point.
As an alternative embodiment, step S220 may include: when a notification message sent by a new bootstrap router is received within the preset period, determining that the new bootstrap router exists within the preset period; and sending a revocation notification message to the new bootstrap router, wherein the new bootstrap router is used for controlling each PIM device stored with the information set to delete the registration information of the candidate collection point from the information set according to the revocation notification message so as to update the information set.
In this embodiment, if a new bootstrap router appears in the network, the bootstrap router 20 may flood a notification message to the whole network to inform the PIM device itself in the whole network of the existence of the PIM device, so that the PIM device in the whole network stores the address, communication path information, and the like of the bootstrap router 20. The new bootstrap router and the previous bootstrap router 20 may be the same router or different routers, and may be selected according to actual situations. The whole network is understood to be the network in which the PIM device 10 is located.
The PIM device 10 may determine whether a new bootstrap router exists within a preset period of time in such a manner that: whether an advertisement message is received within a preset period of time, and whether the received advertisement message is a message sent by the bootstrap router 20. If the advertisement message is received within the preset period and it is determined that the advertisement message is an advertisement message sent by the bootstrap router 20, it is considered that a new bootstrap router exists within the preset period. If no advertisement message is received within the preset period of time, or it is determined that the received advertisement message is not an advertisement message sent by the bootstrap router 20, it is assumed that a new bootstrap router does not exist within the preset period of time.
The bootstrap router 20 may delete the registration information of the PIM device 10 as a candidate collection point from its own stored information set after receiving the revocation advertisement message transmitted by the PIM device 10 to update the information set. The bootstrap router 20 then floods the PIM devices in the whole network with update messages for updating the information sets, so that the respective PIM devices update the respective stored information sets such that no registration information of the PIM device 10 as a candidate collection point exists in the respective stored information sets. Understandably, the PIM device in the whole network, after deleting the registration information, also achieves the revocation of the PIM device 10 as candidate collection point identity.
In the above embodiment, by monitoring whether the advertisement message sent by the bootstrap router 20 exists or not in the preset period of time, it is determined whether a new bootstrap router appears in the preset period of time, which is helpful to discover the new bootstrap router in time, so that the candidate collection point identity of the PIM device 10 is advantageously revoked in time by the bootstrap router 20.
As an optional implementation manner, after the routing information is not found, and before the revocation notification packet is sent to the new bootstrap router, the method further includes:
together with other routers in the network where the PIM device 10 is located, a router is elected in the network as the new bootstrap router for the new bootstrap router to send the advertisement message to each PIM device.
Understandably, in another preset period after the routing information is not found (the duration of the other preset period is smaller than the duration of the preset period), the routers in the whole network may elect one router together as the current bootstrap router 20, and the elected current bootstrap router 20 is the new bootstrap router. The manner in which the current bootstrap router 20 is elected includes, but is not limited to: the routers are selected according to the priority set by the routers, and one router with the highest priority can be used as the current bootstrap router 20, wherein the priority can be preset according to actual conditions and is not particularly limited herein; alternatively, according to the IP address of the router, the router with the largest IP address is selected as the current bootstrap router 20.
In the above embodiment, when the bootstrap router 20 does not exist currently, a new bootstrap router may be selected, and after the new bootstrap router is selected, an announcement message is sent to PIM devices in the whole network to inform of its existence. Based on this, it is facilitated to timely revoke the candidate collection point identity of the PIM device 10 by a new bootstrap router, shortening the duration of the revocation operation.
As an alternative embodiment, step S220 may include: when the notification message sent by the new bootstrap router is not received within the preset period, determining that the new bootstrap router does not exist within the preset period; and deleting the registration information of the candidate collection points from the information set so as to update the information set.
Understandably, when no new bootstrap router is monitored for a preset period of time, the PIM device 10 may delete the registration information of the PIM device 10 as a candidate collection point from its own stored set of information by means of a timed deletion, thereby realizing revocation of the PIM device 10 as a candidate collection point identity. Based on this, even if the routing information of the bootstrap router 20 does not exist in the PIM device 10 or communication with the bootstrap router 20 is not possible, the PIM device 10 can delete the registration information by means of the timed deletion.
As an alternative embodiment, the method may further comprise: deleting the revocation notification message from a cache storing the revocation notification message.
In the present embodiment, if the PIM device 10 currently serving as the candidate collection point needs to revoke its own identity as the candidate collection point, the PIM device 10 may generate a revocation notification message and store it in the cache. After the PIM device 10 revokes itself as a candidate collection point, the PIM device 10 may delete the revocation notification message from its own cache, and in time reduce the use rate of the cache, increase the remaining storage space of the cache, and help to improve the current performance of the PIM device 10.
As an alternative embodiment, the method may further comprise: from the updated information set a PIM device 10 is determined as a new collection point from a plurality of PIM devices 10 in said updated information set.
It will be appreciated that after the candidate collection point to be revoked has been revoked, the PIM devices 10 in the whole network may re-determine one PIM device 10 from the plurality of PIM devices 10 as a new collection point based on the plurality of PIM devices 10 recorded in the updated information set. For example, the PIM device 10 having the best current performance may be selected from the PIM devices 10 as a new collection point, so that the multicast manner is updated by the new collection point, which contributes to an improvement in the stability and robustness of the multicast network.
Referring to fig. 3, an embodiment of the present application further provides a communication device 40 that may be used to perform or implement the above-described multicast update method. The communication device 40 may be a PIM-SM enabled router, switch, or the like. The communication device 40 may include a processing module 41, a storage module 42, a communication module 43, and a multicast update apparatus 100, where the processing module 41, the storage module 42, the communication module 43, and the multicast update apparatus 100 are directly or indirectly electrically connected to each other to implement data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The processing module 41 may be an integrated circuit chip with signal processing capabilities. The processing module 41 may be a general purpose processor. For example, the processor may be a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), or the like; the various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed with digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components.
The memory module 42 may be, but is not limited to, random access memory, read only memory, programmable read only memory, erasable programmable read only memory, electrically erasable programmable read only memory, and the like. In this embodiment, the storage module 42 may be configured to store a set of information, where the set of information may include a routing table entry. Of course, the storage module 42 may also be used to store a program, which is executed by the processing module 41 after receiving the execution instruction.
The communication module 43 is arranged to establish a communication connection between the PIM device 10 and the PIM device 30 via a network and to transceive data via the network.
The multicast updating apparatus 100 includes at least one software function module that may be stored in the storage module 42 in the form of software or firmware (firmware) or cured in an Operating System (OS) of the communication device 40. The processing module 41 is configured to execute executable modules stored in the storage module 42, such as software functional modules and computer programs included in the multicast update apparatus 100.
It will be appreciated that the configuration shown in fig. 3 is merely a schematic illustration of one configuration of communication device 40, and that communication device 40 may include many more components than those shown in fig. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 4, an embodiment of the present application further provides a multicast update apparatus 100, which may be applied to the PIM device 10 described above, for performing or implementing the steps of the multicast update method. The multicast update apparatus 100 may include an information lookup unit 110 and a revocation unit 120.
An information searching unit 110 for searching for routing information of the bootstrap router 20 from a currently pre-stored set of information when said PIM device 10 needs to revoke the identity of its own candidate collection point.
And a revocation unit 120 for judging whether a new bootstrap router exists within a preset period after the route information is not found when the route information is not found in the information set, and revokes the identity of the candidate assembly point of the PIM device 10 according to the judgment result.
Optionally, the revocation unit 120 may be further configured to: when a notification message sent by a new bootstrap router is received within the preset period, determining that the new bootstrap router exists within the preset period; and sending a revocation notification message to the new bootstrap router, wherein the new bootstrap router is used for controlling each PIM device stored with the information set to delete the registration information of the candidate collection point from the information set according to the revocation notification message so as to update the information set.
Wherein the routing information may comprise at least one of address information of said bootstrap router 20, communication path information of said PIM device 10 to said bootstrap router 20.
Optionally, the revocation unit 120 may be further configured to: when the notification message sent by the new bootstrap router is not received within the preset period, determining that the new bootstrap router does not exist within the preset period; and deleting the registration information of the candidate collection points from the information set so as to update the information set.
Optionally, the multicast updating apparatus 100 may further include an election unit. After the information searching unit 110 does not find the routing information and before the revocation unit 120 sends a revocation notification message to the new bootstrap router, the election unit is configured to elect a router in the network together with other routers in the network in which the PIM device 10 is located as the new bootstrap router, where the new bootstrap router is configured to send the notification message to each PIM device.
Optionally, the multicast updating apparatus 100 may further include a deleting unit, configured to delete the revocation notification message from a cache storing the revocation notification message.
Optionally, the multicast updating apparatus 100 may further comprise a node determining unit for determining one PIM device 10 from a plurality of PIM devices 10 in the updated information set as a new collection point based on the updated information set.
It should be noted that, for convenience and brevity of description, the specific working processes of the communication device 40 and the multicast updating apparatus 100 described above may refer to the corresponding processes of each step in the foregoing method, and will not be described in detail herein.
The embodiment of the application also provides a computer readable storage medium. The readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the multicast update method as described in the above embodiments.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented in hardware, or by means of software plus a necessary general hardware platform, and based on this understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disc, a mobile hard disk, etc.), and includes several instructions for causing a computer device (may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective implementation scenario of the present application.
In summary, the present application provides a method, an apparatus, and a communication device for multicast update. The method may be applied to a PIM device currently being a candidate collection point, the method comprising: when PIM equipment needs to withdraw the identity of a candidate collection point of the PIM equipment, searching the routing information of the bootstrap router from the current pre-stored information set; when no route information is found in the information set, judging whether a new bootstrap router exists in a preset period after no route information is found, and cancelling the identity of the candidate collection point of the PIM equipment according to the judging result. In the scheme, when the PIM device needs to withdraw the identity of the candidate collection point of the PIM device, if the bootstrap router is not found, the PIM device can detect whether a new bootstrap router exists in the network, and the PIM device is favorable for timely finding the new bootstrap router, so that the withdrawal of the identity of the candidate collection point of the PIM device can be realized through the new bootstrap router in time.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus, system and method may be implemented in other manners as well. The above-described apparatus, system, and method embodiments are merely illustrative, for example, flow charts 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. In this regard, 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/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. In addition, functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (8)

1. A multicast update method applied to PIM devices currently being candidate collection points, the method comprising:
when the PIM equipment needs to withdraw the identity of the candidate collection point of the PIM equipment, searching the routing information of the bootstrap router from the current pre-stored information set;
when the routing information is not found in the information set, judging whether a new bootstrap router exists in a preset period after the routing information is not found, and cancelling the identity of the candidate collection point of the PIM equipment according to a judging result;
wherein, judging whether a new bootstrap router exists in a preset period after the route information is not found, and according to the judging result, cancelling the identity of the candidate collection point of the PIM device, comprising:
when a notification message sent by a new bootstrap router is received within the preset period, determining that the new bootstrap router exists within the preset period; transmitting a revocation notification message to the new bootstrap router, wherein the new bootstrap router is used for controlling each PIM device stored with the information set to delete the registration information of the candidate collection point from the information set according to the revocation notification message so as to update the information set;
when the notification message sent by the new bootstrap router is not received within the preset period, determining that the new bootstrap router does not exist within the preset period; and deleting the registration information of the candidate collection points from the information set so as to update the information set.
2. The method of claim 1, wherein after not finding the routing information and before sending a revocation advertisement message to the new bootstrap router, the method further comprises:
together with other routers in the network where the PIM device is located, a router is elected in the network as the new bootstrap router for the new bootstrap router to send the advertisement message to each PIM device.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
from the updated information set a PIM device is determined from a plurality of PIM devices in said updated information set as a new collection point.
4. The method according to claim 1 or 2, wherein the routing information comprises at least one of address information of the bootstrap router, communication path information of the PIM device to the bootstrap router.
5. A multicast updating apparatus for application to a PIM device currently being a candidate collection point, said apparatus comprising:
an information searching unit, configured to search routing information of the bootstrap router from a currently pre-stored information set when the PIM device needs to revoke an identity of its own candidate aggregation point;
a revocation unit, configured to, when the routing information is not found in the information set, judge whether a new bootstrap router exists within a preset period after the routing information is not found, and revoke an identity of a candidate collection point of the PIM device according to a result of the judgment;
the revocation unit is specifically configured to:
when a notification message sent by a new bootstrap router is received within the preset period, determining that the new bootstrap router exists within the preset period; transmitting a revocation notification message to the new bootstrap router, wherein the new bootstrap router is used for controlling each PIM device stored with the information set to delete the registration information of the candidate collection point from the information set according to the revocation notification message so as to update the information set;
when the notification message sent by the new bootstrap router is not received within the preset period, determining that the new bootstrap router does not exist within the preset period; and deleting the registration information of the candidate collection points from the information set so as to update the information set.
6. The apparatus according to claim 5, further comprising an election unit configured to elect a router in the network as the new bootstrap router together with other routers in the network where the PIM device is located, after the information search unit does not find the routing information, and before the revocation unit sends a revocation advertisement message to the new bootstrap router, the new bootstrap router being configured to send the advertisement message to each of the PIM devices.
7. The apparatus according to claim 5 or 6, characterized in that the apparatus further comprises a node determining unit for determining a PIM device from a plurality of PIM devices in the updated information set as a new collection point based on the updated information set.
8. A communication device comprising a processor, a memory, coupled to each other, the memory storing a computer program, which when executed by the processor, causes the communication device to perform the method of any of claims 1-4.
CN201910607678.9A 2019-07-05 2019-07-05 Multicast updating method, device and communication equipment Active CN110324155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910607678.9A CN110324155B (en) 2019-07-05 2019-07-05 Multicast updating method, device and communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910607678.9A CN110324155B (en) 2019-07-05 2019-07-05 Multicast updating method, device and communication equipment

Publications (2)

Publication Number Publication Date
CN110324155A CN110324155A (en) 2019-10-11
CN110324155B true CN110324155B (en) 2023-08-22

Family

ID=68122979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910607678.9A Active CN110324155B (en) 2019-07-05 2019-07-05 Multicast updating method, device and communication equipment

Country Status (1)

Country Link
CN (1) CN110324155B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442474A (en) * 2007-11-23 2009-05-27 华为技术有限公司 Bootstrap router and method and system for managing overtime time
CN102724048A (en) * 2012-04-27 2012-10-10 杭州华三通信技术有限公司 Method and device for notifying rendezvous point by sparse-mode protocol independent multicast
CN103634219A (en) * 2013-11-27 2014-03-12 杭州华三通信技术有限公司 Maintaining method and device for Anycast-RP (rendezvous point)
CN104202240A (en) * 2014-07-30 2014-12-10 上海斐讯数据通信技术有限公司 Method of accelerating RP (Rendezvous Point) switchover

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8611254B2 (en) * 2006-10-31 2013-12-17 Hewlett-Packard Development Company, L.P. Systems and methods for configuring a network for multicasting

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442474A (en) * 2007-11-23 2009-05-27 华为技术有限公司 Bootstrap router and method and system for managing overtime time
CN102724048A (en) * 2012-04-27 2012-10-10 杭州华三通信技术有限公司 Method and device for notifying rendezvous point by sparse-mode protocol independent multicast
CN103634219A (en) * 2013-11-27 2014-03-12 杭州华三通信技术有限公司 Maintaining method and device for Anycast-RP (rendezvous point)
CN104202240A (en) * 2014-07-30 2014-12-10 上海斐讯数据通信技术有限公司 Method of accelerating RP (Rendezvous Point) switchover

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
组播路由控制与转发分离机制的设计与实现;刘玄;中国优秀硕士学位论文全文数据库;全文 *

Also Published As

Publication number Publication date
CN110324155A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
US8842577B2 (en) Enabling media access control address mobility in an ethernet virtual private network
CN107911291B (en) VRRP router switching method, router, VRRP active-standby switch system and storage medium
CN109561033B (en) Method and device for multicast replication in Overlay network
US11611509B2 (en) Communication method, communications device, and communications system
CN108964940B (en) Message sending method and device and storage medium
CN110730125B (en) Message forwarding method and device, dual-active system and communication equipment
CA3104756C (en) Loop avoidance communications method, device, and system
CN102647312B (en) A kind of detection method of whole net multicast topology and device
CN102624635A (en) Method and device for realizing graceful restart
US9372708B2 (en) Synchronizing multicast groups
CN107547374B (en) Aggregation route processing method and device
CN114244810A (en) Virtual IP management method, device, electronic equipment and storage medium
CN110324155B (en) Multicast updating method, device and communication equipment
CN113992567B (en) Message forwarding method and device
CN106878173B (en) Route sending method and device
WO2021249173A1 (en) Distributed storage system, abnormality processing method therefor, and related device
CN109361781B (en) Message forwarding method, device, server, system and storage medium
US8644179B2 (en) Control system, control device, composite switch device, and control method
CN114070784A (en) Message processing method and device, electronic equipment and storage medium
CN108924028B (en) Method and device for switching unknown unicast message between tunnels
CN114979037B (en) Multicast method, device, switch and storage medium
CN111835643B (en) Method for managing MAC table, network device, storage medium and program product
CN115801555B (en) Main-standby switching method and device based on preemption delay and electronic equipment
CN115529265B (en) Optimal selection method for PIMSM router upstream path
WO2017012315A1 (en) Service monitoring control method and device

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