Air interface resource scheduling method and device, computer equipment and storage medium

文档序号:516942 发布日期:2021-05-28 浏览:4次 中文

阅读说明:本技术 空口资源调度的方法、装置、计算机设备及存储介质 (Air interface resource scheduling method and device, computer equipment and storage medium ) 是由 黎中玉 潘雷 吴伟锋 于 2020-12-30 设计创作,主要内容包括:本发明涉及一种空口资源调度的方法、装置、计算机设备及存储介质,所述方法包括:接收终端发送的上行数据包、服务器发送的下行数据包;根据所述上行数据包和所述下行数据包判断所述终端与所述服务器当前的握手阶段;若判定所述终端与所述服务器当前的握手阶段为完成第二次握手,则按预设的资源大小为完成第二次握手的所述终端分配第一上行资源;若判定所述终端与所述服务器当前的握手阶段为完成TCP连接,则为完成TCP连接的所述终端分配第二上行资源。本发明通过判断出TCP握手阶段,对上行资源进行持续分配,降低了TCP连接的时延和端到端时延,提升了速率。(The invention relates to a method, a device, computer equipment and a storage medium for scheduling air interface resources, wherein the method comprises the following steps: receiving an uplink data packet sent by a terminal and a downlink data packet sent by a server; judging the current handshake stage of the terminal and the server according to the uplink data packet and the downlink data packet; if the current handshake stage of the terminal and the server is judged to be the completion of the second handshake, allocating first uplink resources for the terminal completing the second handshake according to the preset resource size; and if the current handshake stage of the terminal and the server is judged to be the completion of TCP connection, allocating a second uplink resource to the terminal which completes the TCP connection. The invention continuously distributes the uplink resources by judging the TCP handshake phase, thereby reducing the time delay of TCP connection and the end-to-end time delay and improving the speed.)

1. A method for scheduling air interface resources is characterized by comprising the following steps:

receiving an uplink data packet sent by a terminal and a downlink data packet sent by a server;

judging the current handshake stage of the terminal and the server according to the uplink data packet and the downlink data packet;

if the current handshake stage of the terminal and the server is judged to be the completion of the second handshake, allocating first uplink resources for the terminal completing the second handshake according to the preset resource size;

and if the current handshake stage of the terminal and the server is judged to be the completion of TCP connection, allocating a second uplink resource to the terminal which completes the TCP connection.

2. The method for scheduling air interface resources according to claim 1, further comprising:

determining a scheduling period interval according to the self load condition of the base station, and determining the size of uplink resources according to a preset statistical period, the self load condition of the base station and the scheduling period interval;

the allocating a second uplink resource to the terminal that completes the TCP connection includes:

and allocating a second uplink resource to the terminal completing the TCP connection according to the size of the uplink resource and the scheduling period interval.

3. The method for scheduling air interface resources according to claim 2, wherein the self load condition of the base station includes the number of the current terminals, the number of uplink timeslots in the current timeslot proportion, and the number of the terminals scheduled by each uplink timeslot;

the determining the scheduling cycle interval according to the self load condition of the base station comprises the following steps:

and determining a scheduling cycle interval according to the number of the current terminals, the number of uplink time slots in the current time slot ratio and the number of the terminals scheduled by each uplink time slot.

4. The method for scheduling air interface resources according to claim 3, wherein the determining the scheduling cycle interval according to the self-loading condition of the base station includes:

determining the scheduling period interval according to the following formula (1):

wherein, PeriodsAnd M represents the interval of a scheduling cycle, M represents the number of the current terminals, P represents the number of uplink time slots in 10ms of the current time slot ratio, and N represents the number of the terminals scheduled by each uplink time slot.

5. The air interface resource scheduling method according to any one of claims 2 to 4, wherein the self load condition of the base station includes: the size of the downlink data packet, the size of the uplink data packet and the downlink rate;

the determining the size of the uplink resource according to the preset statistical period, the self load condition of the base station and the scheduling period interval comprises the following steps:

and determining the size of the uplink resource according to the preset statistical period, the size of the downlink data packet, the size of the uplink data packet, the downlink rate and the scheduling period interval.

6. The air interface resource scheduling method according to claim 5, wherein the determining the size of the uplink resource according to a preset statistical period, a self-loading condition of the base station, and the scheduling period interval includes:

determining the uplink resource size according to the following formula (2):

wherein B represents the uplink resource size, PeriodcRepresenting a preset statistical period, S representing the transmission rate of the downlink data packet in the preset statistical period, A1Represents the average size of the downlink data packet in the preset statistical period, A2And Q represents a correction factor.

7. The method for scheduling air interface resources according to claim 1-4 or 6, wherein the uplink data packet includes a first data packet and an ACK data packet sent by the terminal;

the step of judging the current handshake stage between the terminal and the server according to the uplink data packet and the downlink data packet comprises:

checking whether the first data packet is a SYN request;

if yes, the state of the terminal is marked as the completion of the first handshake;

receiving a downlink data packet sent by a server to the terminal completing the first handshake, and checking whether the downlink data packet is SYN + ACK response;

if so, marking the state of the terminal completing the first handshake as completing the second handshake;

and receiving an ACK data packet sent by the terminal which completes the second handshake, and marking the terminal which completes the second handshake as the terminal which completes the TCP connection.

8. The method for scheduling air interface resources according to claim 7, wherein the allocating, according to the preset resource size, the first uplink resource to the terminal that completes the second handshake comprises:

