WO2019028723A1 - Multicast program management method and device and network device - Google Patents

Multicast program management method and device and network device Download PDF

Info

Publication number
WO2019028723A1
WO2019028723A1 PCT/CN2017/096751 CN2017096751W WO2019028723A1 WO 2019028723 A1 WO2019028723 A1 WO 2019028723A1 CN 2017096751 W CN2017096751 W CN 2017096751W WO 2019028723 A1 WO2019028723 A1 WO 2019028723A1
Authority
WO
WIPO (PCT)
Prior art keywords
multicast
priority
program
discarding
programs
Prior art date
Application number
PCT/CN2017/096751
Other languages
French (fr)
Chinese (zh)
Inventor
吴文竞
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2017/096751 priority Critical patent/WO2019028723A1/en
Priority to CN201780093627.8A priority patent/CN110999233A/en
Publication of WO2019028723A1 publication Critical patent/WO2019028723A1/en

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/18Loop-free operations
    • 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/1863Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports
    • H04L12/1877Measures taken prior to transmission
    • 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/1881Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with schedule organisation, e.g. priority, sequence management
    • 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/805QOS or priority aware

Definitions

  • the present application relates to the field of communications and, more particularly, to a method, apparatus, and network device for managing multicast programs.
  • IPTV Internet Protocol Television
  • QoS quality of service
  • Port Admission Control (CAC) scheme taking Gigabit-Capable PON (GPON) as an example, first configuring bandwidth for each pre-configured program, and then for each GPON port.
  • CAC Port Admission Control
  • IGMP Internet Group Management Protocol
  • the occupied bandwidth of the corresponding program is subtracted from the remaining bandwidth of the GPON port. If the remainder is less than 0, the user's on-demand request is rejected. If an IGMP Leave message is received, the bandwidth of the corresponding program can be returned to the GPON port (the time of return is when the forwarding of the multicast data is stopped, that is, no multicast user needs the program under the GPON port).
  • the port bandwidth CAC solution cannot guarantee that important programs can be on-demand, and the multicast program bandwidth may have burst and bit rate adjustment, which may cause the multicast program to be inconsistent with the actual bandwidth, and when the user-on-demand multicast program exceeds the port.
  • the CAC bandwidth, the multicast program is not allowed to be on-demand, which may cause a black screen of the multicast program.
  • the application provides a method, device and network device for managing a multicast program.
  • the method for managing the multicast program can configure the discarding priority for the multicast program.
  • the multicast queue of the network device is congested, the multicast program with the lower discarding priority is preferentially discarded to ensure the multicast program with the high discarding priority. the quality of.
  • a method for managing a multicast program comprising: first, receiving N multicast programs, the service quality Qos of the N multicast programs having the same priority, wherein N is a positive integer; And configuring a drop priority for each of the N multicast programs; and then mapping the N multicast programs to different Qos priority queues according to the discarding priority of each multicast program, or According to the discarding priority of each multicast program, when the same QoS priority queue entering the N multicast programs is congested, the multicast program with the lower discarding priority is preferentially discarded to ensure the high discarding priority.
  • the quality of multicast programs helps solve the problem of simultaneous loss of all multicast programs.
  • the N multicast programs have an 802.1p priority of 4, and the same QoS priority queue is a Qos priority queue 4.
  • the packets carried by each multicast program in the N multicast programs have the same priority.
  • the method for managing a multicast program in the embodiment of the present invention can effectively solve the problem of simultaneous packet loss of all multicast programs in the multicast queue when the multicast queue of the network device is congested.
  • the discarding priority is configured for each multicast program in the N multicast programs, including: configuring the N according to the predefined classification information.
  • the drop priority of each multicast program in the multicast program is configured for each multicast program in the N multicast programs, including: configuring the N according to the predefined classification information.
  • the method further includes: according to each of the N multicast programs The number of on-demand users adjusts the discarding priority of each multicast program in the N multicast programs.
  • the discarding priority of each multicast program in the N multicast programs is adjusted according to the number of on-demand users of each of the N multicast programs, including: according to the on-demand user The number is sorted from high to low, and the program with the highest number of on-demand users is configured with the highest drop priority; the program with the lowest number of on-demand users is configured with the lowest drop priority.
  • any one of the first and second energy-saving implementations of the first aspect in a third possible implementation of the first aspect, the N multicast programs
  • the discarding priority of each multicast program corresponds to an early discarding threshold of the same QoS priority queue, and the discarding priorities of each multicast program are not completely the same.
  • the N multicast program enters according to the discarding priority of each multicast program When a QoS priority queue is congested, the multicasting of the multicast program is performed, including: the depth of the same QoS priority queue exceeds the first early discarding threshold, and the first discarding priority corresponding to the first early discarding threshold is determined.
  • the early discarding threshold is one of the early discarding thresholds of the same QoS priority queue; determining, according to the first discarding priority, the first multicast program set corresponding to the first discarding priority level and the second discarding priority level a second multicast program set, the drop priority corresponding to the N multicast programs includes the first drop priority level and the second drop priority level, where the second drop priority level is lower than the first drop priority level; The packet corresponding to the multicast program in the first multicast program set and the packet corresponding to the multicast program in the second multicast program set enter the same QoS priority queue.
  • the discarding priority of each multicast program in the N multicast programs is configured according to the predefined classification information
  • the level includes: configuring, according to the importance degree of each multicast program, a discarding priority of each of the N multicast programs; or configuring the N groups according to the definition of each multicast program The discarding priority of each multicast program in the broadcast program; or the discarding priority of each multicast program in the N multicast programs according to the viewing statistics rate of each multicast program.
  • the second aspect is an apparatus for managing a multicast program, the apparatus comprising: a transceiver module, configured to receive N multicast programs, the N multicast programs belong to the same service quality Qos priority queue, and N is a positive integer; a module, configured to configure a discarding priority for each of the N multicast programs; the processing module is further configured to: according to the discarding priority of each multicast program when the same Qos priority queue is congested , discarding multicast programs.
  • the N multicast programs have an 802.1p priority of 4, and the same QoS priority queue is a Qos priority queue 4.
  • the packets carried by each multicast program in the N multicast programs have the same priority.
  • the device for managing a multicast program in the embodiment of the present invention can effectively solve the problem of simultaneous packet loss of all multicast programs in the multicast queue when the multicast queue of the network device is congested.
  • the processing module is configured to: configure, according to the predefined classification information, a discarding priority of each multicast program in the N multicast programs.
  • the processing module is further configured to: according to each multicast program in the N multicast programs The number of on-demand users adjusts the discarding priority of each multicast program in the N multicast programs.
  • the processing module is specifically configured to: sort the files from highest to lowest according to the number of on-demand users, and program the program with the highest number of on-demand users, and configure the highest discarding priority; the program with the lowest number of on-demand users has the lowest configuration. Drop priority.
  • any one of the first and second energy-saving implementations of the second aspect in a third possible implementation of the second aspect, the N multicast programs
  • the discarding priority of each multicast program corresponds to an early discarding threshold of the same QoS priority queue, and the discarding priorities of each multicast program are not completely the same.
  • the processing module is configured to: determine that the depth of the same QoS priority queue exceeds a first early discard threshold, and determine Determining, by the first discarding threshold, a first discarding priority level, where the first discarding threshold is one of an early discarding threshold of the same QoS priority queue; determining the first discarding priority according to the first discarding priority And corresponding to the first multicast program set and the second multicast program set corresponding to the second drop priority, the drop priority corresponding to the N multicast programs includes the first drop priority and the second drop priority, where The second discarding priority is lower than the first discarding priority; the packet corresponding to the multicast program in the first multicast program set and the packet corresponding to the multicast program in the second multicast program set are prohibited from entering the packet.
  • the same QoS priority queue is configured to: determine that the depth of the same QoS priority queue exceeds a first early discard threshold, and determine Determining, by the first discarding threshold, a first discarding priority level, where the first discarding threshold is one of an early
  • the processing module is specifically configured to: configure the N groups according to the importance degree of each multicast program The discarding priority of each multicast program in the broadcast program; or configuring the discarding priority of each multicast program in the N multicast programs according to the definition of each multicast program; or according to each multicast The viewing statistics rate of the program, and the discarding priority of each multicast program in the N multicast programs is configured.
  • a network device comprising a memory and a processor, the memory for storing instructions for invoking instructions in the memory to perform the first aspect or the first aspect An operation in a method in a possible implementation.
  • a fourth aspect provides a chip system including a memory and a processor for storing a computer program for calling and running the computer program from the memory, such that the communication device mounted with the chip system performs the above The method of any of the possible implementations of the first aspect and the first aspect.
  • a computer program product comprising: computer program code, when the computer program code is processed by a communication unit, a processing unit or a transceiver of a communication device (eg, a network device or a terminal device) When the device is in operation, the communication device is caused to perform the method of any of the first aspect and the first aspect of the first aspect.
  • a computer readable storage medium storing a program causing a communication device (eg, a network device or a terminal device) to perform any of the first aspect and the first aspect described above The method in the possible implementation.
  • a communication device eg, a network device or a terminal device
  • FIG. 1 is a schematic block diagram of an application scenario of a technical solution according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method for managing a multicast program according to an embodiment of the present application.
  • FIG. 3 is another schematic flowchart of a method for managing a multicast program according to an embodiment of the present application.
  • FIG. 4 is another schematic flowchart of a method for managing a multicast program according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a multicast program discarding process according to an embodiment of the present application.
  • FIG. 6 is another schematic diagram of a multicast program discarding process according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of mapping multicast programs to different priority queues according to an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of an apparatus for managing a multicast program according to an embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a network device in accordance with an embodiment of the present application.
  • FIG. 1 is a schematic block diagram of an application scenario of a technical solution according to an embodiment of the present application.
  • a network device receives a multicast program sent by a multicast server, and the network device may perform a received multicast program. Management, so that users can watch normal when they order multicast programs.
  • the network device can receive the multicast program from the multicast server and can also receive the multicast program from other nodes, and the application is not limited thereto.
  • the terminal device in the embodiment of the present application may be a device that can decode a multicast program, such as a set top box, a television, a mobile phone, a computer, or a tablet computer.
  • a multicast program such as a set top box, a television, a mobile phone, a computer, or a tablet computer.
  • the network device in the embodiment of the present application may be a core router (CR), a broadband remote access server (BRAS), a LAN switch (LSW), and an optical line terminal.
  • CR core router
  • BRAS broadband remote access server
  • LSW LAN switch
  • ONT optical line terminal
  • HG home gateway
  • the like are not limited in this embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method 100 for managing a multicast program according to an embodiment of the present application.
  • the execution body of the method 100 for managing a multicast program may be a network device.
  • the method 100 includes :
  • the network device receives N multicast programs, and the service quality Qos of the N multicast programs have the same priority, that is, the packets carried by the N multicast programs have the same priority, for example, the N multicast programs.
  • the second layer of 802.1p has a priority of 4.
  • the N multicast programs all have an 802.1p priority level 4, and the same QoS priority queue is a Qos priority queue 4.
  • Priority 6 and 5 are primarily used for delay-sensitive applications such as interactive video and voice.
  • Priority 4 to 1 is primarily used for controlled-load applications such as streaming multimedia and business-critical traffic.
  • Priority 0 is the default and is automatically enabled if no other priority values are set, where priority 4 is recommended for use by video conferencing and video streaming.
  • the packets carried by each multicast program in the N multicast programs have the same priority.
  • FIG. 3 is another schematic flowchart of a method 100 for managing a multicast program according to an embodiment of the present application. As shown in FIG. 3, each multicast program of the pair of N multicast programs is configured with a drop priority. include:
  • the network device when the network device receives the multicast program, the network device discards the discarding priority of the multicast program.
  • the discarding priority does not depend on the packet priority of the multicast program packet, and is forwarded to the queue within the network device. Used when.
  • the number of the discarding priorities depends on the number of early discard thresholds of the priority queue.
  • the number of early discard thresholds of the priority queue is determined by hardware conditions of the network device itself.
  • the discarding priority of each multicast program in the N multicast programs corresponds to an early discarding threshold of the same QoS priority queue, and the discarding priorities of each multicast program are not completely the same.
  • the discarding priority is the reference priority of the switch (or other network device) when it discards the packet, which corresponds to the outbound port queue.
  • the congestion occurs when the priority occurs. The lower the priority, the higher the priority.
  • the priority queue 4 has three early discarding thresholds, and the three early discarding thresholds are a low priority discarding threshold, a medium priority discarding threshold, and a high priority discarding threshold, and the network device receives three multicast programs ( Multicast program 1, multicast program 2, and multicast program 3), the multicast program 1 can be configured with a high discarding priority, the multicast program 2 is configured with a discarding priority, and the multicast program 3 is configured with a low discarding priority. .
  • the multicast program 3 with the low drop priority is preferentially discarded, so that the quality of the multicast program 2 with the drop priority and the multicast program 1 with the high drop priority are configured.
  • the multicast program 3 configured with the low drop priority and the multicast program 2 configured with the drop priority are preferentially discarded to ensure that the multicast program 1 with the high drop priority is configured. quality.
  • the priority queue 4 has three early discarding thresholds, and the three early discarding thresholds are a low priority discarding threshold, a medium priority discarding threshold, and a high priority discarding threshold, and the network device receives three multicast programs.
  • the multicast program 1 and the multicast program 2 can be configured with a high discarding priority, and the multicast program 3 with a low discarding priority.
  • the number of early discard thresholds of the priority queue is greater than or equal to the number of discarding priorities configured by the network device for the multicast program.
  • the predefined classification information may be pre-defined multicast program classification information, that is, after the network device receives the multicast program, it may determine which discarding priority is configured for the multicast program, in other words, the The network device statically configures the drop precedence for the multicast program.
  • the discarding priority of each multicast program in the N multicast programs is configured according to the predefined classification information, including:
  • the method for selecting the discarding priority is not limited, and a high discarding priority level can be configured for an important program, and a discarding priority of an ordinary program configuration can also be configured according to a program type of 4K, full HD, high definition, and standard definition.
  • the priority of the discarding is high.
  • the discarding priority of the 4K is high, and the discarding priority of the SD is low.
  • the popular program can be configured as a high discarding priority according to the viewing statistics.
  • the unpopular program is configured with a low discarding priority.
  • the foregoing selection manner of the discarding priority is not limited to the foregoing manner, and the discarding priority may be configured for the static configuration of the multicast program by other methods.
  • the type of the multicast program may be classified according to the type of the multicast program.
  • the broadcast program is configured with a high drop priority and a low drop priority for the entertainment-type multicast program.
  • the application is not limited thereto.
  • FIG. 4 is still another schematic flowchart of a method 100 for managing a multicast program according to an embodiment of the present application. As shown in FIG. 4, the method 100 further includes:
  • the network device can dynamically set a discarding priority for each multicast program in the N multicast programs according to the number of on-demand users of the multicast program, when multicasting
  • the discarding priority configured by the network device for the N multicast programs also changes accordingly.
  • the network device dynamically sorts the discarding priority of each multicast program according to the number of on-demand users of the multicast program, and dynamically adjusts the discarding priority of each multicast program, and the program with the highest number of on-demand users is configured with a high discarding priority and a minimum number of on-demand users.
  • Program configured with low drop priority.
  • the drop priority is dynamically adjusted according to the number of on-demand users.
  • the multicast queue is congested, the multicast program with the lower drop priority is preferentially discarded to ensure the quality of the multicast program with high discard priority.
  • the number of on-demand users of the multicast program 1 is the highest, and the multicast program 1 is configured with a high discarding priority; if the number of on-demand users of the multicast program 3 is the least, the group is the group.
  • Broadcast program 3 configures a low drop priority; it discards the priority for multicast program 2 configuration.
  • the multicast queue is congested, the multicast program 3 with the low drop priority is preferentially discarded, so that the quality of the multicast program 2 with the drop priority and the multicast program 1 with the high drop priority are configured.
  • the multicast program 3 configured with the low drop priority and the multicast program 2 configured with the drop priority are preferentially discarded to ensure that the multicast program 1 with the high drop priority is configured. quality.
  • the network device determines that the number of on-demand users of the multicast program 3 is the largest, and the discarding priority of the multicast program 3 is adjusted to a high discarding priority; and determining the number of on-demand users of the multicast program 1 is the least, the group is determined.
  • the drop priority of the broadcast program 1 is adjusted to a low drop priority.
  • the multicast program 1 with the low drop priority is preferentially discarded to ensure the quality of the multicast program 2 with the drop priority and the multicast program 3 with the high drop priority.
  • the multicast program 1 configured with the low drop priority and the multicast program 2 configured with the drop priority are preferentially discarded to ensure the quality of the multicast program 3 with the high drop priority configured.
  • the network device may statically configure a discarding priority for each multicast program in the N multicast programs, and then count the number of users according to the multicast program. Dynamically adjusting the discarding priority of each multicast program in the N multicast programs.
  • the network device maps the N multicast programs to different ones according to the discarding priority of each multicast program.
  • the queue of the Qos priority, or according to the discarding priority of each multicast program discards the multicast program when the same QoS priority queue entered by the N multicast programs is congested.
  • the multicast program is discarded according to the discarding priority of each multicast program, when the same QoS priority queue entering the N multicast programs is congested, including:
  • the first QoS priority queue exceeds the first early discarding threshold, and the first discarding priority level corresponding to the first early discarding threshold is determined.
  • the first early discarding threshold is one of the early discarding thresholds of the same QoS priority queue. ;
  • the discarding priorities corresponding to the N multicast programs include The first discarding priority and the second discarding priority, where the second discarding priority is lower than the first discarding priority;
  • the message corresponding to the multicast program in the first multicast program set and the message corresponding to the multicast program in the second multicast program set are prohibited from entering the same QoS priority queue.
  • FIG. 5 is a schematic diagram of a multicast program discarding process according to an embodiment of the present application.
  • the multicast program 1, the multicast program 2, and the multicast program 3 are respectively configured with a high discarding priority and a discarding priority. Level and low drop priority.
  • the drop priority corresponding to the low drop threshold is the low drop priority.
  • the low drop priority it is determined that the multicast program corresponding to the low drop priority is the multicast program 3, and the packet of the multicast program 3 is not allowed to enter the multicast program.
  • the priority queue is the same.
  • the packets of multicast program 2 and multicast program 3 are not allowed to enter the priority queue. If the depth of the priority queue exceeds If the threshold is discarded early, the packets of multicast program 1, multicast program 2, and multicast program 3 are not allowed to enter the priority queue.
  • FIG. 6 is another schematic diagram of a multicast program discarding process according to an embodiment of the present application.
  • the multicast program 1 and the multicast program 2 are configured with a high discarding priority, and the multicast program 3 is configured respectively. If the depth of the priority queue exceeds the low early discard threshold, the packet of the multicast program 3 is not allowed to enter the priority queue. If the depth of the priority queue exceeds the high early discard threshold, then Packets of multicast program 1, multicast program 2, and multicast program 3 are not allowed to enter the priority queue.
  • the discarding process of the multicast program shown in FIG. 5 and FIG. 6 occurs when the multicast priority queue is congested, that is, the multicast program enters the multicast priority queue faster than the multicast program out of the multicast. The speed of the priority queue.
  • multicast program 1, multicast program 2, and multicast program 3 can enter the multicast priority queue.
  • the network device may further map the N multicast programs to different queues of Qos priorities according to the discarding priority of each multicast program.
  • the network device statically configures the discarding priority of each multicast program, and then maps each multicast program to a different multicast priority queue according to the discarding priority of each program, for example, high discarding priority.
  • Level multicast programs are mapped to high priority queues, and low drop priority multicast programs are mapped to low drop priority queues.
  • the network device dynamically configures the discarding priority of each multicast program according to the number of on-demand users of the multicast program, and then dynamically maps each multicast program to a different multicast priority according to the discarding priority of each program. In the queue.
  • FIG. 7 is a schematic diagram of mapping a multicast program to a different priority queue according to an embodiment of the present application, as shown in FIG. 7 It is shown that the multicast program 1, the multicast program 2, and the multicast program 3 are respectively configured with a high drop priority, a medium drop priority, and a low drop priority, when the multicast program 1, the multicast program 2, and the multicast program 3 are to be
  • the network device statically configures 3 multicast programs to different priority queues, or the network device dynamically adjusts the priority queue to be entered for each multicast program.
  • the method for managing a multicast program in the embodiment of the present invention can be configured to discard the priority of the multicast program.
  • the multicast program with the lower drop priority is preferentially discarded to ensure the high drop priority.
  • the quality of the multicast program at the level helps solve the problem of simultaneous packet loss for all multicast programs.
  • the method for managing a multicast program according to an embodiment of the present application is described in detail above with reference to FIG. 1 to FIG. 7.
  • the apparatus for managing a multicast program according to an embodiment of the present application is described in detail below with reference to FIG. 8 and FIG. Network equipment.
  • FIG. 8 is a schematic block diagram of an apparatus 200 for managing a multicast program according to an embodiment of the present application. As shown in FIG. 8, the apparatus 200 includes:
  • the transceiver module 210 is configured to receive N multicast programs, where the N multicast programs belong to the same service quality Qos priority queue, and N is a positive integer;
  • the processing module 220 is configured to configure a drop priority for each multicast program in the N multicast programs.
  • the processing module 220 is further configured to map the N multicast programs to different queues of QoS priorities according to the discarding priority of each multicast program, or according to the discarding priority of each multicast program.
  • the multicast program with the lower drop priority is preferentially discarded to ensure the quality of the high-drop priority multicast program, which helps resolve all multicasts. The problem of losing packets at the same time.
  • the N multicast programs all have an 802.1p priority level 4, and the same QoS priority queue is a Qos priority queue 4.
  • the packets carried by each multicast program in the N multicast programs have the same priority.
  • the device for managing a multicast program in the embodiment of the present invention can effectively solve the problem of simultaneous packet loss of all multicast programs in the multicast queue when the multicast queue of the network device is congested.
  • the processing module 220 is specifically configured to: configure, according to the predefined classification information, a discarding priority of each multicast program in the N multicast programs.
  • the processing module 220 is further configured to adjust, according to the number of on-demand users of each multicast program in the N multicast programs, a discarding priority of each multicast program in the N multicast programs.
  • the processing module 220 is specifically configured to: sort the files from the highest to the lowest according to the number of on-demand users, and configure the program with the highest number of on-demand users, and configure the highest discarding priority; the program with the lowest number of on-demand users, and the lowest discarding priority. level.
  • the discarding priority of each multicast program in the N multicast programs corresponds to an early discarding threshold of the same QoS priority queue, and the discarding priorities of each multicast program are not completely the same.
  • the processing module 220 is configured to: the depth of the same QoS priority queue exceeds the first early discarding threshold, and determine a first discarding priority level corresponding to the first early discarding threshold, where the first early discarding threshold is One of the early discard thresholds of the same QoS priority queue;
  • the discarding priorities corresponding to the N multicast programs include The first discarding priority and the second discarding priority, where the second discarding priority is lower than the first discarding priority;
  • the message corresponding to the multicast program in the first multicast program set and the message corresponding to the multicast program in the second multicast program set are prohibited from entering the same QoS priority queue.
  • the processing module 220 is configured to: configure, according to an importance degree of each multicast program, a discarding priority of each multicast program in the N multicast programs; or
  • the device for managing the multicast program in the embodiment of the present application can configure the discarding priority for the multicast program.
  • the multicast queue of the network device is congested, the multicast program with the lower discarding priority is preferentially discarded to ensure the high discard priority.
  • the quality of the multicast program at the level helps solve the problem of simultaneous packet loss for all multicast programs.
  • FIG. 9 shows a schematic block diagram of a network device 300 according to an embodiment of the present application. As shown in FIG. 9, the device 300 includes:
  • the transceiver 310 is configured to receive N multicast programs, where the N multicast programs belong to the same service quality Qos priority queue, and N is a positive integer;
  • the processor 320 is configured to configure a drop priority for each multicast program in the N multicast programs.
  • the processor 320 is further configured to map the N multicast programs to different QoS priority queues according to the discarding priority of each multicast program, or according to the discarding priority of each multicast program.
  • the multicast program with a lower discarding priority is preferentially discarded to ensure the quality of the multicast program with a high discarding priority, which helps resolve all groups. The problem of broadcasting a program at the same time.
  • the N multicast programs all have an 802.1p priority level 4, and the same QoS priority queue is a Qos priority queue 4.
  • the packets carried by each multicast program in the N multicast programs have the same priority.
  • the network device in the embodiment of the present application can preferentially discard the multicast program with a lower discarding priority when the multicast queue of the network device is congested, so as to ensure the quality of the multicast program with a high discarding priority, and effectively solve the multicast.
  • the processor 320 is configured to: configure, according to the predefined classification information, a discarding priority of each multicast program in the N multicast programs.
  • the processor 320 is further configured to adjust, according to the number of on-demand users of each multicast program in the N multicast programs, a discarding priority of each multicast program in the N multicast programs.
  • the processor 320 is specifically configured to: sort the files from the highest to the lowest according to the number of on-demand users, and configure the program with the highest number of on-demand users, and configure the highest discarding priority; the program with the lowest number of on-demand users, and the lowest discarding priority. level.
  • the discarding priority of each multicast program in the N multicast programs corresponds to an early discarding threshold of the same QoS priority queue, and the discarding priorities of each multicast program are not completely the same.
  • the processor 320 is configured to: the depth of the same QoS priority queue exceeds the first early discarding threshold, and determine a first discarding priority level corresponding to the first early discarding threshold, where the first early discarding threshold is One of the early discard thresholds of the same QoS priority queue;
  • the discarding priorities corresponding to the N multicast programs include The first discarding priority and the second discarding priority, where the second discarding priority is lower than the first discarding priority;
  • the processor 320 is configured to: configure, according to the importance degree of each multicast program, a discarding priority of each multicast program in the N multicast programs; or
  • the network device in the embodiment of the present invention can configure the discarding priority for the multicast program.
  • the multicast queue of the network device is congested, the multicast program with the lower discarding priority is preferentially discarded to ensure the high-drop priority multicast.
  • the quality of the program helps solve the problem of simultaneous loss of all multicast programs.
  • the processor may be an integrated circuit chip with signal processing capabilities.
  • each step of the foregoing method embodiments may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software.
  • the processor may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), or the like. Programming logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA Field Programmable Gate Array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory, and the processor reads the information in the memory and combines the hardware to complete the steps of the above method.
  • the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory.
  • the volatile memory can be a Random Access Memory (RAM) that acts as an external cache.
  • RAM Random Access Memory
  • many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM).
  • SDRAM Double Data Rate SDRAM
  • DDR SDRAM Double Data Rate SDRAM
  • ESDRAM Enhanced Synchronous Dynamic Random Access Memory
  • SLDRAM Synchronous Connection Dynamic Random Access Memory
  • DR RAM direct memory bus random access memory
  • system and “network” are used interchangeably herein.
  • the term “and/or” in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations.
  • the character "/" in this article generally indicates that the contextual object is an "or" relationship.
  • B corresponding to A means that B is associated with A, and B can be determined according to A.
  • determining B from A does not mean that B is only determined based on A, and that B can also be determined based on A and/or other information.
  • the computer program product can include one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic disk), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the function can be stored if it is implemented in the form of a software functional unit and sold or used as a standalone product.
  • a computer readable storage medium In a computer readable storage medium.
  • the technical solution of the present application which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory, a random access memory, a magnetic disk, or an optical disk.

