CN116366577A - Bandwidth allocation method and device for multicast group of exchange unit and readable storage medium - Google Patents

Bandwidth allocation method and device for multicast group of exchange unit and readable storage medium Download PDF

Info

Publication number
CN116366577A
CN116366577A CN202310244313.0A CN202310244313A CN116366577A CN 116366577 A CN116366577 A CN 116366577A CN 202310244313 A CN202310244313 A CN 202310244313A CN 116366577 A CN116366577 A CN 116366577A
Authority
CN
China
Prior art keywords
multicast
bandwidth
switch
user side
hardware
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.)
Pending
Application number
CN202310244313.0A
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.)
Shenzhen Fengrunda Technology Co ltd
Original Assignee
Shenzhen Fengrunda 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 Shenzhen Fengrunda Technology Co ltd filed Critical Shenzhen Fengrunda Technology Co ltd
Priority to CN202310244313.0A priority Critical patent/CN116366577A/en
Publication of CN116366577A publication Critical patent/CN116366577A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/806Broadcast or multicast traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The invention discloses a bandwidth allocation method of a multicast group of a switch, which comprises the following steps: acquiring the resource occupancy rate of a hardware routing table of the switch, and confirming whether the resources of the hardware routing table of the switch remain or not according to the resource occupancy rate; when the hardware routing table of the switch is confirmed to have residual resources, adding a newly learned hardware multicast table to the hardware driver of the switch, and distributing multicast bandwidth resources for a user side port by using the newly added hardware multicast table; and when the hardware routing table of the switch is confirmed to have no residual resources, distributing multicast bandwidth resources to the user side ports according to the IP priority of the newly added multicast source. The invention also discloses a device and a readable storage medium. The invention uses the technology of combining the hardware multicast table and the software multicast table item, which is beneficial to solving the problem of insufficient hardware multicast table and improving the utilization efficiency of multicast table resources.

Description