and allocating first uplink resources for the uplink time slot of the terminal completing the second handshake according to the preset resource size.

9. The method for scheduling air interface resources according to claim 8, wherein after receiving the ACK packet sent by the terminal that completes the second handshake, the method further comprises:

and stopping allocating the first uplink resource to each uplink time slot of the terminal completing the TCP connection.

10. An apparatus for scheduling air interface resources, comprising:

the data receiving module is used for receiving an uplink data packet sent by the terminal and a downlink data packet sent by the server;

the connection judging module is used for judging the current handshake stage of the terminal and the server;

and the resource allocation module is used for allocating a first uplink resource for the terminal completing the second handshake according to a preset resource size when the connection judgment module judges that the current handshake stage of the terminal and the server is the second handshake, or allocating a second uplink resource for the terminal completing the TCP when the connection judgment module judges that the current handshake stage of the terminal and the server is the TCP connection.

11. The apparatus for air interface resource scheduling according to claim 10, wherein the apparatus further comprises: a scheduling cycle interval determining module, configured to determine a scheduling cycle interval according to a load condition of the base station when the connection determining module determines that the terminal completes TCP connection;

the resource size determining module is used for determining the size of the uplink resource according to a preset statistical period, the self load condition of the base station and the scheduling period interval;

the resource allocation module allocates a second uplink resource to the terminal that completes the TCP, including: and allocating uplink resources to the terminal completing the TCP connection according to the size of the uplink resources and the scheduling period interval.

12. The air interface resource scheduling device according to any one of claims 9 or 10, wherein the uplink data packet includes a first data packet and an ACK data packet sent by the terminal;

the connection judging module is further configured to check whether the first data packet received by the data receiving module is a SYN request;

the device further comprises:

a state marking module, configured to mark the state of the terminal as completion of a first handshake when the connection determining module detects that the first data packet is a SYN request;

the connection judging module is also used for checking whether a downlink data packet sent by the server to the terminal completing the first handshake is a SYN + ACK response;

the state marking module is further configured to mark the state of the terminal that completes the first handshake as completing the second handshake when the connection determination module detects that the downlink data packet is a SYN + ACK response; and when the data receiving module receives an ACK data packet sent by the terminal which completes the second handshake, the terminal which completes the second handshake is marked as completing TCP connection.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the method for air interface resource scheduling according to any one of claims 1 to 9 when executing the computer program.

14. A computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method for air interface resource scheduling according to any of claims 1-9.

Technical Field

The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for scheduling air interface resources, a computer device, and a storage medium.

Background

The transmission Control/Internet Protocol (TCP/IP) reference model is an abstract layered model in which all TCP/IP-based network protocols are categorized into 4 abstract "layers". Each layer is built on the services provided by the first layer, providing services to the higher layers. As shown in FIG. 1, the TCP protocol resides at the transport layer of the TCP/IP reference model.

Both communication parties using TCP for data communication need to establish TCP connection before service data transmission, specifically, the process of establishing TCP connection includes 3 times of message interaction, as shown in fig. 2, including the following steps:

step 1: a user terminal sends a Synchronization (SYN) message to a server;

step 2: the server responds to the SYN + ACK message to the user terminal;

and step 3: the user terminal responds to the server with an Acknowledgement (ACK) message;

the three-time message interaction is three-time handshake of TCP connection, after the handshake is successful, the base station is used as an intermediate network element of the user terminal and the server, corresponding connection resources are distributed for the user terminal, and the user terminal and the server can start service data transmission.

Compared with a 4G network, the requirement of a 5G network for delay and throughput is higher, and for the low-delay and high-throughput characteristics of the 5G network, the prior art discloses a scheduling method for evolving to a 5G low-delay, including: receiving newly transmitted data at a current subframe, generating a pre-scheduling user queue, and synchronously receiving retransmission service and/or emergency service data; adjusting pre-scheduling users in the scheduling queue, and inserting emergency service users and retransmission service users into the pre-scheduling user queue; multiplexing and packaging the sending user, and sending the multiplexing and packaging to a baseband; and returning the user queue of the unsuccessfully transmitted retransmission failure user/new data, wherein the user of unsuccessfully transmitted emergency service generates a preemption queue return. Or the congestion data is judged according to the priority, so that the low-delay high-throughput characteristic of a 5G network is met, for example, a congestion data priority judging method for a 4G/5G high-speed network is disclosed, an upper computer obtains the maximum transmission efficiency and the packet header delay according to a Channel Quality Indicator (CQI) fed back by user equipment, and a weighting coefficient is obtained through calculation; setting the queue length and the window size of a Transmission Control Protocol (TCP) according to 4G/5G network transmission; the upper computer obtains the current transmission rate through the feedback data of the user equipment; obtaining throughput according to the window size of the TCP; establishing a scheduling model according to the length queue, the current transmission rate and the throughput of the TCP; and calculating the priority weight according to the scheduling model and the weighting coefficient, and judging the priority according to the priority weight, wherein the user with high priority weight has high priority, and the user with high priority preferentially distributes resource blocks.

However, in the present day of the rapid development of the mobile internet, a large number of connections are based on the TCP, the handshake delay of the TCP connection will result in the increase of the delay of the 5G network, and how to increase the transmission rate of the TCP connection and reduce the link delay becomes a difficulty.

Disclosure of Invention