Abstract

Provided in the present application are a multicast program management method and device and a network device, the method comprising: receiving N multicast programs, the N multicast programs having the same quality of Service (QoS) priority, and N being a positive integer; configuring a drop priority for each multicast program among the N multicast programs; and mapping the N multicast programs to different queues of QoS priority according to the drop priority of each multicast program, or dropping a multicast program according to the drop priority of each multicast program when a same QoS priority queue which the N multicast programs enter is congested. The multicast program management method according to the embodiments of the present application provides a drop priority for multicast programs, and when a multicast queue of a network device is congested, a multicast program having a low drop priority is preferentially dropped so as to ensure the quality of a multicast program having a high drop priority.

Description

一种管理组播节目的方法、装置和网络设备Method, device and network device for managing multicast programs 技术领域Technical field
本申请涉及通信领域,并且更具体地,涉及一种管理组播节目的方法、装置和网络设备。The present application relates to the field of communications and, more particularly, to a method, apparatus, and network device for managing multicast programs.
背景技术Background technique
网络协议电视(Internet Protocol Television,IPTV)直播节目(组播视频)在网络业务质量(Quality of Service,QoS)规划中,一般都是规划只有一个QoS优先级(例如直播节目的二层802.1p的优先级都为4),进入网络设备的同一个优先级队列,在队列拥塞发送丢弃的时候,所有节目会无差别丢包,导致所有直播节目同时花屏,影响范围广泛。Internet Protocol Television (IPTV) live broadcast (multicast video) in the network quality of service (QoS) planning, generally planning only one QoS priority (such as the second layer 802.1p of the live program) The priority is 4), and the same priority queue of the network device is entered. When the queue congestion is sent and discarded, all programs will be lost without any difference, resulting in all live programs being screened at the same time, and the impact is wide.
端口带宽接入管理控制(Call Admission Control,CAC)方案(以无源光接入***(Gigabit-Capable PON,GPON)为例),首先为每一个预配置节目配置带宽,然后为每一个GPON端口分配可用的组播带宽,当设备收到节目的第一个网络组管理协议(Internet Group Management Protocol,IGMP)加入报文,就会从该GPON端口的剩余带宽减掉相应节目的所占带宽。如果余数小于0则拒绝该用户的点播请求。如果收到一个IGMP离开报文,就可以归还相应节目的带宽给该GPON端口(归还的时刻是在停止转发组播数据时,即该GPON端口下没有任何组播用户需要该节目)。Port Admission Control (CAC) scheme (taking Gigabit-Capable PON (GPON) as an example), first configuring bandwidth for each pre-configured program, and then for each GPON port. When the available multicast bandwidth is allocated, when the device receives the first Internet Group Management Protocol (IGMP) join message of the program, the occupied bandwidth of the corresponding program is subtracted from the remaining bandwidth of the GPON port. If the remainder is less than 0, the user's on-demand request is rejected. If an IGMP Leave message is received, the bandwidth of the corresponding program can be returned to the GPON port (the time of return is when the forwarding of the multicast data is stopped, that is, no multicast user needs the program under the GPON port).
该端口带宽CAC方案无法保证重要的节目可点播,组播节目带宽存在突发和码率调整的可能,会导致组播节目可能和实际的带宽不一致,并且,当用户点播的组播节目超过端口CAC带宽,该组播节目不被允许点播,会造成组播节目黑屏的现象。The port bandwidth CAC solution cannot guarantee that important programs can be on-demand, and the multicast program bandwidth may have burst and bit rate adjustment, which may cause the multicast program to be inconsistent with the actual bandwidth, and when the user-on-demand multicast program exceeds the port. The CAC bandwidth, the multicast program is not allowed to be on-demand, which may cause a black screen of the multicast program.
发明内容Summary of the invention
本申请提供一种管理组播节目的方法、装置和网络设备。该管理组播节目的方法可以对组播节目配置丢弃优先级,在网络设备的组播队列发生拥塞的时候,优先丢弃低丢弃优先级的组播节目,以保证高丢弃优先级的组播节目的质量。The application provides a method, device and network device for managing a multicast program. The method for managing the multicast program can configure the discarding priority for the multicast program. When the multicast queue of the network device is congested, the multicast program with the lower discarding priority is preferentially discarded to ensure the multicast program with the high discarding priority. the quality of.
第一方面,提供了一种管理组播节目的方法,该方法包括:首先,接收N个组播节目,该N个组播节目的业务质量Qos优先级相同,其中N为正整数;接着,对该N个组播节目中每个组播节目配置丢弃优先级;然后,根据该每个组播节目的丢弃优先级,将该N个组播节目映射到不同的Qos优先级的队列,或者,根据该每个组播节目的丢弃优先级,在该N个组播节目进入的同一个Qos优先级队列发生拥塞时,优先丢弃低丢弃优先级的组播节目,以保证高丢弃优先级的组播节目的质量,有助于解决所有组播节目同时丢包的问题。In a first aspect, a method for managing a multicast program is provided, the method comprising: first, receiving N multicast programs, the service quality Qos of the N multicast programs having the same priority, wherein N is a positive integer; And configuring a drop priority for each of the N multicast programs; and then mapping the N multicast programs to different Qos priority queues according to the discarding priority of each multicast program, or According to the discarding priority of each multicast program, when the same QoS priority queue entering the N multicast programs is congested, the multicast program with the lower discarding priority is preferentially discarded to ensure the high discarding priority. The quality of multicast programs helps solve the problem of simultaneous loss of all multicast programs.
在一些可能的实现方式中,该N个组播节目都具有802.1p的优先级4,该同一Qos优先级队列为Qos优先级队列4。In some possible implementations, the N multicast programs have an 802.1p priority of 4, and the same QoS priority queue is a Qos priority queue 4.
在一些可能的实现方式中,该N个组播节目中每个组播节目携带的报文优先级相同。 In some possible implementation manners, the packets carried by each multicast program in the N multicast programs have the same priority.
本申请实施例的管理组播节目的方法,可以在网络设备的组播队列发生拥塞的时候,有效地解决组播队列中所有组播节目同时丢包的问题。The method for managing a multicast program in the embodiment of the present invention can effectively solve the problem of simultaneous packet loss of all multicast programs in the multicast queue when the multicast queue of the network device is congested.
结合第一方面,在第一方面的第一种可能的实现方式中,该对该N个组播节目中每个组播节目配置丢弃优先级,包括:根据预定义分类信息,配置该N个组播节目中每个组播节目的丢弃优先级。With reference to the first aspect, in a first possible implementation manner of the first aspect, the discarding priority is configured for each multicast program in the N multicast programs, including: configuring the N according to the predefined classification information. The drop priority of each multicast program in the multicast program.
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,该方法还包括:根据该N个组播节目中每个组播节目的点播用户数,调整该N个组播节目中每个组播节目的丢弃优先级。With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the method further includes: according to each of the N multicast programs The number of on-demand users adjusts the discarding priority of each multicast program in the N multicast programs.
在一些可能的实现方式中,该根据该N个组播节目中每个组播节目的点播用户数,调整该N个组播节目中每个组播节目的丢弃优先级,包括:根据点播用户数,从高到低进行排序,点播用户数最多的节目,配置最高的丢弃优先级;点播用户数最少的节目,配置最低的丢弃优先级。In some possible implementations, the discarding priority of each multicast program in the N multicast programs is adjusted according to the number of on-demand users of each of the N multicast programs, including: according to the on-demand user The number is sorted from high to low, and the program with the highest number of on-demand users is configured with the highest drop priority; the program with the lowest number of on-demand users is configured with the lowest drop priority.
结合第一方面、第一方面的第一种和第二种节能的实现方式中的任一种可能的实现方式,在第一方面的第三种可能的实现方式中,该N个组播节目中每个组播节目的丢弃优先级对应于该同一Qos优先级队列的一个早丢弃门限,该每个组播节目的丢弃优先级不完全相同。With reference to the first aspect, any one of the first and second energy-saving implementations of the first aspect, in a third possible implementation of the first aspect, the N multicast programs The discarding priority of each multicast program corresponds to an early discarding threshold of the same QoS priority queue, and the discarding priorities of each multicast program are not completely the same.
结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,该根据该每个组播节目的丢弃优先级,在该N个组播节目进入的同一个Qos优先级队列发生拥塞时,进行组播节目的丢弃,包括:该同一Qos优先级队列的深度超过第一早丢弃门限,确定该第一早丢弃门限对应的第一丢弃优先级,该第一早丢弃门限为该同一Qos优先级队列的早丢弃门限中的一个;根据该第一丢弃优先级,确定该第一丢弃优先级对应的第一组播节目集合以及第二丢弃优先级对应的第二组播节目集合,该N个组播节目对应的丢弃优先级包括该第一丢弃优先级和该第二丢弃优先级,该第二丢弃优先级低于该第一丢弃优先级;禁止该第一组播节目集合中的组播节目对应的报文和该第二组播节目集合中的组播节目对应的报文进入该同一Qos优先级队列。In conjunction with the third possible implementation of the first aspect, in a fourth possible implementation manner of the first aspect, the N multicast program enters according to the discarding priority of each multicast program When a QoS priority queue is congested, the multicasting of the multicast program is performed, including: the depth of the same QoS priority queue exceeds the first early discarding threshold, and the first discarding priority corresponding to the first early discarding threshold is determined. The early discarding threshold is one of the early discarding thresholds of the same QoS priority queue; determining, according to the first discarding priority, the first multicast program set corresponding to the first discarding priority level and the second discarding priority level a second multicast program set, the drop priority corresponding to the N multicast programs includes the first drop priority level and the second drop priority level, where the second drop priority level is lower than the first drop priority level; The packet corresponding to the multicast program in the first multicast program set and the packet corresponding to the multicast program in the second multicast program set enter the same QoS priority queue.
结合第一方面的第一种可能的实现方式,在第一方面的第五种可能的实现方式中,该根据预定义分类信息,配置该N个组播节目中每个组播节目的丢弃优先级,包括:根据该每个组播节目的重要程度,配置该N个组播节目中每个组播节目的丢弃优先级;或根据该每个组播节目的清晰度,配置该N个组播节目中每个组播节目的丢弃优先级;或根据该每个组播节目的收视统计率,配置该N个组播节目中每个组播节目的丢弃优先级。With reference to the first possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the discarding priority of each multicast program in the N multicast programs is configured according to the predefined classification information The level includes: configuring, according to the importance degree of each multicast program, a discarding priority of each of the N multicast programs; or configuring the N groups according to the definition of each multicast program The discarding priority of each multicast program in the broadcast program; or the discarding priority of each multicast program in the N multicast programs according to the viewing statistics rate of each multicast program.
第二方面,一种管理组播节目的装置,该装置包括:收发模块,用于接收N个组播节目,该N个组播节目属于同一业务质量Qos优先级队列,N为正整数;处理模块,用于对该N个组播节目中每个组播节目配置丢弃优先级;该处理模块还用于在该同一Qos优先级队列发生拥塞时,根据该每个组播节目的丢弃优先级,进行组播节目的丢弃。The second aspect is an apparatus for managing a multicast program, the apparatus comprising: a transceiver module, configured to receive N multicast programs, the N multicast programs belong to the same service quality Qos priority queue, and N is a positive integer; a module, configured to configure a discarding priority for each of the N multicast programs; the processing module is further configured to: according to the discarding priority of each multicast program when the same Qos priority queue is congested , discarding multicast programs.
在一些可能的实现方式中,该N个组播节目都具有802.1p的优先级4,该同一Qos优先级队列为Qos优先级队列4。In some possible implementations, the N multicast programs have an 802.1p priority of 4, and the same QoS priority queue is a Qos priority queue 4.
在一些可能的实现方式中,该N个组播节目中每个组播节目携带的报文优先级相同。In some possible implementation manners, the packets carried by each multicast program in the N multicast programs have the same priority.
本申请实施例的管理组播节目的装置,可以在网络设备的组播队列发生拥塞的时候,有效地解决组播队列中所有组播节目同时丢包的问题。 The device for managing a multicast program in the embodiment of the present invention can effectively solve the problem of simultaneous packet loss of all multicast programs in the multicast queue when the multicast queue of the network device is congested.
结合第二方面,在第二方面的第一种可能的实现方式中,该处理模块具体用于:根据预定义分类信息,配置该N个组播节目中每个组播节目的丢弃优先级。With reference to the second aspect, in a first possible implementation manner of the second aspect, the processing module is configured to: configure, according to the predefined classification information, a discarding priority of each multicast program in the N multicast programs.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,该处理模块还用于根据该N个组播节目中每个组播节目的点播用户数,调整该N个组播节目中每个组播节目的丢弃优先级。With reference to the second aspect, or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the processing module is further configured to: according to each multicast program in the N multicast programs The number of on-demand users adjusts the discarding priority of each multicast program in the N multicast programs.
在一些可能的实现方式中,该处理模块具体用于:根据点播用户数,从高到低进行排序,点播用户数最多的节目,配置最高的丢弃优先级;点播用户数最少的节目,配置最低的丢弃优先级。In some possible implementation manners, the processing module is specifically configured to: sort the files from highest to lowest according to the number of on-demand users, and program the program with the highest number of on-demand users, and configure the highest discarding priority; the program with the lowest number of on-demand users has the lowest configuration. Drop priority.
结合第二方面、第二方面的第一种和第二种节能的实现方式中的任一种可能的实现方式,在第二方面的第三种可能的实现方式中,该N个组播节目中每个组播节目的丢弃优先级对应于该同一Qos优先级队列的一个早丢弃门限,该每个组播节目的丢弃优先级不完全相同。With reference to the second aspect, any one of the first and second energy-saving implementations of the second aspect, in a third possible implementation of the second aspect, the N multicast programs The discarding priority of each multicast program corresponds to an early discarding threshold of the same QoS priority queue, and the discarding priorities of each multicast program are not completely the same.
结合第二方面的第三种可能的实现方式,在第二方面的第四种可能的实现方式中,该处理模块具体用于:该同一Qos优先级队列的深度超过第一早丢弃门限,确定该第一早丢弃门限对应的第一丢弃优先级,该第一早丢弃门限为该同一Qos优先级队列的早丢弃门限中的一个;根据该第一丢弃优先级,确定该第一丢弃优先级对应的第一组播节目集合以及第二丢弃优先级对应的第二组播节目集合,该N个组播节目对应的丢弃优先级包括该第一丢弃优先级和该第二丢弃优先级,该第二丢弃优先级低于该第一丢弃优先级;禁止该第一组播节目集合中的组播节目对应的报文和该第二组播节目集合中的组播节目对应的报文进入该同一Qos优先级队列。With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the processing module is configured to: determine that the depth of the same QoS priority queue exceeds a first early discard threshold, and determine Determining, by the first discarding threshold, a first discarding priority level, where the first discarding threshold is one of an early discarding threshold of the same QoS priority queue; determining the first discarding priority according to the first discarding priority And corresponding to the first multicast program set and the second multicast program set corresponding to the second drop priority, the drop priority corresponding to the N multicast programs includes the first drop priority and the second drop priority, where The second discarding priority is lower than the first discarding priority; the packet corresponding to the multicast program in the first multicast program set and the packet corresponding to the multicast program in the second multicast program set are prohibited from entering the packet. The same QoS priority queue.
结合第二方面的第一种可能的实现方式,在第二方面的第五种可能的实现方式中,该处理模块具体用于:根据该每个组播节目的重要程度,配置该N个组播节目中每个组播节目的丢弃优先级;或根据该每个组播节目的清晰度,配置该N个组播节目中每个组播节目的丢弃优先级;或根据该每个组播节目的收视统计率,配置该N个组播节目中每个组播节目的丢弃优先级。With reference to the first possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the processing module is specifically configured to: configure the N groups according to the importance degree of each multicast program The discarding priority of each multicast program in the broadcast program; or configuring the discarding priority of each multicast program in the N multicast programs according to the definition of each multicast program; or according to each multicast The viewing statistics rate of the program, and the discarding priority of each multicast program in the N multicast programs is configured.
第三方面,提供了一种网络设备,该网络设备包括存储器和处理器,该存储器用于存储指令,该处理器用于调用该存储器中的指令,以进行上述第一方面或第一方面的任一种可能的实现方式中的方法中的操作。In a third aspect, a network device is provided, the network device comprising a memory and a processor, the memory for storing instructions for invoking instructions in the memory to perform the first aspect or the first aspect An operation in a method in a possible implementation.
第四方面,提供了一种芯片***,包括存储器和处理器,该存储器用于存储计算机程序,该处理器用于从存储器中调用并运行该计算机程序,使得安装有该芯片***的通信设备执行上述第一方面及第一方面任一种可能的实现方式中的方法。A fourth aspect provides a chip system including a memory and a processor for storing a computer program for calling and running the computer program from the memory, such that the communication device mounted with the chip system performs the above The method of any of the possible implementations of the first aspect and the first aspect.
第五方面,提供了一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码被通信设备(例如,网络设备或终端设备)的通信单元、处理单元或收发器、处理器运行时,使得通信设备执行上述第一方面及第一方面任一种可能的实现方式中的方法。In a fifth aspect, a computer program product is provided, the computer program product comprising: computer program code, when the computer program code is processed by a communication unit, a processing unit or a transceiver of a communication device (eg, a network device or a terminal device) When the device is in operation, the communication device is caused to perform the method of any of the first aspect and the first aspect of the first aspect.
第六方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有程序,该程序使得通信设备(例如,网络设备或终端设备)执行上述第一方面及第一方面任一种可能的实现方式中的方法。 According to a sixth aspect, there is provided a computer readable storage medium storing a program causing a communication device (eg, a network device or a terminal device) to perform any of the first aspect and the first aspect described above The method in the possible implementation.
附图说明DRAWINGS
图1是根据本申请实施例的技术方案的一种应用场景的示意性框图。FIG. 1 is a schematic block diagram of an application scenario of a technical solution according to an embodiment of the present application.
图2是根据本申请实施例的管理组播节目的方法的示意性流程图。FIG. 2 is a schematic flowchart of a method for managing a multicast program according to an embodiment of the present application.
图3是根据本申请实施例的管理组播节目的方法的另一示意性流程图。FIG. 3 is another schematic flowchart of a method for managing a multicast program according to an embodiment of the present application.
图4是根据本申请实施例的管理组播节目的方法的另一示意性流程图。FIG. 4 is another schematic flowchart of a method for managing a multicast program according to an embodiment of the present application.
图5是根据本申请实施例的组播节目丢弃过程的示意图。FIG. 5 is a schematic diagram of a multicast program discarding process according to an embodiment of the present application.
图6是根据本申请实施例的组播节目丢弃过程的另一示意图。FIG. 6 is another schematic diagram of a multicast program discarding process according to an embodiment of the present application.
图7是根据本申请实施例的组播节目映射到不同优先级队列的示意图。7 is a schematic diagram of mapping multicast programs to different priority queues according to an embodiment of the present application.
图8是根据本申请实施例的管理组播节目的装置的示意性框图。FIG. 8 is a schematic block diagram of an apparatus for managing a multicast program according to an embodiment of the present application.
图9是根据本申请实施例的网络设备的示意性框图。9 is a schematic block diagram of a network device in accordance with an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in the present application will be described below with reference to the accompanying drawings.
图1是根据本申请实施例的技术方案的一种应用场景的示意性框图,如图1所示,网络设备接收组播服务器发送的组播节目,网络设备可以对接收到的组播节目进行管理,以使用户在点播组播节目时,可以进行正常观看。FIG. 1 is a schematic block diagram of an application scenario of a technical solution according to an embodiment of the present application. As shown in FIG. 1 , a network device receives a multicast program sent by a multicast server, and the network device may perform a received multicast program. Management, so that users can watch normal when they order multicast programs.
应理解,网络设备可以从组播服务器接收组播节目,还可以从其他节点接收组播节目,本申请并不限于此。It should be understood that the network device can receive the multicast program from the multicast server and can also receive the multicast program from other nodes, and the application is not limited thereto.
可选地,本申请实施例中的终端设备可以为机顶盒、电视机、手机、计算机或平板电脑等可以解码组播节目的设备。Optionally, the terminal device in the embodiment of the present application may be a device that can decode a multicast program, such as a set top box, a television, a mobile phone, a computer, or a tablet computer.
可选地,本申请实施例中的网络设备可以为核心路由器(Core Router,CR)、宽带远程接入服务器(Broadband Remote Access Server,BRAS)、局域网交换机(Lan Switch,LSW)、光线路终端(Optical Line Terminal,OLT)、家庭网关(Home Gateway,HG)等,本申请实施例对此不作限定。Optionally, the network device in the embodiment of the present application may be a core router (CR), a broadband remote access server (BRAS), a LAN switch (LSW), and an optical line terminal. The optical line terminal (OLT), the home gateway (HG), and the like are not limited in this embodiment of the present application.
图2示出了根据本申请实施例的管理组播节目的方法100的示意性流程图,该管理组播节目的方法100的执行主体可以为网络设备,如图2所示,该方法100包括:FIG. 2 is a schematic flowchart of a method 100 for managing a multicast program according to an embodiment of the present application. The execution body of the method 100 for managing a multicast program may be a network device. As shown in FIG. 2, the method 100 includes :
S110,接收N个组播节目,该N个组播节目的业务质量Qos优先级相同,N为正整数。S110. Receive N multicast programs, where the service quality Qos priorities of the N multicast programs are the same, and N is a positive integer.
具体而言,网络设备接收N个组播节目,该N个组播节目的业务质量Qos优先级相同,即该N个组播节目携带的报文优先级相同,例如,该N个组播节目的二层802.1p的优先级都为4。Specifically, the network device receives N multicast programs, and the service quality Qos of the N multicast programs have the same priority, that is, the packets carried by the N multicast programs have the same priority, for example, the N multicast programs. The second layer of 802.1p has a priority of 4.
可选地,该N个组播节目都具有802.1p的优先级4,该同一Qos优先级队列为Qos优先级队列4。Optionally, the N multicast programs all have an 802.1p priority level 4, and the same QoS priority queue is a Qos priority queue 4.
应理解,802.1p中定义的优先级有8种。最高优先级为7,应用于关键性网络流量,如路由选择信息协议(RIP)和开放最短路径优先(OSPF)协议的路由表更新。优先级6和5主要用于延迟敏感(delay-sensitive)应用程序,如交互式视频和语音。优先级4到1主要用于受控负载(controlled-load)应用程序,如流式多媒体(streaming multimedia)和关键性业务流量(business-critical traffic)。优先级0是缺省值,并在没有设置其它优先级值的情况下自动启用,其中,优先级4推荐由视频会议和视频流使用。 It should be understood that there are eight priorities defined in 802.1p. The highest priority is 7, which is applied to critical network traffic such as routing table updates for Routing Information Protocol (RIP) and Open Shortest Path First (OSPF) protocols. Priority 6 and 5 are primarily used for delay-sensitive applications such as interactive video and voice. Priority 4 to 1 is primarily used for controlled-load applications such as streaming multimedia and business-critical traffic. Priority 0 is the default and is automatically enabled if no other priority values are set, where priority 4 is recommended for use by video conferencing and video streaming.
可选地,该N个组播节目中每个组播节目携带的报文优先级相同。Optionally, the packets carried by each multicast program in the N multicast programs have the same priority.
S120,对该N个组播节目中每个组播节目配置丢弃优先级。S120. Configure a drop priority for each multicast program in the N multicast programs.
图3示出了根据本申请实施例的管理组播节目的方法100的另一示意性流程图,如图3所示,该对N个组播节目中每个组播节目配置丢弃优先级,包括:FIG. 3 is another schematic flowchart of a method 100 for managing a multicast program according to an embodiment of the present application. As shown in FIG. 3, each multicast program of the pair of N multicast programs is configured with a drop priority. include:
S121,根据预定义分类信息,配置该N个组播节目中每个组播节目的丢弃优先级。S121. Configure, according to the predefined classification information, a discarding priority of each multicast program in the N multicast programs.
具体而言,网络设备接收组播节目的时候,同时配置组播节目的丢弃优先级,该丢弃优先级不依赖于组播节目报文所携带的报文优先级,在网络设备内部转发进入队列的时候使用。Specifically, when the network device receives the multicast program, the network device discards the discarding priority of the multicast program. The discarding priority does not depend on the packet priority of the multicast program packet, and is forwarded to the queue within the network device. Used when.
可选地,该丢弃优先级的个数取决于优先级队列的早丢弃门限的个数,优先级队列的早丢弃门限个数由网络设备本身的硬件条件决定。Optionally, the number of the discarding priorities depends on the number of early discard thresholds of the priority queue. The number of early discard thresholds of the priority queue is determined by hardware conditions of the network device itself.
应理解,该N个组播节目中每个组播节目的丢弃优先级对应于该同一Qos优先级队列的一个早丢弃门限,该每个组播节目的丢弃优先级不完全相同。It should be understood that the discarding priority of each multicast program in the N multicast programs corresponds to an early discarding threshold of the same QoS priority queue, and the discarding priorities of each multicast program are not completely the same.
还应理解,丢弃优先级为交换机(或其他网络设备)在丢弃报文时的参考优先级,其对应于出端口队列,默认情况下即队列调度采用严格丢弃优先级时,拥塞发生时优先级越低越优先丢弃。It should also be understood that the discarding priority is the reference priority of the switch (or other network device) when it discards the packet, which corresponds to the outbound port queue. By default, when the queue scheduling adopts the strict discarding priority, the congestion occurs when the priority occurs. The lower the priority, the higher the priority.
例如,优先级队列4具有3个早丢弃门限,该3个早丢弃门限分别为低优先级丢弃门限、中优先级丢弃门限和高优先级丢弃门限,该网络设备收到3个组播节目(组播节目1、组播节目2和组播节目3),可以对该组播节目1配置高丢弃优先级,对组播节目2配置中丢弃优先级,对组播节目3配置低丢弃优先级。当组播队列发生拥塞时,优先丢弃配置了低丢弃优先级的组播节目3,以保证配置了中丢弃优先级的组播节目2和配置了高丢弃优先级的组播节目1的质量;或者,当组播节目发生拥塞时,优先丢弃配置了低丢弃优先级的组播节目3和配置了中丢弃优先级的组播节目2,以保证配置了高丢弃优先级的组播节目1的质量。For example, the priority queue 4 has three early discarding thresholds, and the three early discarding thresholds are a low priority discarding threshold, a medium priority discarding threshold, and a high priority discarding threshold, and the network device receives three multicast programs ( Multicast program 1, multicast program 2, and multicast program 3), the multicast program 1 can be configured with a high discarding priority, the multicast program 2 is configured with a discarding priority, and the multicast program 3 is configured with a low discarding priority. . When the multicast queue is congested, the multicast program 3 with the low drop priority is preferentially discarded, so that the quality of the multicast program 2 with the drop priority and the multicast program 1 with the high drop priority are configured. Or, when the multicast program is congested, the multicast program 3 configured with the low drop priority and the multicast program 2 configured with the drop priority are preferentially discarded to ensure that the multicast program 1 with the high drop priority is configured. quality.
又例如,优先级队列4具有3个早丢弃门限,该3个早丢弃门限分别为低优先级丢弃门限、中优先级丢弃门限和高优先级丢弃门限,该网络设备收到3个组播节目(组播节目1、组播节目2和组播节目3),可以对该组播节目1和组播节目2配置高丢弃优先级,对组播节目3配置低丢弃优先级。For another example, the priority queue 4 has three early discarding thresholds, and the three early discarding thresholds are a low priority discarding threshold, a medium priority discarding threshold, and a high priority discarding threshold, and the network device receives three multicast programs. (Multicast Program 1, Multicast Program 2, and Multicast Program 3), the multicast program 1 and the multicast program 2 can be configured with a high discarding priority, and the multicast program 3 with a low discarding priority.
应理解,该优先级队列的早丢弃门限的个数大于或者等于网络设备为组播节目配置的丢弃优先级的个数。It should be understood that the number of early discard thresholds of the priority queue is greater than or equal to the number of discarding priorities configured by the network device for the multicast program.
应理解,该预定义分类信息可以为预先规定好的组播节目分类信息,即网络设备接收到组播节目后,就可以确定对该组播节目配置哪一个丢弃优先级,换句话说,该网络设备为组播节目静态地配置丢弃优先级。It should be understood that the predefined classification information may be pre-defined multicast program classification information, that is, after the network device receives the multicast program, it may determine which discarding priority is configured for the multicast program, in other words, the The network device statically configures the drop precedence for the multicast program.
可选地,该根据预定义分类信息,配置该N个组播节目中每个组播节目的丢弃优先级,包括:Optionally, the discarding priority of each multicast program in the N multicast programs is configured according to the predefined classification information, including:
根据该每个组播节目的重要程度,配置该N个组播节目中每个组播节目的丢弃优先级;或And configuring, according to the importance degree of each multicast program, a discarding priority of each multicast program in the N multicast programs; or
根据该每个组播节目的清晰度,配置该N个组播节目中每个组播节目的丢弃优先级;或And configuring, according to the definition of each multicast program, a discarding priority of each of the N multicast programs; or
根据该每个组播节目的收视统计率,配置该N个组播节目中每个组播节目的丢弃优先 级。Configuring a drop priority for each multicast program in the N multicast programs according to the viewing statistics rate of each multicast program level.
具体而言,丢弃优先级的选择方法不限,可针对重要的节目配置高的丢弃优先级,普通的节目配置的的丢弃优先级;也可以根据4K,全高清,高清,标清的节目类型配置丢弃优先级,4K的丢弃优先级高,标清的丢弃优先低;还可以根据收视统计情况,将热门的节目配置为高的丢弃优先级,冷门的节目配置为低的丢弃优先级。Specifically, the method for selecting the discarding priority is not limited, and a high discarding priority level can be configured for an important program, and a discarding priority of an ordinary program configuration can also be configured according to a program type of 4K, full HD, high definition, and standard definition. The priority of the discarding is high. The discarding priority of the 4K is high, and the discarding priority of the SD is low. The popular program can be configured as a high discarding priority according to the viewing statistics. The unpopular program is configured with a low discarding priority.
应理解,上述丢弃优先级的选择方式并不限于上述的方式,还可以通过其他方式为组播节目静态的配置丢弃优先级,例如,可以按照组播节目的类型进行分类,对新闻类的组播节目配置高丢弃优先级,对娱乐类的组播节目配置低的丢弃优先级,本申请并不限于此。It should be understood that the foregoing selection manner of the discarding priority is not limited to the foregoing manner, and the discarding priority may be configured for the static configuration of the multicast program by other methods. For example, the type of the multicast program may be classified according to the type of the multicast program. The broadcast program is configured with a high drop priority and a low drop priority for the entertainment-type multicast program. The application is not limited thereto.
图4示出了根据本申请实施例的管理组播节目的方法100的再一示意性流程图,如图4所示,该方法还100还包括:FIG. 4 is still another schematic flowchart of a method 100 for managing a multicast program according to an embodiment of the present application. As shown in FIG. 4, the method 100 further includes:
S122,根据该N个组播节目中每个组播节目的点播用户数,调整该N个组播节目中每个组播节目的丢弃优先级。S122. Adjust a discarding priority of each multicast program in the N multicast programs according to the number of on-demand users of each multicast program in the N multicast programs.
具体而言,网络设备接收到该N个组播节目后,可以根据组播节目的点播用户数,动态地对该N个组播节目中的每个组播节目配置丢弃优先级,当组播节目的点播用户数发生变化时,网络设备为该N个组播节目配置的丢弃优先级也相应发生变化。Specifically, after receiving the N multicast programs, the network device can dynamically set a discarding priority for each multicast program in the N multicast programs according to the number of on-demand users of the multicast program, when multicasting When the number of on-demand users of the program changes, the discarding priority configured by the network device for the N multicast programs also changes accordingly.
例如,网络设备根据组播节目的点播用户数,从高到低排序,动态地调整每个组播节目的丢弃优先级,点播用户数最多的节目,配置高丢弃优先级,点播用户数最少的节目,配置低丢弃优先级。每次用户加入或者离开组播节目时,根据点播用户数动态地调整丢弃优先级。在组播队列发生拥塞时,优先丢弃低丢弃优先级的组播节目,以保证高丢弃优先级的组播节目的质量。For example, the network device dynamically sorts the discarding priority of each multicast program according to the number of on-demand users of the multicast program, and dynamically adjusts the discarding priority of each multicast program, and the program with the highest number of on-demand users is configured with a high discarding priority and a minimum number of on-demand users. Program, configured with low drop priority. Each time a user joins or leaves a multicast program, the drop priority is dynamically adjusted according to the number of on-demand users. When the multicast queue is congested, the multicast program with the lower drop priority is preferentially discarded to ensure the quality of the multicast program with high discard priority.
又例如,网络设备接收到3个组播节目时,组播节目1的点播用户数最多,则为该组播节目1配置高丢弃优先级;组播节目3的点播用户数最少,则为组播节目3配置低丢弃优先级;为组播节目2配置中丢弃优先级。当组播队列发生拥塞时,优先丢弃配置了低丢弃优先级的组播节目3,以保证配置了中丢弃优先级的组播节目2和配置了高丢弃优先级的组播节目1的质量;或者,当组播节目发生拥塞时,优先丢弃配置了低丢弃优先级的组播节目3和配置了中丢弃优先级的组播节目2,以保证配置了高丢弃优先级的组播节目1的质量。For example, when the network device receives three multicast programs, the number of on-demand users of the multicast program 1 is the highest, and the multicast program 1 is configured with a high discarding priority; if the number of on-demand users of the multicast program 3 is the least, the group is the group. Broadcast program 3 configures a low drop priority; it discards the priority for multicast program 2 configuration. When the multicast queue is congested, the multicast program 3 with the low drop priority is preferentially discarded, so that the quality of the multicast program 2 with the drop priority and the multicast program 1 with the high drop priority are configured. Or, when the multicast program is congested, the multicast program 3 configured with the low drop priority and the multicast program 2 configured with the drop priority are preferentially discarded to ensure that the multicast program 1 with the high drop priority is configured. quality.
一段时间后,网络设备确定组播节目3的点播用户数最多,则将该组播节目3的丢弃优先级调整为高丢弃优先级;确定组播节目1的点播用户数最少,则将该组播节目1的丢弃优先级调整为低丢弃优先级。此时若组播队列发生拥塞,优先丢弃配置了低丢弃优先级的组播节目1,以保证配置了中丢弃优先级的组播节目2和配置了高丢弃优先级的组播节目3的质量;或者,优先丢弃配置了低丢弃优先级的组播节目1和配置了中丢弃优先级的组播节目2,以保证配置了高丢弃优先级的组播节目3的质量。After a period of time, the network device determines that the number of on-demand users of the multicast program 3 is the largest, and the discarding priority of the multicast program 3 is adjusted to a high discarding priority; and determining the number of on-demand users of the multicast program 1 is the least, the group is determined. The drop priority of the broadcast program 1 is adjusted to a low drop priority. At this time, if the multicast queue is congested, the multicast program 1 with the low drop priority is preferentially discarded to ensure the quality of the multicast program 2 with the drop priority and the multicast program 3 with the high drop priority. Or, the multicast program 1 configured with the low drop priority and the multicast program 2 configured with the drop priority are preferentially discarded to ensure the quality of the multicast program 3 with the high drop priority configured.
应理解,该网络设备在接收到该N个组播节目后,可以先静态的为该N个组播节目中的每个组播节目配置丢弃优先级,然后在根据组播节目的点播用户数,动态得调整该N个组播节目中每个组播节目的丢弃优先级。It should be understood that after receiving the N multicast programs, the network device may statically configure a discarding priority for each multicast program in the N multicast programs, and then count the number of users according to the multicast program. Dynamically adjusting the discarding priority of each multicast program in the N multicast programs.
S130,根据该每个组播节目的丢弃优先级,将该N个组播节目映射到不同的Qos优先级的队列,或者,根据该每个组播节目的丢弃优先级,在该N个组播节目进入的同一个Qos优先级队列发生拥塞时,进行组播节目的丢弃。 S130. Map, according to the discarding priority of each multicast program, the N multicast programs to queues of different QoS priorities, or according to the discarding priority of each multicast program, in the N groups. When the same QoS priority queue entered by the broadcast program is congested, the multicast program is discarded.
具体而言,网络设备为该N个组播节目中的每个组播节目配置了丢弃优先级后,根据该每个组播节目的丢弃优先级,将该N个组播节目映射到不同的Qos优先级的队列,或者,根据该每个组播节目的丢弃优先级,在该N个组播节目进入的同一个Qos优先级队列发生拥塞时,进行组播节目的丢弃。Specifically, after the network device configures a discarding priority for each of the N multicast programs, the network device maps the N multicast programs to different ones according to the discarding priority of each multicast program. The queue of the Qos priority, or according to the discarding priority of each multicast program, discards the multicast program when the same QoS priority queue entered by the N multicast programs is congested.
可选地,该根据该每个组播节目的丢弃优先级,在该N个组播节目进入的同一个Qos优先级队列发生拥塞时,进行组播节目的丢弃,包括:Optionally, the multicast program is discarded according to the discarding priority of each multicast program, when the same QoS priority queue entering the N multicast programs is congested, including:
该同一Qos优先级队列的深度超过第一早丢弃门限,确定该第一早丢弃门限对应的第一丢弃优先级,该第一早丢弃门限为该同一Qos优先级队列的早丢弃门限中的一个;The first QoS priority queue exceeds the first early discarding threshold, and the first discarding priority level corresponding to the first early discarding threshold is determined. The first early discarding threshold is one of the early discarding thresholds of the same QoS priority queue. ;
根据该第一丢弃优先级,确定该第一丢弃优先级对应的第一组播节目集合以及第二丢弃优先级对应的第二组播节目集合,该N个组播节目对应的丢弃优先级包括该第一丢弃优先级和该第二丢弃优先级,该第二丢弃优先级低于该第一丢弃优先级;And determining, according to the first discarding priority, the first multicast program set corresponding to the first discarding priority level and the second multicast program set corresponding to the second discarding priority level, where the discarding priorities corresponding to the N multicast programs include The first discarding priority and the second discarding priority, where the second discarding priority is lower than the first discarding priority;
禁止该第一组播节目集合中的组播节目对应的报文和该第二组播节目集合中的组播节目对应的报文进入该同一Qos优先级队列。The message corresponding to the multicast program in the first multicast program set and the message corresponding to the multicast program in the second multicast program set are prohibited from entering the same QoS priority queue.
图5示出了根据本申请实施例的组播节目丢弃过程的示意图,如图5所示,组播节目1、组播节目2和组播节目3分别配置了高丢弃优先级、中丢弃优先级和低丢弃优先级,当当组播节目1、组播节目2和组播节目3进入的组播优先级队列发生拥塞时,如果该优先级队列的深度超过了低早丢弃门限,则确定该低丢弃门限对应的丢弃优先级为低丢弃优先级,根据该低丢弃优先级,确定该低丢弃优先级对应的组播节目为组播节目3,则组播节目3的报文不允许进入该优先级队列;相同的,如果该优先级队列的深度超过了中早丢弃门限,则组播节目2和组播节目3的报文不允许进入该优先级队列;如果该优先级队列的深度超过了高早丢弃门限,则组播节目1、组播节目2和组播节目3的报文均不允许进入该优先级队列。FIG. 5 is a schematic diagram of a multicast program discarding process according to an embodiment of the present application. As shown in FIG. 5, the multicast program 1, the multicast program 2, and the multicast program 3 are respectively configured with a high discarding priority and a discarding priority. Level and low drop priority. When the multicast priority queue entered by multicast program 1, multicast program 2, and multicast program 3 is congested, if the depth of the priority queue exceeds the low early discard threshold, it is determined. The drop priority corresponding to the low drop threshold is the low drop priority. According to the low drop priority, it is determined that the multicast program corresponding to the low drop priority is the multicast program 3, and the packet of the multicast program 3 is not allowed to enter the multicast program. The priority queue is the same. If the depth of the priority queue exceeds the early-stage discard threshold, the packets of multicast program 2 and multicast program 3 are not allowed to enter the priority queue. If the depth of the priority queue exceeds If the threshold is discarded early, the packets of multicast program 1, multicast program 2, and multicast program 3 are not allowed to enter the priority queue.
图6示出了根据本申请实施例的组播节目丢弃过程的另一示意图,如图6所示,组播节目1和组播节目2配置了高丢弃优先级,组播节目3分别配置了低丢弃优先级,如果该优先级队列的深度超过了低早丢弃门限,则组播节目3的报文不允许进入该优先级队列;如果该优先级队列的深度超过了高早丢弃门限,则组播节目1、组播节目2和组播节目3的报文均不允许进入该优先级队列。FIG. 6 is another schematic diagram of a multicast program discarding process according to an embodiment of the present application. As shown in FIG. 6, the multicast program 1 and the multicast program 2 are configured with a high discarding priority, and the multicast program 3 is configured respectively. If the depth of the priority queue exceeds the low early discard threshold, the packet of the multicast program 3 is not allowed to enter the priority queue. If the depth of the priority queue exceeds the high early discard threshold, then Packets of multicast program 1, multicast program 2, and multicast program 3 are not allowed to enter the priority queue.
应理解,图5和图6所示的组播节目的丢弃过程均发生在组播优先级队列发生拥塞时,即组播节目进入该组播优先级队列的速度大于组播节目出该组播优先级队列的速度,当该组播优先级队列不发生拥塞时,组播节目1、组播节目2和组播节目3均可以进入该组播优先级队列。It should be understood that the discarding process of the multicast program shown in FIG. 5 and FIG. 6 occurs when the multicast priority queue is congested, that is, the multicast program enters the multicast priority queue faster than the multicast program out of the multicast. The speed of the priority queue. When the multicast priority queue does not become congested, multicast program 1, multicast program 2, and multicast program 3 can enter the multicast priority queue.
可选地,网络设备还可以根据该每个组播节目的丢弃优先级,将该N个组播节目映射到不同的Qos优先级的队列。Optionally, the network device may further map the N multicast programs to different queues of Qos priorities according to the discarding priority of each multicast program.
具体而言,网络设备静态地配置每个组播节目的丢弃优先级,然后根据每个节目的丢弃优先级将每个组播节目映射到不同的组播优先级队列中,例如,高丢弃优先级的组播节目映射到高优先级队列中,低丢弃优先级的组播节目映射到低丢弃优先级队列中。Specifically, the network device statically configures the discarding priority of each multicast program, and then maps each multicast program to a different multicast priority queue according to the discarding priority of each program, for example, high discarding priority. Level multicast programs are mapped to high priority queues, and low drop priority multicast programs are mapped to low drop priority queues.
或者,网络设备根据组播节目的点播用户数动态地配置每个组播节目的丢弃优先级,然后根据每个节目的丢弃优先级将每个组播节目动态地映射到不同的组播优先级队列中。Alternatively, the network device dynamically configures the discarding priority of each multicast program according to the number of on-demand users of the multicast program, and then dynamically maps each multicast program to a different multicast priority according to the discarding priority of each program. In the queue.
图7示出了根据本申请实施例的组播节目映射到不同优先级队列的示意图,如图7所 示,组播节目1、组播节目2和组播节目3分别配置了高丢弃优先级、中丢弃优先级和低丢弃优先级,当组播节目1、组播节目2和组播节目3要进入组播队列时,网络设备将3个组播节目静态配置到不同优先级队列,或者,网络设备动态地调整每个组播节目所要进入的优先级队列。FIG. 7 is a schematic diagram of mapping a multicast program to a different priority queue according to an embodiment of the present application, as shown in FIG. 7 It is shown that the multicast program 1, the multicast program 2, and the multicast program 3 are respectively configured with a high drop priority, a medium drop priority, and a low drop priority, when the multicast program 1, the multicast program 2, and the multicast program 3 are to be When entering the multicast queue, the network device statically configures 3 multicast programs to different priority queues, or the network device dynamically adjusts the priority queue to be entered for each multicast program.
本申请实施例的管理组播节目的方法,可以对组播节目配置丢弃优先级,在网络设备的组播队列发生拥塞的时候,优先丢弃低丢弃优先级的组播节目,以保证高丢弃优先级的组播节目的质量,有助于解决所有组播节目同时丢包的问题。The method for managing a multicast program in the embodiment of the present invention can be configured to discard the priority of the multicast program. When the multicast queue of the network device is congested, the multicast program with the lower drop priority is preferentially discarded to ensure the high drop priority. The quality of the multicast program at the level helps solve the problem of simultaneous packet loss for all multicast programs.
上文结合图1至图7,详细得描述了根据本申请实施例的管理组播节目的方法,下文结合图8和图9,详细得描述根据本申请实施例的管理组播节目的装置和网络设备。The method for managing a multicast program according to an embodiment of the present application is described in detail above with reference to FIG. 1 to FIG. 7. The apparatus for managing a multicast program according to an embodiment of the present application is described in detail below with reference to FIG. 8 and FIG. Network equipment.
图8示出了根据本申请实施例的管理组播节目的装置200的示意性框图,如图8所示,该装置200包括:FIG. 8 is a schematic block diagram of an apparatus 200 for managing a multicast program according to an embodiment of the present application. As shown in FIG. 8, the apparatus 200 includes:
收发模块210,用于接收N个组播节目,该N个组播节目属于同一业务质量Qos优先级队列,N为正整数;The transceiver module 210 is configured to receive N multicast programs, where the N multicast programs belong to the same service quality Qos priority queue, and N is a positive integer;
处理模块220,用于对该N个组播节目中每个组播节目配置丢弃优先级;The processing module 220 is configured to configure a drop priority for each multicast program in the N multicast programs.
该处理模块220还用于根据该每个组播节目的丢弃优先级,将该N个组播节目映射到不同的Qos优先级的队列,或者,根据该每个组播节目的丢弃优先级,在该N个组播节目进入的同一个Qos优先级队列发生拥塞时,优先丢弃低丢弃优先级的组播节目,以保证高丢弃优先级的组播节目的质量,有助于解决所有组播节目同时丢包的问题。The processing module 220 is further configured to map the N multicast programs to different queues of QoS priorities according to the discarding priority of each multicast program, or according to the discarding priority of each multicast program. When the same QoS priority queue that the N multicast programs enters is congested, the multicast program with the lower drop priority is preferentially discarded to ensure the quality of the high-drop priority multicast program, which helps resolve all multicasts. The problem of losing packets at the same time.
可选地,该N个组播节目都具有802.1p的优先级4,该同一Qos优先级队列为Qos优先级队列4。Optionally, the N multicast programs all have an 802.1p priority level 4, and the same QoS priority queue is a Qos priority queue 4.
可选地,该N个组播节目中每个组播节目携带的报文优先级相同。Optionally, the packets carried by each multicast program in the N multicast programs have the same priority.
本申请实施例的管理组播节目的装置,可以在网络设备的组播队列发生拥塞的时候,有效地解决组播队列中所有组播节目同时丢包的问题。The device for managing a multicast program in the embodiment of the present invention can effectively solve the problem of simultaneous packet loss of all multicast programs in the multicast queue when the multicast queue of the network device is congested.
可选地,该处理模块220具体用于:根据预定义分类信息,配置该N个组播节目中每个组播节目的丢弃优先级。Optionally, the processing module 220 is specifically configured to: configure, according to the predefined classification information, a discarding priority of each multicast program in the N multicast programs.
可选地,该处理模块220还用于根据该N个组播节目中每个组播节目的点播用户数,调整该N个组播节目中每个组播节目的丢弃优先级。Optionally, the processing module 220 is further configured to adjust, according to the number of on-demand users of each multicast program in the N multicast programs, a discarding priority of each multicast program in the N multicast programs.
可选地,该处理模块220具体用于:根据点播用户数,从高到低进行排序,点播用户数最多的节目,配置最高的丢弃优先级;点播用户数最少的节目,配置最低的丢弃优先级。Optionally, the processing module 220 is specifically configured to: sort the files from the highest to the lowest according to the number of on-demand users, and configure the program with the highest number of on-demand users, and configure the highest discarding priority; the program with the lowest number of on-demand users, and the lowest discarding priority. level.
可选地,该N个组播节目中每个组播节目的丢弃优先级对应于该同一Qos优先级队列的一个早丢弃门限,该每个组播节目的丢弃优先级不完全相同。Optionally, the discarding priority of each multicast program in the N multicast programs corresponds to an early discarding threshold of the same QoS priority queue, and the discarding priorities of each multicast program are not completely the same.
可选地,该处理模块220具体用于:该同一Qos优先级队列的深度超过第一早丢弃门限,确定该第一早丢弃门限对应的第一丢弃优先级,该第一早丢弃门限为该同一Qos优先级队列的早丢弃门限中的一个;Optionally, the processing module 220 is configured to: the depth of the same QoS priority queue exceeds the first early discarding threshold, and determine a first discarding priority level corresponding to the first early discarding threshold, where the first early discarding threshold is One of the early discard thresholds of the same QoS priority queue;
根据该第一丢弃优先级,确定该第一丢弃优先级对应的第一组播节目集合以及第二丢弃优先级对应的第二组播节目集合,该N个组播节目对应的丢弃优先级包括该第一丢弃优先级和该第二丢弃优先级,该第二丢弃优先级低于该第一丢弃优先级;And determining, according to the first discarding priority, the first multicast program set corresponding to the first discarding priority level and the second multicast program set corresponding to the second discarding priority level, where the discarding priorities corresponding to the N multicast programs include The first discarding priority and the second discarding priority, where the second discarding priority is lower than the first discarding priority;
禁止该第一组播节目集合中的组播节目对应的报文和该第二组播节目集合中的组播节目对应的报文进入该同一Qos优先级队列。 The message corresponding to the multicast program in the first multicast program set and the message corresponding to the multicast program in the second multicast program set are prohibited from entering the same QoS priority queue.
可选地,该处理模块220具体用于:根据该每个组播节目的重要程度,配置该N个组播节目中每个组播节目的丢弃优先级;或Optionally, the processing module 220 is configured to: configure, according to an importance degree of each multicast program, a discarding priority of each multicast program in the N multicast programs; or
根据该每个组播节目的清晰度,配置该N个组播节目中每个组播节目的丢弃优先级;或And configuring, according to the definition of each multicast program, a discarding priority of each of the N multicast programs; or
根据该每个组播节目的收视统计率,配置该N个组播节目中每个组播节目的丢弃优先级。And setting a discarding priority level of each of the N multicast programs according to the viewing statistics rate of each multicast program.
本申请实施例的管理组播节目的装置,可以对组播节目配置丢弃优先级,在网络设备的组播队列发生拥塞的时候,优先丢弃低丢弃优先级的组播节目,以保证高丢弃优先级的组播节目的质量,有助于解决所有组播节目同时丢包的问题。The device for managing the multicast program in the embodiment of the present application can configure the discarding priority for the multicast program. When the multicast queue of the network device is congested, the multicast program with the lower discarding priority is preferentially discarded to ensure the high discard priority. The quality of the multicast program at the level helps solve the problem of simultaneous packet loss for all multicast programs.
图9示出了根据本申请实施例的网络设备300的示意性框图,如图9所示,该装置300包括:FIG. 9 shows a schematic block diagram of a network device 300 according to an embodiment of the present application. As shown in FIG. 9, the device 300 includes:
收发器310,用于接收N个组播节目,该N个组播节目属于同一业务质量Qos优先级队列,N为正整数;The transceiver 310 is configured to receive N multicast programs, where the N multicast programs belong to the same service quality Qos priority queue, and N is a positive integer;
处理器320,用于对该N个组播节目中每个组播节目配置丢弃优先级;The processor 320 is configured to configure a drop priority for each multicast program in the N multicast programs.
该处理器320还用于在根据该每个组播节目的丢弃优先级,将该N个组播节目映射到不同的Qos优先级的队列,或者,根据该每个组播节目的丢弃优先级,在该N个组播节目进入的同一个Qos优先级队列发生拥塞时,优先丢弃低丢弃优先级的组播节目,以保证高丢弃优先级的组播节目的质量,有助于解决所有组播节目同时丢包的问题。The processor 320 is further configured to map the N multicast programs to different QoS priority queues according to the discarding priority of each multicast program, or according to the discarding priority of each multicast program. When the same QoS priority queue entering the N multicast programs is congested, the multicast program with a lower discarding priority is preferentially discarded to ensure the quality of the multicast program with a high discarding priority, which helps resolve all groups. The problem of broadcasting a program at the same time.
可选地,该N个组播节目都具有802.1p的优先级4,该同一Qos优先级队列为Qos优先级队列4。Optionally, the N multicast programs all have an 802.1p priority level 4, and the same QoS priority queue is a Qos priority queue 4.
可选地,该N个组播节目中每个组播节目携带的报文优先级相同。Optionally, the packets carried by each multicast program in the N multicast programs have the same priority.
本申请实施例的网络设备,可以在网络设备的组播队列发生拥塞的时候,优先丢弃低丢弃优先级的组播节目,以保证高丢弃优先级的组播节目的质量,有效地解决组播队列中所有组播节目同时丢包的问题。The network device in the embodiment of the present application can preferentially discard the multicast program with a lower discarding priority when the multicast queue of the network device is congested, so as to ensure the quality of the multicast program with a high discarding priority, and effectively solve the multicast. The problem of all multicast programs in the queue losing packets at the same time.
可选地,该处理器320具体用于:根据预定义分类信息,配置该N个组播节目中每个组播节目的丢弃优先级。Optionally, the processor 320 is configured to: configure, according to the predefined classification information, a discarding priority of each multicast program in the N multicast programs.
可选地,该处理器320还用于根据该N个组播节目中每个组播节目的点播用户数,调整该N个组播节目中每个组播节目的丢弃优先级。Optionally, the processor 320 is further configured to adjust, according to the number of on-demand users of each multicast program in the N multicast programs, a discarding priority of each multicast program in the N multicast programs.
可选地,该处理器320具体用于:根据点播用户数,从高到低进行排序,点播用户数最多的节目,配置最高的丢弃优先级;点播用户数最少的节目,配置最低的丢弃优先级。Optionally, the processor 320 is specifically configured to: sort the files from the highest to the lowest according to the number of on-demand users, and configure the program with the highest number of on-demand users, and configure the highest discarding priority; the program with the lowest number of on-demand users, and the lowest discarding priority. level.
可选地,该N个组播节目中每个组播节目的丢弃优先级对应于该同一Qos优先级队列的一个早丢弃门限,该每个组播节目的丢弃优先级不完全相同。Optionally, the discarding priority of each multicast program in the N multicast programs corresponds to an early discarding threshold of the same QoS priority queue, and the discarding priorities of each multicast program are not completely the same.
可选地,该处理器320具体用于:该同一Qos优先级队列的深度超过第一早丢弃门限,确定该第一早丢弃门限对应的第一丢弃优先级,该第一早丢弃门限为该同一Qos优先级队列的早丢弃门限中的一个;Optionally, the processor 320 is configured to: the depth of the same QoS priority queue exceeds the first early discarding threshold, and determine a first discarding priority level corresponding to the first early discarding threshold, where the first early discarding threshold is One of the early discard thresholds of the same QoS priority queue;
根据该第一丢弃优先级,确定该第一丢弃优先级对应的第一组播节目集合以及第二丢弃优先级对应的第二组播节目集合,该N个组播节目对应的丢弃优先级包括该第一丢弃优先级和该第二丢弃优先级,该第二丢弃优先级低于该第一丢弃优先级;And determining, according to the first discarding priority, the first multicast program set corresponding to the first discarding priority level and the second multicast program set corresponding to the second discarding priority level, where the discarding priorities corresponding to the N multicast programs include The first discarding priority and the second discarding priority, where the second discarding priority is lower than the first discarding priority;
禁止该第一组播节目集合中的组播节目对应的报文和该第二组播节目集合中的组播 节目对应的报文进入该同一Qos优先级队列。Disabling the packet corresponding to the multicast program in the first multicast program set and the multicast in the second multicast program set The message corresponding to the program enters the same QoS priority queue.
可选地,该处理器320具体用于:根据该每个组播节目的重要程度,配置该N个组播节目中每个组播节目的丢弃优先级;或Optionally, the processor 320 is configured to: configure, according to the importance degree of each multicast program, a discarding priority of each multicast program in the N multicast programs; or
根据该每个组播节目的清晰度,配置该N个组播节目中每个组播节目的丢弃优先级;或And configuring, according to the definition of each multicast program, a discarding priority of each of the N multicast programs; or
根据该每个组播节目的收视统计率,配置该N个组播节目中每个组播节目的丢弃优先级。And setting a discarding priority level of each of the N multicast programs according to the viewing statistics rate of each multicast program.
本申请实施例的网络设备,可以对组播节目配置丢弃优先级,在网络设备的组播队列发生拥塞的时候,优先丢弃低丢弃优先级的组播节目,以保证高丢弃优先级的组播节目的质量,有助于解决所有组播节目同时丢包的问题。The network device in the embodiment of the present invention can configure the discarding priority for the multicast program. When the multicast queue of the network device is congested, the multicast program with the lower discarding priority is preferentially discarded to ensure the high-drop priority multicast. The quality of the program helps solve the problem of simultaneous loss of all multicast programs.
在本申请实施例中,应注意,本申请实施例上述的方法实施例可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。In the embodiment of the present application, it should be noted that the foregoing method embodiments of the present application may be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method embodiments may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software. The processor may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), or the like. Programming logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory, and the processor reads the information in the memory and combines the hardware to complete the steps of the above method.
可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的***和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It is to be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory. The volatile memory can be a Random Access Memory (RAM) that acts as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM). SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Synchronous Connection Dynamic Random Access Memory (Synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (DR RAM). It should be noted that the memories of the systems and methods described herein are intended to comprise, without being limited to, these and any other suitable types of memory.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序 应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It is to be understood that the phrase "one embodiment" or "an embodiment" or "an embodiment" or "an embodiment" means that the particular features, structures, or characteristics relating to the embodiments are included in at least one embodiment of the present application. Thus, "in one embodiment" or "in an embodiment" or "an" In addition, these particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the size of the sequence numbers of the above processes does not mean the order of execution, the order of execution of each process. It should be determined by its function and intrinsic logic, and should not be construed as limiting the implementation process of the embodiments of the present application.
另外,本文中术语“***”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。Additionally, the terms "system" and "network" are used interchangeably herein. The term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
应理解,在本申请实施例中,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。It should be understood that in the embodiment of the present application, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B from A does not mean that B is only determined based on A, and that B can also be determined based on A and/or other information.
上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品可以包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁盘)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product can include one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber (DSL), or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic disk), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的***、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储 在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。The function can be stored if it is implemented in the form of a software functional unit and sold or used as a standalone product. In a computer readable storage medium. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory, a random access memory, a magnetic disk, or an optical disk.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。 The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application. It should be covered by the scope of protection of this application. Therefore, the scope of protection of the present application should be determined by the scope of the claims.

