CN112671655A - Multicast user access method, electronic device and storage medium - Google Patents

Multicast user access method, electronic device and storage medium Download PDF

Info

Publication number
CN112671655A
CN112671655A CN201910982467.3A CN201910982467A CN112671655A CN 112671655 A CN112671655 A CN 112671655A CN 201910982467 A CN201910982467 A CN 201910982467A CN 112671655 A CN112671655 A CN 112671655A
Authority
CN
China
Prior art keywords
router
multicast
priority
group
designated
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.)
Withdrawn
Application number
CN201910982467.3A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201910982467.3A priority Critical patent/CN112671655A/en
Priority to PCT/CN2020/114245 priority patent/WO2021073318A1/en
Publication of CN112671655A publication Critical patent/CN112671655A/en
Withdrawn legal-status Critical Current

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
    • 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
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers

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 invention relates to the field of communication, and discloses a multicast user access method, electronic equipment and a storage medium. In the invention, the method is applied to a first router in the designated router group, and the designated router group also comprises a second router. The method comprises the following steps: and accessing the users requesting to join the multicast into the multicast, if the number of the users accessing the multicast reaches a preset threshold value, stopping receiving the request of the users requesting to join the multicast, and sending a message requesting the third router to work to the second router, so that the second router informs the third router of taking charge of accessing the users requesting to join the multicast into the multicast. The third router is a router of which the priority in the designated router group is next to the first router. The routers form a priority relation, when the number of users accessed by one router reaches a preset threshold value, another router continues to access new users, and the router of the connected users only needs to keep alive the users establishing the connection. The method can realize that a plurality of routers are connected with users and keep alive, and improves the number of users with multicast access compared with the prior art that only one router can be appointed to be connected with and keep alive the users.

Description