The present invention aims to provide a method, an apparatus, a computer device, and a storage medium for air interface resource scheduling, which are directed to at least one of the disadvantages (shortcomings) in the prior art, so as to reduce the time delay and end-to-end time delay of TCP connection and improve the rate.

In one aspect, a method for scheduling air interface resources is provided, including:

receiving an uplink data packet sent by a terminal and a downlink data packet sent by a server;

judging the current handshake stage of the terminal and the server according to the uplink data packet and the downlink data packet;

if the current handshake stage of the terminal and the server is judged to be the completion of the second handshake, allocating first uplink resources for the terminal completing the second handshake according to the preset resource size;

and if the current handshake stage of the terminal and the server is judged to be the completion of TCP connection, allocating a second uplink resource to the terminal which completes the TCP connection.

The current handshake stage of the terminal and the server is judged according to the received uplink data packet and the received downlink data packet, and the first uplink resource is distributed to the terminal which completes the second handshake according to the preset resource size, so that the time delay introduced by the SR reporting in the third step of the handshake stage is reduced, namely the time delay of TCP connection is reduced, and the connection establishment of TCP is accelerated; by distributing the second uplink resource to the terminal completing the TCP connection, the time delay introduced by the SR and BSR mechanisms is reduced, so that the end-to-end time delay of the TCP connection is reduced, the rate is improved, and the throughput effect is improved.

Further, the method further comprises:

determining a scheduling period interval according to the self load condition of the base station, and determining the size of uplink resources according to a preset statistical period, the self load condition of the base station and the scheduling period interval;

the allocating a second uplink resource to the terminal that completes the TCP connection includes:

and allocating a second uplink resource to the terminal completing the TCP connection according to the size of the uplink resource and the scheduling period interval.

The scheduling period interval is determined according to the self load condition of the base station, the uplink resource size is determined according to the preset statistical period, the self load condition of the base station and the scheduling period interval, the uplink resource is distributed, and the time delay introduced by an SR mechanism and a BSR mechanism is reduced, so that the end-to-end time delay of TCP connection is reduced, the speed is increased, and the throughput effect is improved.

Further, the self load condition of the base station includes the number of the current terminals, the number of uplink time slots in the current time slot ratio and the number of the terminals scheduled by each uplink time slot;

the determining the scheduling cycle interval according to the self load condition of the base station comprises the following steps:

and determining a scheduling cycle interval according to the number of the current terminals, the number of uplink time slots in the current time slot ratio and the number of the terminals scheduled by each uplink time slot.

The scheduling cycle interval is determined according to the number of the terminals currently accessed by the base station, the number of the uplink time slots in the current time slot ratio and the number of the terminals scheduled by each uplink time slot, so that the uplink resources are continuously allocated to the terminals according to the determined scheduling cycle interval, and the uplink resources are more reasonably allocated.

Further, the determining the scheduling cycle interval according to the self-load condition of the base station includes:

determining the scheduling period interval according to the following formula (1):

wherein, PeriodsAnd the scheduling period interval is represented, M represents the number of the current terminals, P represents the number of uplink time slots in 10ms of the current time slot ratio, and N represents the number of the terminals scheduled by each uplink time slot.

The scheduling cycle interval is determined according to the number of the terminals currently accessed by the base station, the number of the uplink time slots in the current time slot ratio and the number of the terminals scheduled by each uplink time slot, so that the uplink resources are continuously allocated to the terminals according to the determined scheduling cycle interval, and the uplink resources are more reasonably allocated.

Further, the base station self-loading condition includes: the size of the downlink data packet, the size of the uplink data packet and the downlink rate;

the determining the size of the uplink resource according to the preset statistical period, the self load condition of the base station and the scheduling period interval comprises the following steps:

and determining the size of the uplink resource according to the preset statistical period, the size of the downlink data packet, the size of the uplink data packet, the downlink rate and the scheduling period interval.

The uplink resource size is determined according to the transmission rate of the downlink data packet, the preset statistical period, the size of the downlink data packet, the size of the uplink data packet and the scheduling period interval in the communication service process of the terminal and the server, so that more accurate uplink resource size can be obtained, the uplink resource allocation is more reasonable, and the end-to-end time delay of TCP connection is reduced.

Further, the determining the size of the uplink resource according to the preset statistical period, the self-load condition of the base station and the scheduling period interval includes:

determining the uplink resource size according to the following formula (2):

wherein B represents the uplink resource size, PerIodcRepresenting a preset statistical period, S representing the transmission rate of the downlink data packet in the preset statistical period, A1Represents the average size of the downlink data packet in the preset statistical period, A2And Q represents a correction factor.

The uplink resource size is determined according to the transmission rate of the downlink data packet, the preset statistical period, the size of the downlink data packet, the size of the uplink data packet and the scheduling period interval in the communication service process of the terminal and the server, so that more accurate uplink resource size can be obtained, the uplink resource allocation is more reasonable, and the end-to-end time delay of TCP connection is effectively reduced.

Further, the uplink data packet includes a first data packet and an ACK data packet sent by the terminal;

the step of judging the current handshake stage between the terminal and the server according to the uplink data packet and the downlink data packet comprises:

checking whether the first data packet is a SYN request;

if yes, the state of the terminal is marked as the completion of the first handshake;

receiving a downlink data packet sent by a server to the terminal completing the first handshake, and checking whether the downlink data packet is SYN + ACK response;

