Detailed Description
In order to solve the problem of how to reduce the time delay of the mobile forwarding network and simultaneously, reasonably and effectively adapt the QoS requirement of the wireless service to the optical network, the present invention provides a time delay optimization method, a service scheduling method and a storage medium, and the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
It should be understood that all embodiments of the present invention are based on a mathematical model for block uploading a TTI bandwidth, and considering that the transmission delay and the waiting delay of an ONU are large due to the direct transmission of a TTI data amount, an authorization window issued by an OLT is to block upload based on a TTI bandwidth. In the model, it is assumed that there are 4 ONUs in the TDM-PON system, and the delay performance of direct upload and block upload is compared. Fig. 1 is a schematic time delay diagram of direct uploading, and data volume of one TTI is directly uploaded in a polling period j. Fig. 2 is a schematic time delay diagram of block uploading, where data amount of one TTI is uploaded in polling periods j and (j +1) twice, a data block that arrives first is uploaded in a first polling period j, and a data block that arrives later is uploaded in a second polling period (j + 1). As can be seen from a comparison between fig. 1 and fig. 2, the total data volume request is the same in size, and the transmission delay and the waiting delay of data in one Dynamic Bandwidth Allocation (DBA) period are effectively reduced by performing block uploading on the ONU upstream data. The specific model is constructed as follows:
let us assume that the average bit rate of the i-th ONU to OLT connection is r within a TTIi. Data of one TTI from RRU is divided into a plurality of data blocks on ONU, and transmitted in TDM-PON, the unit of data block division is us, which can be regarded as a time slot with fixed length, and is marked as B. The bandwidth capacity of the PON network is C. Then the size of the uplink transmission window corresponding to the ONU is:
Tsend=Tpayload+G (1.1)
wherein G is a guard interval of an ONU upstream transmission window, which depends on a specific TDM-PON standard and is considered to be a fixed value. T isonRepresenting the time delay of the ONU laser turn-on, TsyncRepresenting ONU synchronization delay, TdelimRepresenting frame delimiting delay, ToffRepresenting a time delay for the ONU laser to turn off.
G=Ton+Tsync+Tdelim+Toff (1.2)
TpayloadThe sending delay of the payload is the sending delay of the actually authorized uplink data amount buffered in the ONU. RFECThe bandwidth overhead introduced by channel coding is represented, and H represents the bandwidth overhead (control information, NGFI interface and the like) introduced by forward transmission, and the unit is bit.
To prevent "collisions", the OLT grants different time slots to each ONU during a polling period. Suppose that in a polling cycle, n ONUs send data before the transmission time point of the ith ONU starts: wherein N is the total number of the ONUs and is used for describing the network scale;
0≤n≤N-1 (1.4)
k is set as any connection in the upstream transmission order before the ith ONU. The waiting time delay for the kth connection is the sending time delay of the kth ONU uplink data block:
the total latency is therefore:
considering the worst waiting condition, the number of waiting conditions is N-1:
as can be seen from equations 1.3 and 1.7, the size B of the data block determines the transmission delay and the worst waiting delay of the ONU.
Therefore, in one polling period, the ONU with the scheduling order located at the last has the worst delay performance, and the worst total delay is:
max(D)=max(Twait)+Tsend+Tprop+Tproc (1.8)
namely:
wherein T ispropFor propagation delay, TprocTo handle the delay, it can be considered as a constant value.
The appropriate data block size B should be selected according to the following two constraints:
first, the delay requirement of the forwarding network is satisfied, taking 250us as an example of the requirement in the industry:
max(D)<=250us (1.10)
secondly, the database size cannot exceed the bandwidth capacity of the PON network:
the following conclusion is obtained through the model, and the scheduling sequence performed by the OLT in a polling period influences the delay performance of the data uploaded by the ONU. Therefore, on this basis, the method according to the first embodiment of the present invention is proposed to obtain the priority of the wireless service in the ONU, and map the priority of the ONU by the priority calculation of the wireless service, and finally the OLT performs scheduling according to the priority of the ONU to optimize the delay.
A first embodiment of the present invention provides a time delay optimization method, a flowchart of which is shown in fig. 3, and specifically includes steps S301 to S303:
s301, determining the priority of each wireless service in the preset ONU according to the wireless service attribution information and the optical network service information, wherein the optical network service information comprises: the corresponding relation between the RRU and the ONU service, and the wireless service attribution information at least comprises: the priority of each wireless service corresponding to the UE under the RRU;
s302, determining the priority of a preset ONU according to the priorities of all wireless services in the preset ONU;
and S303, respectively issuing authorization information to each ONU according to the priority of each ONU so that each ONU uploads data according to the authorization information.
In the wireless communication process, the UE needs to request uplink resources to the BBU, that is, sends wireless service affiliation information to the BBU, wherein the main content of the wireless service affiliation information includes: the priority of each radio service corresponding to the UE under the RRU, but the priority should also include the following information: the UE initiating the wireless service in one TTI is respectively assigned to which RRU, and one UE initiates the information of which wireless services and the like. The OLT stores optical network service information, which specifically includes a correspondence between services of the RRU and the ONU. Before mapping, according to the wireless service attribution information and the optical network service information, it can be determined which wireless services each ONU needs to upload, and what the priorities of the wireless services are respectively.
In defining the priority of the wireless service, the first embodiment of the present invention refers to the standard of LTE. The LTE system defines standard QoS Class identifiers (QCIs, QoS Class identifiers, i.e., priorities) and is divided into 9 classes, and the standard QoS classes of the LTE system are given in table 1, wherein the smaller the value of QCIs, the higher the priority of corresponding wireless services.
TABLE 1
In this embodiment, the priority of the ONU is determined according to the priorities of all wireless services in the ONU, that is, mapping from the QCI of the wireless services to the priority of the ONU is implemented, and a specific mapping relationship is obtained according to the following model:
suppose that 1 ONU serves 1 RRU, the RRU is represented by i, the set to which the RRU belongs is S, the UE is represented by U, the set to which the RRU belongs is U, an LTE uplink radio packet (LTE uplink packet) is represented by K, and the set to which the RRU belongs is K. When ONU priority index is calculated, priority weighting factors of different wireless services are given according to QCI of the wireless services:
e denotes a retransmission factor (HARQ retransmission weight), which represents a priority superposition coefficient of the retransmitted wireless service, and the default value of the wireless service without retransmission is 1.
And the data volume of the kth wireless service of the u UE under the ith RRU is represented.
Represents the situation under the ith RRUDelay sensitive priority of kth radio traffic of the u-th UE.
Total data volume in the ith RRU:
expressing the normalization value of the kth wireless service data volume of the u UE under the ith RRU, normalizing the data volume of 1 RRU/ONU:
the priority indexes of the ONU are as follows:
meanwhile, in order to ensure fairness among the ONUs, the ONUs with the same priority index are sorted according to the size of the wireless service data volume of the ONUs, and the ONUs with the smaller data volume are prioritized in the scheduling order. The priority of the ONU in this embodiment is mapped based on the priority of the wireless service and the data volume in one TTI, and is updated with one TTI as a cycle.
When the authorization information is issued, the size of a data block which is suitable for the ONU to upload in a polling period is calculated through a formula 1.10 and a formula 1.11, and the size of the data block is written into the authorization information and issued to the ONU together.
In the embodiment, the priority of the mapped ONU is calculated according to the priority of the wireless service initiated by the UE by analyzing and processing the wireless service attribution information and the optical network service information, so that the OLT schedules the ONU with a high priority in a scheduling process, thereby reducing the time delay of uploading data by the ONU, and solving the problem of how to reduce the time delay of a mobile fronthaul network and simultaneously, reasonably and effectively adapting the QoS requirement of the wireless service to the optical network.
Before actually uploading data, the ONU needs to wait for a time delay, and during waiting, the data cached in the ONU not only includes data arriving at a time slot established by the polling this time, but also includes data newly arriving at the ONU within the waiting time delay. Considering that the OLT performs bandwidth allocation according to the amount of data arriving at a time slot, and the data cached inside the ONU cannot be completely uploaded in an authorized time slot, a second embodiment of the present invention provides a service scheduling method, that is, an internal service scheduling method of the ONU, which preferentially sends a delay-sensitive (i.e., high-priority) wireless service in an authorized transmission window, and a flowchart of the method is shown in fig. 4, and specifically includes steps S401 and S402:
s401, receiving authorization information from an OLT (optical line terminal), wherein the authorization information is generated by the OLT according to the priority of each ONU (optical network unit) under the OLT, and the priority of each ONU is determined by the OLT according to the priority of all wireless services in each ONU;
and S402, uploading data to the OLT according to the authorization information.
In order to achieve the effect of service scheduling, before an ONU uploads data, an Ethernet data frame carrying wireless services is obtained from an RRU, the Ethernet data frame is sensed to obtain the priority of the wireless services contained in the frame header of the Ethernet data frame, a plurality of sending queues with the same priority as the priority of the wireless services are constructed, the wireless services with the same priority are added into the same sending queue, when sending is carried out, the wireless services in the sending queues are uploaded in sequence according to the sequence from high to low of the priorities corresponding to the plurality of sending queues, and the Ethernet data frame carrying the wireless services is extracted from the sending queues to carry out uplink transmission.
In practical use, according to the priority definition standard of LTE, 9 transmission queues may be defined. In the internal scheduling of the ONU, a Weighted Round Robin (Weighted Round Robin) scheme may be adopted, for example, the scheduling weights of the transmission queue 0 to the transmission queue 8 are configured to be 3, 2, 2, 1, 1, 1, 1, 1, 1 in sequence. The weight of the sending queue 0 is 3, that is, 3 ethernet frames are scheduled and then enter the queue 1, the weight of the sending queue 1 is 2, and 2 ethernet frames are scheduled and then enter the next-stage queue. It should be appreciated that if the next-level queue has no ethernet frames directly entering the next-level queue and re-enters queue 1 after the round of scheduling is completed, queue 1 has no ethernet frames directly entering queue 2 until the data transmission of the grant window is completed. The ONU internal scheduling process in this embodiment is not limited to the weighted round robin scheduling method described above, and may also include other scheduling methods that can achieve the same effect.
In the extraction process, the total byte number of the extracted Ethernet data frame is not greater than the byte number authorized to be sent by the OLT. The extraction process should ensure the integrity of the ethernet data frame structure as much as possible, and if the remaining uplink time slot is not enough to complete the transmission of one ethernet data frame, the remaining time slot is filled with 0, and the ethernet data frame is uploaded in the next authorization window.
In the embodiment, the wireless service with high priority is preferentially sent in the authorized transmission window through service scheduling inside the ONU, so that the time delay of the optical network in the transmission process is further reduced.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
A third embodiment of the present invention provides a storage medium. The storage medium stores a computer program, and in the embodiment, the computer program realizes the following steps when being executed by the processor:
s31, determining the priority of each wireless service in the preset ONU according to the wireless service attribution information and the optical network service information, wherein the optical network service information comprises: the corresponding relation between the RRU and the ONU service, and the wireless service attribution information at least comprises: the priority of each wireless service corresponding to the UE under the RRU;
s32, determining the priority of the preset ONU according to the priority of all wireless services in the preset ONU;
and S33, respectively issuing authorization information to each ONU according to the priority of each ONU so that each ONU uploads data according to the authorization information.
In the wireless communication process, the UE needs to request uplink resources to the BBU, that is, sends wireless service affiliation information to the BBU, wherein the main content of the wireless service affiliation information includes: the priority of each radio service corresponding to the UE under the RRU, but the priority should also include the following information: the UE initiating the wireless service in one TTI is respectively assigned to which RRU, and one UE initiates the information of which wireless services and the like. The OLT stores optical network service information, which specifically includes a correspondence between services of the RRU and the ONU. Before mapping, according to the wireless service attribution information and the optical network service information, it can be determined which wireless services each ONU needs to upload, and what the priorities of the wireless services are respectively.
In the process of defining the priority of the wireless service, the third embodiment of the present invention refers to the LTE standard, that is, table 1 in the first embodiment of the present invention, in this embodiment, the priority of the ONU is determined according to the priorities of all the wireless services in the ONU, that is, mapping from the QCI of the wireless service to the priority of the ONU is implemented, and a specific mapping relationship model is described in the first embodiment of the present invention and will not be described herein again.
In order to ensure fairness among the ONUs, the ONUs with the same priority index are sorted according to the size of the wireless service data volume of the ONUs, and the ONUs with the smaller data volume are prioritized in the scheduling order. The priority of the ONU in this embodiment is mapped based on the priority of the wireless service and the data volume in one TTI, and is updated with one TTI as a cycle. When the authorization information is issued, the size of a data block which is suitable for the ONU to upload in a polling period is calculated through a formula 1.10 and a formula 1.11, and the size of the data block is written into the authorization information and issued to the ONU together.
In the embodiment, the priority of the mapped ONU is calculated according to the priority of the wireless service initiated by the UE by analyzing and processing the wireless service attribution information and the optical network service information, so that the OLT schedules the ONU with a high priority in a scheduling process, thereby reducing the time delay of uploading data by the ONU, and solving the problem of how to reduce the time delay of a mobile fronthaul network and simultaneously, reasonably and effectively adapting the QoS requirement of the wireless service to the optical network.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the computer program code stored in the storage medium. Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again. It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Before actually uploading data, the ONU needs to wait for a time delay, and during waiting, the data cached in the ONU not only includes data arriving at a time slot established by the polling this time, but also includes data newly arriving at the ONU within the waiting time delay. Considering that the OLT performs bandwidth allocation according to the amount of data arriving in the time slot, and the data buffered in the ONU cannot be completely uploaded in the authorized time slot, the fourth embodiment of the present invention further provides a storage medium. The storage medium stores a computer program, and in the embodiment, the computer program realizes the following steps when being executed by the processor:
s41, receiving authorization information from the OLT, wherein the authorization information is generated by the OLT according to the priority of each ONU under the OLT, and the priority of each ONU is determined by the OLT according to the priority of all wireless services in each ONU;
and S42, uploading data to the OLT according to the authorization information.
In order to achieve the effect of service scheduling, before an ONU uploads data, an Ethernet data frame carrying wireless services is obtained from an RRU, the Ethernet data frame is sensed to obtain the priority of the wireless services contained in the frame header of the Ethernet data frame, a plurality of sending queues with the same priority as the priority of the wireless services are constructed, the wireless services with the same priority are added into the same sending queue, when sending is carried out, the wireless services in the sending queues are uploaded in sequence according to the sequence from high to low of the priorities corresponding to the plurality of sending queues, and the Ethernet data frame carrying the wireless services is extracted from the sending queues to carry out uplink transmission.
In practical use, according to the priority definition standard of LTE, 9 transmission queues may be defined. In the internal scheduling of the ONU, a weighted round robin scheduling may be adopted, for example, the scheduling weights of the transmission queue 0 to the transmission queue 8 are configured to be 4, 2, 2, 1, 1, 1, 1, 1. The weight of the sending queue 0 is 4, that is, 4 ethernet frames are scheduled and then enter the queue 1, and the weight of the sending queue 1 is 2, and 2 ethernet frames are scheduled and then enter the next-stage queue. It should be appreciated that if the next-level queue has no ethernet frames directly entering the next-level queue and re-enters queue 1 after the round of scheduling is completed, queue 1 has no ethernet frames directly entering queue 2 until the data transmission of the grant window is completed. The ONU internal scheduling process in this embodiment is not limited to the weighted round robin scheduling method described above, and may also include other scheduling methods that can achieve the same effect.
In the extraction process, the total byte number of the extracted Ethernet data frame is not greater than the byte number authorized to be sent by the OLT. The extraction process should ensure the integrity of the ethernet data frame structure as much as possible, and if the remaining uplink time slot is not enough to complete the transmission of one ethernet data frame, the remaining time slot is filled with 0, and the ethernet data frame is uploaded in the next authorization window.
In the embodiment, the wireless service with high priority is preferentially sent in the authorized transmission window through service scheduling inside the ONU, so that the time delay of the optical network in the transmission process is further reduced.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the computer program code stored in the storage medium. Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again. It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
A fifth embodiment of the present invention provides a mobile fronthaul network architecture with a BBU and an OLT in cooperation, a schematic diagram of the architecture is shown in fig. 5, and the architecture mainly includes a UE, an OLT, a BBU, a plurality of ONUs, and RRUs corresponding to the ONUs. In this architecture, a Mapping Controller Element (MCE, including the storage medium of the third embodiment of the present invention) is defined, and its main function is to calculate and map the priority of the ONU from the priority of the wireless service through information interaction between the BBU and the OLT.
When the architecture is actually used, the UE firstly sends wireless service attribution information generated by the UE to the BBU, at the moment, the MCE in the OLT acquires the wireless service attribution information generated by the UE and optical network service information stored in the OLT from the BBU, processes the two kinds of information to obtain the priority of the wireless service of each ONU in one TTI, calculates and maps the priority of the corresponding ONU according to the priority, and after the priorities of all ONUs are determined, the MCE sends the priority information to the DBA unit in the OLT so that the DBA unit sends authorization information according to the priority information.
The following describes in detail the ONU internal scheduling process with reference to fig. 6, and 9 transmission queues are constructed in the ONU, and are respectively queue 0 to queue 8, and respectively correspond to wireless service priorities 1 to 9. The ONU acquires an Ethernet data frame which is sent by the RRU and carries wireless services, adds the wireless services with the same priority into a sending queue corresponding to the level of the Ethernet data frame according to the wireless service priority information contained in the control information in the frame header of the Ethernet data frame through an internal classifier, preferentially uploads the wireless services in the queue 0 and finally uploads the services in the queue 8 when the ONU uploads data.
In practical use, the scheduling may be performed by using a weighted round robin scheduling, for example, the scheduling weights of the transmission queue 0 to the transmission queue 8 are configured to be 3, 2, 2, 1, 1, 1, 1, 1, 1 in sequence. The weight of the sending queue 0 is 3, that is, 3 ethernet frames are scheduled and then enter the queue 1, the weight of the sending queue 1 is 2, and 2 ethernet frames are scheduled and then enter the next-stage queue. It should be appreciated that if the next-level queue has no ethernet frames directly entering the next-level queue and re-enters queue 1 after the round of scheduling is completed, queue 1 has no ethernet frames directly entering queue 2 until the data transmission of the grant window is completed. The ONU internal scheduling process in this embodiment is not limited to the weighted round robin scheduling method described above, and may also include other scheduling methods that can achieve the same effect.
Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.