Claims (14)

  1. 一种管理组播节目的方法,其特征在于,包括:A method for managing a multicast program, comprising:
    接收N个组播节目,所述N个组播节目的业务质量Qos优先级相同,N为正整数;Receiving N multicast programs, the service quality Qos priorities of the N multicast programs are the same, and N is a positive integer;
    对所述N个组播节目中每个组播节目配置丢弃优先级;Setting a drop priority for each multicast program in the N multicast programs;
    根据所述每个组播节目的丢弃优先级,将所述N个组播节目映射到不同的Qos优先级的队列,或者,Mapping the N multicast programs to different queues of Qos priorities according to the discarding priority of each multicast program, or
    根据所述每个组播节目的丢弃优先级,在所述N个组播节目进入的同一个Qos优先级队列发生拥塞时,进行组播节目的丢弃。According to the discarding priority of each multicast program, when the same QoS priority queue entered by the N multicast programs is congested, the multicast program is discarded.
  2. 根据权利要求1所述的方法,其特征在于,所述对所述N个组播节目中每个组播节目配置丢弃优先级,包括:The method according to claim 1, wherein the configuring a discarding priority for each of the N multicast programs comprises:
    根据预定义分类信息,配置所述N个组播节目中每个组播节目的丢弃优先级。And configuring, according to the predefined classification information, a discarding priority of each of the N multicast programs.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    根据所述N个组播节目中每个组播节目的点播用户数,调整所述N个组播节目中每个组播节目的丢弃优先级。And adjusting a discarding priority of each of the N multicast programs according to the number of on-demand users of each of the N multicast programs.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述N个组播节目中每个组播节目的丢弃优先级对应于所述同一Qos优先级队列的一个早丢弃门限,所述每个组播节目的丢弃优先级不完全相同。The method according to any one of claims 1 to 3, wherein a discarding priority of each of the N multicast programs corresponds to an early discard threshold of the same QoS priority queue The discarding priority of each multicast program is not completely the same.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述每个组播节目的丢弃优先级,在所述N个组播节目进入的同一个Qos优先级队列发生拥塞时,进行组播节目的丢弃,包括:The method according to claim 4, wherein the grouping is performed when congestion occurs in the same QoS priority queue entered by the N multicast programs according to the discarding priority of each multicast program. Discarding of broadcast programs, including:
    所述同一Qos优先级队列的深度超过第一早丢弃门限,确定所述第一早丢弃门限对应的第一丢弃优先级,所述第一早丢弃门限为所述同一Qos优先级队列的早丢弃门限中的一个;Determining, by the first QoS priority queue, a first drop priority corresponding to the first early drop threshold, where the first early drop threshold is an early drop of the same QoS priority queue One of the thresholds;
    根据所述第一丢弃优先级,确定所述第一丢弃优先级对应的第一组播节目集合以及第二丢弃优先级对应的第二组播节目集合,所述N个组播节目对应的丢弃优先级包括所述第一丢弃优先级和所述第二丢弃优先级,所述第二丢弃优先级低于所述第一丢弃优先级;And determining, according to the first discarding priority, the first multicast program set corresponding to the first discarding priority level and the second multicast program set corresponding to the second discarding priority level, and discarding the N multicast programs The priority includes the first drop priority and the second drop priority, and the second drop priority is lower than the first drop priority;
    禁止所述第一组播节目集合中的组播节目对应的报文和所述第二组播节目集合中的组播节目对应的报文进入所述同一Qos优先级队列。The message corresponding to the multicast program in the first multicast program set and the message corresponding to the multicast program in the second multicast program set are prohibited from entering the same QoS priority queue.
  6. 根据权利要求2所述的方法,其特征在于,所述根据预定义分类信息,配置所述N个组播节目中每个组播节目的丢弃优先级,包括:The method according to claim 2, wherein the configuring the discarding priority of each of the N multicast programs according to the predefined classification information comprises:
    根据所述每个组播节目的重要程度,配置所述N个组播节目中每个组播节目的丢弃优先级;或And configuring, according to the importance degree of each multicast program, a discarding priority of each of the N multicast programs; or
    根据所述每个组播节目的清晰度,配置所述N个组播节目中每个组播节目的丢弃优先级;或And configuring, according to the definition of each multicast program, a discarding priority of each of the N multicast programs; or
    根据所述每个组播节目的收视统计率,配置所述N个组播节目中每个组播节目的丢弃优先级。And configuring, according to the viewing statistics rate of each multicast program, a discarding priority of each of the N multicast programs.
  7. 一种管理组播节目的装置,其特征在于,包括: An apparatus for managing a multicast program, comprising:
    收发模块,用于接收N个组播节目,所述N个组播节目的业务质量Qos优先级相同,N为正整数;a transceiver module, configured to receive N multicast programs, where the service quality Qos priorities of the N multicast programs are the same, and N is a positive integer;
    处理模块,用于对所述N个组播节目中每个组播节目配置丢弃优先级;a processing module, configured to configure a drop priority for each multicast program in the N multicast programs;
    所述处理模块还用于根据所述每个组播节目的丢弃优先级,将所述N个组播节目映射到不同的Qos优先级的队列,或者,The processing module is further configured to map the N multicast programs to different queues of Qos priorities according to the discarding priority of each multicast program, or
    根据所述每个组播节目的丢弃优先级,在所述N个组播节目进入的同一个Qos优先级队列发生拥塞时,进行组播节目的丢弃。According to the discarding priority of each multicast program, when the same QoS priority queue entered by the N multicast programs is congested, the multicast program is discarded.
  8. 根据权利要求7所述的装置,其特征在于,所述处理模块具体用于:The device according to claim 7, wherein the processing module is specifically configured to:
    根据预定义分类信息,配置所述N个组播节目中每个组播节目的丢弃优先级。And configuring, according to the predefined classification information, a discarding priority of each of the N multicast programs.
  9. 根据权利要求7或8所述的装置,其特征在于,所述处理模块还用于根据所述N个组播节目中每个组播节目的点播用户数,调整所述N个组播节目中每个组播节目的丢弃优先级。The apparatus according to claim 7 or 8, wherein the processing module is further configured to adjust the N multicast programs according to the number of on-demand users of each multicast program in the N multicast programs. The drop priority of each multicast program.
  10. 根据权利要求7至9中任一项所述的装置,其特征在于,所述N个组播节目中每个组播节目的丢弃优先级对应于所述同一Qos优先级队列的一个早丢弃门限,所述每个组播节目的丢弃优先级不完全相同。The apparatus according to any one of claims 7 to 9, wherein a discarding priority of each of the N multicast programs corresponds to an early discard threshold of the same QoS priority queue The discarding priority of each multicast program is not completely the same.
  11. 根据权利要求10所述的装置,其特征在于,所述处理模块具体用于:The device according to claim 10, wherein the processing module is specifically configured to:
    所述同一Qos优先级队列的深度超过第一早丢弃门限,确定所述第一早丢弃门限对应的第一丢弃优先级,所述第一早丢弃门限为所述同一Qos优先级队列的早丢弃门限中的一个;Determining, by the first QoS priority queue, a first drop priority corresponding to the first early drop threshold, where the first early drop threshold is an early drop of the same QoS priority queue One of the thresholds;
    根据所述第一丢弃优先级,确定所述第一丢弃优先级对应的第一组播节目集合以及第二丢弃优先级对应的第二组播节目集合,所述N个组播节目对应的丢弃优先级包括所述第一丢弃优先级和所述第二丢弃优先级,所述第二丢弃优先级低于所述第一丢弃优先级;And determining, according to the first discarding priority, the first multicast program set corresponding to the first discarding priority level and the second multicast program set corresponding to the second discarding priority level, and discarding the N multicast programs The priority includes the first drop priority and the second drop priority, and the second drop priority is lower than the first drop priority;
    禁止所述第一组播节目集合中的组播节目对应的报文和所述第二组播节目集合中的组播节目对应的报文进入所述同一Qos优先级队列。The message corresponding to the multicast program in the first multicast program set and the message corresponding to the multicast program in the second multicast program set are prohibited from entering the same QoS priority queue.
  12. 根据权利要求8所述的装置,其特征在于,所述处理模块具体用于:The device according to claim 8, wherein the processing module is specifically configured to:
    根据所述每个组播节目的重要程度,配置所述N个组播节目中每个组播节目的丢弃优先级;或And configuring, according to the importance degree of each multicast program, a discarding priority of each of the N multicast programs; or
    根据所述每个组播节目的清晰度,配置所述N个组播节目中每个组播节目的丢弃优先级;或And configuring, according to the definition of each multicast program, a discarding priority of each of the N multicast programs; or
    根据所述每个组播节目的收视统计率,配置所述N个组播节目中每个组播节目的丢弃优先级。And configuring, according to the viewing statistics rate of each multicast program, a discarding priority of each of the N multicast programs.
  13. 一种网络设备,其特征在于,包括:A network device, comprising:
    存储器,用于存储指令;a memory for storing instructions;
    处理器,用于调用所述存储器中的指令,以进行根据权利要求1至6中任一项所述的方法的操作。A processor for invoking instructions in the memory to perform the operations of the method of any one of claims 1 to 6.
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序使得网络设备执行权利要求1至6中任一项所述的方法的操作。 A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, the computer program causing a network device to perform the operations of the method of any one of claims 1 to 6.
PCT/CN2017/096751 2017-08-10 2017-08-10 Multicast program management method and device and network device WO2019028723A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/096751 WO2019028723A1 (en) 2017-08-10 2017-08-10 Multicast program management method and device and network device
CN201780093627.8A CN110999233A (en) 2017-08-10 2017-08-10 Method, device and network equipment for managing multicast program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/096751 WO2019028723A1 (en) 2017-08-10 2017-08-10 Multicast program management method and device and network device