if so, marking the state of the terminal completing the first handshake as completing the second handshake;

and receiving an ACK data packet sent by the terminal which completes the second handshake, and marking the terminal which completes the second handshake as the terminal which completes the TCP connection.

The handshake stages of the terminal and the server are judged by checking the uplink data packet and the downlink data packet, and each handshake stage is marked, so that different uplink resources can be accurately allocated according to different handshake stages.

Further, the allocating, according to the preset resource size, the first uplink resource for the terminal that completes the second handshake includes:

and allocating first uplink resources for the uplink time slot of the terminal completing the second handshake according to the preset resource size.

The first uplink resource is allocated to the uplink time slot of the terminal completing the second handshake according to the preset resource size, so that the time delay introduced by the SR reporting in the third step of the handshake phase is reduced, namely the time delay of TCP connection is reduced, and the connection establishment of TCP is accelerated.

Further, after receiving the ACK packet sent by the terminal that completes the second handshake, the method further includes:

and stopping allocating the first uplink resource to each uplink time slot of the terminal completing the TCP connection.

By stopping the allocation of uplink resources to each uplink timeslot of the terminal that completes the TCP connection, uplink resources can be saved.

In another aspect, an apparatus for scheduling air interface resources is provided, including:

the data receiving module is used for receiving an uplink data packet sent by the terminal and a downlink data packet sent by the server;

the connection judging module is used for judging the current handshake stage of the terminal and the server;

and the resource allocation module is used for allocating a first uplink resource for the terminal completing the second handshake according to a preset resource size when the connection judgment module judges that the current handshake stage of the terminal and the server is the second handshake, or allocating a second uplink resource for the terminal completing the TCP when the connection judgment module judges that the current handshake stage of the terminal and the server is the TCP connection.

The connection judging module judges the current handshake stage of the terminal and the server according to the uplink data packet and the downlink data packet received by the data receiving module, and the resource allocation module allocates the first uplink resource to the terminal which completes the second handshake according to the preset resource size, so that the time delay introduced by the report of the SR in the third step of the handshake stage is reduced, namely the time delay of TCP connection is reduced, and the connection establishment of TCP is accelerated; the second uplink resource is distributed to the terminal completing the TCP connection through the resource distribution module, and time delay introduced by an SR mechanism and a BSR mechanism is reduced, so that end-to-end time delay of the TCP connection is reduced, the rate is improved, and the throughput effect is improved.

Further, the apparatus further comprises: a scheduling cycle interval determining module, configured to determine a scheduling cycle interval according to a load condition of the base station when the connection determining module determines that the terminal completes TCP connection;

the resource size determining module is used for determining the size of the uplink resource according to a preset statistical period, the self load condition of the base station and the scheduling period interval;

the resource allocation module allocates a second uplink resource to the terminal that completes the TCP, including: and allocating uplink resources to the terminal completing the TCP connection according to the size of the uplink resources and the scheduling period interval.

The scheduling period interval is determined by the scheduling period interval determining module according to the self load condition of the base station, the uplink resource size is determined by the resource size determining module according to the preset statistical period, the self load condition of the base station and the scheduling period interval, and the uplink resource is allocated by the resource allocating module, so that the time delay introduced by an SR (scheduling request) mechanism and a BSR (buffer status report) mechanism is reduced, the end-to-end time delay of TCP (transmission control protocol) connection is reduced, the rate is increased, and the throughput effect is improved.

Further, the uplink data packet includes a first data packet and an ACK data packet sent by the terminal;

the connection judging module is further configured to check whether the first data packet received by the data receiving module is a SYN request;

the device further comprises:

a state marking module, configured to mark the state of the terminal as completion of a first handshake when the connection determining module detects that the first data packet is a SYN request;

the connection judging module is also used for checking whether a downlink data packet sent by the server to the terminal completing the first handshake is a SYN + ACK response;

the state marking module is further configured to mark the state of the terminal that completes the first handshake as completing the second handshake when the connection determination module detects that the downlink data packet is a SYN + ACK response; and when the data receiving module receives an ACK data packet sent by the terminal which completes the second handshake, the terminal which completes the second handshake is marked as completing TCP connection.

The handshake stages of the terminal and the server are judged by checking the uplink data packet and the downlink data packet through the connection judgment module, and each handshake stage is marked by the state marking module, so that different uplink resources can be accurately allocated according to different handshake stages.

In one aspect, a computer device is provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method for scheduling air interface resources as described above when executing the computer program.

In one aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for air interface resource scheduling described above.

Compared with the prior art, the invention has the beneficial effects that:

according to the method, the current handshake stage of the terminal and the server is judged according to the received uplink data packet and the received downlink data packet, and the uplink resources are distributed to the terminal which completes the second handshake according to the preset resource size, so that the time delay introduced by the SR reporting in the third step of the handshake stage is reduced, namely the time delay of TCP connection is reduced, and the connection establishment of TCP is accelerated; by allocating uplink resources again to the terminal completing the TCP connection, the time delay introduced by the SR and BSR mechanisms is reduced, so that the end-to-end time delay of the TCP connection is reduced, the rate is improved, and the throughput effect is improved.

Drawings

FIG. 1 is a diagram of an abstract layered model of a prior art TCP/IP reference model;

FIG. 2 is a schematic diagram of interaction including 3 messages in a TCP connection process in the prior art;