Bandwidth allocation method and device for multicast group of exchange unit and readable storage medium
Technical Field
The present invention relates to the technical field of switch applications, and in particular, to a method for allocating bandwidth of a multicast group of a switch and a readable storage medium.
Background
The two-layer switch is an edge switch capable of forwarding multicast source data according to a multicast group and is positioned at the second layer of the network model: a link layer. Creating a software table item through the multicast source learned by IGMP-SNOOPING, issuing the software table item to a switching chip according to the learned software table item, and forwarding hardware for improving stability, reducing the load of a CPU processor and finally realizing the purpose that a designated port designates a host to receive the multicast source;
however, the capacity of the hardware multicast table item is relatively scarce, and any number and kind of multicast sources cannot be added; when the number of the multicast sources exceeds the capacity of the hardware multicast table, the situation that the rest of equipment cannot learn the multicast sources is caused, so that multicast data cannot be listened to, and part of services cannot be performed;
even if the multicast hardware table is not fully written, the problem that bandwidth resources required by different multicast group members are insufficient exists, so that data forwarded by different multicast sources need to be optimally scheduled, and the multicast forwarding efficiency of the whole edge network is improved;
the foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a bandwidth allocation method of a multicast group of a switch and a readable storage medium, which aim to solve the technical problems that bandwidth allocation of a hardware multicast table item of the existing switch is unreasonable and multicast forwarding efficiency of an edge network is affected.
To achieve the above object, the present invention provides a bandwidth allocation method for a multicast group of a switch, including the steps of:
acquiring the resource occupancy rate of a hardware routing table of the switch, and confirming whether the resources of the hardware routing table of the switch remain or not according to the resource occupancy rate;
when the hardware routing table of the switch is confirmed to have residual resources, adding a newly learned hardware multicast table to the hardware driver of the switch, and distributing multicast bandwidth resources for a user side port by using the newly added hardware multicast table;
and when the hardware routing table of the switch is confirmed to have no residual resources, distributing multicast bandwidth resources to the user side ports according to the IP priority of the newly added multicast source.
Optionally, when confirming that the switch hardware routing table has the remaining resources, adding the newly learned hardware multicast table to a switch hardware driver, and allocating multicast bandwidth resources for a user side port by using the newly added hardware multicast table, including:
determining the bandwidth utilization rate of the existing user side port;
if the bandwidth utilization rate reaches a preset value, the multicast bandwidth resource is allocated according to the priority of the multicast group corresponding to the user side port.
Optionally, before the step of allocating multicast bandwidth resources according to the priority of the multicast group corresponding to the user side port, the method further includes:
confirming whether the user side port loses the packet or not;
and when confirming that the user side port loses the packet, executing the step of distributing multicast bandwidth resources according to the priority of the multicast group corresponding to the user side port.
Optionally, when the switch hardware routing table is confirmed to have no remaining resources, the step of allocating multicast bandwidth resources to the user side port according to the newly added multicast source IP priority includes:
confirming a target IP user with high priority;
and newly adding a multicast source corresponding to the target IP user, and distributing multicast bandwidth resources for the user side port by using the newly added multicast source.
Optionally, the step of identifying the target IP user with high priority includes:
collecting parameter information of IP data packets reported by each multicast source IP report message and query message;
and determining the priority order of the multicast sources according to the parameter information, and taking the multicast source IP with high priority as the target IP user.
Optionally, before the step of allocating the multicast bandwidth resource for the user side port by using the newly added multicast source, the method further includes:
collecting parameter information of IP data packets of each multicast source IP report message and multicast flow of the user side port;
and executing the step of distributing multicast bandwidth resources for the user side port by using the newly added multicast source when the multicast flow is confirmed to be larger than the maximum bandwidth distribution of the user side port.
Optionally, the step of allocating multicast bandwidth resources for the user side port with the newly added multicast source includes:
confirming the priority of each user side port;
and distributing multicast bandwidth resources to the user side ports according to the priority.
Optionally, after the step of identifying the target IP user with high priority, the method further includes:
confirming IP users with low priority;
and deleting the multicast group corresponding to the IP user with low priority.
To achieve the above object, the present invention further provides a bandwidth allocation apparatus for a multicast group of a switch, the bandwidth allocation apparatus for a multicast group of a switch comprising: a memory, a processor, and a bandwidth allocation program of a switch multicast group stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the bandwidth allocation system of a switch multicast group as described above.
In addition, to achieve the above object, the present invention also provides a readable storage medium storing a bandwidth allocation program of a switch multicast group, which when executed implements the steps of the bandwidth allocation system of the switch multicast group as described above.
The bandwidth allocation method for the multicast group of the exchanger provided by the embodiment of the invention comprises the steps of obtaining the resource occupancy rate of a hardware routing table of the exchanger, and confirming whether the resources of the hardware routing table of the exchanger are remained or not according to the resource occupancy rate; when the hardware routing table of the switch is confirmed to have residual resources, adding a newly learned hardware multicast table to the hardware driver of the switch, and distributing multicast bandwidth resources for a user side port by using the newly added hardware multicast table; and when the hardware routing table of the switch is confirmed to have no residual resources, distributing multicast bandwidth resources to the user side ports according to the IP priority of the newly added multicast source. When the technical scheme is applied, two-layer forwarding of multicast data is realized by combining software and hardware, the problem of insufficient hardware multicast table is solved, the size of an analysis software table item can be expanded infinitely theoretically, based on the fact, under the condition that hardware multicast table resources remain and hardware port resources are used up, bandwidth resources required and available for each multicast source under a calculated port are limited by combining QOS and ACL; when the hardware port resources are left and the hardware multicast table is used up, the offline or unused multicast group is deleted according to the flow statistics measured by the host and the activation message statistics measured by the host, so that the multicast group is not needed after the addition, and the multicast group is deleted when the resources are full after the addition, thereby greatly improving the utilization efficiency of the multicast resources; the priority processing of the multicast group uses the resources and the on-line state to calculate the proportion of the whole replacement priority and port flow distribution to carry out flow distribution, thereby maximally improving the utilization rate of the hardware multicast table resources.
Drawings
FIG. 1 is a schematic diagram of a terminal/device structure of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flow chart of a first embodiment of the bandwidth allocation system of the switch multicast group according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: acquiring the resource occupancy rate of a hardware routing table of the switch, and confirming whether the resources of the hardware routing table of the switch remain or not according to the resource occupancy rate; when the hardware routing table of the switch is confirmed to have residual resources, adding a newly learned hardware multicast table to the hardware driver of the switch, and distributing multicast bandwidth resources for a user side port by using the newly added hardware multicast table; and when the hardware routing table of the switch is confirmed to have no residual resources, distributing multicast bandwidth resources to the user side ports according to the IP priority of the newly added multicast source.
Because the capacity of the hardware multicast table item in the prior art is relatively scarce, when the number of multicast sources exceeds the capacity of the hardware multicast table, the situation that the rest of equipment cannot learn the multicast sources is caused, so that multicast data cannot be listened to, and partial services cannot be performed; even if the multicast hardware table is not fully written, the problem that bandwidth resources required by different multicast group members are insufficient exists, and multicast forwarding efficiency of the whole edge network cannot be improved.
The invention provides a solution, under the condition that the hardware multicast table resource is remained and the hardware port resource is used up, the service bandwidth is limited by the combination of QOS and ACL through the bandwidth resource which is needed and can be given by each multicast source under the calculated port; when the hardware port resources are left and the hardware multicast table is used up, the offline or unused multicast group is deleted according to the flow statistics measured by the host and the activation message statistics measured by the host, so that the multicast group is not needed after the addition, and the multicast group is deleted when the resources are full after the addition, thereby greatly improving the utilization efficiency of the multicast resources; the priority processing of the multicast group uses the resources and the on-line state to calculate the proportion of the whole replacement priority and port flow distribution to carry out flow distribution, thereby maximally improving the utilization rate of the hardware multicast table resources.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention comprises the following steps: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and a bandwidth allocation program for a switch multicast group.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a bandwidth allocation program of the switch multicast group stored in the memory 1005 and perform the following operations:
acquiring the resource occupancy rate of a hardware routing table of the switch, and confirming whether the resources of the hardware routing table of the switch remain or not according to the resource occupancy rate;
when the hardware routing table of the switch is confirmed to have residual resources, adding a newly learned hardware multicast table to the hardware driver of the switch, and distributing multicast bandwidth resources for a user side port by using the newly added hardware multicast table;
and when the hardware routing table of the switch is confirmed to have no residual resources, distributing multicast bandwidth resources to the user side ports according to the IP priority of the newly added multicast source.
Further, the processor 1001 may call a bandwidth allocation program of the switch multicast group stored in the memory 1005, and further perform the following operations:
determining the bandwidth utilization rate of the existing user side port;
if the bandwidth utilization rate reaches a preset value, the multicast bandwidth resource is allocated according to the priority of the multicast group corresponding to the user side port.
Further, the processor 1001 may call a bandwidth allocation program of the switch multicast group stored in the memory 1005, and further perform the following operations:
confirming whether the user side port loses the packet or not;
and when confirming that the user side port loses the packet, executing the step of distributing multicast bandwidth resources according to the priority of the multicast group corresponding to the user side port.
Further, the processor 1001 may call a bandwidth allocation program of the switch multicast group stored in the memory 1005, and further perform the following operations:
confirming a target IP user with high priority;
and newly adding a multicast source corresponding to the target IP user, and distributing multicast bandwidth resources for the user side port by using the newly added multicast source.
Further, the processor 1001 may call a bandwidth allocation program of the switch multicast group stored in the memory 1005, and further perform the following operations:
collecting parameter information of IP data packets reported by each multicast source IP report message and query message;
and determining the priority order of the multicast sources according to the parameter information, and taking the multicast source IP with high priority as the target IP user.
Further, the processor 1001 may call a bandwidth allocation program of the switch multicast group stored in the memory 1005, and further perform the following operations:
collecting parameter information of IP data packets of each multicast source IP report message and multicast flow of the user side port;
and executing the step of distributing multicast bandwidth resources for the user side port by using the newly added multicast source when the multicast flow is confirmed to be larger than the maximum bandwidth distribution of the user side port.
Further, the processor 1001 may call a bandwidth allocation program of the switch multicast group stored in the memory 1005, and further perform the following operations:
confirming the priority of each user side port;
and distributing multicast bandwidth resources to the user side ports according to the priority.
Further, the processor 1001 may call a bandwidth allocation program of the switch multicast group stored in the memory 1005, and further perform the following operations:
confirming IP users with low priority;
and deleting the multicast group corresponding to the IP user with low priority.
Referring to fig. 2, fig. 2 is a flow chart of a first embodiment of a bandwidth allocation system for a multicast group of a switch according to the present invention, where the bandwidth allocation method for a multicast group of a switch includes the following steps when applied:
step S10, acquiring the resource occupancy rate of a hardware routing table of the switch, and confirming whether the resources of the hardware routing table of the switch are remained or not according to the resource occupancy rate;
according to the application of the current switch, after the user side port is connected to the switch, communication transmission is carried out through the network resources of the hardware multicast table written in by the hardware group reason table of the second layer of the switch, and in order to ensure the full use of the network resources of the hardware multicast table or confirm the use condition of the network resources of the hardware multicast table, the resource occupancy rate of the hardware routing table of the switch of the current application needs to be obtained based on the current bandwidth use condition. Based on the above, the resource occupancy rate of the hardware routing table of the current application switch is obtained, so as to confirm whether the current application switch can also bear the bandwidth requirement of the current user side port, wherein the resource occupancy rate is the ratio of the current switch hardware routing table resource usage, is calculated based on the bandwidth usage condition of the current connected user side port and the resource quantity of the chip capacity of the hardware routing table, and can clearly show the resource usage condition of the switch hardware multicast table.
Step S20, when confirming that the hardware routing table of the switch has residual resources, adding the newly learned hardware multicast table to the hardware driver of the switch, and distributing multicast bandwidth resources for a user side port by using the newly added hardware multicast table;
and confirming the residual resources of the hardware routing table of the switch according to the obtained resource occupancy rate, and adding the newly learned hardware multicast table to the hardware driver of the switch when confirming that the residual resources exist in the hardware routing table of the switch, so as to update the network resources of the hardware routing table of the switch. After the newly learned hardware multicast table receives an IGMP request message sent by a host end, based on a multicast group newly created by the IGMP request message, after the multicast group is newly built, the user side port is mounted, so that the residual resources of the hardware routing table of the switch can be fully used, and the newly created multicast group is used for mounting a new user side port to use the bandwidth resources of the switch for network communication transmission. Based on this situation, in order to guarantee bandwidth usage of the user side ports in the newly created multicast group, bandwidth resources need to be reallocated based on the multicast group user side ports that the switch is currently connected to and uses and the newly created multicast group user side ports. Therefore, when confirming that the switch hardware routing table has residual resources, the step of adding the newly learned hardware multicast table to the switch hardware driver and allocating multicast bandwidth resources for the user side port by using the newly added hardware multicast table comprises the following steps:
determining the bandwidth utilization rate of the existing user side port;
if the bandwidth utilization rate reaches a preset value, the multicast bandwidth resource is allocated according to the priority of the multicast group corresponding to the user side port.
And confirming a user side port using the hardware routing table resources of the switch according to the resource use condition of the hardware routing table represented by the current switch, wherein the user side port is a multicast group member port and is mounted in the multicast group of the switch. And carrying out network communication interaction through the bandwidth resources of the multicast group, and determining the bandwidth utilization rate of the bandwidth resources of the switch used by the user side port based on the network communication interaction, wherein the bandwidth utilization rate is relatively based on the bandwidth resources of the mounted multicast group, namely, the bandwidth utilization rate of the user side port is calculated through the bandwidth resource capacity of the multicast group and the bandwidth utilization condition of the user side port, and the bandwidth utilization rate can clearly represent the utilization condition of the user side port based on the bandwidth resources. According to the determined bandwidth utilization rate of the user side port, when the bandwidth utilization rate is confirmed to reach a preset value, wherein the preset value is defined to be 100%, that is, when the bandwidth utilization rate reaches 100%, another requirement may exist for characterizing the bandwidth resource of the user side port, and bandwidth needs to be allocated to the user side port again based on the bandwidth utilization rate.
In addition, considering the abnormal bandwidth usage caused by the network abnormal condition on the network bandwidth, or more precisely characterizing the bandwidth usage rate of the user side port, and considering packet loss under the network communication condition of the user side port, therefore, the condition that the user side port has bandwidth requirement is characterized, the bandwidth usage rate can be limited to 100%, and when the packet loss phenomenon exists, the priority of the multicast group under the user side port is recalculated, and the network bandwidth is redistributed based on the priority, namely, before the step of distributing the multicast bandwidth resource according to the priority of the multicast group corresponding to the user side port, the method further comprises:
confirming whether the user side port loses the packet or not;
and when confirming that the user side port loses the packet, executing the step of distributing multicast bandwidth resources according to the priority of the multicast group corresponding to the user side port.
When confirming that the bandwidth utilization rate of the current user side port reaches 100%, determining whether the user side port loses packets, wherein the packet loss of the user side port is defined as the loss condition when a message is initiated, namely the condition that the message is not sent or the message is not successfully received, which is based on the network abnormal condition caused by network bandwidth resource deficiency, and reallocating the bandwidth according to the priority of the multicast group under the user side port when the packet loss of the user side port is confirmed.
And step S30, when the fact that the hardware routing table of the switch has no residual resources is confirmed, the multicast bandwidth resources are allocated to the user side ports according to the newly added multicast source IP priority.
Confirming the residual resources of a switch hardware routing table according to the acquired resource occupancy rate, and when confirming that the switch hardware routing table does not have the residual resources, reallocating bandwidth resources according to the priority of a newly added multicast source IP (Internet protocol), wherein the newly added multicast source IP is a newly added IP user of a multicast group created by a current switch, namely, an IP user of a newly added port, obtaining the priority of the added multicast group based on the priority of the IP user, so as to reallocate the multicast bandwidth resources, wherein the priority calculation of the IP user is determined based on the priority of the multicast source corresponding to the IP user, namely, when confirming that the switch hardware routing table does not have the residual resources, the step of allocating the multicast bandwidth resources for the port of a user side according to the priority of the newly added multicast source IP comprises the following steps:
confirming a target IP user with high priority;
and newly adding a multicast source corresponding to the target IP user, and distributing multicast bandwidth resources for the user side port by using the newly added multicast source.
According to the current newly added multicast source IP, when performing multicast bandwidth resource allocation, the calculation of the priority level can be performed based on the IP users corresponding to the newly added multicast source IP, in this case, it can be known that the newly added multicast source IP should be multiple, that is, the IP users are multiple, so that the calculation of the priority level is performed according to the IP users, and the IP users with the high priority level are used as target IP users, that is, the step of confirming the target IP users with the high priority level includes:
collecting parameter information of IP data packets reported by each multicast source IP report message and query message;
and determining the priority order of the multicast sources according to the parameter information, and taking the multicast source IP with high priority as the target IP user.
When calculating the priority of the IP user, acquiring parameter information of an IP data packet reported by a current multicast source and an inquiry message, wherein the multicast source comprises an original registered multicast source and a newly added multicast source, and has the capabilities of reporting and forwarding the messages; recording a PORT reported by an igmp report/query (the PORT is a PORT number reported by a member PORT on the device; the multicast source pair uses user-defined priority (the user-defined priority is a host service priority which is user-defined according to a source MAC or a source IP and is used for calculating the priority of the member PORT)), and performing priority calculation by applying preset priority definition, wherein the preset priority definition is as follows: user-defined priority > dscp/cos > mac > port; and calculating a corresponding priority result of the IP data packet according to the priority definition, adding the priority result to a multicast group after sequencing the priority result according to a high-low order, extracting an IP user with high priority from the IP data packet according to the priority result of the IP data packet, defining the extracted IP user as a target IP user, adding a multicast source corresponding to the target IP user to a current switch hardware multicast table, and distributing multicast bandwidth resources for a user side port based on the newly added multicast source.
In addition, considering the resource maximization application of the switch hardware routing table, the multicast group with low priority may be deleted to avoid waste of bandwidth resources, so the step of identifying the target IP user with high priority further includes:
confirming IP users with low priority;
and deleting the multicast group corresponding to the IP user with low priority.
After the target IP users with high priority are confirmed, the application is maximized based on the current bandwidth resources, or the optimization application for improving the bandwidth resources is performed, the IP data packets with low priority are determined based on the priorities of the IP data packets calculated at present, the IP users with low priority are extracted according to the IP data packets, and the multicast groups corresponding to the IP users with low priority are deleted, so that the waste of the bandwidth resources is saved.
Further, when the multicast bandwidth resource is allocated to the user side port based on the newly added multicast source, in order to ensure the maximum application of the bandwidth resource, the bandwidth resource allocation is performed based on the priority of each user side port, that is, before the step of allocating the multicast bandwidth resource for the user side port by using the newly added multicast source, the method further includes:
collecting parameter information of IP data packets of each multicast source IP report message and multicast flow of the user side port;
and executing the step of distributing multicast bandwidth resources for the user side port by using the newly added multicast source when the multicast flow is confirmed to be larger than the maximum bandwidth distribution of the user side port.
In order to improve the maximum application of bandwidth resources, the multicast bandwidth resources of the user side ports are allocated according to the parameter information of the report message of each multicast source and the multicast traffic condition of each user side port, whether the capacity of the multicast bandwidth resources needs to be adjusted currently is determined based on the acquired multicast traffic of the user side ports, wherein the multicast traffic is the traffic value occupied by the corresponding multicast group when the user side ports perform network communication application, and the user side ports default to have the maximum bandwidth allocation capacity according to the normal use of the user side ports and the allocation of the network bandwidth resources, so when the multicast traffic of the user side ports is confirmed to be greater than the preset maximum bandwidth allocation, the bandwidth ratio traffic allocation operation is performed based on the priority of the user side ports, namely the step of allocating the multicast bandwidth resources for the user side ports by using the newly increased multicast sources comprises the following steps:
confirming the priority of each user side port;
and distributing multicast bandwidth resources to the user side ports according to the priority.
The multicast bandwidth resource allocation is carried out according to the priority of each user side port, the priority of each user side port can be assessed based on the message parameter information of each user side port, namely, the IP Qos and MAC information of each igmp report message of each user port are collected, the statistical information of multicast flow under each port and the user-defined priority are collected;
when the port flow exceeds the maximum bandwidth allocation of the port, a flow priority calculation algorithm is started, and the priority of the data flow is calculated according to Qos information (comprising COS and IP header dscp of an 802.1P protocol) in the IP parameter information of the message reported by the port at the user side; or if the user-defined priority is set, the priority of the user-side port is calculated by the set user-defined priority preferentially; or if the Qos information in the reported message IP parameter information of each user side port is consistent, sorting the user side ports according to the MAC address size, and separating out the priority order. As shown above, after the priority of the user side port is obtained, the traffic is allocated with a predefined bandwidth ratio, and the operation of allocating the traffic with the predefined bandwidth ratio may be set based on the relevant bandwidth allocation function.
In this embodiment, when the hardware multicast table resource remains and the hardware port resource is used up, the service bandwidth is limited by the calculated bandwidth resource required and available by each multicast source under the port and by using QOS and ACL in combination; when the hardware port resources are left and the hardware multicast table is used up, the offline or unused multicast group is deleted according to the flow statistics measured by the host and the activation message statistics measured by the host, so that the multicast group is not needed after the addition, and the multicast group is deleted when the resources are full after the addition, thereby greatly improving the utilization efficiency of the multicast resources; the priority processing of the multicast group uses the resources and the on-line state to calculate the proportion of the whole replacement priority and port flow distribution to carry out flow distribution, thereby maximally improving the utilization rate of the hardware multicast table resources.
In addition, the embodiment of the invention also provides a readable storage medium, which stores a bandwidth allocation program of the switch multicast group, and the bandwidth allocation of the switch multicast group realizes the content of the bandwidth allocation method embodiment of the switch multicast group when the bandwidth allocation is executed.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, system, pharmaceutical product, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, system, pharmaceutical product, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, system, pharmaceutical or system comprising such element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment system may be implemented by means of software plus necessary general purpose hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the system according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A method for bandwidth allocation of a multicast group of switches, the method comprising the steps of:
acquiring the resource occupancy rate of a hardware routing table of the switch, and confirming whether the resources of the hardware routing table of the switch remain or not according to the resource occupancy rate;
when the hardware routing table of the switch is confirmed to have residual resources, adding a newly learned hardware multicast table to the hardware driver of the switch, and distributing multicast bandwidth resources for a user side port by using the newly added hardware multicast table;
and when the hardware routing table of the switch is confirmed to have no residual resources, distributing multicast bandwidth resources to the user side ports according to the IP priority of the newly added multicast source.
2. The method for allocating bandwidth to a multicast group of a switch according to claim 1, wherein the step of adding a newly learned hardware multicast table to a switch hardware driver and allocating multicast bandwidth resources to a user side port with the newly added hardware multicast table when it is confirmed that there are remaining resources in the switch hardware routing table comprises:
determining the bandwidth utilization rate of the existing user side port;
if the bandwidth utilization rate reaches a preset value, the multicast bandwidth resource is allocated according to the priority of the multicast group corresponding to the user side port.
3. The method for allocating bandwidth of a switch multicast group according to claim 2, further comprising, before the step of allocating multicast bandwidth resources with priority of the user side port corresponding to the multicast group:
confirming whether the user side port loses the packet or not;
and when confirming that the user side port loses the packet, executing the step of distributing multicast bandwidth resources according to the priority of the multicast group corresponding to the user side port.
4. The method for allocating bandwidth to a multicast group of a switch according to claim 1, wherein the step of allocating multicast bandwidth resources to the user side ports according to the newly added multicast source IP priority upon confirming that the switch hardware routing table has no remaining resources comprises:
confirming a target IP user with high priority;
and newly adding a multicast source corresponding to the target IP user, and distributing multicast bandwidth resources for the user side port by using the newly added multicast source.
5. The method for bandwidth allocation of a switch multicast group according to claim 4, wherein said step of identifying a target IP user with a high priority comprises:
collecting parameter information of IP data packets reported by each multicast source IP report message and query message;
and determining the priority order of the multicast sources according to the parameter information, and taking the multicast source IP with high priority as the target IP user.
6. The method for allocating bandwidth to a multicast group of a switch according to claim 4, further comprising, before the step of allocating multicast bandwidth resources to the user side ports with the newly added multicast source:
collecting parameter information of IP data packets of each multicast source IP report message and multicast flow of the user side port;
and executing the step of distributing multicast bandwidth resources for the user side port by using the newly added multicast source when the multicast flow is confirmed to be larger than the maximum bandwidth distribution of the user side port.
7. The method for allocating bandwidth to a multicast group of a switch according to claim 4, wherein the step of allocating multicast bandwidth resources to the user side ports by using the newly added multicast source comprises:
confirming the priority of each user side port;
and distributing multicast bandwidth resources to the user side ports according to the priority.
8. The method for bandwidth allocation of a switch multicast group according to claim 4, further comprising, after said step of identifying a target IP user with a high priority:
confirming IP users with low priority;
and deleting the multicast group corresponding to the IP user with low priority.
9. A bandwidth allocation apparatus for a multicast group of switches, said bandwidth allocation apparatus for a multicast group of switches comprising: memory, a processor and a bandwidth allocation program of a switch multicast group stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the bandwidth allocation system of a switch multicast group according to any of claims 1 to 8.
10. A readable storage medium, characterized in that the readable storage medium stores a bandwidth allocation program of a switch multicast group, which when executed by a processor, implements the steps of the bandwidth allocation method of a switch multicast group according to any of claims 1 to 8.
CN202310244313.0A 2023-03-06 2023-03-06 Bandwidth allocation method and device for multicast group of exchange unit and readable storage medium Pending CN116366577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310244313.0A CN116366577A (en) 2023-03-06 2023-03-06 Bandwidth allocation method and device for multicast group of exchange unit and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310244313.0A CN116366577A (en) 2023-03-06 2023-03-06 Bandwidth allocation method and device for multicast group of exchange unit and readable storage medium