Publications (1)

Publication Number Publication Date
WO2019028723A1 true WO2019028723A1 (en) 2019-02-14

Family

ID=65273057

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/096751 WO2019028723A1 (en) 2017-08-10 2017-08-10 Multicast program management method and device and network device

Country Status (2)

Country Link
CN (1) CN110999233A (en)
WO (1) WO2019028723A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116806011A (en) * 2022-03-18 2023-09-26 华为技术有限公司 Method, device, system and storage medium for transmitting multicast service

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1398089A (en) * 2002-08-23 2003-02-19 清华大学 Explicit priority method for information cell repeating and its communication system
WO2004112406A1 (en) * 2003-06-18 2004-12-23 Utstarcom (China) Co. Ltd. Method for implementing diffserv in the wireless access network of the universal mobile telecommunication system
CN101296112A (en) * 2007-04-26 2008-10-29 华为技术有限公司 Method, device and system for implementing Ethernet service quality in optical network unit
CN101860475A (en) * 2010-04-02 2010-10-13 北京邮电大学 Autonomous queue management method based on context awareness
CN105812256A (en) * 2016-04-18 2016-07-27 华为技术有限公司 Business processing method and device based on label forwarding

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8432847B2 (en) * 2008-12-31 2013-04-30 Stmicroelectronics, Inc. VTS frame format
CN101505283B (en) * 2009-03-27 2011-05-25 中国人民解放军信息工程大学 A packet processing method and apparatus
CN102594669A (en) * 2012-02-06 2012-07-18 福建星网锐捷网络有限公司 Data message processing method, device and equipment
WO2016101180A1 (en) * 2014-12-24 2016-06-30 华为技术有限公司 Multicast control method, apparatus and system based on docsis protocol

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1398089A (en) * 2002-08-23 2003-02-19 清华大学 Explicit priority method for information cell repeating and its communication system
WO2004112406A1 (en) * 2003-06-18 2004-12-23 Utstarcom (China) Co. Ltd. Method for implementing diffserv in the wireless access network of the universal mobile telecommunication system
CN101296112A (en) * 2007-04-26 2008-10-29 华为技术有限公司 Method, device and system for implementing Ethernet service quality in optical network unit
CN101860475A (en) * 2010-04-02 2010-10-13 北京邮电大学 Autonomous queue management method based on context awareness
CN105812256A (en) * 2016-04-18 2016-07-27 华为技术有限公司 Business processing method and device based on label forwarding