fig. 3 is a schematic flow chart of a method for scheduling air interface resources according to an embodiment of the present invention;

fig. 4 is a schematic flow chart of a method for scheduling air interface resources according to an embodiment of the present invention;

fig. 5 is a schematic structural diagram of the apparatus for scheduling air interface resources according to an embodiment of the present invention.

Detailed Description

The drawings are only for purposes of illustration and are not to be construed as limiting the invention. For a better understanding of the following embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.

The embodiment of the application provides a method, a device, a computer device and a storage medium for air interface resource scheduling, and aims to solve the problems that in the prior art, a TCP connection handshake stage generated in the process of establishing a TCP connection between a terminal and a server reports a time delay introduced by an SR and the TCP connection end-to-end time delay.

The technical solution of the present invention is further described below with reference to the accompanying drawings and examples.

In an embodiment, a method for scheduling air interface resources is provided, and in this embodiment, a base station is taken as an execution subject for description, and as shown in fig. 3, a flowchart of the method for scheduling air interface resources according to this embodiment is provided, where the method includes:

receiving an uplink data packet sent by a terminal and a downlink data packet sent by a server;

judging the current handshake stage of the terminal and the server according to the uplink data packet and the downlink data packet;

if the current handshake stage of the terminal and the server is judged to be the completion of the second handshake, allocating first uplink resources for the terminal completing the second handshake according to the preset resource size;

and if the current handshake stage of the terminal and the server is judged to be the completion of TCP connection, allocating a second uplink resource to the terminal which completes the TCP connection.

Specifically, the method can be applied to, for example, a 4G communication system, a 5G communication system, and other such communication systems; the first device of the execution main body can be a base station, such as an eNB, a gNB and the like; the terminal is alternatively referred to as user equipment, and may be, but is not limited to, various mobile phones, smart terminals, multimedia devices, streaming media devices, and the like; when a terminal and a server need to establish TCP/IP connection, the terminal and the server communicate by mutually sending data packets carrying handshake signals so as to establish the TCP/IP connection; the method comprises the steps that a terminal sends an uplink data packet to a server through a base station, the uplink data packet comprises connection request information and connection confirmation information such as SYN request and ACK response, after the server receives the uplink data packet of the terminal, a downlink data packet is replied to the terminal through the base station, and the downlink data packet comprises reply confirmation information of the request information of the server to the terminal, such as SYN + ACK response; the base station judges the current handshake stage of the terminal and the server according to the received uplink data packet and the downlink data packet, if the uplink data packet comprises connection request information, the base station can judge that the current handshake stage of the terminal and the server is the first handshake, if the downlink data packet comprises reply confirmation information, the base station can judge that the current handshake stage of the terminal and the server is the second handshake, and if the uplink data packet comprises connection confirmation information, the base station can judge that the current handshake stage of the terminal and the server is the third handshake, namely TCP connection is completed.

When uplink data needs to be transmitted by the terminal, the terminal needs to Request allocation of uplink resources to the base station when the terminal and the server complete the second handshake, that is, an uplink Scheduling Request (SR) and a brs (buffer Status report) are reported to the base station, however, a time delay is introduced by the SR and BSR mechanisms, and thus the efficiency of TCP connection is reduced. Therefore, in order to reduce the time delay introduced by the report of SR in the third step of the TCP connection handshake phase, when the base station determines that the current handshake phase between the terminal and the server is the second handshake, the base station allocates a first uplink resource to the terminal that completes the second handshake according to a preset resource size, specifically, the preset resource size may be, but is not limited to, 10bytes or 15 bytes; in order to reduce the end-to-end time delay of TCP connection, the base station determines that the TCP connection is completed in the current handshake stage of the terminal and the server when the third handshake is completed, and second uplink resources are distributed to the terminal which completes the TCP connection.

In one embodiment, the method further comprises:

determining a scheduling period interval according to the self load condition of the base station, and determining the size of uplink resources according to a preset statistical period, the self load condition of the base station and the scheduling period interval;

the allocating a second uplink resource to the terminal that completes the TCP connection includes:

and allocating a second uplink resource to the terminal completing the TCP connection according to the size of the uplink resource and the scheduling period interval.

Specifically, the preset statistical period may be, but is not limited to, 1000 ms.

In one embodiment, the self load condition of the base station includes the number of the current terminals, the number of uplink timeslots in the current timeslot proportion, and the number of the terminals scheduled by each uplink timeslot;

the determining the scheduling cycle interval according to the self load condition of the base station comprises the following steps:

and determining a scheduling cycle interval according to the number of the current terminals, the number of uplink time slots in the current time slot ratio and the number of the terminals scheduled by each uplink time slot.

Specifically, the scheduling cycle interval is calculated according to the number of terminals currently accessed by the base station, the number of uplink time slots in the current time slot ratio, and the number of terminals scheduled by each uplink time slot according to the following formula (1):

wherein, PeriodsAnd the scheduling period interval is represented, M represents the number of the current terminals, P represents the number of uplink time slots in 10ms of the current time slot ratio, and N represents the number of the terminals scheduled by each uplink time slot.

The scheduling cycle interval is determined according to the number of the terminals currently accessed by the base station, the number of the uplink time slots in the current time slot ratio and the number of the terminals scheduled by each uplink time slot, so that the uplink resources are continuously allocated to the terminals according to the determined scheduling cycle interval, and the uplink resources are more reasonably allocated.