Multicast user access method, electronic device and storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a multicast user access method, an electronic device, and a storage medium.
Background
Multicast (Multicast) is a form of one-to-many or many-to-many multiparty communication. If a user wants to receive multicast packets for a particular multicast group, all packets destined for that group need to be snooped. In order to solve the routing of multicast data packets, a user needs to notify a Group to which a multicast router on the network joins or leaves, and an Internet Group Management Protocol (IGMP for short) is used in multicast to complete the task. In this way, the multicast router can know whether members of the multicast group exist on the network and thus decide whether to forward the multicast packet to the network. When a multicast router receives a multicast data packet, the multicast destination address of the data packet is checked, and the data packet is forwarded to all interfaces or downstream routers where members of the group exist. As a Unicast (Unicast) and Broadcast (Broadcast) parallel communication mode, the Multicast (Multicast) technology can effectively solve the problems of single-point transmission and multipoint reception, thereby realizing the efficient data transmission of point-to-multipoint in the network, saving the network bandwidth and reducing the network load.
The inventors found that at least the following problems exist in the related art: the development of services such as Internet Protocol Television (IPTV), video conference, live broadcast, etc. has higher and higher requirements on the capacity of multicast user groups, that is, more users need to be connected to the multicast group. However, the number of users that can be connected by the multicast group is small at present, which causes the phenomena of web page not opening, blocking and the like in the peak period.
Disclosure of Invention
An object of embodiments of the present invention is to provide a multicast user access method, an electronic device, and a storage medium, which can increase the number of users accessible by multicast.
In order to solve the above technical problem, an embodiment of the present invention provides a multicast user access method, which is applied to a first router in a designated router group, where the designated router group further includes a second router, and the method includes: and accessing the user requesting to join the multicast into the multicast. And if the number of the users accessing the multicast reaches a preset threshold value, stopping receiving the request of the users for joining the multicast, and sending a message for requesting the third router to work to the second router, so that the second router informs the third router to take charge of the users for joining the multicast to be accessed into the multicast. The third router is a router of which the priority in the designated router group is next to the first router.
The embodiment of the invention also provides a multicast user access method which is applied to a second router in the designated router group, and the method comprises the following steps: the method comprises the steps of collecting information of all routers in a designated router group, and determining a first router according to the collected information of all routers, wherein the first router is used for accessing users requesting to join in the multicast to the multicast, and stopping receiving the requests of the users requesting to join in the multicast when the number of the users accessing to the multicast reaches a preset threshold value. And receiving a message which is sent by the first router and requests the third router to work. When the number of users accessing the multicast reaches a preset threshold value, the first router sends a message to inform the third router of accessing the users requesting to join the multicast into the multicast. The third router is a router of which the priority in the designated router group is next to the first router.
An embodiment of the present invention also provides an electronic device, including: the system includes at least one processor, and a memory communicatively coupled to the at least one processor. Wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the multicast subscriber access method described above.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the multicast user access method.
Compared with the prior art, the method and the device for multicast group access have the advantages that the priority relation is formed among the routers in the designated router group in the multicast group, and after the number of users accessed by one router reaches the preset threshold value, another router with the next priority continues to access new users. The router connected with the users only needs to keep alive the users establishing the connection, so that the connection of the users by the plurality of routers is realized, and the number of users accessible to the multicast group is increased compared with the prior art that only one router is appointed to connect and keep alive the users.
In addition, the priority of the first router is second only to the second router in the designated router group. And selecting the router with higher priority as the second router, ensuring that the second router can normally play a scheduling role, and avoiding the problem that the influence of informing another router to work due to the lower priority of the second router, so that more users are influenced to connect.
In addition, the second router is obtained according to the priority election of each router in the designated router group. And if the number of the routers with the highest priority in the designated router group is more than one, determining the second router according to the IP address of the router with the highest priority. The priorities of the routers in the designated router group are compared firstly, and if the unique second router cannot be determined according to the priorities of the routers, the IP addresses of the routers are continuously compared. The method for determining the only second router is provided, the problem that when the number of users connected with the first router reaches a threshold value under the condition that a plurality of second routers exist, the process that the plurality of second routers schedule another router to start working is disordered is solved, and the method is beneficial to simplifying the process of informing the other router to start working.
In addition, before accessing the user requesting to join the multicast into the multicast, the method further comprises the following steps: and sending an announcement message, wherein the announcement message carries the priority and the IP address of the announcement message, and all routers in the designated router group are used for electing to obtain a second router. The method for obtaining the unique second router by election is provided, and the problem that when a plurality of second routers exist, the process that the plurality of second routers schedule another router to start working is disordered after the number of users connected with the first router reaches a threshold value is solved.
In addition, the information of each router, including the priority and the IP address of each router, determines the first router according to the collected information of each router, and includes: editing the priority and IP address of each router into candidate router configuration information, announcing the candidate router configuration information in the designated router group, and judging whether the router is the first router or not according to the candidate router configuration information. The second router edits the collected information of each router into candidate router configuration information, announces the candidate router configuration information in the designated router group, and judges whether the second router is the first router or not according to the configuration information, and then executes the next action. The working sequence of each router is determined according to the priority sequence and the IP address, which is beneficial to ensuring that a unique router is responsible for receiving the access request of the user all the time.
In addition, the second router is obtained by the following selection modes of each router in the designated router group: and each router in the designated router group respectively sends an announcement message, and the announcement message carries the priority and the IP address of the router. And each router in the designated router group receives the announcement message which is sent by other routers and carries the priority and the IP address, compares the priority in the received announcement message with the priority of the router, and announces the router as a second router if the priority of the router is higher. And if the priority in the received announcement message is the same as the priority of the router, deciding whether to announce the router as a second router or not according to the IP address in the announcement message and the IP address of the router. The specific method for electing the second router is characterized in that the announcement message sent by each router is received, the priority is compared, if the second router cannot be determined according to the priority, the IP addresses are continuously compared, the unique second router is guaranteed, the problem that when a plurality of second routers exist, the process that the second routers schedule another router to start working is disordered after the number of users connected with the first router reaches the threshold value is avoided, and the process for informing the other router to start working is facilitated.
Drawings
One or more embodiments are illustrated by the corresponding figures in the drawings, which are not meant to be limiting.
Fig. 1 is a flowchart of a multicast user access method in a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a designated router group according to a first embodiment of the present invention;
FIG. 3 is a flow chart of an election of a second router in a second embodiment of the invention;
fig. 4 is a flowchart of a multicast user access method in a third embodiment of the present invention;
fig. 5 is a schematic configuration diagram of an electronic device in a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
A first embodiment of the present invention relates to a multicast subscriber access method, which is applied to a first Router in a Designated Router (DR) group. The designated router group is composed of a plurality of routers at the multicast side, and the first router is a router which receives a user joining request in the plurality of routers at the multicast side. In this embodiment, the first router accesses a user requesting to join a multicast to the multicast. And if the number of the users accessing the multicast reaches a preset threshold value, stopping receiving the request of the users for joining the multicast, and sending a message for requesting the third router to work to the second router, so that the second router informs the third router to take charge of the users for joining the multicast to be accessed into the multicast. When the number of users of multicast connection reaches the threshold value, the other router is informed to receive the user joining request, and the first router only needs to keep alive the users which are connected now. The following describes implementation details of the multicast user access method according to this embodiment in detail, and the following is only provided for easy understanding of the implementation details, and is not necessary for implementing this embodiment. The specific process is shown in fig. 1, and comprises the following steps:
step 101, a first router in a designated router group accesses a user requesting to join in the multicast to the multicast.
Specifically, in the present embodiment, the purpose of expanding the multicast group members is achieved by establishing a multicast user side designated router DR group in advance. The designated router group comprises a plurality of routers, each router can obtain a special router (namely a second router) through election, and the router with the highest priority is determined as a first router in the rest routers. In this step, the first router accesses the user requesting to join the multicast to the multicast. In practical application, after accessing a user requesting to join a multicast to the multicast, the first router may also send a keep-alive message to the user accessing to the multicast.
In one specific example, the second router may be elected based on a priority of each router in the designated router group, i.e., the priority of the first router is second only to the second router in the designated router group. And if the number of the routers with the highest priority in the designated router group is more than one, determining the second router according to the IP address of the router with the highest priority so as to ensure that only one router can be elected to be used as the second router. For example, a router with a larger IP address may be selected as the second router. In actual operation, a router with a smaller IP address may be used as the second router, which is not limited herein.
It should be noted that before the first router accesses the user requesting to join the multicast into the multicast, each router on the multicast side needs to be enabled to ensure that each router can work normally. Then, Protocol Independent Multicast (PIM) neighbors are established among the routers on the Multicast side, and then the routers on the Multicast side select a second router according to the election rule. However, the present invention is not limited to the above election rule, and in actual operation, only the second router may be elected according to a preset election rule. After the second router is determined, the routers except the second router on the multicast side determine the working sequence according to the priority and the IP address of the routers. If the user establishes connection with the first router, the first router sends a corresponding response message corresponding to the keep-alive message to the first router, thereby achieving the effect of keeping the user who has established connection alive.
Step 102, judging whether the number of the users accessing the multicast reaches a preset threshold value. If the number of users accessing the multicast reaches a preset threshold, entering step 103; otherwise, go back to step 101.
In a specific example, each time the first router accesses a user requesting to join the multicast to the multicast, it is determined whether the number of users establishing connection with the first router reaches a preset threshold, where the preset threshold may be set according to the maximum user access number of the first router, for example, the preset threshold is set as the maximum user access number of the first router, or a product of the maximum user access number of the first router and a preset scaling factor is used as the preset threshold.
Step 103, stopping receiving the request of the user for joining the multicast, and sending a message for requesting the third router to work to the second router. The third router is a router of which the priority in the designated router group is next to the first router.
In a specific example, assuming that the preset threshold is 10, after the 10 th user accesses the multicast, it is determined that the number of users accessing the multicast reaches 10, that is, the preset threshold is reached, the receiving of the request of the user requesting to join the multicast is stopped, and a message requesting the third router to operate is sent to the second router.
It should be noted that even if the first router stops receiving the request of the user to join the multicast, it will continue to send keep-alive messages to the users who have accessed the multicast. In addition, the message requesting the third router to work is sent to the second router, so that the second router notifies the third router that the user requesting to join the multicast is responsible for accessing the multicast. The third router is a router of which the priority in the designated router group is next to the first router.
In a specific example, there is a multicast group that includes a designated router group, as shown in fig. 2, having a plurality of routers A, B, C and D. It should be noted that, in actual operation, the number of routers may not be limited to 4, and the designated router group may be formed by routers and switches, which is not limited herein. The priority of the router B is the highest, the priority of the router A is only second to the router B, the priority of the router C is only second to the router A, and the priority of the router D is the lowest. That is, A, B, C, D is ranked from high to low by priority: B. a, C, D are provided. Therefore, the router B is elected as the second router by the election mechanism, and the router B is regarded as the first router and the router C is regarded as the third router among the remaining routers.
Assuming that the user 1 wants to join the multicast, the host of the user 1 sends a message for joining the multicast, such as an IGMP message, to the first router a, which is not limited herein. It should be noted that the destination address is an address of the multicast group, and the type of the message sent when the host joins a certain multicast group includes 0x16, which is not limited herein. At this time, first, the first router a receives a message request of joining the multicast by the host, and accesses the host requesting to join the multicast to the multicast. The host accessing the multicast also means that the connection establishment of the first router a with the host has been completed, and the host is added to the multicast member list. Then, the first router a sends a query message, i.e. a keep-alive message, to the host that has established a connection with itself, and after receiving the query message, the host returns a response message corresponding to the query message to prove that the host still exists in the multicast, so as to achieve the effect of keeping-alive the host that has established a connection with the first router a, and after the first router a starts working, the number of the router counter is set to 1. Assuming that the preset threshold of the number of users accessible to the first router a is 10, when the first router a is connected to 10 hosts, the receiving of the request of the hosts for joining the multicast is stopped, and a message requesting the third router C to operate is sent to the second router B, then the second router B forwards the message sent by the first router a to the third router C, and the third router C starts to operate after receiving the message sent by the second router B, at this time, the number of the router counter is increased by 1, that is, 2, which indicates that 2 routers are currently operating. By the method, the number of the used routers can be known, so that the routers are allocated, and idle routers are fully utilized. The process of the third router C during operation is similar to the process of the first router a during operation, that is, after the number of hosts connected to the third router C reaches a preset threshold, the receiving of the request of the host to join the multicast is stopped, and a message requesting the fourth router D to operate is sent to the second router B, and then the second router B forwards the message sent by the third router C to the fourth router D. The working flows of the routers other than the second router B are the same, and are not described herein again.
In this embodiment, when the number of users accessing the multicast through the first router reaches a preset threshold, the first router stops receiving a request of the user for joining the multicast, and sends a message requesting the third router to operate to the second router, so that the second router notifies the third router that the user requesting the joining the multicast is accessed to the multicast. The router is ensured to receive the request of joining the multicast of the new user all the time, and the router with the connected user number reaching the threshold value only needs to keep alive the user which is connected now.
A second embodiment of the present invention relates to a multicast user access method. In a second embodiment of the present invention, before accessing a user requesting to join a multicast to the multicast, a first router sends an announcement message and receives announcement messages sent by other routers in a designated router group. The announcement message carries the priority and the IP address of the router. The first router compares the priority and the IP address in the received announcement message with the priority and the IP address of the first router, and thus the second router is obtained through election. The specific process is shown in fig. 3, and includes:
step 201, sending the announcement message carrying the self priority and the IP address, and receiving the announcement message sent by other routers in the designated router group.
Specifically, each router in the designated router group sends an announcement message carrying its own priority and IP address, and receives announcement messages sent by other routers.
In one specific example, there are multiple routers A, B, C and D in a given router group. And each router sends an announcement message carrying the self priority and the IP address in the designated router group respectively. Such as: router a will send an announcement message carrying its own priority and IP address in the designated router group, and will also receive an announcement message carrying their own priority and IP address, respectively, sent by router B, C, D. The same applies to router B, router C, and router D, and will not be described herein again.
Step 202, determine whether its own priority is higher than the priority in the received announcement message. If yes, go to step 203; if not, go to step 204.
Specifically, after each router in the designated router group receives the announcement message sent by other routers, the router compares the priority in the received announcement message with the priority of the router.
In a specific example, assuming that the designated router group includes router a, router B, and router C, when router a receives the advertisement message of router B, its own priority is compared with the priority of router B. The same applies to router B and router C, and will not be described herein again.
Step 203, declare itself a second router.
It should be noted that there must be one router in the designated router group that will send an advertisement message to announce itself as the second router. But for the first router there must be one higher than or equal to its own priority. Therefore, after determining whether the self-priority is higher than the priority in the received advertisement message, the first router will continue to determine whether the self-priority is equal to the priority in the received advertisement message, i.e., step 204 is performed.
Step 204, judging whether the self priority is equal to the priority in the received announcement message; if yes, go to step 205; if not, go to step 206.
In a specific example, assuming that there are router a, router B and router C in the designated router group and the priority of router B is equal to the priority of router a, router a compares its own IP address with the IP address in the received announce message, i.e., proceeds to step 205.
Step 205, determine whether its own IP address is larger than the IP address in the received announcement message. If yes, go to step 203; if not, go to step 206.
Specifically, after each router in the designated router group receives the advertisement messages sent by other routers, the router compares not only the priority in the received advertisement message with its own priority, but also the IP address in the received advertisement message with its own IP address.
Step 206, continuously receiving the announcement message carrying the priority and the IP address sent by other routers in the designated router group.
In this embodiment, if the own IP address of one router in the designated router group is greater than the IP address in the advertisement message, the designated router is declared to be the second router, and in actual operation, the condition may be set such that when the own IP address is smaller than the IP address in the advertisement message, the designated router is declared to be the second router.
In a specific example, there is a multicast group that includes a designated group of routers. Assume that there are 3 routers A, B and C in the designated router group. The router A, B, C sends out an announcement message to announce its priority and IP address, respectively. The announcement message type may be a boottrap message, which is not limited herein. Assuming that router B receives the advertisement message of router a, the priority in the advertisement message of router a is compared with its own priority. If the priority of the router A is higher than that of the router A, the router B continues to listen to the announcement messages sent by other routers. If the priority of the router A is equal to the priority of the router A, the IP address of the router A is compared with the IP address of the router A, and if the IP address of the router A is smaller than the IP address of the router, the router B sends an announcement message of the router B as a second router according to a certain period. Such as: the announcement message is sent every 60s, and in actual operation, the period may also be 30s, 1min, and the like, which is not limited herein. The announcement message still carries the priority and IP address of router B, so that routers a and C know the IP address and priority of router B, and thus send the priority and IP address to the second router B.
In a specific example, when a second router (e.g., router B) is elected, router a and router C are ranked according to priority to determine the order in which they operate. Since the routers a and C already know that the router B is the second router, the routers a and C respectively send an announcement message to the second router B, where the announcement message includes a priority and an IP address, so that the second router B compiles the priorities and the IP addresses of the routers a and C into candidate router configuration information and announces the candidate router configuration information in a designated router group.
In this embodiment, before accessing the user requesting to join the multicast to the multicast, the first router further sends an announcement message for the routers in the designated router group to elect to obtain the second router. A method of electing a second router is provided that ensures that only a unique second router exists. The problem that when the number of users connected with the first router reaches the threshold value under the condition that a plurality of second routers exist, the plurality of second routers schedule another router to start working is disordered is solved, and the process of informing the other router to start working is simplified. After the second router is obtained by election, the multicast user access method shown in fig. 1 is entered, which is not described herein again.
The third embodiment of the invention relates to a multicast user access method, which is applied to a second router in a designated router group. In the present embodiment, the second router collects information specifying each router in the router group, and specifies the first router based on the collected information of each router. And then receiving a message which is sent by the first router and requests the third router to work. And informs the third router to take charge of accessing the users who request to join the multicast into the multicast. The following describes implementation details of the multicast user access method according to this embodiment in detail, and the following is only provided for easy understanding of the implementation details, and is not necessary for implementing this embodiment. The specific process is shown in fig. 4, and includes:
step 301, information of each router in the designated router group is collected.
Specifically, the information of each router includes the priority and IP address of each router. The second router edits the priority and the IP address of each router into candidate router configuration information, declares the candidate router configuration information in the designated router group, and is used for judging whether the second router is the first router or not by each router according to the candidate router configuration information.
Specifically, each router in the designated router group sends an announcement message, the announcement message carries the priority and the IP address of the router, and each router in the designated router group receives announcement messages which are sent by other routers and carry the priority and the IP address, and compares the priority in the received announcement messages with the priority of the router. If the priority of itself is higher, it is declared as the second router. And if the priority in the received announcement message is the same as the priority of the self-body, further deciding whether to announce the self-body to be the second router or not according to the IP address in the announcement message and the IP address of the self-body, and thus electing the unique second router.
Step 302, determining a first router according to the collected information of each router.
Specifically, the first router is configured to access users requesting to join in the multicast to the multicast, and stop receiving a request of the user requesting to join in the multicast when the number of the users accessing the multicast reaches a preset threshold. In practical application, after accessing a user requesting to join a multicast to the multicast, the first router may also send a keep-alive message to the user accessing to the multicast.
In a specific example, there is a multicast group that includes a designated group of routers. Assume that there are 3 routers A, B and C in the designated router group. Assuming that router B is elected as the second router, the second router B will collect the router information of routers a and C, i.e., the priorities and IP addresses of routers a and C, to determine the order of operation of router a and router C. The second router B compiles the router information of the routers a and C into candidate router configuration information. Such as: the router information of the routers a and C may be optionally made into an information table, which is not limited herein. And then declaring the candidate router configuration information in the designated router group, so that each router judges whether the router is the first router or not according to the candidate router configuration information. Assuming that the router a receives the priority and the IP address of the router C in the candidate router configuration information at this time, the priority of the router a may be compared with the priority of the router C, and if the priority is greater than the priority of the router C, the router a knows itself as the first router.
Step 303, receiving a message sent by the first router requesting the third router to operate.
Specifically, when the number of users accessing the multicast reaches a preset threshold, the first router sends a message requesting the third router to operate.
Step 304, notifying the third router to take charge of accessing the user who requests to join the multicast into the multicast.
Specifically, the third router is a router in the designated router group having a priority next to the first router.
In a specific example, there is a multicast group that includes a designated group of routers. Assume that there are 3 routers A, B and C in the designated router group, where A is the first router, B is the second router, and C is the third router. Assuming that the preset threshold of the number of users accessible to the first router a is 10, when the first router a is connected to 10 hosts, the first router a stops receiving a request of a user for joining the multicast, and sends a message requesting the third router C to operate to the second router B, and then the second router B forwards the message sent by the first router a to the third router C, so as to notify the third router C to start operating, that is, to access the user requesting to join the multicast to the multicast.
Further, after the third router is informed to start working, the counter number of the router is added by 1. In a specific example, there is a multicast group that includes a designated group of routers. Assume that there are 3 routers A, B and C in the designated router group, where A is the first router, B is the second router, and C is the third router. When the first router a starts to work, the router counter is set to 1. And after the number of users accessed by the first router A reaches a preset threshold value, sending a message for requesting the third router to start working to the second router B. And the second router B receives the message sent by the first router A and forwards the message to the third router C, and the number of the router counters is increased by 1 at the moment, namely the number of the router counters is 2 at the moment. By the method, the number of the used routers can be known, so that the routers are allocated, and idle routers are fully utilized.
In this embodiment, the second router determines the first router according to the received information of each router, and notifies the third router to operate, so that the router always receives the access request of the user, and keeps alive the connected users, thereby increasing the access number of multicast users.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fourth embodiment of the present invention relates to an electronic apparatus, as shown in fig. 5, including: at least one processor 401; and a memory 402 communicatively coupled to the at least one processor. The memory 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401 to enable the at least one processor 401 to execute the multicast subscriber access method described above.
Where the memory 402 and the processor 401 are coupled by a bus, which may include any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 401 and the memory 402 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 401 may be transmitted over a wireless medium via an antenna, which may receive the data and transmit the data to the processor 401.
The processor 401 is responsible for managing the bus and general processing and may provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 402 may be used to store data used by processor 401 in performing operations.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (9)

