Detailed description of the invention
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, it is clear that described embodiment is only some embodiments of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, all other embodiments that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Herein in connection with terminal and/or base station, various aspect is described.Terminal, refers to provide a user with the equipment (device) of voice and/or data connectivity, including wireless terminal or catv terminal.Wireless terminal can be have the portable equipment of wireless connecting function or be connected to other process equipment of radio modem, through the mobile terminal that wireless access network and one or more core net communicate.Such as, wireless terminal can be mobile phone (or being called " honeycomb " phone) and the computer with mobile terminal.And for example, wireless terminal can also be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device.Accesspoint) or a part for subscriber equipment (English is: userequipment, be called for short UE) for another example, wireless terminal can be that (English is movement station: mobilestation), (English is access point:.
Existing user plane time delay method of testing is usually by the test command of user's triggering terminal, terminal periodic ground is (if without appointment, acquiescence was every one second) send ICMP request data package to target side address (such as: ping192.168.3.200), time delay of wherein eating dishes without rice or wine refers to the time that following process is used: terminal sends ICMP request data package to base station, then dispatch request (the SchedulingRequest that base station sends according to terminal, and the buffer status report (BufferStatusReporting of terminal to report SR), BSR) size, carry out resource authorization (DCI0), the mandate of this DCI0 that terminal gives according to base station carries out ICMP request data package transmission;Base station side receives core-network side and generates about ICMP reply data bag, and is sent to terminal.
It is true that in LTE system, the interface-free resources of base station is frequently not fixed allocation, because the size of the business datum received is uncertain, so according to base station real-time reception data business volume size real-time dynamic scheduling.But the up test packet that terminal sends, its size, cycle, number etc. all can detect that.So, base station can carry out the predistribution of accurate interface-free resources according to the rule of up test packet, so, both can shorten the length of time delay of eating dishes without rice or wine, it is possible to improving the utilization rate of interface-free resources, specifically method is as follows.
Shown in Figure 2, the embodiment of the present invention provides the method flow schematic diagram of a kind of optimizing user plane time delay, and the method that specifically realizes includes:
Step S101, receives the upstream data bag that terminal sends.
Step S102, if the up test packet that described upstream data bag is PING request, it is determined that described terminal sends the cycle of up test packet.
Step S103, according to the described cycle, it was predicted that receives described terminal and sends the moment of follow-up up test packet.
Step S104, is described terminal predistribution interface-free resources according to the moment of prediction, to save the time of described terminal request distribution interface-free resources.
Specifically, user's test command by triggering terminal, terminal can send up test packet periodically to base station, after the L2 layer (transport layer) of base station receives the upstream data bag of certain terminal, first judge whether this packet is ICMP (InternetControlMessageProtocol, network control message protocol) packet, if it is, illustrate that this packet is the up test packet sending PING request to base station by detecting Data Labels position.
Wherein it is possible to judge that the principle of the PING up test packet asked is by ICMP packet: because the packet that PING order is based on ICMP agreement realizes.According to ICMP agreement, resolve the special data position in the IP packet header of the upstream data bag received, if 73~81 of IP datagram literary composition equal to 0x01, then expression is this upstream data bag is ICMP packet, continue to resolve this ICMP data packet head, if bit instruction type in ICMP8 position is 8,8 bit instruction codes are 0, then represent that this icmp packet is request, i.e. PING request, otherwise if 8 bit instruction types are 0, and 8 bit instruction codes are 0, then represent that this icmp packet is reply, i.e. PING response.
Determine be ICMP packet after, the relevant parameter of base station notice MAC this terminal ICMP packet of scheduling controller record, including: pingSize (data package size), pingPeriod (ping bag cycle), pingId (ping bag process number).It practice, ICMP data package size has the size that 1~1472bytes is different, the ICMP packet that conventional test command is corresponding is 32bytes, and the Thread Count of the interval time of each packet, bag size and simultaneously ping bag freely can be set by test command.Additionally, serial number in the similar TCP session of serial number of ICMP packet, when the unimpeded not packet loss of communication link, each ICMPEchoRequest (PING request) that terminal sends can obtain the ICMPEchoReply (PING response) of an identical serial number.The SN=0x100 of such as, first up test packet under Windows system, follow-up No. SN adds 1 for increment with 0x100, and base station can return the reply data bag of SN=0x100 after receiving the ICMP packet of 0x100.
Further, according to serial number in the packet header of the up test packet received, it is determined that the up test packet of at least two serial number continuous print;The time difference of the time of reception according to the described at least two up test packet of serial number continuous print, it is determined that the cycle of described up test packet.
That is, add up the time of reception of multiple ICMP packet, the time difference of serial number continuous print each two ICMP packet time of reception is calculated, then using the meansigma methods of multiple time differences transmission cycle as up test packet, the time of reception of the ICMP packet that such as base station receives 0x100 is 01:59, the time of reception of the ICMP packet that base station receives 0x101 is 02:00, then time difference is one second, in like manner, record 0x102 can be continued in base station, the time of reception of the ICMP packet of the serial numbers such as 0x103, calculate time difference, all of time difference is taken average, just can draw the transmission cycle of ICMP packet.
It is understandable that, base station only can also draw the transmission cycle of ICMP packet according to the time difference of the ICMP packet of 0x100 and the time of reception of the ICMP packet of 0x101, additionally, as it is possible that part packet is at packet loss of eating dishes without rice or wine, cause the serial number of the ICMP packet that base station receives and discontinuous, so, the serial number not consecutive hours of the ICMP packet received before and after base station finds, then it is left out this ICMP packet, select the time difference of sequence of calculation continuous print ICMP packet, certainly, selection is averaged more accurate as ICMP packet, the impact of other factors can be excluded.
Consider that terminal can exist business datum and the concurrent scene of up test packet, further, the size of the business data packet being previously received according to the moment in described prediction and the fixed size of described up test packet, be defined as the preallocated interface-free resources size of described terminal before the moment of described prediction.
If terminal is simply carrying out delay testing, it is not related to the words of other business data packet, the cycle of the ICMP packet that base station can send according to the terminal determined before, prediction SS later sends the moment of ICMP packet, and then the base station interface-free resources that predistribution is sufficiently large before the corresponding moment occurs is to this terminal.When but if terminal also has other business datum being correlated with while transmission delay is tested, because the business data packet that this part is relevant is to be received by base station as one group of packet with next ICMP packet, so base station can obtain interface-free resources send in the lump in order to ensure the ICMP packet being about to receive, it is necessary to calculates the interface-free resources size distributed.
Such as terminal is carrying out while voice and video, user inputs dos command triggering terminal and initiates delay testing to destination address, now base station receives the packet of this terminal and had likely both comprised the business datum of voice and video, also comprises the ICMP packet of delay testing.After base station receives upstream data bag, BSR in MAC layer decoding MAC-CE (MACControlElements) of base station, decision logic channel group (packet that voice is relevant) also calculates the size that such packets need is dispatched, size in conjunction with the packet of each ICMP determines the total size of preallocated interface-free resources, the purpose of do so is to avoid because too high the robbing of packet priority that voice and video is correlated with account for preallocated interface-free resources, because there being the interface-free resources of enough sizes, so can while not affecting business datum communication, ensure that the time delay of delay testing is shorter.
Further, adjust the dispatching priority of described terminal, so that described terminal is by priority treatment, specifically, after base station L2 layer completes the detection of packet, judge whether it is the packet of ICMP, if so, record the mark of this terminal, start the dispatching priority treatment mechanism about this Terminal Type, namely when terminal sends the packet of next ICMP, the mark of this terminal of identification of base stations, the packet of this terminal of priority treatment.Visible, by adjusting the priority of terminal carrying out delay testing, it is possible to be further ensured that uplink/downlink test packet that this Terminal Type sends is by priority treatment, reduction is eated dishes without rice or wine the length of time delay further.
The preallocated process of interface-free resources is carried out, in order to avoid the waste of interface-free resources, when the moment of described prediction arrives, according to whether receive the up test packet that described terminal sends, it is judged that whether delay testing terminates based on above-mentioned base station;Wherein, if all not receiving, when the moment of the described prediction of N continuous arrives, the up test packet that described terminal sends, it is determined that delay testing terminates, and is recovered as the preallocated interface-free resources of described terminal, and the dispatching priority recovering described terminal is original state.
That is, base station is terminal distribution resource still according to the method for above-mentioned predistribution interface-free resources, but in order to avoid causing the waste of resource, base station also may proceed to judge, such as base station sets intervalometer, when intervalometer arrives, base station monitors is either with or without the ICMP packet receiving sequence number 0x102, if base station finds not receive, this packet is have sent in order to get rid of terminal, but in the probability of loss of eating dishes without rice or wine, when base station monitors next intervalometer arrival again, whether base station receives the ICMP packet of sequence number 0x103, and when later intervalometer arrives again, whether base station receives the ICMP packet of sequence number 0x104, if continuous three packets all do not receive, then illustrate that terminal stops sending up test packet, so base station just can stop distribution interface-free resources, and the priority of terminal is returned to original state, avoid because this Terminal Type continues to seize interface-free resources, affect base station and process normal business datum.
For the optimization method of the above-mentioned user plane time delay that describes in a systematic way, the embodiment of the present invention provides the flow chart shown in Fig. 3 further, elaborates base station and processes the process of up test packet.
Step one, the L2 layer (i.e. up RLC module) of base station is according to upstream data bag, judge whether to belong to ICMP packet, if, record No. SN (such as 0x100) of this terminal ICMP packet for the first time, data package size, receive system-frame and the subframe numbers of bag, then after base station is received again by the ICMP packet of 0x101, record System Frame Number and subframe numbers, calculate the cycle T 1 of ICMP packet, the information such as the size together with the ICMP packet obtained last time, send messages to MAC scheduler, intervalometer is set according to the cycle calculated simultaneously, intervalometer effect is for predicting the moment being successfully received ICMP packet.
Step 2, base station MAC scheduler start intervalometer, the transmission time of the ICMP packet of prediction sequence number 0x102, and determine the size of the business data packet received before the ICMP packet of 0x102 arrives, then the interface-free resources of enough sizes is distributed, by PDCCH (PhysicalDownlinkControlChannel, Physical Downlink Control Channel) carry out uplink authorization transmission to terminal, after terminal receives uplink authorization, send the ICMPPING request data package carrying 0x102 to base station side at PUSCH.
Step 3, base station L2 layer monitor in continuous 3 cycle T 1, whether receive sequence number to be 0x103, sequence number be 0x104, sequence number is the ICMP packet of 0x105, if all not receiving, then think that this terminal stops sending up test packet, by this delay testing termination instruction, the terminal iidentification together with serial number ownership sends the message stopping delay testing to the MAC scheduler of base station.
Step 4, base station MAC scheduler receive the delay testing about this terminal and stop after message, stop intervalometer, and cancel this terminal scheduling high priority, recover to original state.
On the other hand, when base station receives the PING response that core-network side sends, the downlink data packet that core-network side sends is received;If the descending test packet that described downlink data packet is PING response, then adjust the scheduling of resource priority of described descending test packet, so that described descending test packet is by priority treatment, the purpose of do so is to reduce packet in inside of base station residence time.
Because the downlink data packet that base station receives being likely to comprise business data packet and descending test packet, so base station needs to filter out descending test packet, the dispatching priority of the descending test packet screened is heightened, specifically specifically describes the processing procedure of descending test packet with following steps:
Step one, base station the L2 layer (the specifically descending PDCP module) downlink data packet according to network side, detect whether to belong to ICMP packet, if, then prove to belong to descending test packet, record No. SN (such as 0x110) of this descending test packet, data package size, receives system-frame and the subframe numbers (sfn, sf) of bag.
Step 2, base station MAC scheduler adjust the dispatching priority of descending test packet, after receiving ICMP packet, dispatching distribution downlink space interface resource gives this UE immediately, and ensures that at present frame, this packet being issued L1 issues UE eating dishes without rice or wine.
Whether step 3, base station monitors receive ICMP packet (such as 0x111,0x112,0x113) in continuous 3 cycles, if all not receiving, then it is assumed that core-network side stops sending descending test packet, stops priority adjustment.
The embodiment of the present invention is by receiving the upstream data bag that each terminal sends on the one hand, if the up test packet that described upstream data bag is PING request, it is determined that described terminal sends the cycle of up test packet;On the other hand according to the described cycle, it was predicted that receive described terminal and send the moment of follow-up up test packet;Moment according to prediction is described terminal predistribution interface-free resources, to save the time waiting distribution interface-free resources in base station after described terminal sends described follow-up up test packet.Same reason, after base station receives the descending test packet that core-network side issues, also predistribution interface-free resources processes this descending test packet in time, so, when terminal sends follow-up up-downgoing test packet, base station is not yet receiving above-mentioned up-downgoing test packet, it has been just that the up test packet being about to receive has distributed interface-free resources, thus saving terminal to send resource scheduling request to base station, then base station obtains the time of corresponding resource authorization again, therefore time delay of eating dishes without rice or wine at least can be saved about 10ms (descending about 2ms, up about 8ms) left and right time, reduce user plane time delay, improve the communication experiences effect of user.
Based on identical technology design, the embodiment of the present invention also provides for the device of a kind of optimizing user plane time delay, and this device can perform said method embodiment.The embodiment of the present invention provide device as shown in Figure 4, including: receive unit 401, determine unit 402, pretreatment unit 403, wherein:
Receive unit 401, for receiving the upstream data bag that terminal sends;
Determine unit 402, if for the up test packet that described upstream data bag is the Internet packets survey meter PING request, it is determined that described terminal sends cycle and the size of up test packet;
Pretreatment unit 403, for according to the described cycle, it was predicted that receive described terminal and send the moment of follow-up up test packet;Moment according to prediction is described terminal predistribution interface-free resources, to save the time of described terminal request distribution interface-free resources.
Further, when base station processes the downlink data packet from core net, described reception unit 401 is additionally operable to: receive the downlink data packet that core-network side sends;
Described downlink data packet is the descending test packet of PING response, and described pretreatment unit 403 is additionally operable to adjust the scheduling of resource priority of described descending test packet, so that described descending test packet is by priority treatment.
Further, described determine unit 402 specifically for: according to receive up test packet packet header in serial number, it is determined that the up test packet of at least two serial number continuous print;
The time difference of the time of reception according to the described at least two up test packet of serial number continuous print, it is determined that the cycle of described up test packet.
Further, described pretreatment unit 403, specifically for the size of the business data packet being previously received according to the moment in described prediction and the fixed size of described up test packet, was defined as the preallocated interface-free resources size of described terminal before the moment of described prediction;
Described pretreatment unit 403 is additionally operable to: adjust the dispatching priority of described terminal, so that described terminal is by priority treatment.
Further, described pretreatment unit 403 is additionally operable to: when the moment of described prediction arrives, according to whether receive the up test packet that described terminal sends, it is judged that whether delay testing terminates;
Wherein, if all not receiving, when the moment of the described prediction of N continuous arrives, the up test packet that described terminal sends, it is determined that delay testing terminates, and is recovered as the preallocated interface-free resources of described terminal, and the dispatching priority recovering described terminal is original state.
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe.It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art are once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, the present invention can be carried out various change and modification without deviating from the spirit and scope of the present invention by those skilled in the art.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.