The specific implementation process may be that, when the base station determines that the current handshake stage between the terminal and the server is to complete TCP connection, the scheduling period interval is calculated according to the formula (1) according to the number of terminals currently accessed by the base station, the number of uplink timeslots in 10ms of the current timeslot proportion, and the number of terminals scheduled by each uplink timeslot.

In one embodiment, the base station self-loading condition includes: the size of the downlink data packet, the size of the uplink data packet and the downlink rate;

the determining the size of the uplink resource according to the preset statistical period, the self load condition of the base station and the scheduling period interval comprises the following steps:

and determining the size of the uplink resource according to the preset statistical period, the size of the downlink data packet, the size of the uplink data packet, the downlink rate and the scheduling period interval.

Specifically, the preset statistical period may be, but is not limited to, 1000ms, and in the preset statistical period, the uplink resource size is calculated according to the transmission rate of the downlink data packet, the average size of the downlink data packet in the preset statistical period, the average size of the uplink data packet, and the correction factor in the following formula (2):

wherein B represents the uplink resource size, PeriodcRepresenting a preset statistical period, S representing the transmission rate of the downlink data packet in the preset statistical period, A1Represents the average size of the downlink data packet in the preset statistical period, A2And Q represents a correction factor.

Specifically, the correction factor Q may be set by itself, or may be determined according to how many downlink data packets are averagely acknowledged by one ACK data packet sent by the terminal.

The specific implementation process may be that, when the base station determines that the current handshake stage of the terminal and the server is to complete TCP connection, the base station counts the received uplink data packets within 1000ms according to a preset counting period of 1000ms and calculates the average size a of the uplink data packets1Counting the received downlink data packets within 1000ms and calculating the average size A thereof2And calculating the transmission rate S of the downlink data packets within 1000ms, determining a correction factor Q according to the average number of downlink data packets confirmed by one ACK data packet within the statistical period of 1000ms, and finally calculating according to a formula (2) to obtain the size of the uplink resource.

The scheduling period interval is determined according to the self load condition of the base station, the uplink resource size is determined according to the preset statistical period, the self load condition of the base station and the scheduling period interval, the uplink resource is distributed, and the time delay introduced by an SR mechanism and a BSR mechanism is reduced, so that the end-to-end time delay of TCP connection is reduced, the speed is increased, and the throughput effect is improved.

In one embodiment, the uplink data packet includes a first data packet and an ACK data packet sent by the terminal;

the step of judging the current handshake stage between the terminal and the server according to the uplink data packet and the downlink data packet comprises:

checking whether the first data packet is a SYN request;

if yes, the state of the terminal is marked as the completion of the first handshake;

receiving a downlink data packet sent by a server to the terminal completing the first handshake, and checking whether the downlink data packet is SYN + ACK response;

if so, marking the state of the terminal completing the first handshake as completing the second handshake;

and receiving an ACK data packet sent by the terminal which completes the second handshake, and marking the terminal which completes the second handshake as the terminal which completes the TCP connection.

Specifically, a base station receives a first uplink data packet sent by a terminal in an uplink manner, and checks whether a TCP layer field of the first uplink data packet is a SYN (seq ═ j) request of TCP, if it is checked that the TCP layer field of the first uplink data packet is the SYN (seq ═ j) request of TCP, the state of the terminal is marked as X, where X represents that the terminal completes a first handshake; a downlink receiving server of a base station sends a downlink data packet to a terminal marked as X, checks whether a TCP layer field of the downlink data packet is a SYN + ACK (seq ═ k, ACK ═ j +1) response of TCP, and if so, marks the state of the terminal finishing the first handshake as Y, wherein Y represents that the second handshake is finished; and the base station receives an ACK (ACK + k +1) data packet sent by the terminal which completes the second handshake in an uplink manner, and marks the state of the terminal which completes the second handshake as Z, wherein Z represents that the TCP connection is completed.

The handshake stages of the terminal and the server are judged by checking the uplink data packet and the downlink data packet, and each handshake stage is marked, so that different uplink resources can be accurately allocated according to different handshake stages.

In an embodiment, the allocating, according to the preset resource size, a first uplink resource to the terminal that completes the second handshake includes:

and allocating first uplink resources for the uplink time slot of the terminal completing the second handshake according to the preset resource size.

Specifically, the preset resource size may be, but is not limited to, 10bytes, and in a specific implementation process, the base station allocates 10bytes of uplink resources to the uplink timeslot of the terminal that completes the second handshake.

In one embodiment, after receiving the ACK packet sent by the terminal that completes the second handshake, the method further includes:

and stopping allocating the first uplink resource to each uplink time slot of the terminal completing the TCP connection.

By stopping the allocation of uplink resources to each uplink timeslot of the terminal that completes the TCP connection, uplink resources can be saved.

In a specific implementation process, as shown in fig. 4, a flowchart of the method for scheduling air interface resources according to this embodiment is shown, where the method includes the following steps:

s100, receiving a first uplink data packet sent by a terminal;

s101, checking whether a TCP layer field of the first uplink data packet is a SYN request;

s102, if yes, marking the terminal to complete the first handshake;

s200, receiving a downlink data packet sent by a server;

s201, checking whether a TCP layer field of the downlink data packet is SYN + ACK response;

s202, if yes, the terminal which completes the first handshake is marked as completing the second handshake;

s300, distributing first uplink resources for the terminal completing the second handshake according to the preset resource size;