Publications (1)

Publication Number Publication Date
CN116366577A true CN116366577A (en) 2023-06-30

Family

ID=86941013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310244313.0A Pending CN116366577A (en) 2023-03-06 2023-03-06 Bandwidth allocation method and device for multicast group of exchange unit and readable storage medium

Country Status (1)

Country Link
CN (1) CN116366577A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453345A (en) * 2007-12-07 2009-06-10 上海贝尔阿尔卡特股份有限公司 Multicast access control method based on service provider and access equipment thereof
CN102195875A (en) * 2010-03-16 2011-09-21 马维尔以色列(M.I.S.L.)有限公司 Combined hardware/software forwarding mechanism and method
WO2016082614A1 (en) * 2014-11-27 2016-06-02 中兴通讯股份有限公司 Method and device for processing multicast route table entry, and computer storage medium
CN111917670A (en) * 2020-07-10 2020-11-10 苏州浪潮智能科技有限公司 Switch routing recording, searching and deleting method and switch

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453345A (en) * 2007-12-07 2009-06-10 上海贝尔阿尔卡特股份有限公司 Multicast access control method based on service provider and access equipment thereof
CN102195875A (en) * 2010-03-16 2011-09-21 马维尔以色列(M.I.S.L.)有限公司 Combined hardware/software forwarding mechanism and method
WO2016082614A1 (en) * 2014-11-27 2016-06-02 中兴通讯股份有限公司 Method and device for processing multicast route table entry, and computer storage medium
CN105704046A (en) * 2014-11-27 2016-06-22 中兴通讯股份有限公司 Multicast routing table entry processing method and device
CN111917670A (en) * 2020-07-10 2020-11-10 苏州浪潮智能科技有限公司 Switch routing recording, searching and deleting method and switch

