CN112312174B - Video service acceleration method and device, electronic equipment and storage medium - Google Patents

Video service acceleration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112312174B
CN112312174B CN201910702254.0A CN201910702254A CN112312174B CN 112312174 B CN112312174 B CN 112312174B CN 201910702254 A CN201910702254 A CN 201910702254A CN 112312174 B CN112312174 B CN 112312174B
Authority
CN
China
Prior art keywords
service
video
priority layer
video service
scheduling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910702254.0A
Other languages
Chinese (zh)
Other versions
CN112312174A (en
Inventor
刘洋
王全喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201910702254.0A priority Critical patent/CN112312174B/en
Publication of CN112312174A publication Critical patent/CN112312174A/en
Application granted granted Critical
Publication of CN112312174B publication Critical patent/CN112312174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64784Data processing by the network
    • H04N21/64792Controlling the complexity of the content stream, e.g. by dropping packets

Abstract

The embodiment of the invention provides a method and a device for accelerating a video service, wherein the method for accelerating the PDCP entity comprises the following steps: when the PDCP entity receives an uplink data packet, detecting whether a service corresponding to the uplink data packet is a video service; when detecting that the service corresponding to the uplink data packet is a video service, sending the RB identifier corresponding to the uplink data packet to the MAC entity so that the MAC entity allocates the service RB corresponding to the RB identifier to the video service initial access priority layer for scheduling according to a preset service scheduling priority layer; the service scheduling priority layer sequentially comprises an important user NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer from high to low in priority. The embodiment of the invention realizes the identification and the preferential scheduling of the video service and reduces the initial buffering time delay of the video.

Description

Video service acceleration method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for accelerating a video service.
Background
With the development of multimedia technology and internet technology, video services can bring direct visual impact and pleasant feelings to users compared with other services, and become a heavyweight application of mobile internet, so that the demand for improving video service perception is increasingly urgent. In contrast, in the prior art, the perception improvement of the video service is ensured by ensuring the scheduling of the video service.
When scheduling a video service, for each new service Resource Block (RB), first determining whether it satisfies a scheduling rule, where the scheduling rule includes: judging whether a Non-Guaranteed Bit Rate (NGBR) service is satisfied, judging whether a quality of service (QoS) Class Identifier (QCI) value of a new service RB is satisfied to be 6, 7, 8 or 9, and judging whether the RB is marked as a new service; when the scheduling rule is judged to be satisfied, the priority level of the scheduling rule is adjusted, namely a new NGBR service priority level is added above the priority level with the QCI value of 6 and below the important user NGBR service priority level, and then the new service RB is inserted into the new NGBR service priority level to realize the scheduling of the new service RB.
However, although the scheduling method for the new service RB can perform scheduling processing on a new access user, the video user and the normal user are not distinguished, that is, the video user and the normal user have the same priority, which results in that the playing speed of the video service cannot be greatly increased, and the perception of the video service is poor.
Disclosure of Invention
The embodiment of the invention provides a video service acceleration method and device, which are used for accelerating a video playing process and improving the perception of a user on the video service.
The embodiment of the invention provides an acceleration method of a video service, which is applied to a Packet Data Convergence Protocol (PDCP) entity and comprises the following steps:
when receiving an uplink data packet, a PDCP entity detects whether a service corresponding to the uplink data packet is a video service;
when detecting that the service corresponding to the uplink data packet is a video service, sending a Resource Block (RB) identifier corresponding to the uplink data packet to a Media Access Control (MAC) entity so that the MAC entity allocates the service RB corresponding to the RB identifier to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer;
the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low.
Optionally, the detecting whether the service corresponding to the uplink data packet is a video service includes:
detecting whether the service corresponding to the uplink data packet is an NGBR service with a service Quality Classification Identifier (QCI) value in a range of 6 to 9;
when detecting that the service corresponding to the uplink data packet is an NGBR service with a QCI value in a range of 6-9, detecting a video service identification mark carried in the uplink data packet; wherein the content of the first and second substances,
and when the video service identification mark is detected to indicate that the video service is the video service, determining that the service corresponding to the uplink data packet is the video service.
Optionally, after detecting that the service corresponding to the uplink data packet is a video service, the acceleration method further includes:
detecting whether the video service is a video service to be accelerated;
and when the video service is detected to be the video service to be accelerated, the step of sending the resource block RB identification corresponding to the uplink data packet to a Media Access Control (MAC) entity is carried out.
Optionally, the detecting whether the video service is a video service to be accelerated includes:
when the byte length of the uplink data packet is detected to meet a preset range and the first byte of the static load of the uplink data packet is G or P, matching the static load characteristic word of the uplink data packet with a preset video keyword; the video keywords comprise a video identification method, a characteristic character string of a video manufacturer, the length of the characteristic character string of the video manufacturer and an offset value of the characteristic character string of the video manufacturer in characters;
and when detecting that the static load characteristic words of the uplink data packet are matched with the video keywords, determining that the video service is the video service to be accelerated.
Optionally, before the detecting whether the video service is a video service to be accelerated, the acceleration method further includes:
detecting whether the load of a Central Processing Unit (CPU) of the base station is smaller than a preset load threshold value or not;
when the load of the CPU is detected to be smaller than a preset load threshold value, whether the MAC entity limits the number of video acceleration services is detected;
and when the MAC entity is detected not to limit the number of the video acceleration services, or when the MAC entity is detected to limit the number of the video acceleration services and the number of the video acceleration services is smaller than a preset limit value, entering a step of detecting whether the video services are to-be-accelerated video services.
Optionally, after sending the RB identifier of the resource block corresponding to the uplink data packet to the MAC entity, the acceleration method further includes:
detecting whether the video service is finished;
when detecting that the video service is ended, sending a notification message indicating that the video service is ended to the MAC entity, so that the MAC entity moves the service RB to a QCI priority layer corresponding to the QCI value of the service RB according to the notification message.
Optionally, the detecting whether the video service is ended includes:
acquiring the number of downlink data packets with the byte number larger than a preset threshold value in N continuous monitoring periods, wherein the downlink data packets correspond to the uplink data packets, and N is a positive integer larger than 1;
and when the number of the downlink data packets is smaller than a preset number threshold, determining that the video service is finished.
The embodiment of the invention also provides an acceleration method of the video service, which is applied to the media access control MAC entity, and the acceleration method comprises the following steps:
receiving a Resource Block (RB) identifier which is sent by a Packet Data Convergence Protocol (PDCP) entity and corresponds to an uplink data packet, wherein the RB identifier is sent when the PDCP entity receives the uplink data packet and detects that a service corresponding to the uplink data packet is a video service;
distributing the service RB corresponding to the RB identification to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer;
the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low.
Optionally, the service scheduling priority layer further includes a quality of service classification identifier, QCI, priority layer, and the priority of the QCI priority layer is lower than that of the new NGBR service priority layer;
after the service RB corresponding to the RB identity is allocated to the video service initial access priority layer for scheduling, the acceleration method further includes:
detecting whether the scheduling time of the service RB in the video service initial access priority layer exceeds the preset initial access scheduling time;
and when detecting that the initial access scheduling duration is exceeded, moving the service RB to a QCI priority layer corresponding to the QCI value of the service RB.
Optionally, the service scheduling priority layer further includes a video service priority layer and a QCI priority layer, and the priority of the video service priority layer is lower than that of the new NGBR service priority layer, and the priority of the QCI priority layer is lower than that of the video service priority layer;
after the service RB corresponding to the RB identity is allocated to the video service initial access priority layer for scheduling, the acceleration method further includes:
detecting whether the scheduling time of the service RB in the video service initial access priority layer exceeds the preset initial access scheduling time;
and when detecting that the initial access scheduling duration is exceeded, moving the service RB to the video service priority layer, and when receiving a notification message which is sent by the PDCP entity and indicates that the video service is finished, moving the service RB to a QCI priority layer corresponding to a QCI value of the service RB.
Optionally, the detecting whether the scheduling time of the service RB in the video service initial access priority layer exceeds a preset initial access scheduling duration includes:
acquiring an initial frame number when the service RB is distributed to the video service initial access priority layer, and acquiring a frame number before each transmission time interval TTI starts time domain scheduling;
calculating the difference between the frame number before the time domain scheduling of each TTI begins and the initial frame number;
and when the calculated difference is larger than the initial access scheduling duration, determining that the scheduling time of the service RB in the video service initial access priority layer exceeds the initial access scheduling duration.
Optionally, the total number of service RBs in the video service initial access priority layer and the video service priority layer is less than a preconfigured RB threshold value.
The embodiment of the invention also provides an accelerating device of a video service, which is applied to a packet data convergence protocol PDCP entity, and the accelerating device comprises:
a first detection module, configured to detect whether a service corresponding to an uplink data packet is a video service when a PDCP entity receives the uplink data packet;
a first sending module, configured to send a resource block RB identifier corresponding to the uplink data packet to a medium access control MAC entity when it is detected that a service corresponding to the uplink data packet is a video service, so that the MAC entity allocates a service RB corresponding to the RB identifier to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer;
the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low.
An embodiment of the present invention further provides an acceleration apparatus for a video service, which is applied to a media access control MAC entity, and the acceleration apparatus includes:
a receiving module, configured to receive a resource block RB identifier corresponding to an uplink data packet and sent by a packet data convergence protocol PDCP entity, where the RB identifier is sent when the PDCP entity receives the uplink data packet and detects that a service corresponding to the uplink data packet is a video service;
the first scheduling module is used for allocating the service RB corresponding to the RB identifier to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer;
the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low.
The embodiment of the invention provides electronic equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the steps of the video service acceleration method.
An embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the acceleration method for video services.
According to the video service acceleration method and device provided by the embodiment of the invention, when the uplink data packet received by the PDCP entity is detected to be the video service, the RB identifier corresponding to the uplink data packet is sent to the MAC entity, so that the MAC entity can distribute the service RB corresponding to the RB identifier to the video service initial access priority layer for scheduling according to the preset service scheduling priority layer, and the priority of the video service initial access priority layer is higher than that of a new NGBR service priority layer, thereby realizing the identification of the video service in the service type and the preferential scheduling of the video service, shortening the video initial access time, reducing the video initial buffering, further realizing the whole acceleration of the video playing process and improving the perception of a user when the user browses the video service.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a service scheduling priority layer in the prior art;
fig. 2 is a flowchart illustrating steps of a method for accelerating a video service applied to a PDCP entity according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of a method for accelerating a video service applied to a MAC entity according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service scheduling priority layer according to an embodiment of the present invention;
FIG. 5 is a second schematic diagram illustrating a structure of a traffic scheduling priority layer according to an embodiment of the present invention;
fig. 6 is a block diagram of an acceleration apparatus for video service applied to a PDCP entity in an embodiment of the present invention;
fig. 7 is a block diagram of an accelerating apparatus for video service applied to a MAC entity in an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, as shown in fig. 1, a service scheduling priority layer includes a Non-Guaranteed Bit Rate (NGBR) service priority layer of an important (VIP) user, a new NGBR service priority layer, and a quality of service class identifier (QCI) priority layer; the important user NGBR service priority layer does not distinguish QCI, the QCI value range corresponding to the new NGBR service priority layer is 6-9, and the QCI priority layer comprises the priority layer corresponding to the QCI value of 6-9. At this time, when a new service Resource Block (RB) meeting the priority scheduling rule exists, the new service RB is directly inserted into the new NGBR service priority layer to perform priority scheduling on the new service RB.
However, the video service and the non-video service are not distinguished by the scheduling method, so that the scheduling priorities of the non-video service and the video service are the same, the scheduling speed of the video service is not greatly improved, and the user has poor perception of the video service.
Based on the above problem, as shown in fig. 2, an embodiment of the present invention provides an acceleration method for a video service applied to a PDCP entity, where the acceleration method includes the following steps:
step 201: when the PDCP entity receives the uplink data packet, whether the service corresponding to the uplink data packet is a video service is detected.
In this step, specifically, when a Packet Data Convergence Protocol (PDCP) entity receives an uplink Data Packet, it may be detected whether a service corresponding to the uplink Data Packet is a video service.
Specifically, the uplink data packet may be a Transmission Control Protocol (TCP) data packet.
In addition, specifically, whether the service corresponding to the uplink data packet is the video service or not is detected, so that the video service and the non-video service are distinguished, the subsequent video service can be scheduled preferentially, the initial buffering time delay of the video is reduced, and the perception of the user for browsing the video service is improved.
When detecting whether the service corresponding to the uplink data packet is a video service, detecting whether the service corresponding to the uplink data packet is an NGBR service with a QCI value in a range of 6 to 9, and when detecting that the service corresponding to the uplink data packet is an NGBR service with a QCI value in a range of 6 to 9, detecting a video service identification identifier carried in the uplink data packet; and when the video service identification mark is detected to indicate a video service, determining that the service corresponding to the uplink data packet is the video service.
Specifically, in this step, the QCI value of the service RB corresponding to the uplink data packet may be detected first, and when the QCI value is detected to be in the range of 6 to 9, it may be determined that the uplink data packet is the NGBR service, and at this time, the video service identification identifier carried in the uplink data packet may be continuously detected, and whether the uplink data packet is the video service is determined according to the video service identification identifier.
Specifically, in this embodiment, the video service identification flag may be set to include 0 and 1, where 0 indicates a non-video service and 1 indicates a video service, so that when the video service identification flag is detected to be 1, the service corresponding to the uplink data packet may be determined to be a video service, and certainly when the video service identification flag is detected to be 0, the service corresponding to the uplink data packet may be determined to be a non-video service.
Therefore, whether the service corresponding to the uplink data packet is the video service or not is detected, the video service and the non-video service are distinguished, and a basis is provided for further priority scheduling of the video service.
Step 202: and when detecting that the service corresponding to the uplink data packet is a video service, sending the resource block RB identification corresponding to the uplink data packet to a Media Access Control (MAC) entity.
In this step, specifically, when it is detected that the service corresponding to the uplink data packet is a video service, the RB identifier corresponding to the uplink data packet may be sent to a Media Access Control (MAC) entity, so that the MAC entity allocates the service RB corresponding to the RB identifier to a video service initial Access priority layer for scheduling according to a preset service priority layer.
Specifically, while sending the RB identifier to the MAC entity, the PDCP entity may also send the terminal identifier of the terminal corresponding to the uplink data packet to the MAC entity, so that the MAC entity can transmit the downlink data packet according to the terminal identifier.
In addition, specifically, the service scheduling priority layer may include an important user NGBR service priority layer, a video service initial access priority layer, and a new NGBR service priority layer in sequence from high priority to low priority.
Specifically, compared with the service scheduling priority layer shown in fig. 1, the service scheduling priority layer in this embodiment adds a video service initial access priority layer between the NGBR service priority layer of the important user and the new NGBR service priority layer, and the MAC entity directly allocates the service RB corresponding to the video service initial access priority layer for scheduling.
Furthermore, in this embodiment, after detecting that the service corresponding to the uplink data packet is a video service, it may also be detected whether the video service is a video service to be accelerated; and then, when the video service is detected to be the video service to be accelerated, the step of sending the resource block RB identification corresponding to the uplink data packet to a Media Access Control (MAC) entity is entered.
Therefore, by detecting whether the video service is the video service to be accelerated or not and carrying out priority scheduling on the video service to be accelerated through the MAC entity when the video service is detected to be the video service to be accelerated, the identification and the priority scheduling of the specific video service to be accelerated are realized, the problem that the scheduling priorities of all the video services are consistent when the video services are more is avoided, and the scheduling speed of the video service to be accelerated in the video service is ensured.
In this embodiment, when detecting whether the video service is a video service to be accelerated, the following method may be used to detect:
when the byte length of the uplink data packet is detected to meet a preset range and the first byte of the static load of the uplink data packet is G or P, matching the static load characteristic word of the uplink data packet with a preset video keyword; the video keywords comprise a video identification method, a characteristic character string of a video manufacturer, the length of the characteristic character string of the video manufacturer and an offset value of the characteristic character string of the video manufacturer in characters; and when detecting that the static load characteristic words of the uplink data packet are matched with the video keywords, determining that the video service is the video service to be accelerated.
Specifically, when detecting whether the video service is the video service to be accelerated, it may be first detected whether a byte range of the uplink data packet meets a preset range, for example, is greater than X bytes and less than Y bytes; when detecting that the byte range of the uplink data packet meets the preset range, continuously judging whether the first byte of the static load of the uplink data packet is G or P; at this time, when it is detected that the first byte of the payload of the uplink data packet is G or P, it may be determined whether the video service is the video service to be accelerated by a preset video keyword, that is, by matching the payload feature word of the uplink data packet with the video keyword.
In addition, specifically, the video keywords comprise a video identification method, a feature character string of a video manufacturer, a feature character string length of the video manufacturer and an offset value of the feature character string of the video manufacturer in characters, so that when static load feature words of an uplink data packet are matched with the video keywords, the uplink data packet corresponding to a specific video manufacturer can be obtained by screening, the uplink data packet corresponding to the specific video manufacturer is determined as a video service to be accelerated, and judgment and identification of the video service to be accelerated are realized; in addition, the recognition time is short through a recognition mode of matching the characteristic words, the recognition speed of the video service to be accelerated is improved, and further the initial caching time delay of the video is reduced.
In addition, it should be noted herein that the preset video keywords may be recorded in a Management Information Base (MIB) table and may be dynamically configured. In addition, specifically, the PDCP may obtain the video keyword information through an OM interface between the PDCP and the base station, and store the obtained video keyword in data g _ strucvstring [ OM _ PDCP _ MAX _ companyum ] [ PDH _ MAX _ video _ judgge _ CHAR _ NUM, which is subsequently used for identifying a video service to be accelerated in the video service.
The matching process described above is explained below by specific examples.
For example, a character string composed of video keywords is "GET/defaultts.tc.qq.com", where a video recognition method (vstringcmethod) ═ GET, a feature character string length (vstringtnum) of a video vendor is 5, a feature character string (vstringcale) of a video vendor is "ts.tc", and an offset value (vstringcffset) of the feature character string of the video vendor in the character is 12.
In the matching process, the static load characteristic word of the uplink data packet can be matched with the video keyword, if the matching is successful, the video service corresponding to the data packet is determined as the video service to be accelerated, the MAC entity is notified, and if the matching is not successful, the judgment of the video service to be accelerated is finished.
In addition, it should be further noted herein that before detecting whether the video service is the video service to be accelerated, the embodiment may further include the following steps:
detecting whether the load of a central processing unit (CPU for short) of the base station is smaller than a preset load threshold value;
when the load of the CPU is detected to be smaller than a preset load threshold value, whether the MAC entity limits the number of video acceleration services is detected;
and when the MAC entity is detected not to limit the number of the video acceleration services, or when the MAC entity is detected to limit the number of the video acceleration services and the number of the video acceleration services is smaller than a preset limit value, entering a step of detecting whether the video services are to-be-accelerated video services.
Therefore, whether the load of the CPU of the base station is smaller than the preset load threshold value or not is detected firstly, so that whether the video service is detected as the video service to be accelerated or not is determined according to the number limitation condition of the MAC entity on the video acceleration service only when the load of the CPU is smaller than the preset load threshold value, and whether the video service to be accelerated is scheduled preferentially or not is determined, so that when the MAC entity limits the number of the video acceleration service and the number of the video acceleration service is smaller than the preset limit value, the preferential scheduling of the video service to be accelerated can be ensured, and when the MAC entity does not limit the number of the acceleration video service, the preferential scheduling of the video service to be accelerated is also ensured.
In addition, in this embodiment, after sending the RB identifier corresponding to the uplink data packet to the MAC entity, it may further detect whether the video service is ended, and send a notification message indicating that the video service is ended to the MAC entity when detecting that the video service is ended, so that the MAC entity moves the service RB to a QCI priority layer corresponding to the QCI value of the service RB according to the notification message.
Therefore, by detecting whether the video service is finished or not, the MAC entity can determine whether to move the service RB to the normal scheduling priority layer or not according to the notification message, thereby avoiding the condition that the service RB is still arranged in the video service initial access priority layer when the video service is finished, and realizing the prior scheduling of the video service and the normal scheduling of the non-video service.
In addition, specifically, when detecting whether the video service is finished, the number of downlink data packets of which the number of bytes is greater than a preset threshold value in each preset monitoring period of N continuous preset monitoring periods may be obtained, and when the number of downlink data packets in each preset monitoring period is less than the preset number threshold value, it is determined that the video service is finished; wherein the downlink data packet corresponds to the uplink data packet, and N is a positive integer greater than 1.
Specifically, the duration of the monitoring period may be M.
In addition, in order to count the number of downlink data packets in a preset monitoring period, a cell-level timeout timer may be added to the PDCP entity, where the timeout duration is M; in addition, two parameters, namely the number of detection periods and the number of downlink data packets counted in a preset monitoring period, are set for each service RB. At this time, when the timer times out, if the number of the downlink data packets counted in the preset monitoring period is smaller than a preset number threshold value C, adding 1 to the number of the detection periods, otherwise, the number of the detection periods is 0; if the number of the detection periods is less than N, traversing the next service RB, if the number of the detection periods is greater than N, exiting the video service, namely determining that the video service is finished, at the moment, subtracting 1 from the number of the video service, indicating that the video service identification mark is a non-video service, and sending a notification message that the video service is finished to the MAC entity so that the MAC entity can carry out related priority scheduling on the service RB according to the notification message.
In this way, in this embodiment, when it is detected that the uplink data packet received by the PDCP entity is a video service, the RB identifier corresponding to the uplink data packet is sent to the MAC entity, so that the MAC entity can allocate, according to a preset service scheduling priority layer, the service RB corresponding to the RB identifier to the video service initial access priority layer for scheduling, and the priority of the video service initial access priority layer is higher than that of a new NGBR service priority layer, thereby implementing identification of the video service in the service type, and implementing priority scheduling of the video service, thereby shortening the video initial access time, reducing the video initial buffering delay, further implementing whole-process acceleration of the video playing process, and enhancing the perception of the user when browsing the video service.
In addition, as shown in fig. 3, a flowchart of steps of a method for accelerating a video service applied to a MAC entity in the embodiment of the present invention is shown, where the method for accelerating includes the following steps:
step 301: and receiving a Resource Block (RB) identification which is sent by a Packet Data Convergence Protocol (PDCP) entity and corresponds to an uplink data packet.
In this step, specifically, the RB identifier is sent when the PDCP entity receives the uplink data packet and detects that the service corresponding to the uplink data packet is a video service.
Step 302: and distributing the service RB corresponding to the RB identification to the video service initial access priority layer for scheduling according to a preset service scheduling priority layer.
In this step, specifically, after receiving the RB identifier, the MAC entity may allocate, according to a preset service scheduling priority layer, the service RB corresponding to the RB identifier to the video service initial access priority layer for scheduling.
Specifically, the service scheduling priority layer sequentially includes an important user NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer in order of priority from high to low.
In this way, compared with the service scheduling priority layer shown in fig. 1, the service scheduling priority layer in this embodiment adds a video service initial access priority layer between the NGBR service priority layer of the important user and the new NGBR service priority layer, and the MAC entity directly allocates the service RB corresponding to the video service initial access priority layer for scheduling.
In addition, further, after the service RB corresponding to the RB identity is allocated to the video service initial access priority layer for scheduling, the present embodiment may perform further scheduling of the service RB according to the specific hierarchy of the service scheduling priority layer. The following further scheduling will be described in each case.
First, as shown in fig. 4, the service scheduling priority layer includes a QCI priority layer in addition to an important user service priority layer, a video service initial access priority layer, and a new NGBR service priority layer, and the priority of the QCI priority layer is lower than that of the new NGBR service priority layer.
Specifically, the QCI priority layers include QCI priority layers corresponding to QCI values of 6, 7, 8, and 9, respectively.
At this time, after the service RB corresponding to the RB identity is allocated to the video service initial access priority layer for scheduling, the acceleration method further includes the following steps:
step A1: and detecting whether the scheduling time of the service RB in the video service initial access priority layer exceeds the preset initial access scheduling time.
In this step, specifically, after the service RB is placed in the video service initial access priority layer, timing is started, and it is detected whether the scheduling time of the service RB in the video initial access priority layer exceeds the preset initial access scheduling duration, so as to implement time limitation of the service RB in the video initial access priority layer.
In addition, specifically, in order to save timer resources in the system, in this embodiment, when detecting whether the scheduling time of the service RB in the video service initial access priority layer exceeds a preset initial access scheduling time length, an initial frame number when the service RB is allocated to the video service initial access priority layer may be obtained, and a frame number before each transmission time interval (TTI for short) starts time domain scheduling is obtained; then calculating the difference between the frame number before the time domain scheduling of each TTI begins and the initial frame number; and finally, when the calculated difference value is larger than the initial access scheduling duration, determining the scheduling time of the service RB in the video service initial access priority layer to exceed the initial access scheduling duration.
Step A2: and when detecting that the initial access scheduling duration is exceeded, moving the service RB to a QCI priority layer corresponding to the QCI value of the service RB.
In this step, specifically, when it is detected that the scheduling time of the service RB in the video service initial access priority layer exceeds the preset initial access scheduling time, the scheduling priority of the service RB may be reduced, that is, the service RB is moved to the QCI priority layer corresponding to the QCI value of the service RB. Of course, it should be noted herein that the minimum bit rate and the pre-scheduling parameter configured separately need to be backed off, and at this time, the video service is scheduled as a normal user, and the pre-scheduling parameter is backed off as the pre-scheduling parameter of the cell.
Therefore, by limiting the scheduling time of the service RB in the video service initial access priority layer and returning the service RB to the normal QCI priority layer when the initial access scheduling time is longer, the initial access time of the video service is shortened, more video services can be guaranteed to be accessed to the video service initial access priority layer for priority scheduling, and the initial access time is shortened.
As shown in fig. 5, the service scheduling priority layer includes a video service priority layer and a QCI priority layer, in addition to the important user service priority layer, the video service initial access priority layer and the new NGBR service priority layer, and the priority of the video service priority layer is lower than that of the new NGBR service priority layer, and the priority of the QCI priority layer is lower than that of the video service priority layer.
Specifically, the QCI priority layers include QCI priority layers corresponding to QCI values of 6, 7, 8, and 9, respectively. In addition, specifically, the ranges of QCI values corresponding to the video service initial access priority layer, the new NGBR service priority layer, and the video service priority layer are all 6 to 9.
In addition, it should be noted herein that, regarding the implementation of the scheduling priority hierarchy, considering that the code modification of the current L2 layer is greatly changed by adding a layer alone, the new NGBR access priority layer can be reused, that is, the code modification is reduced by adding sub-layers in the layer. At this time, the new NGBR service priority layer in the prior art can be divided into three layers, namely, the video service initial access priority layer, the new NGBR service priority layer and the video service priority layer are respectively arranged from high to low according to the priority.
At this time, after the service RB corresponding to the RB identity is allocated to the video service initial access priority layer for scheduling, the acceleration method further includes the following steps:
step B1: and detecting whether the scheduling time of the service RB in the video service initial access priority layer exceeds the preset initial access scheduling time.
In this step, specifically, after the service RB is placed in the video service initial access priority layer, timing is started, and it is detected whether the scheduling time of the service RB in the video initial access priority layer exceeds the preset initial access scheduling duration, so as to implement time limitation of the service RB in the video initial access priority layer.
In addition, specifically, in order to save timer resources in the system, in this embodiment, when detecting whether the scheduling time of the service RB in the video service initial access priority layer exceeds a preset initial access scheduling time length, an initial frame number when the service RB is allocated to the video service initial access priority layer may be obtained, and a frame number before each transmission time interval (TTI for short) starts time domain scheduling is obtained; then calculating the difference between the frame number before the time domain scheduling of each TTI begins and the initial frame number; and finally, when the calculated difference value is larger than the initial access scheduling duration, determining the scheduling time of the service RB in the video service initial access priority layer to exceed the initial access scheduling duration.
In addition, it should be noted herein that the total number of service RBs in the video service initial access priority layer and the video service priority layer is smaller than a preconfigured RB threshold value.
Step B2: and when detecting that the initial access scheduling duration is exceeded, moving the service RB to the video service priority layer, and when receiving a notification message which is sent by the PDCP entity and indicates that the video service is finished, moving the service RB to a QCI priority layer corresponding to a QCI value of the service RB.
In this step, specifically, when it is detected that the initial access scheduling duration is exceeded, the scheduling priority of the service RB is reduced, that is, the service RB is moved to the video service priority layer, until the MAC entity receives a notification message indicating that the video service has ended, the service RB is moved to the normal QCI priority layer, that is, the QCI priority layer corresponding to the QCI of the service RB.
Therefore, by limiting the scheduling time of the service RB in the video service initial access priority layer, moving the service RB to the video service priority layer when the scheduling time exceeds the initial access scheduling time, and returning to the normal QCI priority layer when the video service is finished, the initial access time of the video service is shortened, and the normal scheduling of the service RB is ensured when the video service exits.
In addition, it should be noted that after the service RB is placed in a priority layer, the minimum bit rate and the pre-scheduling parameter corresponding to the service RB need to be modified to values dedicated to the priority layer, and after the video service ends and the service RB is rolled back to the QCI priority layer, the minimum bit rate and the pre-scheduling parameter values are rolled back to the values corresponding to the QCI priority layer.
In addition, it should be noted that, for the video service, the number of physical resource blocks occupied by the downlink is limited, and in order to prevent the low-priority service RB from being effectively scheduled when the high-priority service RB occupies more physical resource blocks, the total number of physical resource blocks occupied by the video service priority layer and the priority layers above the video service priority layer is set to be lower than the preset threshold. In addition, the present embodiment may count the number of occupied physical resource blocks during time-domain scheduling, and if the number of downlink physical resource blocks estimated during time-domain scheduling exceeds a preset threshold, schedule fewer physical resource blocks for the service RB while ensuring the video service quality as much as possible, so as to ensure that the number of physical resource blocks does not exceed the preset threshold.
Certainly, under the condition that the flow control is turned on, the resource allocation can be realized by using the individually configured minimum bit rate, and the limitation of a physical resource block is avoided at the moment; in the case of flow control off, the allocated physical resource blocks of the video service need to be limited by the number of physical resource blocks so that other users can queue.
In addition, in order to accelerate uplink feedback of the TCP flow of the video service, an uplink pre-scheduling flow triggered based on downlink data in the current commercial version may be multiplexed in the uplink scheduling, and a priority value of the uplink pre-scheduling LCG is selected according to a setting of a video service pre-scheduling priority switch videopreschepriority at a pre-scheduled Logical Channel Group (LCG) layer. If the switch is turned on, LCG of video service prescheduling separately forms a priority queue, the priority of which is higher than that of the other prescheduling; if the switch is closed, the LCG pre-scheduled by the video service has the same priority as the rest of the LCGs pre-scheduled, and the LCGs are processed in the same priority queue.
In this way, in this embodiment, when receiving the RB identifier corresponding to the uplink data packet sent by the PDCP layer, according to the preset service scheduling priority layer, the service RB corresponding to the RB identifier is allocated to the video service initial access priority layer for scheduling, and the priority of the video service initial access priority layer is higher than that of the new NGBR service priority layer, so that the video service is preferentially scheduled, thereby shortening the video initial access time, reducing the video initial buffering delay, further realizing the whole-process acceleration of the video playing process, and improving the perception of the user when browsing the video service.
As shown in fig. 6, which is a block diagram of an acceleration apparatus for video service applied to a PDCP entity in an embodiment of the present invention, the acceleration apparatus includes:
a first detection module 601, configured to detect whether a service corresponding to an uplink data packet is a video service when a PDCP entity receives the uplink data packet;
a first sending module 602, configured to send a resource block RB identifier corresponding to the uplink data packet to a media access control MAC entity when it is detected that a service corresponding to the uplink data packet is a video service, so that the MAC entity allocates a service RB corresponding to the RB identifier to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer;
the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low.
Optionally, the first detection module 601 includes:
a first detecting unit, configured to detect whether a service corresponding to the uplink data packet is an NGBR service with a qos class identifier QCI value in a range from 6 to 9;
a second detecting unit, configured to detect a video service identification identifier carried in the uplink data packet when detecting that the service corresponding to the uplink data packet is an NGBR service with a QCI value in a range of 6 to 9; wherein the content of the first and second substances,
and the determining unit is used for determining that the service corresponding to the uplink data packet is the video service when the video service identification mark is detected to indicate the video service.
Optionally, the acceleration device further comprises:
the second detection module is used for detecting whether the video service is a video service to be accelerated;
and the first processing module is configured to trigger the first sending module to send the resource block RB identifier corresponding to the uplink data packet to a medium access control MAC entity when it is detected that the video service is a video service to be accelerated.
Optionally, the second detection module is configured to, when it is detected that the byte length of the uplink data packet satisfies a preset range and the first byte of the uplink data packet payload is G or P, match the payload feature word of the uplink data packet with a preset video keyword; the video keywords comprise a video identification method, a characteristic character string of a video manufacturer, the length of the characteristic character string of the video manufacturer and an offset value of the characteristic character string of the video manufacturer in characters; and when detecting that the static load characteristic words of the uplink data packet are matched with the video keywords, determining that the video service is the video service to be accelerated.
Optionally, the acceleration device further comprises:
the third detection module is used for detecting whether the load of a central processing unit CPU of the base station is smaller than a preset load threshold value;
a fourth detection module, configured to detect whether the MAC entity limits the number of video acceleration services when it is detected that the load of the CPU is smaller than a preset load threshold;
and the second processing module is used for triggering the second detection module to detect whether the video service is the video service to be accelerated or not when the MAC entity is detected not to limit the number of the video acceleration services or when the MAC entity is detected to limit the number of the video acceleration services and the number of the video acceleration services is smaller than a preset limit value.
Optionally, the acceleration device further comprises:
a fifth detection module, configured to detect whether the video service is ended;
a second sending module, configured to send, when it is detected that the video service ends, a notification message indicating that the video service has ended to the MAC entity, so that the MAC entity moves the service RB to a QCI priority layer corresponding to the QCI value of the service RB according to the notification message.
Optionally, the fifth detection module is configured to obtain the number of downlink data packets, of which the number of bytes is greater than a preset threshold, in each preset monitoring period of N consecutive preset monitoring periods, where the downlink data packets correspond to the uplink data packets, and N is a positive integer greater than 1; and when the number of the downlink data packets in each preset monitoring period is smaller than a preset number threshold, determining that the video service is finished.
The detection apparatus provided in this embodiment detects whether a service corresponding to an uplink data packet is a video service through the first detection module, and when it is detected that the service corresponding to the uplink data packet is the video service, the first sending module sends the RB identifier corresponding to the uplink data packet to the MAC entity, so that the MAC entity allocates the service RB corresponding to the RB identifier to the video service initial access priority layer for scheduling according to the preset service scheduling priority layer, and the priority of the video service initial access priority layer is higher than that of the new NGBR service priority layer, thereby implementing identification and priority scheduling of the video service, shortening the video initial access time, reducing the video initial buffering delay, further implementing whole-process acceleration of the video playing process, and improving the perception of a user when browsing the video service.
As shown in fig. 7, a block diagram of an accelerating apparatus for video service applied to a MAC entity in an embodiment of the present invention is shown, where the apparatus includes:
a receiving module 701, configured to receive a resource block RB identifier, which is sent by a packet data convergence protocol PDCP entity and corresponds to an uplink data packet, where the RB identifier is sent when the PDCP entity receives the uplink data packet and detects that a service corresponding to the uplink data packet is a video service;
a first scheduling module 702, configured to allocate, according to a preset service scheduling priority layer, a service RB corresponding to the RB identifier to a video service initial access priority layer for scheduling;
the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low.
Optionally, the service scheduling priority layer further includes a quality of service classification identifier, QCI, priority layer, and the priority of the QCI priority layer is lower than that of the new NGBR service priority layer;
the acceleration device further includes:
a first detection module, configured to detect whether a scheduling time of the service RB in the video service initial access priority layer exceeds a preset initial access scheduling duration;
and the second scheduling module is used for moving the service RB to a QCI priority layer corresponding to the QCI value of the service RB when detecting that the initial access scheduling time length is exceeded.
Optionally, the service scheduling priority layer further includes a video service priority layer and a QCI priority layer, and the priority of the video service priority layer is lower than that of the new NGBR service priority layer, and the priority of the QCI priority layer is lower than that of the video service priority layer;
the acceleration device further includes:
a second detection module, configured to detect whether a scheduling time of the service RB in the video service initial access priority layer exceeds a preset initial access scheduling duration;
a third scheduling module, configured to move the service RB to the video service priority layer when detecting that the initial access scheduling duration is exceeded, and move the service RB to a QCI priority layer corresponding to a QCI value of the service RB when receiving a notification message indicating that the video service has ended, where the notification message is sent by the PDCP entity.
Optionally, the first detection module or the second detection module is configured to obtain an initial frame number when the service RB is allocated to the video service initial access priority layer, and obtain a frame number before the TTI starts time domain scheduling; calculating the difference between the frame number before the time domain scheduling of each TTI begins and the initial frame number; and when the calculated difference is larger than the initial access scheduling duration, determining that the scheduling time of the service RB in the video service initial access priority layer exceeds the initial access scheduling duration.
Optionally, the total number of service RBs in the video service initial access priority layer and the video service priority layer is less than a preconfigured RB threshold value.
In this way, the apparatus provided in this embodiment receives the RB identifier through the receiving module, and when receiving the RB identifier corresponding to the uplink data packet sent by the PDCP layer through the first scheduling module, allocates the service RB corresponding to the RB identifier to the video service initial access priority layer for scheduling according to the preset service scheduling priority layer, and the priority of the video service initial access priority layer is higher than that of the new NGBR service priority layer, so that the video service is preferentially scheduled, thereby shortening the video initial access time, reducing the video initial buffering delay, further realizing the whole acceleration of the video playing process, and improving the perception of the user when browsing the video service.
In addition, as shown in fig. 8, an entity structure schematic diagram of the electronic device provided in the embodiment of the present invention is shown, where the electronic device may include: a processor (processor)810, a communication Interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication Interface 820 and the memory 830 communicate with each other via the communication bus 840. The processor 810 may invoke a computer program stored on the memory 830 and executable on the processor 810 to perform the methods provided by the various embodiments described above, including, for example: when receiving an uplink data packet, a PDCP entity detects whether a service corresponding to the uplink data packet is a video service; when detecting that the service corresponding to the uplink data packet is a video service, sending a Resource Block (RB) identifier corresponding to the uplink data packet to a Media Access Control (MAC) entity so that the MAC entity allocates the service RB corresponding to the RB identifier to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer; the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low.
Further examples include: receiving a Resource Block (RB) identifier which is sent by a Packet Data Convergence Protocol (PDCP) entity and corresponds to an uplink data packet, wherein the RB identifier is sent when the PDCP entity receives the uplink data packet and detects that a service corresponding to the uplink data packet is a video service; distributing the service RB corresponding to the RB identification to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer; the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low.
In addition, the logic instructions in the memory 830 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the method provided in the foregoing embodiments when executed by a processor, and the method includes: when receiving an uplink data packet, a PDCP entity detects whether a service corresponding to the uplink data packet is a video service; when detecting that the service corresponding to the uplink data packet is a video service, sending a Resource Block (RB) identifier corresponding to the uplink data packet to a Media Access Control (MAC) entity so that the MAC entity allocates the service RB corresponding to the RB identifier to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer; the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low.
Further examples include: receiving a Resource Block (RB) identifier which is sent by a Packet Data Convergence Protocol (PDCP) entity and corresponds to an uplink data packet, wherein the RB identifier is sent when the PDCP entity receives the uplink data packet and detects that a service corresponding to the uplink data packet is a video service; distributing the service RB corresponding to the RB identification to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer; the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (24)

1. An acceleration method of video service, which is applied to a packet data convergence protocol PDCP entity, is characterized in that the acceleration method includes:
when receiving an uplink data packet, a PDCP entity detects whether a service corresponding to the uplink data packet is a video service;
when detecting that the service corresponding to the uplink data packet is a video service, sending a Resource Block (RB) identifier corresponding to the uplink data packet to a Media Access Control (MAC) entity so that the MAC entity allocates the service RB corresponding to the RB identifier to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer;
the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low;
the detecting whether the service corresponding to the uplink data packet is a video service includes:
detecting whether the service corresponding to the uplink data packet is an NGBR service with a service Quality Classification Identifier (QCI) value in a range of 6 to 9;
when detecting that the service corresponding to the uplink data packet is an NGBR service with a QCI value in a range of 6-9, detecting a video service identification mark carried in the uplink data packet; wherein the content of the first and second substances,
and when the video service identification mark is detected to indicate that the video service is the video service, determining that the service corresponding to the uplink data packet is the video service.
2. The method for accelerating video service according to claim 1, wherein after detecting that the service corresponding to the uplink data packet is a video service, the method further includes:
detecting whether the video service is a video service to be accelerated;
and when the video service is detected to be the video service to be accelerated, the step of sending the resource block RB identification corresponding to the uplink data packet to a Media Access Control (MAC) entity is carried out.
3. The method for accelerating video service according to claim 2, wherein said detecting whether the video service is a video service to be accelerated includes:
when the byte length of the uplink data packet is detected to meet a preset range and the first byte of the static load of the uplink data packet is G or P, matching the static load characteristic word of the uplink data packet with a preset video keyword; the video keywords comprise a video identification method, a characteristic character string of a video manufacturer, the length of the characteristic character string of the video manufacturer and an offset value of the characteristic character string of the video manufacturer in characters;
and when detecting that the static load characteristic words of the uplink data packet are matched with the video keywords, determining that the video service is the video service to be accelerated.
4. The method for accelerating video service according to claim 2, wherein before said detecting whether said video service is a video service to be accelerated, said method further comprises:
detecting whether the load of a Central Processing Unit (CPU) of the base station is smaller than a preset load threshold value or not;
when the load of the CPU is detected to be smaller than a preset load threshold value, whether the MAC entity limits the number of video acceleration services is detected;
and when the MAC entity is detected not to limit the number of the video acceleration services, or when the MAC entity is detected to limit the number of the video acceleration services and the number of the video acceleration services is smaller than a preset limit value, entering a step of detecting whether the video services are to-be-accelerated video services.
5. The method of accelerating video services according to claim 1, wherein after sending the RB identifier of the resource block corresponding to the uplink data packet to a MAC entity, the method further includes:
detecting whether the video service is finished;
when detecting that the video service is ended, sending a notification message indicating that the video service is ended to the MAC entity, so that the MAC entity moves the service RB to a QCI priority layer corresponding to the QCI value of the service RB according to the notification message.
6. The method for accelerating video service according to claim 5, wherein said detecting whether the video service is over comprises:
acquiring the number of downlink data packets of which the byte number is greater than a preset threshold value in each preset monitoring period in N continuous preset monitoring periods, wherein the downlink data packets correspond to the uplink data packets, and N is a positive integer greater than 1;
and when the number of the downlink data packets in each preset monitoring period is smaller than a preset number threshold, determining that the video service is finished.
7. A method for accelerating video service is applied to a Media Access Control (MAC) entity, and is characterized in that the method for accelerating comprises the following steps:
receiving a Resource Block (RB) identifier which is sent by a Packet Data Convergence Protocol (PDCP) entity and corresponds to an uplink data packet, wherein the RB identifier is sent when the PDCP entity receives the uplink data packet and detects that a service corresponding to the uplink data packet is a video service;
distributing the service RB corresponding to the RB identification to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer;
the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low.
8. The method for accelerating video service according to claim 7, wherein said service scheduling priority layer further comprises a quality of service class identifier (QCI) priority layer, and the QCI priority layer has a lower priority than the new NGBR service priority layer;
after the service RB corresponding to the RB identity is allocated to the video service initial access priority layer for scheduling, the acceleration method further includes:
detecting whether the scheduling time of the service RB in the video service initial access priority layer exceeds the preset initial access scheduling time;
and when detecting that the initial access scheduling duration is exceeded, moving the service RB to a QCI priority layer corresponding to the QCI value of the service RB.
9. The method for accelerating video service according to claim 7, wherein said service scheduling priority layer further includes a video service priority layer and a QCI priority layer, and the priority of said video service priority layer is lower than that of said new NGBR service priority layer, and the priority of said QCI priority layer is lower than that of said video service priority layer;
after the service RB corresponding to the RB identity is allocated to the video service initial access priority layer for scheduling, the acceleration method further includes:
detecting whether the scheduling time of the service RB in the video service initial access priority layer exceeds the preset initial access scheduling time;
and when detecting that the initial access scheduling duration is exceeded, moving the service RB to the video service priority layer, and when receiving a notification message which is sent by the PDCP entity and indicates that the video service is finished, moving the service RB to a QCI priority layer corresponding to a QCI value of the service RB.
10. The method of claim 8 or 9, wherein the detecting whether the scheduling time of the service RB in the initial access priority layer of the video service exceeds a preset initial access scheduling duration comprises:
acquiring an initial frame number when the service RB is distributed to the video service initial access priority layer, and acquiring a frame number before each transmission time interval TTI starts time domain scheduling;
calculating the difference between the frame number before the time domain scheduling of each TTI begins and the initial frame number;
and when the calculated difference is larger than the initial access scheduling duration, determining that the scheduling time of the service RB in the video service initial access priority layer exceeds the initial access scheduling duration.
11. The method of accelerating video services according to claim 9, wherein the total number of service RBs in the video service initial access priority layer and the video service priority layer is less than a preconfigured RB threshold.
12. An acceleration apparatus for video service, which is applied to a packet data convergence protocol PDCP entity, wherein the acceleration apparatus comprises:
a first detection module, configured to detect whether a service corresponding to an uplink data packet is a video service when a PDCP entity receives the uplink data packet;
a first sending module, configured to send a resource block RB identifier corresponding to the uplink data packet to a medium access control MAC entity when it is detected that a service corresponding to the uplink data packet is a video service, so that the MAC entity allocates a service RB corresponding to the RB identifier to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer;
the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low;
the first detection module includes:
a first detecting unit, configured to detect whether a service corresponding to the uplink data packet is an NGBR service with a qos class identifier QCI value in a range from 6 to 9;
a second detecting unit, configured to detect a video service identification identifier carried in the uplink data packet when detecting that the service corresponding to the uplink data packet is an NGBR service with a QCI value in a range of 6 to 9; wherein the content of the first and second substances,
and the determining unit is used for determining that the service corresponding to the uplink data packet is the video service when the video service identification mark is detected to indicate the video service.
13. An acceleration apparatus for video traffic according to claim 12, characterized in that, said acceleration apparatus further comprises:
the second detection module is used for detecting whether the video service is a video service to be accelerated;
and the first processing module is configured to trigger the first sending module to send the resource block RB identifier corresponding to the uplink data packet to a medium access control MAC entity when it is detected that the video service is a video service to be accelerated.
14. The apparatus for accelerating video services according to claim 13, wherein the second detecting module is configured to, when it is detected that the byte length of the uplink data packet satisfies a preset range and the first byte of the payload of the uplink data packet is G or P, match the payload signature of the uplink data packet with a preset video keyword; the video keywords comprise a video identification method, a characteristic character string of a video manufacturer, the length of the characteristic character string of the video manufacturer and an offset value of the characteristic character string of the video manufacturer in characters; and when detecting that the static load characteristic words of the uplink data packet are matched with the video keywords, determining that the video service is the video service to be accelerated.
15. An acceleration apparatus for video traffic according to claim 13, characterized in that, said acceleration apparatus further comprises:
the third detection module is used for detecting whether the load of a central processing unit CPU of the base station is smaller than a preset load threshold value;
a fourth detection module, configured to detect whether the MAC entity limits the number of video acceleration services when it is detected that the load of the CPU is smaller than a preset load threshold;
and the second processing module is used for triggering the second detection module to detect whether the video service is the video service to be accelerated or not when the MAC entity is detected not to limit the number of the video acceleration services or when the MAC entity is detected to limit the number of the video acceleration services and the number of the video acceleration services is smaller than a preset limit value.
16. An acceleration apparatus for video traffic according to claim 12, characterized in that, said acceleration apparatus further comprises:
a fifth detection module, configured to detect whether the video service is ended;
a second sending module, configured to send, when it is detected that the video service ends, a notification message indicating that the video service has ended to the MAC entity, so that the MAC entity moves the service RB to a QCI priority layer corresponding to the QCI value of the service RB according to the notification message.
17. The apparatus for accelerating video services according to claim 16, wherein the fifth detecting module is configured to obtain the number of downlink data packets with a byte number greater than a preset threshold in each preset monitoring period of N consecutive preset monitoring periods, where the downlink data packets correspond to the uplink data packets, and N is a positive integer greater than 1; and when the number of the downlink data packets in each preset monitoring period is smaller than a preset number threshold, determining that the video service is finished.
18. An acceleration apparatus for video service, which is applied to a media access control MAC entity, the acceleration apparatus comprising:
a receiving module, configured to receive a resource block RB identifier corresponding to an uplink data packet and sent by a packet data convergence protocol PDCP entity, where the RB identifier is sent when the PDCP entity receives the uplink data packet and detects that a service corresponding to the uplink data packet is a video service;
the first scheduling module is used for allocating the service RB corresponding to the RB identifier to a video service initial access priority layer for scheduling according to a preset service scheduling priority layer;
the service scheduling priority layer sequentially comprises an important user non-guaranteed bit rate NGBR service priority layer, a video service initial access priority layer and a new NGBR service priority layer according to the sequence of the priority from high to low.
19. The apparatus for accelerating video services of claim 18, wherein said service scheduling priority layer further comprises a quality of service class identifier (QCI) priority layer, and wherein said QCI priority layer has a lower priority than said new NGBR service priority layer;
the acceleration device further includes:
a first detection module, configured to detect whether a scheduling time of the service RB in the video service initial access priority layer exceeds a preset initial access scheduling duration;
and the second scheduling module is used for moving the service RB to a QCI priority layer corresponding to the QCI value of the service RB when detecting that the initial access scheduling time length is exceeded.
20. The apparatus for accelerating video services of claim 18, wherein said service scheduling priority layer further comprises a video service priority layer and a QCI priority layer, and wherein said video service priority layer has a lower priority than said new NGBR service priority layer and said QCI priority layer has a lower priority than said video service priority layer;
the acceleration device further includes:
a second detection module, configured to detect whether a scheduling time of the service RB in the video service initial access priority layer exceeds a preset initial access scheduling duration;
a third scheduling module, configured to move the service RB to the video service priority layer when detecting that the initial access scheduling duration is exceeded, and move the service RB to a QCI priority layer corresponding to a QCI value of the service RB when receiving a notification message indicating that the video service has ended, where the notification message is sent by the PDCP entity.
21. The apparatus of claim 19 or 20, wherein the first detecting module or the second detecting module is configured to obtain an initial frame number when the service RB is allocated to the video service initial access priority layer, and obtain a frame number before the start of time domain scheduling for each TTI; calculating the difference between the frame number before the time domain scheduling of each TTI begins and the initial frame number; and when the calculated difference is larger than the initial access scheduling duration, determining that the scheduling time of the service RB in the video service initial access priority layer exceeds the initial access scheduling duration.
22. The apparatus of claim 20, wherein the total number of RBs of the service in the video service initial access priority layer and the video service priority layer is less than a pre-configured RB threshold.
23. An electronic device comprising a memory, a processor and a program stored on the memory and executable on the processor, characterized in that the steps of the method for accelerating a video service according to any one of claims 1 to 11 are implemented by the processor when executing the program.
24. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for accelerating a video service according to any one of claims 1 to 11.
CN201910702254.0A 2019-07-31 2019-07-31 Video service acceleration method and device, electronic equipment and storage medium Active CN112312174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910702254.0A CN112312174B (en) 2019-07-31 2019-07-31 Video service acceleration method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910702254.0A CN112312174B (en) 2019-07-31 2019-07-31 Video service acceleration method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112312174A CN112312174A (en) 2021-02-02
CN112312174B true CN112312174B (en) 2022-04-01

Family

ID=74486175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910702254.0A Active CN112312174B (en) 2019-07-31 2019-07-31 Video service acceleration method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112312174B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102742212A (en) * 2010-05-20 2012-10-17 中兴通讯股份有限公司 Traffic scheduling method of guaranteed bit rate based on quality of service
CN102858015A (en) * 2011-06-30 2013-01-02 普天信息技术研究院有限公司 Multi-service scheduling method
CN103582013A (en) * 2012-08-10 2014-02-12 普天信息技术研究院有限公司 Downlink transmission method of packet data convergence protocol data
CN106571901A (en) * 2015-10-13 2017-04-19 华为技术有限公司 Medium access control (MAC) entity creation method, device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170100109A (en) * 2016-02-24 2017-09-04 한국전자통신연구원 Method and apparatus for buffer status report in mobile communication system
US10103997B2 (en) * 2016-06-01 2018-10-16 At&T Intellectual Property I, L.P. Dynamic quality of service for over-the-top content

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102742212A (en) * 2010-05-20 2012-10-17 中兴通讯股份有限公司 Traffic scheduling method of guaranteed bit rate based on quality of service
CN102858015A (en) * 2011-06-30 2013-01-02 普天信息技术研究院有限公司 Multi-service scheduling method
CN103582013A (en) * 2012-08-10 2014-02-12 普天信息技术研究院有限公司 Downlink transmission method of packet data convergence protocol data
CN106571901A (en) * 2015-10-13 2017-04-19 华为技术有限公司 Medium access control (MAC) entity creation method, device and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于用户行为的内容加速系统的设计与实现;汤四见;《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》;20170215;全文 *
移动接入网业务加速技术研究;张勍,冯毅;《邮电设计技术》;20190720(第7期);第6-10页 *

Also Published As

Publication number Publication date
CN112312174A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
US11277821B2 (en) Resource conflict reducing method and UE
EP2958387B1 (en) Data transmission processing method and device
CN104918283B (en) A kind of jamming control method and equipment
EP2234342A1 (en) Method, system and device for transmitting packet messages
HUE032865T2 (en) Random access channel enhancements for lte devices
Tran et al. Average waiting time of packets with different priorities in cognitive radio networks
WO2014075555A1 (en) Method and device for scheduling slot resources
CN111294969B (en) BSR triggering method and device, storage medium and user equipment
CN109788570B (en) Logic channel priority resource scheduling method and device
CN113315720B (en) Data flow control method, system and equipment
KR101164743B1 (en) Techniques for handling service flows in wireless communication systems
CN108243506B (en) L TE system service scheduling method and device
CN112312174B (en) Video service acceleration method and device, electronic equipment and storage medium
CN104427630B (en) A kind of grouping scheduling method and device
CN107404454B (en) Call quality adjusting method and device
US11540348B2 (en) Method and apparatus for prioritizing mission critical push to talk traffic during an emergency
EP3182786B1 (en) Data transmission method and terminal
CN107155220B (en) Resource scheduling method and device
CN112242877B (en) Data transmission method, device and system
CN111385900B (en) Uplink scheduling method and device
US20140146755A1 (en) Method for controlling channel access, access point and user equipment
WO2006035408A1 (en) Method of, and apparatus for, transmitting data, and a communication system
CN111867111A (en) Method and device for scheduling equipment
CN112188500A (en) Dynamic allocation method and device for frequency spectrum resources
CN111182642B (en) Method, device and equipment for scheduling non-periodic discontinuous service

Legal Events

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