s400, receiving an ACK data packet sent by the terminal which completes the second handshake;

s401, marking the terminal completing the second handshake as completing TCP connection;

s402, determining a scheduling period interval according to the self load condition of the base station, and determining the size of uplink resources according to a preset statistical period, the self load condition of the base station and the scheduling period interval;

s500, distributing a second uplink resource for the terminal completing the TCP connection according to the determined uplink resource size.

In another embodiment, based on the same inventive concept, an apparatus for scheduling air interface resources is provided, as shown in fig. 5, which is a block diagram of the apparatus, and the apparatus includes:

a data receiving module 100, configured to receive an uplink data packet sent by a terminal and a downlink data packet sent by a server;

a connection determining module 200, configured to determine a current handshake stage between the terminal and the server;

a resource allocation module 300, configured to allocate, according to a preset resource size, a first uplink resource for the terminal that completes the second handshake when the connection determination module 200 determines that the current handshake phase between the terminal and the server is the second handshake, or allocate, when the connection determination module 200 determines that the current handshake phase between the terminal and the server is the TCP connection, a second uplink resource for the terminal that completes the TCP.

In particular, the device can be applied to 4G communication systems, 5G communication systems and other communication systems; the device can be arranged in a base station, such as eNB, gNB and the like; the terminal is alternatively referred to as user equipment, and may be, but is not limited to, various mobile phones, smart terminals, multimedia devices, streaming media devices, and the like; when a terminal and a server need to establish TCP/IP connection, the terminal and the server communicate by mutually sending data packets carrying handshake signals so as to establish the TCP/IP connection; the method comprises the steps that a terminal sends an uplink data packet to a server through a base station, the uplink data packet comprises connection request information and connection confirmation information such as SYN request and ACK response, after the server receives the uplink data packet of the terminal, a downlink data packet is replied to the terminal through the base station, and the downlink data packet comprises reply confirmation information of the request information of the server to the terminal, such as SYN + ACK response; the data receiving module 100 determines a current handshake stage of the terminal and the server by the connection determining module 200 according to the received uplink data packet and the downlink data packet, for example, when the uplink data packet includes the connection request information, the connection determining module 200 may determine that the current handshake stage of the terminal and the server is a first handshake, when the downlink data packet includes the reply confirmation information, the connection determining module 200 may determine that the current handshake stage of the terminal and the server is a second handshake, and when the uplink data packet includes the connection confirmation information, the connection determining module 200 may determine that the current handshake stage of the terminal and the server is a third handshake, that is, the TCP connection is completed.

When uplink data needs to be transmitted by the terminal, the terminal needs to Request allocation of uplink resources to the base station when the terminal and the server complete the second handshake, that is, an uplink Scheduling Request (SR) and a brs (buffer Status report) are reported to the base station, however, a time delay is introduced by the SR and BSR mechanisms, and thus the efficiency of TCP connection is reduced. Therefore, in order to reduce the time delay introduced by reporting the SR in the third step of the TCP connection handshake stage, when the connection determining module 200 determines that the current handshake stage of the terminal and the server is the second handshake, the resource allocating module 300 allocates the first uplink resource to the terminal that completes the second handshake according to the preset resource size, specifically, the preset resource size may be, but is not limited to, 10bytes or 15 bytes; in order to reduce the end-to-end time delay of the TCP connection, the resource allocation module 300 allocates the second uplink resource to the terminal that completes the TCP connection when the connection determination module 200 determines that the current handshake phase between the terminal and the server is the third handshake.

In one embodiment, the apparatus further comprises: a scheduling cycle interval determining module, configured to determine a scheduling cycle interval according to a load condition of the base station when the connection determining module 200 determines that the terminal completes TCP connection;

the resource size determining module is used for determining the size of the uplink resource according to a preset statistical period, the self load condition of the base station and the scheduling period interval;

the resource allocation module 300 allocates a second uplink resource to the terminal that completes TCP, including: and allocating uplink resources to the terminal completing the TCP connection according to the size of the uplink resources and the scheduling period interval.

Specifically, the load condition of the base station itself includes the number of the current terminals, the number of uplink timeslots in the current timeslot proportion, and the number of the terminals scheduled by each uplink timeslot;

the scheduling cycle interval determining module determines the scheduling cycle interval according to the self load condition of the base station, and comprises the following steps:

the scheduling cycle interval determining module calculates the scheduling cycle interval according to the number of the current terminals, the number of uplink time slots in the current time slot ratio and the number of the terminals scheduled by each uplink time slot according to the following formula (1):

wherein, PeriodsAnd the scheduling period interval is represented, M represents the number of the current terminals, P represents the number of uplink time slots in 10ms of the current time slot ratio, and N represents the number of the terminals scheduled by each uplink time slot.

Specifically, the self-loading condition of the base station includes: the size of the downlink data packet, the size of the uplink data packet and the downlink rate;

the resource size determining module determines the uplink resource size according to a preset statistical period, the self load condition of the base station and the scheduling period interval, and comprises the following steps:

the resource size determining module calculates the size of the uplink resource according to the preset statistical period, the size of the downlink data packet, the size of the uplink data packet, the downlink rate and the scheduling period interval according to the following formula (2):

wherein B represents the uplink resource size, PerIodcRepresenting a preset statistical period, S representing the transmission rate of the downlink data packet in the preset statistical period, A1Represents the average size of the downlink data packet in the preset statistical period, A2And Q represents a correction factor.