Similar Documents

Publication Publication Date Title
EP1825637B1 (en) Network centric quality of service using active network technology
CN106972985B (en) Method for accelerating data processing and forwarding of DPI (deep packet inspection) equipment and DPI equipment
CN1744612A (en) DHCP address allocation method
WO2016107598A1 (en) Service acceleration method and apparatus
CN101232339A (en) Dynamic service level protocol control system and control method
US20070130367A1 (en) Inbound connection prioritization
CN112351083B (en) Service processing method and network service system
CN112350952B (en) Controller distribution method and network service system
US11165716B2 (en) Data flow processing method and device
CN101958836A (en) Queuing resource management method and device in hierarchical service quality
CN111901236B (en) Method and system for optimizing openstack cloud network by using dynamic routing
CN113225196B (en) Service level configuration method and device
CN105262703A (en) Routing bandwidth allocation method based on double priorities
EP2845357A1 (en) Allocating network bandwidth
CN1870582A (en) Method for processing conversion require of network address/port in communication network
CN112104568A (en) Data transmission control method and gateway
CN114095388B (en) Method for exchanging data packet classification identifiers between RTC/RTE equipment and WiFi access point and wireless access point
CN110601989A (en) Network traffic balancing method and device
CN112202888B (en) Message forwarding method for edge user and SDN
CN116366577A (en) Bandwidth allocation method and device for multicast group of exchange unit and readable storage medium
CN101175038B (en) Data stream information transmission method, communication system and equipment
CN101459699B (en) Method and apparatus for network address conversion
CN1540936A (en) Method for controlling priority for transmitting message based on virtual local area network
CN115941604A (en) Flow distribution method, device, equipment, storage medium and program product
CN1665206A (en) Method for implementing long connection changeover of network

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