1. A multicast user access method is characterized in that the method is applied to a first router in a designated router group; the designated router group also comprises a second router; the method comprises the following steps:
accessing the user requesting to join the multicast into the multicast;
if the number of the users accessing the multicast reaches a preset threshold value, stopping receiving the request of the users for requesting to join the multicast, and sending a message for requesting a third router to work to the second router, so that the second router informs the third router of accessing the users requesting to join the multicast to the multicast;
wherein the third router is a router of the designated router group having a priority next to the first router.
2. The multicast subscriber access method according to claim 1, wherein the first router has a priority next to the second router in the designated router group.
3. The multicast subscriber access method according to claim 1, wherein the second router is obtained by priority election of each router in the designated router group;
and if the number of the routers with the highest priority in the designated router group is more than one, determining the second router according to the IP address of the router with the highest priority.
4. The multicast subscriber access method according to claim 3, wherein before accessing the subscriber requesting to join the multicast into the multicast, the method further comprises:
and sending an announcement message, wherein the announcement message carries the priority and the IP address of the announcement message, and each router in the designated router group is used for electing to obtain the second router.
5. A multicast user access method applied to a second router in a designated router group includes:
collecting information of each router in the designated router group;
determining a first router according to the collected information of each router; the first router is used for accessing users requesting to join in the multicast to the multicast, and stopping receiving the requests of the users requesting to join in the multicast when the number of the users accessing to the multicast reaches a preset threshold value;
receiving a message which is sent by the first router and requests a third router to work; the first router sends the message when the number of the users accessing the multicast reaches a preset threshold value;
informing the third router to take charge of accessing the user who requests to join the multicast into the multicast; wherein the third router is a router of the designated router group having a priority next to the first router.
6. The multicast subscriber access method according to claim 5, wherein the information of each router includes a priority and an IP address of each router;
the determining the first router according to the collected information of the routers includes:
compiling the priority and the IP address of each router into candidate router configuration information;
declaring the candidate router configuration information in the designated router group, so that each router can judge whether the router is the first router or not according to the candidate router configuration information.
7. The multicast subscriber access method according to claim 5, wherein the second router is elected by each router in the designated router group by:
each router in the designated router group respectively sends an announcement message, wherein the announcement message carries the priority and the IP address of the router;
each router in the designated router group receives announcement messages which are sent by other routers and carry priorities and IP addresses respectively, compares the priorities in the received announcement messages with the priorities of the routers, and announces the routers as the second routers if the priorities of the routers are higher;
and if the priority in the received announcement message is the same as the priority of the router, deciding whether to announce the router as the second router or not according to the IP address in the announcement message and the IP address of the router.
8. An electronic device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the multicast user access method of any of claims 1 to 4; or to enable the at least one processor to perform a multicast user access method as claimed in any of claims 5 to 7.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the multicast user access method of any one of claims 1 to 4; or, when executed by a processor, implement the multicast user access method of any of claims 5 to 7.
CN201910982467.3A 2019-10-16 2019-10-16 Multicast user access method, electronic device and storage medium Withdrawn CN112671655A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910982467.3A CN112671655A (en) 2019-10-16 2019-10-16 Multicast user access method, electronic device and storage medium
PCT/CN2020/114245 WO2021073318A1 (en) 2019-10-16 2020-09-09 Multicast user access method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910982467.3A CN112671655A (en) 2019-10-16 2019-10-16 Multicast user access method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN112671655A true CN112671655A (en) 2021-04-16