Specifically, the correction factor Q may be set by itself, or may be determined according to how many downlink data packets are averagely acknowledged by one ACK data packet sent by the terminal.

The specific implementation process may be that, when the connection determining module 200 determines that the current handshake phase between the terminal and the server is TCP connection, the scheduling period interval determining module calculates the scheduling period interval according to the number of terminals currently accessed by the base station, the number of uplink time slots in 10ms of the current time slot ratio, and the number of terminals scheduled by each uplink time slot according to formula (1); the resource size determining module counts the received uplink data packets within 1000ms according to a preset counting period of 1000ms and calculates the average size A of the uplink data packets1Counting the received downlink data packets within 1000ms and calculating the average size A thereof2And calculating the transmission rate S of the downlink data packets within 1000ms, determining a correction factor Q according to the average number of downlink data packets confirmed by one ACK data packet within the statistical period of 1000ms, and finally calculating according to a formula (2) to obtain the size of the uplink resource.

The scheduling period interval is determined by the scheduling period interval determining module according to the self load condition of the base station, the uplink resource size is determined by the resource size determining module according to the preset statistical period, the self load condition of the base station and the scheduling period interval, and the uplink resource is allocated by the resource allocating module 300, so that the time delay introduced by an SR (scheduling request) mechanism and a BSR (buffer status report) mechanism is reduced, the end-to-end time delay of TCP (transmission control protocol) connection is reduced, the rate is increased, and the throughput effect is improved.

In one embodiment, the uplink data packet includes a first data packet and an ACK data packet sent by the terminal;

the connection determining module 200 is further configured to check whether the first data packet received by the data receiving module 100 is a SYN request;

the device further comprises:

a state marking module, configured to mark the state of the terminal as completion of a first handshake when the connection determining module 200 checks that the first data packet is a SYN request;

the connection determining module 200 is further configured to check whether a downlink data packet sent by the server to the terminal that completes the first handshake is a SYN + ACK response;

the state marking module is further configured to mark the state of the terminal that completes the first handshake as completing the second handshake when the connection determining module 200 checks that the downlink data packet is a SYN + ACK response; when the data receiving module 100 receives an ACK packet sent by the terminal that completes the second handshake, the terminal that completes the second handshake is marked as completing TCP connection.

Specifically, the data receiving module 100 receives a first uplink data packet sent by a terminal, and the connection determining module 200 checks whether a TCP layer field of the first uplink data packet is a SYN (seq ═ j) request of TCP, and if the connection determining module 200 checks that the TCP layer field of the first uplink data packet is a SYN (seq ═ j) request of TCP, the state marking module marks the state of the terminal as X, where X indicates that the terminal completes a first handshake; when the data receiving module 100 receives a downlink data packet sent by the server to the terminal marked with X, the connection determining module 200 checks whether a TCP layer field of the downlink data packet is a SYN + ACK (seq ═ k, ACK ═ j +1) response of TCP, and if so, the state marking module marks the state of the terminal completing the first handshake as Y, where Y indicates that the second handshake is completed; when the data receiving module 100 receives an ACK (ACK + k +1) packet sent by the terminal that completes the second handshake, the status marking module marks the status of the terminal that completes the second handshake as Z, where Z represents that the TCP connection is completed.

The handshake stages of the terminal and the server are judged by checking the uplink data packet and the downlink data packet, and each handshake stage is marked, so that different uplink resources can be accurately allocated according to different handshake stages.

In an embodiment, the allocating, by the resource allocation module 300, the first uplink resource for the terminal that completes the second handshake according to the preset resource size includes:

the resource allocation module 300 allocates a first uplink resource for the uplink timeslot of the terminal that completes the second handshake according to a preset resource size.

Specifically, the preset resource size may be, but is not limited to, 10bytes, and in a specific implementation process, the base station allocates 10bytes of uplink resources to the uplink timeslot of the terminal that completes the second handshake.

In an embodiment, the resource allocation module 300 is further configured to stop allocating the first uplink resource to each uplink timeslot of the terminal that completes the TCP connection after receiving the ACK packet sent by the terminal that completes the second handshake.

The resource allocation module 300 stops allocating uplink resources to each uplink timeslot of the terminal that completes the TCP connection, so that uplink resources can be saved.

In another embodiment, based on the same inventive concept, a computer device is provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method for air interface resource scheduling as described above when executing the computer program. Based on the same reason, the time delay introduced by the SR reporting in the third step of the handshake phase can be reduced, namely, the time delay of the TCP connection is reduced, and the connection establishment of the TCP is accelerated; and the time delay introduced by the SR mechanism and the BSR mechanism can be reduced, so that the end-to-end time delay of the TCP connection is reduced, the rate is improved, and the throughput effect is improved.

In another embodiment, based on the same inventive concept, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for air interface resource scheduling as described above. Based on the same reason, the time delay introduced by the SR reporting in the third step of the handshake phase can be reduced, namely, the time delay of the TCP connection is reduced, and the connection establishment of the TCP is accelerated; and the time delay introduced by the SR mechanism and the BSR mechanism can be reduced, so that the end-to-end time delay of the TCP connection is reduced, the rate is improved, and the throughput effect is improved.

It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the technical solutions of the present invention, and are not intended to limit the specific embodiments of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention claims should be included in the protection scope of the present invention claims.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种数据处理方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!