Also Published As

Publication number Publication date
CN110999233A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
US9319303B2 (en) Scalable IP-services enabled multicast forwarding with efficient resource utilization
US9614755B2 (en) Combined hardware/software forwarding mechanism and method
US8665892B2 (en) Method and system for adaptive queue and buffer control based on monitoring in a packet network switch
US10432556B1 (en) Enhanced audio video bridging (AVB) methods and apparatus
US10129151B2 (en) Traffic management implementation method and apparatus, and network device
EP2060067B1 (en) Ethernet switching
US10171253B2 (en) Node directed multicast traffic management systems and methods for mesh networks
US8031607B2 (en) Implementation of internet protocol header compression with traffic management quality of service
US8429291B2 (en) Protection of network flows during congestion in a communications network
CN113726671B (en) Network congestion control method and related products
US8000245B2 (en) Internet protocol header compression reordering
US20170195227A1 (en) Packet storing and forwarding method and circuit, and device
US11240054B2 (en) Multicast service processing method and access device
WO2017000861A1 (en) Method and apparatus for learning mac address in virtual local area network of switch
WO2019028723A1 (en) Multicast program management method and device and network device
CN111092825B (en) Method and device for transmitting message
CN114095448A (en) Method and equipment for processing congestion flow
WO2019165855A1 (en) Message transmission method and device
US10541935B2 (en) Network processors
CN112492643B (en) Multilink-based data forwarding method and device and terminal equipment
WO2021082818A1 (en) Method and apparatus for adjusting transmission rate
WO2019010820A1 (en) Bandwidth allocation device and wireless access apparatus
WO2023116611A1 (en) Queue control method and apparatus
WO2021213382A1 (en) Data transmission method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17921026

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17921026

Country of ref document: EP

Kind code of ref document: A1