Family

ID=75400624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910982467.3A Withdrawn CN112671655A (en) 2019-10-16 2019-10-16 Multicast user access method, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN112671655A (en)
WO (1) WO2021073318A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577679A (en) * 2009-06-26 2009-11-11 杭州华三通信技术有限公司 Configuration management method for realizing multicast service sharing among appointed routers and appliance thereof
CN101841485A (en) * 2010-05-28 2010-09-22 华为技术有限公司 Method and relevant device for sharing multicast traffic
CN103117935A (en) * 2013-02-28 2013-05-22 杭州华三通信技术有限公司 Multicast data forwarding method and multicast data forwarding device applied to multi-homing networking
CN109787870A (en) * 2017-11-13 2019-05-21 中兴通讯股份有限公司 Access management method, device, system, initial and target access device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309158A (en) * 2007-05-15 2008-11-19 华为技术有限公司 Method and apparatus realizing access control of multicast connection
KR100975018B1 (en) * 2008-06-30 2010-08-11 주식회사 다산네트웍스 apparatus for Internet Group Management Protocol Proxy
CN101345641B (en) * 2008-08-21 2011-05-25 中兴通讯股份有限公司 Multicast access equipment and method
CN101789902B (en) * 2009-12-25 2012-07-25 福建星网锐捷网络有限公司 Load balancing method for multicast data stream, route equipment and network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577679A (en) * 2009-06-26 2009-11-11 杭州华三通信技术有限公司 Configuration management method for realizing multicast service sharing among appointed routers and appliance thereof
CN101841485A (en) * 2010-05-28 2010-09-22 华为技术有限公司 Method and relevant device for sharing multicast traffic
CN103117935A (en) * 2013-02-28 2013-05-22 杭州华三通信技术有限公司 Multicast data forwarding method and multicast data forwarding device applied to multi-homing networking
CN109787870A (en) * 2017-11-13 2019-05-21 中兴通讯股份有限公司 Access management method, device, system, initial and target access device

Also Published As

Publication number Publication date
WO2021073318A1 (en) 2021-04-22

Similar Documents

Publication Publication Date Title
US8094602B2 (en) Methods and apparatus for managing multicast groups
JP5844879B2 (en) MBMS service transmission method switching method, apparatus, and user apparatus
KR101150656B1 (en) Multicast communications within a wireless network
JP4486123B2 (en) How to count the number of users of multimedia, broadcast and multicast services
EP1865661B1 (en) A method of fast-multicast and a system thereof
US20100046516A1 (en) Methods and Devices for Managing Multicast Traffic
US7200654B2 (en) Method of constructing and managing overlay multicast tree on Internet
US11337040B2 (en) Broadcast bearer management method and device thereof
US9351280B2 (en) Apparatus and method for providing multicast and broadcast service in mobile communication environment
CN101345641B (en) Multicast access equipment and method
CN112671655A (en) Multicast user access method, electronic device and storage medium
KR20100047641A (en) Iptv receiver and operating method for iptv receiver

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210416