CN110912831B - TCP transmission method, device and storage medium - Google Patents

TCP transmission method, device and storage medium Download PDF

Info

Publication number
CN110912831B
CN110912831B CN201811084033.3A CN201811084033A CN110912831B CN 110912831 B CN110912831 B CN 110912831B CN 201811084033 A CN201811084033 A CN 201811084033A CN 110912831 B CN110912831 B CN 110912831B
Authority
CN
China
Prior art keywords
tcp
base station
sending
message
cwnd
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811084033.3A
Other languages
Chinese (zh)
Other versions
CN110912831A (en
Inventor
卢学锋
曾玲玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201811084033.3A priority Critical patent/CN110912831B/en
Publication of CN110912831A publication Critical patent/CN110912831A/en
Application granted granted Critical
Publication of CN110912831B publication Critical patent/CN110912831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/19Flow control; Congestion control at layers above the network layer
    • H04L47/193Flow control; Congestion control at layers above the network layer at the transport layer, e.g. TCP related
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/27Evaluation or update of window size, e.g. using information derived from acknowledged [ACK] packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0289Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/06Transport layer protocols, e.g. TCP [Transport Control Protocol] over wireless

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a TCP transmission method which is applied to a mobile edge computing device (MEC), and the method comprises the following steps: acquiring wireless network sending capacity information sent by a wireless base station, and determining a congestion window value Cwnd based on the wireless network sending capacity information; receiving a TCP message sent by a TCP server through a wired network; and sending the TCP message to the wireless base station according to the Cwnd. The TCP transmission method provided by the embodiment of the invention can adjust the value Cwnd of the congestion window based on the wireless network knowledge by acquiring the wireless network knowledge of the wireless base station and send the TCP message to the wireless base station based on the Cwnd, thereby utilizing the air interface capability to the maximum extent and being capable of sending the TCP message efficiently and quickly.

Description

TCP transmission method, device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a TCP transmission method, a mobile edge computing device, and a computer-readable storage medium.
Background
At present, wireless network communication is rapidly developing, mobile internet is ubiquitous, communication services such as mobile shopping, chatting, video on demand and live broadcasting are more and more commonly served for people's life, and TCP optimization for wireless network communication is more and more important.
The TCP protocol is designed for a wired network, and several key parameters of the TCP control algorithm are: receiving a window Rwnd value used for marking the maximum data which can be stored by a communication main body; the congestion window Cwnd value is used for indicating that the sender can maximally allow the transmitted unacknowledged data before being acknowledged by the receiver; the slow start threshold Ssthresh is used to describe: if Cwnd > Ssthresh indicates that the system is in a slow start stage, the Cwnd value is increased in index; if Cwnd < Ssthresh indicates a congestion avoidance phase, the Cwnd value increases linearly. Referring to fig. 1, the currently commonly used TCP control algorithm includes the following three states: a slow start state, wherein the initial Cwnd =1, and when a confirmation message is received, the Cwnd index is increased; when Cwnd is less than Ssthreth, the congestion avoidance state is entered, and the Cwnd value is linearly increased; and when packet loss occurs and retransmission is carried out quickly, the Cwnd value is halved, and after quick recovery, the congestion avoidance state is entered again.
The TCP control algorithm is designed for a wired network, and when the algorithm is adopted, TCP considers that packet loss is caused by network congestion, and reduces the Cwnd value by half, so that the packet sending rate is reduced to relieve the network congestion, but the following problems are caused: when a transmission network includes wireless network transmission, packet loss is probably caused by wireless environment fluctuation and terminal movement, but not caused by transmission congestion, and the reduction of the packet sending rate by the server causes the serious degradation of the TCP transmission rate, so that the TCP message transmission efficiency is reduced. The above problems are not well solved.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a TCP transmission method, a mobile edge computing device and a computer-readable storage medium capable of optimizing TCP transmission efficiency.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
a TCP transmission method applied to a mobile edge computing device, MEC, the method comprising: acquiring wireless network sending capacity information sent by a wireless base station, and determining a congestion window value Cwnd based on the wireless network sending capacity information; receiving a TCP message sent by a TCP server through a wired network; and sending the TCP message to the wireless base station according to the Cwnd.
The receiving, by the wired network, the TCP packet sent by the TCP server includes: directly receiving a TCP message sent by a TCP server; or receiving the TCP message forwarded by the TCP server through the core network.
Wherein the wireless network transmission capability information comprises at least one of the following parameters: air interface rate, air interface delay and PDCP residual buffer.
The acquiring of the wireless network transmission capability information transmitted by the wireless base station includes: receiving a TCP response message sent by a wireless base station, and acquiring wireless network sending capacity information from the TCP response message; the wireless network sending capability information is coded in an option options field of a TCP response message; or receiving a report message sent by the wireless base station according to a set period, and acquiring wireless network sending capability information from the report message.
The receiving of the TCP packet sent by the TCP server through the wired network includes: a receiving terminal updates a first sending window value Rwnd sent by the wireless base station according to an available cache value of the receiving terminal to obtain a second sending window value Rwnd; and sending the second Rwnd to the TCP server, and receiving a TCP message sent by the TCP server according to the second Rwnd.
Wherein the sending the TCP packet to the wireless base station according to the Cwnd comprises: caching the TCP message received from the TCP server in a local cache;
receiving a switching message of switching between a plurality of wireless base stations by a terminal;
and forwarding the TCP message which is not sent completely in the local cache to the switched wireless base station based on the switching message.
Wherein the sending the TCP packet to the wireless base station according to the Cwnd comprises: detecting whether the TCP messages corresponding to the same terminal contain different types of TCP service flows or not; if yes, respectively configuring target Cwnds corresponding to the different types of TCP service flows based on the priorities and the Cwnds corresponding to the different types of TCP services, and sending the TCP messages of the different types of TCP service flows to the wireless base station according to the corresponding target Cwnds.
Wherein the respectively configuring target Cwnd corresponding to the different types of TCP service flows based on the priority corresponding to the different types of TCP service and the Cwnd includes: configuring the occupation ratio of the different types of TCP service flows in the Cwnd according to the preset priority corresponding to the different types of TCP service flows; and obtaining and sending targets Cwnd corresponding to the different types of TCP service flows based on the proportion, wherein the service types of the different types of TCP flows are identified by a Deep Packet Inspection (DPI) technology.
The configuring the percentage of the different types of TCP service flows in the Cwnd according to the preset priority corresponding to the different types of TCP service flows includes: detecting local cache data corresponding to the different types of TCP service flows; when any local cache data of the TCP service flow with the occupation ratio higher than the first threshold value is lower than a preset threshold value, the occupation ratio of the TCP service flow is reduced according to the first preset ratio, and the occupation ratio of the TCP service flow type with the occupation ratio lower than the second threshold value is increased according to the second preset ratio.
Wherein the sending the TCP packet to the wireless base station according to the Cwnd comprises: and when the link connection between the terminal and the wireless base station is determined to be reestablished, retransmitting the TCP message which is not confirmed, wherein the TCP message which is not confirmed refers to the TCP message which is not received the TCP confirmation message sent by the terminal through the wireless base station.
A mobile edge computing device MEC comprises a determining module, a receiving module and a sending module, wherein the determining module is used for acquiring wireless network sending capacity information sent by a wireless base station and determining a congestion window value Cwnd based on the wireless network sending capacity information; the receiving module is used for receiving the TCP message sent by the TCP server through a wired network; and the sending module is used for sending the TCP message to the wireless base station according to the Cwnd.
A mobile edge computing device MEC comprising a memory, a processor and a computer program stored and run on said memory, said processor implementing the TCP transmission method according to any of the embodiments of the present invention when executing said computer program.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a TCP transmission method according to any one of the embodiments of the present invention.
According to the TCP transmission method, the mobile edge computing device and the computer readable storage medium provided by the embodiment of the invention, the wireless network sending capacity information sent by the wireless base station is obtained, the congestion window value Cwnd is determined based on the wireless network sending capacity information, the actual working condition of the wireless network can be obtained in real time, and the parameter Cwnd for sending the TCP message is adjusted in real time according to the actual working condition of the wireless network; receiving the TCP message sent by a TCP server through a wired network; the TCP message is sent to the wireless base station according to the Cwnd, the dynamic Cwnd is obtained based on the wireless network sending capability information, the air interface capability can be utilized to the maximum extent according to the mode of sending the TCP message by the dynamic Cwnd, and the transmission efficiency of the TCP message is improved.
Drawings
Fig. 1 is a schematic diagram illustrating the effect of conventional TCP congestion control;
fig. 2 is a schematic view of a scenario of a TCP transmission method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a TCP transmission method according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating an effect of TCP congestion control according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a frame structure of a TCP according to an embodiment of the present invention;
fig. 6 is a diagram illustrating an OPTION field for carrying wireless network capability information in a TCP frame structure according to an alternative embodiment of the present invention;
fig. 7 is a schematic diagram of scheduling optimization of a single-user terminal including multiple TCP traffic flows according to an embodiment of the present invention;
fig. 8 is a flowchart illustrating a TCP transmission method according to another embodiment of the present invention;
fig. 9 is a flowchart illustrating a TCP transmission method according to another embodiment of the present invention;
fig. 10 is a flowchart illustrating a TCP transmission method according to another embodiment of the present invention;
fig. 11 is a schematic diagram of a mobile edge computing apparatus MEC according to an embodiment of the present invention.
Detailed description of the preferred embodiments
The invention will be described in further detail with reference to the following drawings and specific embodiments.
Referring to fig. 2, a scene schematic diagram of a TCP transmission method according to an embodiment of the present invention is shown, where a communication subject in the scene includes: a terminal 11, a radio base station 12, a Mobile Edge Computing device (hereinafter abbreviated as MEC) 13, a core network 14, and a TCP server 15. The terminal may be a mobile terminal or a fixed terminal.
The radio base station 12 is connected to a terminal 11, and the radio base station 12 and the TCP server 15 may be connected by communication through the MEC13, wherein the MEC13 and the TCP server 15 may be connected through the core network 14 or may be directly connected.
The MEC13 divides the transmission network into a wireless network side including the wireless base station 12 and a wired network side including the TCP server 15. On the wired network side, the MEC13 communicates with the TCP server 15 by using a conventional TCP protocol, and after receiving the TCP packet sent by the TCP server 15, the MEC13 performs a fast response to the TCP server 15 and fast caches the TCP packet in the MEC13; meanwhile, on the wireless network side, the MEC13 continuously adjusts a TCP congestion window suitable for the current wireless environment according to the wireless network transmission capability information of the wireless network side reported by the wireless base station 12 through the message, and transmits the TCP packet to the wireless base station 12.
After receiving the TCP packet sent by the TCP server 15, the MEC13 performs fast response on the TCP server 15 and sends the TCP packet to the wireless base station 12, which are described from a network topology layer, that is, the MEC13 forwards the TCP packet sent by the TCP server 15 to the wireless base station 12 of the opposite end physically connected to the MEC 13. From the protocol stack, TCP packets are actually transmitted between the MEC13 and the terminal 11 through the wireless base station 12, and for convenience of description, the TCP packets are described from the network topology level.
Referring to fig. 3 in conjunction, fig. 3 is a schematic diagram of a TCP transmission method provided in an embodiment of the present invention, which can be applied to the MEC shown in fig. 2, where the method includes:
step 21: the MEC acquires wireless network sending capability information sent by a wireless base station through a wireless network, and determines a congestion window value Cwnd based on the wireless network sending capability information;
the MEC can send a request message to the wireless base station in an active request mode, apply for sending a request message of wireless network sending capacity information to the wireless base station, and thus obtain the wireless network sending capacity information; the MEC can also detect a message which is periodically sent to the MEC by the wireless base station and contains the wireless network sending capability information in a periodic detection mode; the MEC may further obtain, through passive triggering, a message that is sent by the radio base station to the MEC aperiodically and that includes the radio network transmission capability information. The wireless network sending capability information comprises an air interface rate and an air interface delay of a wireless network side, a buffer memory vacancy of a PDCP (Packet Data Convergence Protocol) layer corresponding to a terminal user and the like.
As an embodiment, the wireless network transmission capability information includes at least one of the following parameters: air interface rate, air interface delay and PDCP residual cache.
As an embodiment, the MEC calculates an expression of Cwnd according to the wireless network transmission capability information transmitted by the wireless base station, where Cwnd is: cwnd = f (air interface rate, air interface delay, PDCP remaining buffer), so that Cwnd can just fill up the PDCP buffer of the radio base station, thereby making the most use of the air interface sending capability of the radio base station, where f () represents a calculation function of the relationship between a congestion window and the air interface rate, the air interface delay, and the PDCP remaining buffer. For example: cwnd = PDCP egress rate, air interface delay RTT + PDCP residual buffer, where the air interface delay RTT = RTT1 between MEC and UE — RTT2 between MEC and eNB (RTT 2 is return network air interface delay, and may be configured fixedly according to MEC deployment location);
step 22: the MEC receives a TCP message sent by a TCP server through a wired network;
the TCP packets may correspond to different types of traffic flows of the same user equipment, such as video traffic flows, voice traffic flows, and so on. As an implementation manner, after receiving the TCP message, the MEC caches the TCP message in a local cache, and when the TCP message received by the MEC is an out-of-order TCP message, the MEC orders the out-of-order message and then caches the out-of-order message.
In an embodiment, the receiving, by the MEC, the TCP message sent by the TCP server through the wired network is a TCP message sent by the TCP server directly received by the MEC. As another embodiment, the receiving, by the wired network, the TCP packet sent by the TCP server is a TCP packet sent by a TCP server forwarded by an MEC receiving core network.
Step 23: and the MEC sends the TCP message to the wireless base station according to the Cwnd.
In the embodiment of the invention, wireless network sending capacity information sent by a wireless base station is obtained through a wireless network, a congestion window value Cwnd is determined based on the wireless network sending capacity information, the actual working condition of the wireless network can be obtained in real time, and a parameter Cwnd for sending a TCP message is adjusted in real time according to the actual working condition of the wireless network; receiving the TCP message sent by a TCP server through a wired network; the TCP message is sent to the wireless base station according to the Cwnd, the dynamic Cwnd is obtained based on the wireless network sending capability information fed back by the wireless network, and the air interface capability can be utilized to the maximum extent according to the mode of sending the TCP message by the dynamic Cwnd, so that a TCP slow start process and a congestion avoidance process are cancelled, and the transmission efficiency of the TCP message is improved.
Referring to fig. 4, a schematic diagram of a transmission quantity following effect after the MEC cancels a TCP slow start procedure and a congestion avoidance procedure in the TCP transmission method provided in the embodiment of the present invention is shown. The acquiring, by the wireless network, wireless network transmission capability information transmitted by the wireless base station includes: the method comprises the steps that an MEC receives a TCP ACK message sent by a wireless base station, and wireless network sending capacity information is obtained from the TCP ACK message; the wireless network sending capacity information is coded in options fields of a TCP ACK message; or receiving a report message sent by the wireless base station according to a set period, and acquiring wireless network sending capability information from the report message. And the MEC directly determines Cwnd according to the base station report information without a slow start process and enters a congestion avoidance state. When the air interface packet loss occurs, the speed rate becomes slow, and the Cwnd always follows the air interface capability.
The TCP ACK message is a response message after the wireless base station receives the TCP packet forwarded by the MEC to itself. As an implementation manner, the TCP ACK message is used to carry the wireless network transmission capability information, such as the air interface bandwidth information (including the air interface rate and the air interface delay) of the wireless base station 12 and the PDCP residual cache information.
The structure of the TCP ACK message frame may be as shown in fig. 5, where an options field is used to carry base station air interface bandwidth information and PDCP residual buffer information. The definitions of options fields can be further divided into kid, lenth, exID information fields and options contents fields as shown in FIG. 6, and the specific meanings of the fields are shown in Table one:
table one:
Figure BDA0001802640110000071
the method for acquiring the wireless network sending capacity information through the TCP ACK message can save signaling resources and improve the transmission efficiency of the network.
In one embodiment, the step 22 of receiving, through a wired network, a TCP message sent by a TCP server includes:
the MEC receiving terminal updates the first Rwnd according to the self available cache value through the first sending window value Rwnd sent by the wireless base station to obtain a second sending window value Rwnd; and sending the second Rwnd to the TCP server, and receiving a TCP message sent by the TCP server according to the second Rwnd.
As an embodiment, the MEC receiving terminal updates a first Rwnd according to its own available buffer value by using the first Rwnd transmitted by the radio base station to obtain a second Rwnd, and includes: and the MEC updates the first Rwnd and the available buffer value of the MEC according to the first Rwnd sent by the terminal through the wireless base station to obtain a second Rwnd. Wherein the first Rwnd may be transmitted to the MEC through a TCP message transmitted by the wireless base station. Therefore, signaling resources can be saved, and the transmission efficiency is improved.
In one embodiment, the step 23 of sending the TCP packet to the wireless base station according to the Cwnd includes: the MEC caches the TCP message received from the TCP server in a local cache; and when the MEC receives a switching message which is sent by a terminal through the wireless base station and is used for switching among the wireless base stations by the terminal, forwarding the TCP message which is not sent in the local cache and is completed to the switched wireless base station based on the switching message. In this way, since the MEC caches the TCP packet, even if the terminal is switched to the new wireless base station, the TCP packet that is not transmitted can still be transmitted through the new wireless base station, and the TCP packet can be effectively prevented from being lost.
In another embodiment, the step 23 of sending the TCP packet to the radio base station according to the Cwnd includes: the MEC detects whether the TCP message corresponding to the same terminal contains TCP service flows of different types; if yes, respectively configuring target Cwnds corresponding to the different types of TCP service flows based on the priorities and the Cwnds corresponding to the different types of TCP services, and sending the TCP messages of the different types of TCP service flows to the wireless base station according to the corresponding target Cwnds.
Different priorities are configured for the different types of TCP service flows, and different targets Cwnd are configured for the TCP service flows with different priorities respectively, so that the TCP service flow with high priority has higher transmission rate, the transmission requirements of users on different services can be met, and the user experience is improved.
Wherein, the respectively configuring target Cwnd corresponding to the different types of TCP service flows based on the priority corresponding to the different types of TCP services and the Cwnd includes: the MEC configures the occupation ratio of the different types of TCP service flows in the Cwnd according to the preset priorities corresponding to the different types of TCP service flows; and obtaining and sending targets Cwnd corresponding to the different types of TCP service flows based on the proportion, wherein the service types of the different types of TCP flows are identified by a Deep Packet Inspection (DPI) technology.
According to the preset priorities corresponding to the different types of TCP service flows, configuring an implementation manner of the occupation ratios of the different types of TCP service flows in the Cwnd, as shown in fig. 7 as an example, the MEC caches 3 types of TCP service flows of the user terminal, which are respectively a 1# service flow, a 2# service flow and a 3# service flow, wherein each type of TCP service flow is divided into a certain weight Wi according to the priority of the service type, and the total congestion window Cwnd is multiplied by the weight, that is, a target Cwnd of the TCP service flow, that is:
target Cwnd = Cwnd W1+ Cwnd W2+ Cwnd W3, where W1+ W2+ W3=1.
Thus, the ratio Wi corresponding to each TCP flow is determined according to the priorities of different types of TCP traffic flows, for example, for 3# traffic flow, the priority is high, and Wi =70% is configured; for the 2# traffic flow, the priority is medium, and Wi =20% is configured; for 3# traffic, the priority is low, with Wi =10% configured.
The configuring the percentage of the different types of TCP service flows in the Cwnd according to the preset priority corresponding to the different types of TCP service flows includes: the MEC detects local cache data corresponding to the different types of TCP service flows; when any local cache data of the TCP service flow with the occupation ratio higher than the first threshold value is lower than a preset threshold value, the occupation ratio of the TCP service flow is reduced according to the first preset ratio, and the occupation ratio of the TCP service flow type with the occupation ratio lower than the second threshold value is increased according to the second preset ratio.
And the MEC can correspondingly adjust the occupation ratio of the TCP business flow according to whether the backlog of the cache data of the high-priority TCP business flow is increased or is lower than a preset threshold value. For example, in the case of the above 1# TCP traffic flow, when the buffered data is lower than 50% of the preset threshold, the occupancy Wi is reduced by 10%, and the new occupancy Wi of the 1# TCP traffic flow is =70% > (1-10%) =63%, and the low priority TCP flow is proportionally increased, for example, the occupancy Wi of the above 3# TCP traffic flow is proportionally increased by 10%.
In one embodiment, the step 23 of sending the TCP packet to the radio base station according to the Cwnd includes: and when the MEC determines that the link connection is reestablished between the terminal and the wireless base station, retransmitting the TCP message which is not confirmed, wherein the TCP message which is not confirmed refers to the TCP message which does not receive the TCP confirmation message sent by the terminal through the wireless base station.
Aiming at TCP optimization of wireless transmission, the MEC cancels the existing fast retransmission mechanism, because the air interface RLC link of the wireless side is reliable transmission, the MEC has an ARQ retransmission mechanism, the TCP fast retransmits the message, the base station RLC layer may also retransmit the unacknowledged message only when the link connection is reestablished between the terminal and the wireless base station, thereby avoiding multi-layer retransmission and avoiding the waste of transmission resources.
Wherein, after sending the TCP packet to the wireless base station according to the Cwnd, the step 23 further includes: after receiving a TCP SYN message sent by a terminal through the wireless base station, the MEC judges whether to execute TCP service flow optimization or not based on the TCP SYN message, and when the TCP service flow optimization is not executed, the wireless base station and a TCP server directly establish a link.
In order to make the expression of the embodiment of the present invention more clear, the TCP transmission method according to the embodiment of the present invention will be further described with reference to two specific embodiments:
the first embodiment is as follows:
referring to fig. 8 and 9 in combination, the MEC is deployed between a radio base station and a core network, and monitors user plane data of a terminal connected to the radio base station, and the TCP transmission method includes the following steps.
Step a1: when the MEC finds that the TCP SYN message is initiated by the terminal, the MEC transparently forwards the TCP SYN message to the TCP server;
step a2: the MEC transparently forwards the SYN ACK message received from the TCP server to the wireless base station;
step a3: the MEC transparently forwards the ACK message received from the wireless base station to the TCP server.
And after receiving the message 1, the MEC obtains a second Rwnd of the wireless base station through the operation of Rwnd = Rwnd1+ available residual cache by the MEC, and sends the second Rwnd to the TCP server through a message 2.
Step a4: after receiving the TCP message sent by the TCP server, the MEC quickly responds and caches the TCP message in a local cache;
step a5: and the MEC calculates Cwnd according to the PDCP outlet rate information and the PDCP residual cache information reported by the base station, and uniformly sends the TCP message to the wireless base station according to the Cwnd. After the MEC receives the message 5, the MEC updates a congestion window cwnd used for controlling the transmission of a TCP packet to the radio base station 11 according to the air interface bandwidth information and PDCP residual buffer information carried in the message 5, so that:
cwnd = PDCP egress rate, air interface delay RTT + PDCP remaining buffer
Air interface delay RTT = RTT1 between MEC and UE-RTT 2 between MEC and eNB (RTT 2 is the delay of return network, and it is only required to deploy fixed configuration according to MEC position);
when the MEC receives the message 10 or receives the air interface bandwidth and the PDCP residual cache information reported by the base station in other modes, the value of the cwnd is immediately updated;
when the MEC receives the message 10, the device deletes the confirmed message from the cache and discards the response message;
when the MEC finds that the RLC retransmission of the base station is overtime and the RRC is reestablished, the message which is not confirmed in the cache is retransmitted to the base station;
and when the message 8 is sent each time, the MEC can update the rwnd value according to the residual cache of the MEC and send the rwnd value to the TCP server.
Example two:
referring to fig. 10, the mec is deployed between a radio base station and a core network, and the TCP transmission method includes the following steps.
Step b1: the MEC receives a TCP SYN message sent by a terminal, judges whether to execute TCP stream optimization or not, and enters a step b2 if the MEC judges that the TCP stream optimization is executed; otherwise step b6 is entered.
And b2: and the MEC serves as the TCP server and is used as a server to directly complete a TCP link establishment process with the terminal.
Step b3: the MEC is used as a client, a TCP SYN message is sent to the real TCP server, the link establishment process of TCP with the TCP server is completed, and the MEC establishes the corresponding relation of the 2 TCP links.
And b4: and the MEC is used as a TCP client, caches the TCP message in a local cache after receiving the TCP message sent by the TCP server, and completes the quick response. Wherein, the Rwnd returned by the MEC to the TCP server can be obtained according to the local cache condition.
And b5: the MEC is used as a TCP server and uniformly sends the TCP messages cached locally to the base station. The MEC sending window Cwnd may be calculated according to the PDCP egress rate and the PDCP buffer reported by the radio base station.
Step b6: and the terminal and the real TCP server finish TCP link establishment and TCP message transmission.
On the other hand, the embodiment of the invention provides a mobile edge computing device MEC, which comprises a determining module, a receiving module and a sending module, wherein the determining module is used for acquiring wireless network sending capacity information sent by a wireless base station through a wireless network and determining a congestion window value Cwnd based on the wireless network sending capacity information; the receiving module is used for receiving the TCP message sent by the TCP server through the wired network; and the sending module is used for sending the TCP message to the wireless base station according to the Cwnd.
The receiving module is further configured to directly receive a TCP message sent by a TCP server; or receiving the TCP message forwarded by the TCP server through the core network.
The wireless network sending capability information acquired by the determining module comprises at least one of the following parameters: air interface rate, air interface delay and PDCP residual cache.
The determining module obtains the wireless network sending capability information sent by the wireless base station through the wireless network, and the determining module comprises: receiving a TCP ACK message sent by a wireless base station, and acquiring wireless network sending capacity information from the TCP ACK message; the wireless network sending capacity information is coded in options fields of a TCP ACK message; or receiving a report message sent by the wireless base station according to a set period, and acquiring wireless network sending capacity information from the report message.
The receiving module is used for receiving a TCP message sent by a TCP server through a wired network, and includes: a receiving terminal updates a first sending window value Rwnd sent by the wireless base station according to an available cache value of the receiving terminal to obtain a second sending window value Rwnd; and sending the second Rwnd to the TCP server, and receiving a TCP message sent by the TCP server according to the second Rwnd.
Wherein the sending module sends the TCP packet to the wireless base station according to the Cwnd, and includes: caching the TCP message received from the TCP server in a local cache;
receiving a switching message of switching among a plurality of wireless base stations by a terminal;
and forwarding the TCP message which is not sent completely in the local cache to the switched wireless base station based on the switching message.
Wherein the sending module sends the TCP packet to the wireless base station according to the Cwnd, and includes: detecting whether the TCP messages corresponding to the same terminal contain different types of TCP service flows; if yes, respectively configuring target Cwnds corresponding to the different types of TCP service flows based on the priorities and the Cwnds corresponding to the different types of TCP services, and sending the TCP messages of the different types of TCP service flows to the wireless base station according to the corresponding target Cwnds.
The sending module configures target cwnds corresponding to the different types of TCP service flows respectively based on the priorities and the cwnds corresponding to the different types of TCP services, and the method includes: according to the preset priority corresponding to the different types of TCP service flows, the occupation ratio of the different types of TCP service flows in the Cwnd is configured; and obtaining and sending targets Cwnd corresponding to the different types of TCP service flows based on the ratio, wherein the service types of the different types of TCP flows are identified by a Deep Packet Inspection (DPI) technology.
The sending module configures the occupation ratio of the different types of TCP service flows in the Cwnd according to the preset priorities corresponding to the different types of TCP service flows, and the method comprises the following steps: detecting local cache data corresponding to the different types of TCP service flows; when any local cache data of the TCP service flow with the occupation ratio higher than the first threshold value is lower than a preset threshold value, the occupation ratio of the TCP service flow is reduced according to the first preset ratio, and the occupation ratio of the TCP service flow type with the occupation ratio lower than the second threshold value is increased according to the second preset ratio.
Wherein the sending module sends the TCP packet to the wireless base station according to the Cwnd, and includes: and when the link connection between the terminal and the wireless base station is determined to be reestablished, retransmitting the TCP message which is not confirmed, wherein the TCP message which is not confirmed refers to the TCP message which is not received the TCP confirmation message sent by the terminal through the wireless base station.
Another embodiment of the present invention further provides a mobile edge computing apparatus MEC, please refer to fig. 11, where the mobile edge computing apparatus MEC includes a memory 101, a processor 102 and a computer program stored in the memory 101 for running, and the processor 102, when executing the computer program, implements the following steps: acquiring wireless network sending capacity information sent by a wireless base station through a wireless network, and determining a congestion window value Cwnd based on the wireless network sending capacity information; receiving a TCP message sent by a TCP server through a wired network; and sending the TCP message to the wireless base station according to the Cwnd.
Here, the processor 102 is further configured to, when executing the computer program: the receiving of the TCP message sent by the TCP server through the wired network includes: directly receiving a TCP message sent by a TCP server; or receiving the TCP message forwarded by the TCP server through the core network.
Here, the processor 102, when executing the computer program, is further configured to: the wireless network transmission capability information includes at least one of the following parameters: air interface rate, air interface delay and PDCP residual cache.
Here, the processor 102, when executing the computer program, is further configured to: the acquiring of the wireless network transmission capability information transmitted by the wireless base station through the wireless network includes: receiving a TCP ACK message sent by a wireless base station, and acquiring wireless network sending capacity information from the TCP ACK message; the wireless network sending capacity information is coded in an options field of a TCP ACK message; or receiving a report message sent by the wireless base station according to a set period, and acquiring wireless network sending capability information from the report message.
Here, the processor 102, when executing the computer program, is further configured to: the receiving of the TCP message sent by the TCP server through the wired network includes: a receiving terminal updates a first sending window value Rwnd sent by the wireless base station according to an available cache value of the receiving terminal to obtain a second sending window value Rwnd; and sending the second Rwnd to the TCP server, and receiving a TCP message sent by the TCP server according to the second Rwnd.
Here, the processor 102, when executing the computer program, is further configured to: the sending the TCP packet to the wireless base station according to the Cwnd includes: caching the TCP message received from the TCP server in a local cache;
receiving a switching message of switching among a plurality of wireless base stations by a terminal;
and forwarding the TCP message which is not sent completely in the local cache to the switched wireless base station based on the switching message.
Here, the processor 102, when executing the computer program, is further configured to: the sending the TCP packet to the wireless base station according to the Cwnd includes: detecting whether the TCP messages corresponding to the same terminal contain different types of TCP service flows; if yes, respectively configuring target Cwnds corresponding to the different types of TCP service flows based on the priorities corresponding to the different types of TCP services and the Cwnds, and sending the TCP messages of the different types of TCP service flows to the wireless base station according to the corresponding target Cwnds.
Here, the processor 102, when executing the computer program, is further configured to: the configuring, based on the priorities and cwnds corresponding to the different types of TCP traffic, target cwnds corresponding to the different types of TCP traffic flows, respectively, includes: configuring the occupation ratio of the different types of TCP service flows in the Cwnd according to the preset priority corresponding to the different types of TCP service flows; and obtaining and sending targets Cwnd corresponding to the different types of TCP service flows based on the proportion, wherein the service types of the different types of TCP flows are identified by a Deep Packet Inspection (DPI) technology.
Here, the processor 102, when executing the computer program, is further configured to: the configuring the proportion of the different types of TCP service flows in the Cwnd according to the preset priorities corresponding to the different types of TCP service flows comprises the following steps: detecting local cache data corresponding to the different types of TCP service flows; when any local cache data of the TCP service flow with the occupation ratio higher than the first threshold is lower than a preset threshold, reducing the occupation ratio of the TCP service flow according to a first preset ratio, and increasing the occupation ratio of the TCP service flow type with the occupation ratio lower than a second threshold according to a second preset ratio.
Here, the processor 102, when executing the computer program, is further configured to: the sending the TCP packet to the wireless base station according to the Cwnd includes: and when the link connection between the terminal and the wireless base station is determined to be reestablished, retransmitting the TCP message which is not confirmed, wherein the TCP message which is not confirmed refers to the TCP message which is not received the TCP confirmation message sent by the terminal through the wireless base station.
An embodiment of the present invention provides a computer storage medium, where a computer program is stored on the computer readable storage medium, and the computer program is implemented by a processor to perform the following steps: acquiring wireless network sending capacity information sent by a wireless base station through a wireless network, and determining a congestion window value Cwnd based on the wireless network sending capacity information; receiving a TCP message sent by a TCP server through a wired network; and sending the TCP message to the wireless base station according to the Cwnd.
Here, the processor, when executing the computer program, is further configured to: the receiving of the TCP message sent by the TCP server through the wired network includes: directly receiving a TCP message sent by a TCP server; or receiving the TCP message forwarded by the TCP server through the core network.
Here, the processor, when executing the computer program, is further configured to: the wireless network transmission capability information includes at least one of the following parameters: air interface rate, air interface delay and PDCP residual cache.
Here, the processor, when executing the computer program, is further configured to: the acquiring of the wireless network transmission capability information transmitted by the wireless base station through the wireless network includes: receiving a TCP ACK message sent by a wireless base station, and acquiring wireless network sending capacity information from the TCP ACK message; the wireless network sending capacity information is coded in an options field of a TCP ACK message; or receiving a report message sent by the wireless base station according to a set period, and acquiring wireless network sending capability information from the report message.
Here, the processor, when executing the computer program, is further configured to: the receiving of the TCP message sent by the TCP server through the wired network includes: a receiving terminal updates a first sending window value Rwnd sent by the wireless base station according to an available cache value of the receiving terminal to obtain a second sending window value Rwnd; and sending the second Rwnd to the TCP server, and receiving a TCP message sent by the TCP server according to the second Rwnd.
Here, the processor, when executing the computer program, is further configured to: the sending the TCP packet to the wireless base station according to the Cwnd includes: caching the TCP message received from the TCP server in a local cache;
receiving a switching message of switching among a plurality of wireless base stations by a terminal;
and forwarding the TCP message which is not sent completely in the local cache to the switched wireless base station based on the switching message.
Here, the processor, when executing the computer program, is further configured to: the sending the TCP packet to the wireless base station according to the Cwnd includes: detecting whether the TCP messages corresponding to the same terminal contain different types of TCP service flows or not; if yes, respectively configuring target Cwnds corresponding to the different types of TCP service flows based on the priorities and the Cwnds corresponding to the different types of TCP services, and sending the TCP messages of the different types of TCP service flows to the wireless base station according to the corresponding target Cwnds.
Here, the processor, when executing the computer program, is further configured to: respectively configuring target Cwnds corresponding to the different types of TCP service flows based on the priorities and the Cwnds corresponding to the different types of TCP services, wherein the target Cwnds comprise: configuring the occupation ratio of the different types of TCP service flows in the Cwnd according to the preset priority corresponding to the different types of TCP service flows; and obtaining and sending targets Cwnd corresponding to the different types of TCP service flows based on the proportion, wherein the service types of the different types of TCP flows are identified by a Deep Packet Inspection (DPI) technology.
Here, the processor, when executing the computer program, is further configured to: the configuring the proportion of the different types of TCP service flows in the Cwnd according to the preset priority corresponding to the different types of TCP service flows includes: detecting local cache data corresponding to the different types of TCP service flows; when any local cache data of the TCP service flow with the occupation ratio higher than the first threshold is lower than a preset threshold, reducing the occupation ratio of the TCP service flow according to a first preset ratio, and increasing the occupation ratio of the TCP service flow type with the occupation ratio lower than a second threshold according to a second preset ratio.
Here, the processor, when executing the computer program, is further configured to: the sending the TCP packet to the wireless base station according to the Cwnd includes: and when the link connection between the terminal and the wireless base station is determined to be reestablished, retransmitting the TCP message which is not confirmed, wherein the TCP message which is not confirmed refers to the TCP message which is not received the TCP confirmation message sent by the terminal through the wireless base station.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims (12)

1. A TCP transmission method applied to a mobile edge computing device MEC, the method comprising:
acquiring wireless network sending capacity information sent by a wireless base station, and determining a congestion window value Cwnd based on the wireless network sending capacity information;
receiving a TCP message sent by a TCP server through a wired network;
sending the TCP message to the wireless base station according to the Cwnd;
the sending the TCP packet to the wireless base station according to the Cwnd includes: detecting whether the TCP messages corresponding to the same terminal contain different types of TCP service flows; if yes, respectively configuring target Cwnds corresponding to the different types of TCP service flows based on the priorities and the Cwnds corresponding to the different types of TCP services, and sending the TCP messages of the different types of TCP service flows to the wireless base station according to the corresponding target Cwnds.
2. The TCP transmission method according to claim 1, wherein the receiving, through the wired network, the TCP packet sent by the TCP server includes:
directly receiving a TCP message sent by a TCP server; or receiving the TCP message forwarded by the TCP server through the core network.
3. The TCP transmission method according to claim 1, wherein the wireless network transmission capability information includes at least one of the following parameters: air interface rate, air interface delay and PDCP residual cache.
4. The TCP transmission method according to claim 1, wherein the obtaining the wireless network transmission capability information transmitted by the wireless base station includes:
receiving a TCP response message sent by a wireless base station, and acquiring wireless network sending capacity information from the TCP response message; the wireless network sending capability information is coded in an option field of a TCP response message; or alternatively
And receiving a report message sent by the wireless base station according to a set period, and acquiring wireless network sending capacity information from the report message.
5. The TCP transmission method according to claim 1, wherein the receiving, through the wired network, the TCP packet sent by the TCP server includes:
the receiving terminal updates the first Rwnd according to the self available cache value through the first sending window value Rwnd sent by the wireless base station to obtain a second sending window value Rwnd;
and sending the second Rwnd to the TCP server, and receiving a TCP message sent by the TCP server according to the second Rwnd.
6. The TCP transmission method according to claim 1, wherein the sending the TCP packet to the radio base station according to the Cwnd comprises:
caching the TCP message received from the TCP server in a local cache;
receiving a switching message of switching between a plurality of wireless base stations by a terminal;
and forwarding the TCP message which is not sent completely in the local cache to the switched wireless base station based on the switching message.
7. The TCP transmission method according to claim 1, wherein the respectively configuring target Cwnd corresponding to the different types of TCP traffic flows based on the priorities and cwnds corresponding to the different types of TCP traffic flows comprises:
configuring the occupation ratio of the different types of TCP service flows in the Cwnd according to the preset priority corresponding to the different types of TCP service flows;
and obtaining and sending targets Cwnd corresponding to the different types of TCP service flows based on the proportion, wherein the service types of the different types of TCP flows are identified by a Deep Packet Inspection (DPI) technology.
8. The TCP transmission method according to claim 7, wherein the configuring, according to the preset priority corresponding to the TCP traffic flows of different types, the occupation ratio of the TCP traffic flows of different types in the Cwnd includes:
detecting local cache data corresponding to the different types of TCP service flows;
when any local cache data of the TCP service flow with the occupation ratio higher than the first threshold value is lower than a preset threshold value, the occupation ratio of the TCP service flow is reduced according to the first preset ratio, and the occupation ratio of the TCP service flow type with the occupation ratio lower than the second threshold value is increased according to the second preset ratio.
9. The TCP transmission method according to claim 1, wherein the sending the TCP packet to the radio base station according to the Cwnd comprises:
and when the link connection between the terminal and the wireless base station is determined to be reestablished, retransmitting the TCP message which is not confirmed, wherein the TCP message which is not confirmed refers to the TCP message which is not received the TCP confirmation message sent by the terminal through the wireless base station.
10. A mobile edge computing arrangement, MEC, comprising a determining module, a receiving module, and a transmitting module, wherein,
the device comprises a determining module, a congestion window value Cwnd determining module and a congestion window value calculating module, wherein the determining module is used for acquiring wireless network sending capacity information sent by a wireless base station and determining the congestion window value Cwnd based on the wireless network sending capacity information;
the receiving module is used for receiving the TCP message sent by the TCP server through a wired network;
a sending module, configured to send the TCP packet to the wireless base station according to the Cwnd;
the sending module is used for detecting whether the TCP messages corresponding to the same terminal contain TCP service flows of different types or not; if yes, respectively configuring target Cwnds corresponding to the different types of TCP service flows based on the priorities corresponding to the different types of TCP services and the Cwnds, and sending the TCP messages of the different types of TCP service flows to the wireless base station according to the corresponding target Cwnds.
11. A mobile edge computing device, MEC, comprising a memory, a processor and a computer program stored for execution on said memory, characterized in that: the processor, when executing the computer program, implements the TCP transmission method of any one of claims 1 to 9.
12. A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the TCP transmission method according to any one of claims 1 to 9.
CN201811084033.3A 2018-09-17 2018-09-17 TCP transmission method, device and storage medium Active CN110912831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811084033.3A CN110912831B (en) 2018-09-17 2018-09-17 TCP transmission method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811084033.3A CN110912831B (en) 2018-09-17 2018-09-17 TCP transmission method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110912831A CN110912831A (en) 2020-03-24
CN110912831B true CN110912831B (en) 2023-04-18

Family

ID=69813477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811084033.3A Active CN110912831B (en) 2018-09-17 2018-09-17 TCP transmission method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110912831B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866947A (en) * 2020-07-08 2020-10-30 中国科学院计算机网络信息中心 Wireless network transmission optimization method and system based on MEC

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833783A (en) * 2012-07-02 2012-12-19 北京邮电大学 Method for optimizing terminal control protocol (TCP) under wireless environment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888993B (en) * 2012-12-19 2018-05-18 中国移动通信集团广东有限公司 Method of adjustment, WAP gateway and the Internet resources monitoring server of congestion window
CN105763474B (en) * 2014-12-19 2019-10-25 华为技术有限公司 Data transmission method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833783A (en) * 2012-07-02 2012-12-19 北京邮电大学 Method for optimizing terminal control protocol (TCP) under wireless environment

Also Published As

Publication number Publication date
CN110912831A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
AU2003267317B2 (en) System for permitting control of the purging of a node B by the serving radio network controller
US8817806B2 (en) Method and apparatus for flow control between RLC and PDCP in a communication
JP4897203B2 (en) Method and apparatus for scheduling transmissions in a wireless data network
KR100600607B1 (en) A apparatus for ARQ controlling in wireless portable internet system and method therof
JP4878391B2 (en) Scheduling and queue management with adaptive queue latency
JP3637389B2 (en) Packet communication method and proposed node
US20090304028A1 (en) Data packet structure and protocol
US10111130B2 (en) Supporting delivery of data packets using transmission control protocol in a wireless communication network
JP2009534916A (en) Method and apparatus for improved data communication in a cellular access system
WO2017107148A1 (en) Method of transmitting data and network equipment
CN110912831B (en) TCP transmission method, device and storage medium
KR101515595B1 (en) System and method for TCP packet transmission for wireless network transmission enhancement
JP4531302B2 (en) Packet relay apparatus and method thereof
CN110730467A (en) Data transmission method and data receiving equipment
Itaya Simple available-bandwidth estimation for TCP in wired-wireless networks

Legal Events

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