WO2016058424A1 - Data transmission method, device and system, and storage medium - Google Patents

Data transmission method, device and system, and storage medium Download PDF

Info

Publication number
WO2016058424A1
WO2016058424A1 PCT/CN2015/083993 CN2015083993W WO2016058424A1 WO 2016058424 A1 WO2016058424 A1 WO 2016058424A1 CN 2015083993 W CN2015083993 W CN 2015083993W WO 2016058424 A1 WO2016058424 A1 WO 2016058424A1
Authority
WO
WIPO (PCT)
Prior art keywords
gateway
access gateway
downlink packet
message
received
Prior art date
Application number
PCT/CN2015/083993
Other languages
French (fr)
Chinese (zh)
Inventor
汤德龙
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016058424A1 publication Critical patent/WO2016058424A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals

Definitions

  • the present invention relates to wireless communication technologies, and in particular, to a data transmission method, apparatus, system, and storage medium.
  • the protocol mainly used in the terrestrial part of the transmission data service in the wireless network is the General Packet Radio Service Tunnel Protocol (GTP), and the 3rd Generation Partnership Project (3GPP, The 3rd Generation Partnership Project) No. 29.060
  • GTP General Packet Radio Service Tunnel Protocol
  • 3GPP 3rd Generation Partnership Project
  • IP Internet Protocol
  • the current transmission mechanism is no problem in the second generation wireless communication technology (2G, 2nd Generation), because the early transmission network networking is simple, the bandwidth is relatively abundant, and the ground transmission basically does not cause congestion and packet loss; Moreover, the early user's data traffic is not high, and the jitter is not obvious. Therefore, through reasonable planning, the GTP protocol can achieve better transmission results.
  • 2G, 2nd Generation the second generation wireless communication technology
  • the traditional data transmission method will face some new problems: the loss of the wireless system becomes severe, which requires the application layer's Transmission Control Protocol (TCP) to sense and resend.
  • TCP Transmission Control Protocol
  • the retransmission of the application layer may have a greater impact on the user experience due to delays.
  • the TCP of the application layer will enable the congestion control mechanism once it detects packet loss and resends.
  • This mechanism has certain conflicts with the wireless system. Will cause the bandwidth utilization of the wireless system to decrease.
  • This phenomenon is the third generation of wireless communication technology (3G, 3 rd Generation) wireless network has a certain expression, and will become the fourth generation of wireless communication technology (4G, 4 th Generation) network and even the future of wireless network serious.
  • embodiments of the present invention are directed to providing a data transmission method, apparatus, system, and storage medium, which can effectively solve the problem of high-efficiency data transmission in a complex wireless network scenario.
  • An embodiment of the present invention provides a data transmission method, where the method includes:
  • the method when the downlink packet is buffered, the method further includes: starting a timer;
  • the detecting, in the preset time, whether the acknowledgment message from the access gateway is received is: detecting whether an acknowledgment message from the access gateway is received within a preset time of the timer;
  • the method when receiving the acknowledgement message from the access gateway, the method further comprises: turning off the timer.
  • the method further includes: when the repeated number of times the same packet is repeatedly sent reaches a preset threshold, and the acknowledgement packet is not received, the exception processing procedure is started.
  • the sending the downlink packet to the access gateway includes: directly sending the downlink packet to the access gateway, and/or sending the downlink packet to the access gateway by using an intermediate gateway;
  • the detecting whether the acknowledgment message from the access gateway is received includes: detecting whether an acknowledgment message directly from the access gateway is received, and/or an acknowledgment message sent by the access gateway through the intermediate gateway.
  • the embodiment of the invention further provides a data transmission method, the method comprising:
  • the embodiment of the invention further provides a data transmission method, the method comprising:
  • the top-level gateway receives the downlink packet from the Internet, caches the downlink packet, and sends the downlink packet to the access gateway;
  • the access gateway sends the downlink packet to the terminal; the acknowledgment message sent by the terminal, when receiving the acknowledgment message, constructs an acknowledgment message, and sends the acknowledgment message to the top-level gateway;
  • the apex gateway detects whether the acknowledgment message from the access gateway is received within the preset time. When receiving the acknowledgment message from the access gateway, the cached downlink packet is deleted; otherwise, the downlink packet is received. Resend to the access gateway.
  • the method when the top-level gateway caches the downlink packet, the method further includes: starting a timer;
  • the apex gateway detects whether the acknowledgment message from the access gateway is received within a preset time period: detecting whether an acknowledgment message from the access gateway is received within a preset time of the timer;
  • the method further includes: turning off the timer.
  • the method further includes: when the number of times the same packet is repeatedly sent reaches a preset threshold, and the acknowledgment message is not received, the top gateway starts an exception processing procedure.
  • the sending, by the top-level gateway, the downlink packet to the access gateway includes: sending, by the top-level gateway, the downlink packet to the access gateway, and/or sending the downlink packet to the intermediate gateway Access gateway
  • the detecting, by the top-level gateway, whether the acknowledgment message is received from the access gateway comprises: detecting, by the top-level gateway, whether an acknowledgment message directly from the access gateway is received, and/or the access gateway sends the message through the intermediate gateway. Confirm the message.
  • the embodiment of the present invention further provides a data transmission device, where the device is located at a top-level gateway, and the device includes: a downlink packet receiving module, a cache module, a downlink packet sending module, an acknowledgement packet receiving module, and a processing module; ,
  • the downlink packet receiving module is configured to receive a downlink packet from the Internet
  • the cache module is configured to cache the downlink packet.
  • the downlink packet sending module is configured to send the downlink packet to an access gateway
  • the acknowledgement message receiving module is configured to receive an acknowledgement message from the access gateway
  • the processing module is configured to detect whether an acknowledgment message from the access gateway is received within a preset time, and when the acknowledgment message from the access gateway is received, delete the cached downlink message; otherwise, The downlink packet is resent to the access gateway.
  • the device further includes a timer, configured to enable a timing function when the downlink packet is buffered;
  • the processing module is configured to detect whether an acknowledgement message from the access gateway is received within a preset time of the timer;
  • the processing module is further configured to: close the timer.
  • the processing module is further configured to: when the same packet is repeatedly sent When the preset threshold has not received the confirmation packet, the exception handling process is started.
  • the downlink packet sending module is configured to: directly send the downlink packet to the access gateway, and/or send the downlink packet to the access gateway through the intermediate gateway;
  • the processing module is configured to: detect whether an acknowledgment message directly from the access gateway is received, and/or an acknowledgment message sent by the access gateway through the intermediate gateway.
  • the embodiment of the present invention further provides a data transmission device, where the device is located in an access gateway, and the device includes: a downlink packet receiving module, a downlink packet sending module, an acknowledgement message receiving module, an acknowledgement message building module, and a confirmation.
  • Message sending module wherein
  • the downlink packet receiving module is configured to receive a downlink packet from the top-level gateway
  • the downlink packet sending module is configured to send the downlink packet to the terminal;
  • the confirmation message receiving module is configured to receive an acknowledgement message sent by the terminal
  • the confirmation message construction module is configured to: when receiving the confirmation message, construct an acknowledgement message
  • the acknowledgement message sending module is configured to send the acknowledgement message to the top-level gateway.
  • An embodiment of the present invention further provides a data transmission system, where the system includes a top-level gateway and an access gateway, where
  • the top-level gateway is configured to receive a downlink packet from the Internet, cache the downlink packet, and send the packet to the access gateway, and detect whether the acknowledgement packet from the access gateway is received within a preset time. And when the acknowledgment message from the access gateway is received, the buffered downlink packet is deleted; otherwise, the downlink packet is resent to the access gateway;
  • the access gateway is configured to send the downlink packet to the terminal, and receive an acknowledgement message sent by the terminal. When receiving the acknowledgement message, construct an acknowledgement message, and send the acknowledgement packet to the top-level gateway. .
  • the top-level gateway is further configured to start a timer when the downlink packet is buffered
  • the top-level gateway is configured to: detect whether an acknowledgement message from the access gateway is received within a preset time of the timer;
  • the top-level gateway When the top-level gateway receives the acknowledgement message from the access gateway, the top-level gateway is further configured to: close the timer.
  • the top-level gateway is further configured to start an exception processing process when the number of times that the same packet is repeatedly sent reaches a preset threshold and the acknowledge packet is not received.
  • the top-level gateway is configured to: directly send the downlink packet to the access gateway, and/or send the downlink packet to the access gateway through the intermediate gateway;
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for performing the first data transmission method of the embodiment of the present invention.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for performing the second data transmission method of the embodiment of the present invention.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for performing a third data transmission method of the embodiment of the present invention.
  • the top-level gateway receives the downlink packet from the Internet, caches the downlink packet, and sends the downlink packet to the access gateway; the access gateway will Sending the downlink message to the terminal; receiving the acknowledgement message sent by the terminal, when receiving the acknowledgement message, constructing the acknowledgement message, and sending the acknowledgement message to the top-level gateway; the top-level gateway detects in the preset time Whether the acknowledgement packet from the access gateway is received, and when the acknowledgement packet from the access gateway is received, the buffered downlink packet is deleted; Otherwise, the downlink message is resent to the access gateway.
  • the retransmission mechanism of the downlink packet is introduced in the wireless system, so that the packet loss in the wireless system can be retransmitted more quickly, and the problem of high-efficiency data transmission in the complex wireless network scenario is effectively solved, thereby improving the user experience. And optimize the bandwidth efficiency of the wireless system.
  • FIG. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a data transmission method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic flowchart of a data transmission method according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic flowchart of a data transmission method according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic flowchart of a data transmission method according to Embodiment 5 of the present invention.
  • FIG. 6 is a schematic flowchart of a data transmission method according to Embodiment 6 of the present invention.
  • FIG. 7 is a schematic flowchart of a data transmission method according to Embodiment 7 of the present invention.
  • FIG. 8 is a schematic flowchart of a data transmission method according to Embodiment 8 of the present invention.
  • FIG. 9 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a data transmission apparatus according to Embodiment 2 of the present invention.
  • FIG. 11 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention.
  • the top-level gateway receives the downlink packet from the Internet, caches the downlink packet, and sends the downlink packet to the access gateway; the access gateway sends the downlink packet to the terminal; The acknowledgment message sent by the terminal, when receiving the acknowledgment message, constructs an acknowledgment message, and sends the acknowledgment message to the top-level gateway; the top-level gateway detects whether the acknowledgement message from the access gateway is received within a preset time. If the acknowledgement packet from the access gateway is received, the buffered downlink packet is deleted; otherwise, the downlink packet is resent to the access gateway.
  • the top-level gateway starts a timer when the downlink packet is buffered, and detects whether an acknowledgement packet from the access gateway is received within a preset time of the timer; when the top-level gateway receives the The timer is turned off when the gateway acknowledges the packet.
  • the top-level gateway starts an exception processing procedure.
  • the sending, by the top-level gateway, the downlink packet to the access gateway includes: directly sending the downlink packet to the access gateway, and/or sending the downlink packet to the access gateway by using an intermediate gateway;
  • detecting, by the top-level gateway, whether the acknowledgment message from the access gateway is received includes: detecting whether an acknowledgment message directly from the access gateway is received, and/or an acknowledgment message sent by the access gateway through the intermediate gateway.
  • FIG. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present invention. As shown in FIG. 1 , a data transmission method according to an embodiment of the present invention includes the following steps:
  • Step 101 Receive a downlink message from the Internet
  • Step 102 Cache the downlink packet and send it to the access gateway.
  • the access gateway refers to a gateway that cooperates with the terminal to complete the interaction of the user data in the air interface
  • the access gateway is generally responsible for the radio resource management and the transmission and reception of the terminal data packet in the air interface, but is not limited to the above functions, and the access gateway Not limited to one physical entity.
  • the method before the downlink packet is buffered and sent, the method further includes: encapsulating the received downlink packet data; and the field for encapsulating the downlink packet includes: The unique identifier of the downlink packet;
  • the method when the downlink packet is buffered, the method further includes: starting a timer;
  • the sending the downlink packet to the access gateway includes: directly sending the encapsulated downlink packet to the access gateway, and/or sending the encapsulated downlink packet to the access through the intermediate gateway.
  • Step 103 Detecting whether an acknowledgment message from the access gateway is received, and when receiving the acknowledgment message from the access gateway, step 103 is performed; otherwise, step 104 is performed;
  • the detecting, by the preset time, whether the acknowledgment message from the access gateway is received is: detecting whether an acknowledgment message from the access gateway is received within a preset time of the timer;
  • the preset time can be set according to the networking conditions.
  • the detecting whether the acknowledgment message from the access gateway is received includes: detecting whether an acknowledgment message directly from the access gateway is received, and/or an acknowledgment message sent by the access gateway through the intermediate gateway.
  • Step 104 Delete the buffered downlink packet.
  • the method further includes: turning off the timer.
  • Step 105 Resend the downlink packet to the access gateway.
  • the re-sending of the downlink packet can be performed on the replacement link or on the original link to achieve better results.
  • the exception processing procedure when the number of repeated transmissions of the same packet reaches a preset threshold and the acknowledgement packet is not received, the exception processing procedure is started.
  • the preset threshold for the number of times the same packet is repeatedly sent may be determined according to the networking situation.
  • a data transmission method according to an embodiment of the present invention includes the following steps:
  • Step 201 Receive a downlink packet from the top-level gateway, and send the downlink packet to the terminal.
  • the downlink packet is forwarded to the terminal through the air interface.
  • Step 202 Receive an acknowledgement message sent by the terminal, and when receiving the acknowledgement message, construct Acknowledge the message and send the acknowledgement message to the top-level gateway;
  • the top-level gateway refers to a gateway of the wireless network that accesses the Internet and finally accesses the Internet, and is responsible for the interconnection of user data between the wireless network and the Internet.
  • the top-level gateway has an IP address assigned to the terminal, and the support is fixed. Control the integrity of the service link when the terminal moves, and the terminal negotiates and controls the quality of service (QOS, Quality of Service) attributes of the wireless channel, and controls the rate of packet transmission to avoid congestion of the transmission node in the wireless network.
  • QOS Quality of Service
  • the capability of the top-level gateway is not limited to the above range.
  • FIG. 3 is a schematic flowchart of a data transmission method according to Embodiment 3 of the present invention. As shown in FIG. 3, the data transmission method in the embodiment of the present invention includes the following steps:
  • Step 301 The top-level gateway receives the downlink packet from the Internet.
  • Step 302 The top-level gateway caches the downlink packet and sends the downlink packet to the access gateway.
  • the method before the downlink packet is buffered and sent, the method further includes: encapsulating the received downlink packet data; and the field for encapsulating the downlink packet includes: The unique identifier of the downlink packet;
  • the method further includes: starting a timer
  • the sending, by the top-level gateway, the downlink packet to the access gateway includes: directly sending the encapsulated downlink packet to the access gateway, and/or sending the encapsulated downlink packet to the access through the intermediate gateway Gateway
  • Step 303 The access gateway sends the downlink packet to the terminal.
  • the access gateway forwards the downlink packet to the terminal through the air interface.
  • Step 304 The access gateway receives the acknowledgement message sent by the terminal, and when receiving the acknowledgement message, constructs an acknowledgement message, and sends the acknowledgement message to the top-level gateway.
  • Step 305 The top-level gateway detects whether a confirmation from the access gateway is received within a preset time. The message, when receiving the confirmation message from the access gateway, step 306; otherwise, step 307;
  • the apex gateway detects whether the acknowledgment message from the access gateway is received within a preset time period: detecting whether an acknowledgment message from the access gateway is received within a preset time of the timer; The time can be set according to the networking situation.
  • the detecting, by the top-level gateway, whether the acknowledgment message from the access gateway is received includes: detecting whether an acknowledgment message directly from the access gateway is received, and/or an acknowledgment message sent by the access gateway through the intermediate gateway.
  • Step 306 The top-level gateway deletes the buffered downlink packet.
  • the method further includes: turning off the timer.
  • Step 307 The top-level gateway resends the downlink packet to the access gateway.
  • the re-sending of the downlink packet can be performed on the replacement link or on the original link to achieve better results.
  • the top-level gateway starts an exception processing procedure.
  • the preset threshold for the number of times the same packet is repeatedly sent may be determined according to the networking situation.
  • FIG. 4 is a schematic flowchart of a data transmission method according to Embodiment 4 of the present invention.
  • the embodiment shown in FIG. 4 is a processing procedure when a single link exists between a top-level gateway and an access gateway, as shown in FIG. 4, the data transmission method according to an embodiment of the present invention is shown in FIG. Includes the following steps:
  • Step 401 The terminal establishes a connection with the service server of the Internet through the 4G wireless network, and receives the downlink packet sent by the service server sent by the service server.
  • Step 402 The service server sends a downlink packet to the top-level gateway.
  • Step 403 The top-level gateway receives the downlink packet, caches the downlink packet, and starts a timer to wait for a response message.
  • a top-level gateway In a 4G network, a top-level gateway generally refers to a Public Data Network Gateway (PGW); in a 2G or 3G network, a top-level gateway generally refers to a Gateway General Packet Radio Service Support Node (GGSN). For other systems, the top-level gateway refers to functional entities like PGW and GGSN;
  • PGW Public Data Network Gateway
  • GGSN Gateway General Packet Radio Service Support Node
  • the setting of the timer may be different in different networking environments.
  • the delay of the transmission path of the wireless system may be determined in advance, and the value of the timeout timer may be determined by referring to the TCP protocol;
  • Step 404 The top-level gateway encapsulates the received downlink packet according to the relevant wireless protocol.
  • the field for encapsulating the downlink packet includes a unique identifier that distinguishes the downlink packet
  • the related wireless protocol for encapsulating the downlink packet is not limited in this patent.
  • the related wireless protocol may be a protocol such as 3GPP 29.060 or 3GPP 23.401, and correspondingly, the downlink packet is distinguished.
  • the unique identifier is the combination of the serial number of the GTP User plane (GTPU, GTP User plane) header, the GTPU TEID (Tunnel Endpoint identifier), and the GTPU IP address.
  • GTPU GTP User plane
  • GTPU TEID Tunnelnel Endpoint identifier
  • the relevant protocol refers to similar Similar agreements for 2G, 3G, 4G protocols;
  • Step 405 The top-level gateway sends the encapsulated downlink packet to the access gateway.
  • Step 406 After receiving the downlink packet, the access gateway records a unique identifier in the downlink packet.
  • Step 407 The access gateway sends the downlink packet to the terminal through an air interface.
  • an access gateway In a 4G network, an access gateway generally refers to an evolved base station (eNB), and in a 2G network, an access gateway generally refers to a base station controller (BSC, Base Station Controller) and a base station; The access gateway refers to a Radio Network Controller (RNC) and a base station; for other systems, the access gateway refers to a functional entity similar to the eNB, the BSC, and the RNC;
  • eNB evolved base station
  • BSC Base Station Controller
  • RNC Radio Network Controller
  • the behavior of the access gateway transmitting the downlink packet to the terminal through the air interface is not limited in this patent.
  • 4G reference may be made to the 3GPP 36 series protocol; for other standards, refer to the similar 3GPP 36 series protocol of the standard;
  • Step 408 After receiving the downlink packet, the terminal sends an acknowledgement message to the access gateway.
  • Step 409 When receiving the acknowledgment message sent by the terminal, the access gateway uses the recorded downlink message to uniquely identify the acknowledgment message.
  • the acknowledgement message can be constructed in any manner that can be recognized by the top-level gateway.
  • Step 410 The access gateway sends the acknowledgement message to the top-level gateway.
  • Step 411 When the top-level gateway receives the acknowledgement packet, extract the unique identifier of the response packet, find and stop the downlink packet corresponding timer according to the unique identifier, and then find and delete the cached downlink. Text.
  • the top-level gateway does not receive the acknowledgement packet due to various reasons, such as ground transmission congestion between the top-level gateway and the access gateway, abnormal access gateway processing, and loss of air interface connection.
  • the top-level gateway resends the buffered downlink message and resets the timer, that is, the process of steps 404 to 410 is re-executed. If resending If the correct acknowledgement packet is obtained, go to step 411.
  • the top-level gateway deletes the buffered downlink packet and stops the timer. Otherwise, the re-send is performed again. If the same packet is sent multiple times, the correct response cannot be obtained.
  • the gateway initiates an exception handling process, such as terminating the wireless connection of the UE.
  • FIG. 5 is a schematic flowchart of a data transmission method according to Embodiment 5 of the present invention.
  • the embodiment shown in FIG. 5 is a processing procedure when a double link exists between a top-level gateway and an access gateway, as shown in FIG. 5, the data transmission method of the embodiment of the present invention is shown in FIG. Includes the following steps:
  • Step 501 The terminal establishes a connection with the service server of the Internet through the 4G wireless network, and receives the downlink packet sent by the service server sent by the service server.
  • Step 502 The service server sends multiple downlink packets to the top-level gateway.
  • the service server sends two downlink packets to the top-level gateway: downlink packet 1 and downlink packet 2;
  • Step 503 The top-level gateway receives the downlink packet 1 and the downlink packet 2, buffers the two downlink packets, and starts timer 1 and timer 2 for the downlink packet 1 and the downlink packet 2, respectively, waiting Response message
  • the top-level gateway may be a PGW
  • Step 504 The top-level gateway encapsulates the received downlink packet 1 and downlink packet 2 according to the relevant wireless protocol.
  • the field that encapsulates the downlink packet includes an identifier that uniquely distinguishes the downlink packet 1 and the downlink packet 2: a unique identifier 1 and a unique identifier 2; in this step, the top-level gateway downlink packet 1 And the encapsulation manner of the downlink packet 2 is the same as the step 404;
  • Step 505 The top-level gateway sends the encapsulated downlink packet 1 to the access gateway 1, and sends the encapsulated downlink packet 2 to the access gateway 2;
  • the access gateway 1 may be an eNB, and the access gateway 2 may be an access point (AP, Access). Point);
  • Step 506 After receiving the downlink packet 1, the access gateway 1 records the unique identifier 1 of the downlink packet. After receiving the downlink packet 2, the access gateway 2 records the downlink packet. The only indication of 2 is 2;
  • Step 507 The access gateway 1 sends the downlink packet 1 to the terminal through the air interface; the access gateway 2 sends the downlink packet 2 to the terminal through the air interface;
  • Step 508 After receiving the downlink packet, the terminal sends an acknowledgement message 1 and an acknowledgement message 2 to the access gateway 1 and the access gateway 2 respectively;
  • Step 509 When receiving the acknowledgment message 1 sent by the terminal, the access gateway 1 constructs the acknowledgment message 1 by using the recorded message unique identifier 1; when the access gateway 2 receives the acknowledgment message 2 sent by the terminal, the access gateway 2 uses The recorded message unique identifier 2 constructs the confirmation message 2;
  • Step 510 The access gateway 1 sends the acknowledgement message 1 to the top-level gateway; the access gateway 2 sends the acknowledgement message 2 to the top-level gateway;
  • Step 511 When the top-level gateway receives the acknowledgement packet 1, extract the unique identifier 1 of the response packet, find and stop the downlink packet 1 corresponding to the timer 1 according to the unique identifier 1, and then find and delete the cache.
  • the top-level gateway extracts the unique identifier 2 of the response packet, finds and stops the downlink packet 2 corresponding to the timer 2 according to the unique identifier 2, and then finds and Delete cached downstream packet 2.
  • FIG. 6 is a schematic flowchart of a data transmission method according to Embodiment 6 of the present invention.
  • the embodiment shown in FIG. 6 is an exception processing process when a double link exists between a top-level gateway and an access gateway.
  • the data transmission is performed in the embodiment of the present invention.
  • the method includes the following steps:
  • Step 601 The terminal establishes a connection with the service server of the Internet through the 4G wireless network, and receives the downlink packet sent by the service server sent by the service server.
  • Step 602 The service server sends a downlink packet to the top-level gateway.
  • Step 603 The top-level gateway receives the downlink packet, caches the downlink packet, starts a timer, and waits for a response message.
  • Step 604 The top-level gateway encapsulates the received downlink packet according to the relevant wireless protocol.
  • the field that encapsulates the downlink packet includes a unique identifier that distinguishes the downlink packet.
  • Step 605 The top-level gateway sends the encapsulated downlink packet to the access network 1;
  • the access gateway 1 may be an eNB
  • Step 606 After receiving the downlink packet, the access gateway 1 fails to send the downlink packet to the terminal due to the abnormality.
  • the abnormal reasons mentioned here include, but are not limited to, abnormal processing of the access gateway, loss of air interface connection, and the like;
  • Step 607 The timer corresponding to the downlink packet in the top-level gateway still fails to receive the acknowledgement packet from the access gateway.
  • Step 608 The top-level gateway sends the downlink packet to the access gateway 2;
  • the access gateway 2 may be an AP
  • Step 609 After receiving the downlink packet, the access gateway 2 accesses the gateway to record a unique identifier in the downlink packet.
  • Step 610 The access gateway 2 sends the downlink packet to the terminal through an air interface.
  • Step 611 After receiving the downlink packet, the terminal sends an acknowledgement message to the access gateway 2;
  • Step 612 When receiving the acknowledgment message sent by the terminal, the access gateway 2 uses the recorded message to uniquely identify the acknowledgment message.
  • Step 613 The access gateway 2 sends the acknowledgement message to the top-level gateway.
  • Step 614 When the top-level gateway receives the acknowledgement packet, extract the unique identifier of the response packet, find and stop the timer corresponding to the downlink packet according to the unique identifier, and then find and The cached downlink packet is deleted.
  • FIG. 7 is a schematic flowchart of a data transmission method according to Embodiment 7 of the present invention.
  • the embodiment shown in FIG. 7 is a processing procedure when an intermediate gateway exists between a top-level gateway and an access gateway, as shown in FIG. 7, the data transmission method according to the embodiment of the present invention is shown in FIG. Includes the following steps:
  • Step 701 The terminal establishes a connection with the service server of the Internet through the 4G wireless network, and receives the downlink packet sent by the service server sent by the service server.
  • Step 702 The service server sends a downlink packet to the top-level gateway.
  • Step 703 The top-level gateway receives the downlink packet, caches the downlink packet, starts a timer, and waits for a response message.
  • Step 704 The top-level gateway encapsulates the received downlink packet according to the relevant wireless protocol.
  • Step 705 The top-level gateway sends the encapsulated downlink packet to the intermediate gateway.
  • the intermediate gateway generally refers to other gateways that may exist between the top-level gateway and the access gateway.
  • the intermediate gateway may be a service gateway (SGW, Service Gateway; in a 2G, 3G network, the intermediate gateway may be a service general packet radio service support node (SGSN, Serving General Packet Radio Service Support Node).
  • SGW service gateway
  • SGSN Serving General Packet Radio Service Support Node
  • the intermediate gateway refers to a network element similar to the SGW and the SGSN. This embodiment is described based on the existence of the intermediate gateway.
  • Step 706 The intermediate gateway performs GTPU decapsulation on the downlink packet, obtains the unique identifier of the downlink packet, and then performs GTPU encapsulation on the packet, and uses the sequence number of the new GTPU packet as the new downlink packet. a unique identifier; and record the correspondence between the old and new unique identifiers of the downlink message;
  • the intermediate gateway may record the unique identifier of the packet before and after decapsulation and re-encapsulation, that is, the GTPU sequence number, and replace the acknowledgement packet received from the terminal; or directly use the top-level gateway to encapsulate Unique identifier sent to the access gateway
  • the intermediate gateway does not need to record the old and new unique identifiers, but needs to ensure the uniqueness of the unique identifiers, and avoids conflicts between the unique identifiers because there are multiple top-level gateways and multiple intermediate gateways in the system.
  • Step 707 The intermediate gateway sends the re-encapsulated downlink packet to the access gateway.
  • Step 708 After receiving the downlink packet, the access gateway records a unique identifier in the downlink packet.
  • the unique identifier in the downlink packet received by the access gateway is a new unique identifier generated after re-encapsulation.
  • Step 709 The access gateway sends the downlink packet to the terminal through an air interface.
  • Step 710 After receiving the downlink packet, the terminal sends an acknowledgement message to the access gateway.
  • Step 711 When receiving the acknowledgment message sent by the terminal, the access gateway uses the recorded downlink message to uniquely identify the acknowledgment message.
  • Step 712 The access gateway sends the acknowledgement packet to the intermediate gateway.
  • Step 713 The intermediate gateway replaces the unique identifier in the received acknowledgement packet according to the stored correspondence between the old and new unique identifiers of the downlink packet, and replaces the new unique identifier in the downlink packet with the original identifier.
  • Old unique identifier
  • the step does not need to be performed;
  • Step 714 The intermediate gateway sends the acknowledgement message to the top-level gateway.
  • Step 715 When the top-level gateway receives the acknowledgement packet, extract the unique identifier of the response packet, find and stop the downlink packet corresponding timer according to the unique identifier, and then find and delete the cached downlink. Text.
  • FIG. 8 is a schematic flowchart of a data transmission method according to Embodiment 8 of the present invention.
  • the process of simultaneously processing multiple downlink packets in the embodiment shown in FIG. 8 is as shown in FIG. 8.
  • the data transmission method package according to the embodiment of the present invention is shown in FIG. Including the following steps:
  • Step 801 The terminal establishes a connection between the service server of the Internet through the 4G wireless network, and receives multiple downlink packets sent by the service server sent by the service server.
  • Step 802 The top-level gateway enables the congestion control mechanism, and first sends a received downlink packet from the Internet to the access gateway.
  • Step 803 The access gateway forwards the downlink packet, and performs a process of confirming the message receiving and confirming the packet.
  • the process may refer to the packet forwarding process in any of the foregoing embodiments.
  • Step 804 The access gateway sends an acknowledgement message to the top-level gateway.
  • Step 805 The top-level gateway deletes the buffered downlink packet.
  • Step 806 The top-level gateway sends two downlink packets to the access gateway.
  • Step 807 The access gateway forwards the downlink packet, and performs a process of confirming the message receiving and confirming the packet.
  • the process may refer to the packet forwarding process in any of the foregoing embodiments.
  • Step 808 The access gateway sends two acknowledgement messages to the top-level gateway.
  • Step 809 The top-level gateway deletes the buffered downlink packet.
  • Step 810 The top-level gateway gradually increases the number of downlink packets sent to avoid wireless system congestion.
  • FIG. 9 is a schematic structural diagram of a data transmission device according to an embodiment of the present invention.
  • the device is located at a top-level gateway. As shown in FIG. 9, the device includes: a downlink packet receiving module. 91, a cache module 92, a downlink packet sending module 93, an acknowledgement packet receiving module 94, and a processing module 95;
  • the downlink packet receiving module 91 is configured to receive a downlink packet from the Internet
  • the cache module 92 is configured to cache the downlink packet.
  • the device further includes an encapsulating module 96, configured to encapsulate the received downlink packet data before the downlink packet is buffered and sent, and the encapsulating module 96 is configured to the downlink packet.
  • the field to be encapsulated includes a unique identifier that distinguishes the downlink message. knowledge;
  • the device further includes a timer 97, configured to enable a timing function when the downlink packet is buffered;
  • the downlink packet sending module 93 is configured to send the downlink packet to an access gateway.
  • the downlink packet sending module 93 is configured to: directly send the downlink packet to the access gateway, and/or send the downlink packet to the access gateway through the intermediate gateway;
  • the acknowledgement message receiving module 94 is configured to receive an acknowledgement message from the access gateway.
  • the processing module 95 is configured to detect whether an acknowledgment message from the access gateway is received within a preset time, and when the acknowledgment message from the access gateway is received, delete the cached downlink message; otherwise, Resending the downlink packet to the access gateway;
  • the processing module 95 is configured to detect whether an acknowledgment message from the access gateway is received within a preset time of the timer, including detecting whether an acknowledgment message directly from the access gateway is received, and/or the access gateway passes The acknowledgement packet sent by the intermediate gateway.
  • the processing module 95 is further configured to: close the timer when receiving the acknowledgement message from the access gateway;
  • the processing module 95 retransmits the downlink packet to the access gateway.
  • the re-sending of the downlink packet can be performed by replacing the link. It can also be done on the original link for better results.
  • the processing module 95 is further configured to: when the number of repeated transmissions of the same packet reaches the preset threshold, the acknowledgment packet is still not received. Exception handling process.
  • the preset threshold for the number of times the same packet is repeatedly sent may be determined according to the networking situation.
  • FIG. 10 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention.
  • the apparatus is located at an access gateway, and the apparatus according to FIG. 10 includes: a downlink packet receiving module 101 and a downlink.
  • Text sending module 102 confirmation message receiving module 103, confirmation a message construction module 104, an acknowledgement message sending module 105, wherein
  • the downlink packet receiving module 101 is configured to receive a downlink packet from a top-level gateway
  • the downlink packet sending module 102 is configured to send the downlink packet to the terminal;
  • the downlink packet sending module 102 forwards the downlink packet to the terminal through an air interface
  • the confirmation message receiving module 103 is configured to receive an acknowledgement message sent by the terminal;
  • the confirmation message construction module 104 is configured to construct an acknowledgement message when the confirmation message is received;
  • the acknowledgement message sending module 105 is configured to send the acknowledgement message to the top-level gateway.
  • FIG. 11 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention. As shown in FIG. 11, the system includes a top-level gateway 111 and an access gateway 112, where
  • the top-level gateway 111 is configured to receive a downlink packet from the Internet, cache the downlink packet, and send the downlink packet to the access gateway, and detect whether the acknowledgement packet from the access gateway is received within a preset time. Deleting the buffered downlink packet when receiving the acknowledgement packet from the access gateway; otherwise, the downlink packet is resent to the access gateway;
  • a top-level gateway In a 4G network, a top-level gateway generally refers to a Public Data Network Gateway (PGW); in a 2G or 3G network, a top-level gateway generally refers to a Gateway General Packet Radio Service Support Node (GGSN). For other systems, the top-level gateway refers to functional entities like PGW and GGSN;
  • PGW Public Data Network Gateway
  • GGSN Gateway General Packet Radio Service Support Node
  • the top-level gateway 111 is further configured to encapsulate the received downlink packet data before the downlink packet is buffered and sent, and the field encapsulated in the downlink packet includes a difference. a unique identifier of the downlink packet;
  • system may further include an intermediate gateway 113, configured to send the received downlink packet from the top-level gateway to the access gateway, and receive the received from the access gateway. Confirm that the message is sent to the top-level gateway;
  • the intermediate gateway generally refers to other gateways that may exist between the top-level gateway and the access gateway.
  • the intermediate gateway may be an SGW; in a 2G or 3G network, the intermediate gateway may be an SGSN; for other systems, the intermediate gateway refers to a network element similar to the SGW and the SGSN.
  • the intermediate gateway may or may not exist.
  • the access gateway 113 is configured to: decapsulate the downlink packet, obtain the unique identifier of the downlink packet, and then re-encapsulate the packet, and use the sequence number of the re-encapsulated downlink packet as the downlink. a new unique identifier of the packet; a correspondence between the old and new unique identifiers of the downlink packet; the re-encapsulated downlink packet is sent to the access gateway; and the access gateway 113 can directly use the top-level gateway
  • the encapsulated unique identifier sends the downlink packet to the access gateway.
  • the intermediate gateway 113 does not need to record the old and new unique identifiers, but needs to ensure the uniqueness of the unique identifier to avoid multiple top layers in the system.
  • the gateway and multiple intermediate gateways cause the unique identifier to collide.
  • the top-level gateway 111 is configured to: directly send the downlink packet to the access gateway 113, and/or send the downlink packet to the access gateway 112 through the intermediate gateway 113; and detect whether the direct access is received.
  • the top-level gateway 111 is further configured to start a timer
  • the top-level gateway 111 is configured to: detect whether an acknowledgement message from the access gateway is received within a preset time of the timer; when the top-level gateway 111 receives the access network from the access network When the acknowledgement message is closed, the top-level gateway 111 is further configured to: close the timer.
  • the preset time of the timer can be set according to the networking situation.
  • the top-level gateway 111 When the top-level gateway 111 retransmits the downlink packet to the access gateway, when there is more than one transmission link between the terminal and the top-level gateway, the re-sending of the downlink packet can be performed by replacing the link. , can also be carried out on the original link to achieve better results.
  • the top-level gateway 111 is further configured to start an exception processing process when the number of times the same packet is repeatedly sent reaches a preset threshold and the acknowledge packet is not received.
  • the preset threshold for the number of times the same packet is repeatedly sent may be determined according to the networking situation.
  • the access gateway 112 is configured to send the downlink packet to the terminal, and receive an acknowledgement message sent by the terminal. When receiving the acknowledgement message, construct an acknowledgement packet, and send the acknowledgement packet to the top layer. Gateway
  • the access gateway 112 after receiving the downlink packet from the top-level gateway, the access gateway 112 forwards the downlink packet to the terminal through the air interface.
  • an access gateway In a 4G network, an access gateway generally refers to an evolved base station (eNB), and in a 2G network, an access gateway generally refers to a base station controller (BSC, Base Station Controller) and a base station; The access gateway refers to a Radio Network Controller (RNC) and a base station; for other systems, the access gateway refers to a functional entity similar to the eNB, the BSC, and the RNC;
  • eNB evolved base station
  • BSC Base Station Controller
  • RNC Radio Network Controller
  • Each module in the data transmission device proposed in the embodiment of the present invention may be implemented by a processor, and may also be implemented by a specific logic circuit; wherein the processor may be a processor on a mobile terminal or a server, in practice
  • the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA).
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the above data transmission method is implemented in the form of a software function module, and is sold or used as an independent product, it may also be stored in a computer readable storage medium. Quality. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for executing the data transmission method described in FIG.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for executing the data transmission method described in FIG. 2 .
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for executing the data transmission method described in FIG. 3 to FIG.

Abstract

Provided is a data transmission method, comprising: receiving a downlink packet from the Internet, caching the downlink packet, and sending same to an access gateway; and within a pre-set time, detecting whether an acknowledgement packet from the access gateway is received, and deleting the cached downlink packet when the acknowledgement packet from the access gateway is received, otherwise, resending the downlink packet to the access gateway. Also provided are additional two data transmission methods, two data transmission devices, one data transmission system and three storage mediums.

Description

一种数据传输方法、装置、系统及存储介质Data transmission method, device, system and storage medium 技术领域Technical field
本发明涉及无线通信技术,尤其涉及一种数据传输方法、装置、系统及存储介质。The present invention relates to wireless communication technologies, and in particular, to a data transmission method, apparatus, system, and storage medium.
背景技术Background technique
无线网络中传输数据业务在地面部分主要使用的协议是通用分组无线服务隧道协议(GTP,General Packet Radio Service Tunnel Protocol),参考第三代合作伙伴计划(3GPP,The 3rd Generation Partnership Project)第29.060号协议,GTP协议本身没有对传输的可靠性做出保证,承载GTP协议用户数据包协议(UDP,User Datagram Protocol)/互联网协议(IP,Internet Protocol)协议也不能保证传输质量。The protocol mainly used in the terrestrial part of the transmission data service in the wireless network is the General Packet Radio Service Tunnel Protocol (GTP), and the 3rd Generation Partnership Project (3GPP, The 3rd Generation Partnership Project) No. 29.060 The protocol, the GTP protocol itself does not guarantee the reliability of the transmission, and the GTP protocol User Datagram Protocol (UDP)/Internet Protocol (IP) protocol cannot guarantee the transmission quality.
目前的传输机制在第二代无线通讯技术(2G,2nd Generation)中是没有问题的,因为早期的传输网络组网简单,带宽相对比较充裕,地面传输基本上不会发生拥塞和丢包;并且,早期的用户的数据业务流量不高,抖动不明显,因此通过合理的规划,使用GTP协议就能取得较好的传输效果。The current transmission mechanism is no problem in the second generation wireless communication technology (2G, 2nd Generation), because the early transmission network networking is simple, the bandwidth is relatively abundant, and the ground transmission basically does not cause congestion and packet loss; Moreover, the early user's data traffic is not high, and the jitter is not obvious. Therefore, through reasonable planning, the GTP protocol can achieve better transmission results.
但是,随着互联网的飞速发展,用户对互联网业务的多样性的追求,形势发生了巨大的改变。这些改变主要体现在:(1)用户的数据业务的流量特性变得难以预估,这主要表现在不同的业务有不同的流量特性;例如视频业务需要大而且流量稳定的带宽,而下载类业务会尽量抢占带宽而对流量的稳定性并不关注,用户可能在任何时刻和地点使用这些业务;(2)组网复杂度增加,早期的单制式组网变成多制式协同组网,早前的异步传输模式(ATM,Asynchronous Transfer Mode)组网替换成IP组网。在当前情况下,使用传统的数据传输方法会面临一些新的问题:无线系统的丢包 变得剧烈,这就需要应用层的传输控制协议(TCP,Transmission Control Protocol)进行感知并重新发送,而应用层的重新发送因为时延等原因会对用户体验造成较大的影响;同时,应用层的TCP一旦感知丢包并重新发送,会启用拥塞控制机制,这一机制和无线系统存在一定的冲突,会导致无线系统的带宽利用率下降。这一现象在第三代无线通讯技术(3G,3rd Generation)无线网络已经有一定的体现,并会在第四代无线通讯技术(4G,4th Generation)网络甚至今后的无线网络变得更加严重。However, with the rapid development of the Internet and the user's pursuit of the diversity of Internet services, the situation has undergone tremendous changes. These changes are mainly reflected in: (1) the traffic characteristics of users' data services become difficult to predict, which is mainly manifested in different traffic characteristics of different services; for example, video services require large and stable traffic, and download services It will try to preempt the bandwidth and not pay attention to the stability of the traffic. Users may use these services at any time and place. (2) The complexity of networking increases, and the early single-system networking becomes a multi-standard collaborative networking. The Asynchronous Transfer Mode (ATM) network is replaced with an IP network. In the current situation, the traditional data transmission method will face some new problems: the loss of the wireless system becomes severe, which requires the application layer's Transmission Control Protocol (TCP) to sense and resend. The retransmission of the application layer may have a greater impact on the user experience due to delays. At the same time, the TCP of the application layer will enable the congestion control mechanism once it detects packet loss and resends. This mechanism has certain conflicts with the wireless system. Will cause the bandwidth utilization of the wireless system to decrease. This phenomenon is the third generation of wireless communication technology (3G, 3 rd Generation) wireless network has a certain expression, and will become the fourth generation of wireless communication technology (4G, 4 th Generation) network and even the future of wireless network serious.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种数据传输方法、装置、系统及存储介质,能够有效解决复杂无线网络场景下高效率数据传输问题。In view of this, embodiments of the present invention are directed to providing a data transmission method, apparatus, system, and storage medium, which can effectively solve the problem of high-efficiency data transmission in a complex wireless network scenario.
为达到上述目的,本发明实施例的技术方案是这样实现的:To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供了一种数据传输方法,所述方法包括:An embodiment of the present invention provides a data transmission method, where the method includes:
接收来自互联网的下行报文,将所述下行报文进行缓存,并发送到接入网关;Receiving a downlink packet from the Internet, buffering the downlink packet, and sending the downlink packet to the access gateway;
在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,删除所述缓存的下行报文;否则,将所述下行报文重新发送到接入网关。Detecting whether an acknowledgment message from the access gateway is received, and deleting the buffered downlink packet when receiving the acknowledgment message from the access gateway; otherwise, resending the downlink packet Go to the access gateway.
上述方案中,在将所述下行报文进行缓存时,所述方法还包括:启动定时器;In the above solution, when the downlink packet is buffered, the method further includes: starting a timer;
相应地,所述在预设时间内检测是否接收到来自接入网关的确认报文为:在定时器预设的时间内检测是否接收到来自接入网关的确认报文;Correspondingly, the detecting, in the preset time, whether the acknowledgment message from the access gateway is received is: detecting whether an acknowledgment message from the access gateway is received within a preset time of the timer;
相应地,当接收到来自接入网关的确认报文时,所述方法还包括:关闭定时器。Correspondingly, when receiving the acknowledgement message from the access gateway, the method further comprises: turning off the timer.
上述方案中,所述方法还包括:当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,启动异常处理流程。 In the above solution, the method further includes: when the repeated number of times the same packet is repeatedly sent reaches a preset threshold, and the acknowledgement packet is not received, the exception processing procedure is started.
上述方案中,所述将下行报文发送到接入网关包括:直接将所述下行报文发送到接入网关,和/或通过中间网关将所述下行报文发送到接入网关;In the foregoing solution, the sending the downlink packet to the access gateway includes: directly sending the downlink packet to the access gateway, and/or sending the downlink packet to the access gateway by using an intermediate gateway;
相应地,所述检测是否接收到来自接入网关的确认报文包括:检测是否接收到直接来自接入网关的确认报文、和/或接入网关通过中间网关发送的确认报文。Correspondingly, the detecting whether the acknowledgment message from the access gateway is received includes: detecting whether an acknowledgment message directly from the access gateway is received, and/or an acknowledgment message sent by the access gateway through the intermediate gateway.
本发明实施例还提供了一种数据传输方法,所述方法包括:The embodiment of the invention further provides a data transmission method, the method comprising:
接收来自顶层网关的下行报文,并将所述下行报文发送到终端;Receiving a downlink packet from the top-level gateway, and sending the downlink packet to the terminal;
接收终端发送的确认消息,当接收到所述确认消息时,构建确认报文,并将所述确认报文发送到顶层网关。Receiving an acknowledgment message sent by the terminal, when receiving the acknowledgment message, constructing an acknowledgment message, and sending the acknowledgment message to the top-level gateway.
本发明实施例还提供了一种数据传输方法,所述方法包括:The embodiment of the invention further provides a data transmission method, the method comprising:
顶层网关接收来自互联网的下行报文,将所述下行报文进行缓存,并发送到接入网关;The top-level gateway receives the downlink packet from the Internet, caches the downlink packet, and sends the downlink packet to the access gateway;
接入网关将所述下行报文发送到终端;接收终端发送的确认消息,当接收到所述确认消息时,构建确认报文,并将所述确认报文发送到顶层网关;The access gateway sends the downlink packet to the terminal; the acknowledgment message sent by the terminal, when receiving the acknowledgment message, constructs an acknowledgment message, and sends the acknowledgment message to the top-level gateway;
顶层网关在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,删除所述缓存的下行报文;否则,将所述下行报文重新发送到接入网关。The apex gateway detects whether the acknowledgment message from the access gateway is received within the preset time. When receiving the acknowledgment message from the access gateway, the cached downlink packet is deleted; otherwise, the downlink packet is received. Resend to the access gateway.
上述方案中,所述顶层网关在将所述下行报文进行缓存时,所述方法还包括:启动定时器;In the above solution, when the top-level gateway caches the downlink packet, the method further includes: starting a timer;
相应地,所述顶层网关在预设时间内检测是否接收到来自接入网关的确认报文为:在定时器预设的时间内检测是否接收到来自接入网关的确认报文;Correspondingly, the apex gateway detects whether the acknowledgment message from the access gateway is received within a preset time period: detecting whether an acknowledgment message from the access gateway is received within a preset time of the timer;
相应地,当所述顶层网关接收到来自接入网关的确认报文时,所述方法还包括:关闭定时器。 Correspondingly, when the top-level gateway receives the acknowledgement message from the access gateway, the method further includes: turning off the timer.
上述方案中,所述方法还包括:当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,所述顶层网关启动异常处理流程。In the above solution, the method further includes: when the number of times the same packet is repeatedly sent reaches a preset threshold, and the acknowledgment message is not received, the top gateway starts an exception processing procedure.
上述方案中,所述顶层网关将下行报文发送到接入网关包括:所述顶层网关直接将所述下行报文发送到接入网关,和/或通过中间网关将所述下行报文发送到接入网关;In the foregoing solution, the sending, by the top-level gateway, the downlink packet to the access gateway includes: sending, by the top-level gateway, the downlink packet to the access gateway, and/or sending the downlink packet to the intermediate gateway Access gateway
相应地,所述顶层网关检测是否接收到来自接入网关的确认报文包括:所述顶层网关检测是否接收到直接来自接入网关的确认报文、和/或接入网关通过中间网关发送的确认报文。Correspondingly, the detecting, by the top-level gateway, whether the acknowledgment message is received from the access gateway comprises: detecting, by the top-level gateway, whether an acknowledgment message directly from the access gateway is received, and/or the access gateway sends the message through the intermediate gateway. Confirm the message.
本发明实施例还提供了一种数据传输装置,所述装置位于顶层网关,所述装置包括:下行报文接收模块、缓存模块、下行报文发送模块、确认报文接收模块、处理模块;其中,The embodiment of the present invention further provides a data transmission device, where the device is located at a top-level gateway, and the device includes: a downlink packet receiving module, a cache module, a downlink packet sending module, an acknowledgement packet receiving module, and a processing module; ,
所述下行报文接收模块,配置为接收来自互联网的下行报文;The downlink packet receiving module is configured to receive a downlink packet from the Internet;
所述缓存模块,配置为将所述下行报文进行缓存;The cache module is configured to cache the downlink packet.
所述下行报文发送模块,配置为将所述下行报文发送到接入网关;The downlink packet sending module is configured to send the downlink packet to an access gateway;
所述确认报文接收模块,配置为接收到来自接入网关的确认报文;The acknowledgement message receiving module is configured to receive an acknowledgement message from the access gateway;
所述处理模块,配置为在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,删除所述缓存的下行报文;否则,将所述下行报文重新发送到接入网关。The processing module is configured to detect whether an acknowledgment message from the access gateway is received within a preset time, and when the acknowledgment message from the access gateway is received, delete the cached downlink message; otherwise, The downlink packet is resent to the access gateway.
上述方案中,所述装置还包括定时器,配置为在将所述下行报文进行缓存时,开启定时功能;In the above solution, the device further includes a timer, configured to enable a timing function when the downlink packet is buffered;
相应地,所述处理模块配置为在定时器预设的时间内检测是否接收到来自接入网关的确认报文;Correspondingly, the processing module is configured to detect whether an acknowledgement message from the access gateway is received within a preset time of the timer;
当接收到来自接入网关的确认报文时,所述处理模块还配置为:关闭定时器。When receiving an acknowledgment message from the access gateway, the processing module is further configured to: close the timer.
上述方案中,所述处理模块还配置为:当同一报文重复发送次数达到 预设阈值仍没有收到确认报文时,启动异常处理流程。In the above solution, the processing module is further configured to: when the same packet is repeatedly sent When the preset threshold has not received the confirmation packet, the exception handling process is started.
上述方案中,下行报文发送模块配置为:直接将所述下行报文发送到接入网关,和/或通过中间网关将所述下行报文发送到接入网关;In the above solution, the downlink packet sending module is configured to: directly send the downlink packet to the access gateway, and/or send the downlink packet to the access gateway through the intermediate gateway;
相应地,所述处理模块配置为:检测是否接收到直接来自接入网关的确认报文、和/或接入网关通过中间网关发送的确认报文。Correspondingly, the processing module is configured to: detect whether an acknowledgment message directly from the access gateway is received, and/or an acknowledgment message sent by the access gateway through the intermediate gateway.
本发明实施例还提供了一种数据传输装置,所述装置位于接入网关,所述装置包括:下行报文接收模块、下行报文发送模块、确认消息接收模块、确认报文构建模块、确认报文发送模块,其中,The embodiment of the present invention further provides a data transmission device, where the device is located in an access gateway, and the device includes: a downlink packet receiving module, a downlink packet sending module, an acknowledgement message receiving module, an acknowledgement message building module, and a confirmation. Message sending module, wherein
所述下行报文接收模块,配置为接收来自顶层网关的下行报文;The downlink packet receiving module is configured to receive a downlink packet from the top-level gateway;
所述下行报文发送模块,配置为将所述下行报文发送到终端;The downlink packet sending module is configured to send the downlink packet to the terminal;
所述确认消息接收模块,配置为接收终端发送的确认消息;The confirmation message receiving module is configured to receive an acknowledgement message sent by the terminal;
所述确认报文构建模块,配置为当接收到所述确认消息时,构建确认报文;The confirmation message construction module is configured to: when receiving the confirmation message, construct an acknowledgement message;
所述确认报文发送模块,配置为将所述确认报文发送到顶层网关。The acknowledgement message sending module is configured to send the acknowledgement message to the top-level gateway.
本发明实施例还提供了一种数据传输系统,所述系统包括顶层网关、接入网关,其中,An embodiment of the present invention further provides a data transmission system, where the system includes a top-level gateway and an access gateway, where
所述顶层网关,配置为接收来自互联网的下行报文,将所述下行报文进行缓存,并发送到接入网关;在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,删除所述缓存的下行报文;否则,将所述下行报文重新发送到接入网关;The top-level gateway is configured to receive a downlink packet from the Internet, cache the downlink packet, and send the packet to the access gateway, and detect whether the acknowledgement packet from the access gateway is received within a preset time. And when the acknowledgment message from the access gateway is received, the buffered downlink packet is deleted; otherwise, the downlink packet is resent to the access gateway;
所述接入网关,配置为将所述下行报文发送到终端;接收终端发送的确认消息,当接收到所述确认消息时,构建确认报文,并将所述确认报文发送到顶层网关。The access gateway is configured to send the downlink packet to the terminal, and receive an acknowledgement message sent by the terminal. When receiving the acknowledgement message, construct an acknowledgement message, and send the acknowledgement packet to the top-level gateway. .
上述方案中,所述顶层网关还配置为在将所述下行报文进行缓存时,启动定时器; In the above solution, the top-level gateway is further configured to start a timer when the downlink packet is buffered;
相应地,所述顶层网关配置为:在定时器预设的时间内检测是否接收到来自接入网关的确认报文;Correspondingly, the top-level gateway is configured to: detect whether an acknowledgement message from the access gateway is received within a preset time of the timer;
当所述顶层网关接收到来自接入网关的确认报文时,所述顶层网关还配置为:关闭定时器。When the top-level gateway receives the acknowledgement message from the access gateway, the top-level gateway is further configured to: close the timer.
上述方案中,所述顶层网关还配置为当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,所述顶层网关启动异常处理流程。In the foregoing solution, the top-level gateway is further configured to start an exception processing process when the number of times that the same packet is repeatedly sent reaches a preset threshold and the acknowledge packet is not received.
上述方案中,所述顶层网关配置为:直接将所述下行报文发送到接入网关,和/或通过中间网关将所述下行报文发送到接入网关;In the above solution, the top-level gateway is configured to: directly send the downlink packet to the access gateway, and/or send the downlink packet to the access gateway through the intermediate gateway;
检测是否接收到直接来自接入网关的确认报文、和/或接入网关通过中间网关发送的确认报文。It is detected whether an acknowledgment message directly from the access gateway and/or an acknowledgment message sent by the access gateway through the intermediate gateway are received.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序,该计算机程序用于执行本发明实施例的第一种数据传输方法。The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for performing the first data transmission method of the embodiment of the present invention.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序,该计算机程序用于执行本发明实施例的第二种数据传输方法。The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for performing the second data transmission method of the embodiment of the present invention.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序,该计算机程序用于执行本发明实施例的第三种数据传输方法。The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for performing a third data transmission method of the embodiment of the present invention.
本发明实施例所提供的一种数据传输方法、装置、系统及存储介质,顶层网关接收来自互联网的下行报文,将所述下行报文进行缓存,并发送到接入网关;接入网关将所述下行报文发送到终端;接收终端发送的确认消息,当接收到所述确认消息时,构建确认报文,并将所述确认报文发送到顶层网关;顶层网关在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,删除所述缓存的下行报文; 否则,将所述下行报文重新发送到接入网关。如此,在无线系统内引入下行报文的重新发送机制,能够使无线系统内的丢包获得更快的重新发送,有效解决复杂无线网络场景下高效率数据传输的问题,从而提升了用户体验,并优化了无线系统的带宽效率。The data transmission method, device, system and storage medium provided by the embodiment of the present invention, the top-level gateway receives the downlink packet from the Internet, caches the downlink packet, and sends the downlink packet to the access gateway; the access gateway will Sending the downlink message to the terminal; receiving the acknowledgement message sent by the terminal, when receiving the acknowledgement message, constructing the acknowledgement message, and sending the acknowledgement message to the top-level gateway; the top-level gateway detects in the preset time Whether the acknowledgement packet from the access gateway is received, and when the acknowledgement packet from the access gateway is received, the buffered downlink packet is deleted; Otherwise, the downlink message is resent to the access gateway. In this way, the retransmission mechanism of the downlink packet is introduced in the wireless system, so that the packet loss in the wireless system can be retransmitted more quickly, and the problem of high-efficiency data transmission in the complex wireless network scenario is effectively solved, thereby improving the user experience. And optimize the bandwidth efficiency of the wireless system.
附图说明DRAWINGS
图1为本发明实施例一数据传输方法流程示意图;1 is a schematic flowchart of a data transmission method according to an embodiment of the present invention;
图2为本发明实施例二数据传输方法流程示意图;2 is a schematic flowchart of a data transmission method according to Embodiment 2 of the present invention;
图3为本发明实施例三数据传输方法流程示意图;3 is a schematic flowchart of a data transmission method according to Embodiment 3 of the present invention;
图4为本发明实施例四数据传输方法流程示意图;4 is a schematic flowchart of a data transmission method according to Embodiment 4 of the present invention;
图5为本发明实施例五数据传输方法流程示意图;FIG. 5 is a schematic flowchart of a data transmission method according to Embodiment 5 of the present invention; FIG.
图6为本发明实施例六数据传输方法流程示意图;6 is a schematic flowchart of a data transmission method according to Embodiment 6 of the present invention;
图7为本发明实施例七数据传输方法流程示意图;7 is a schematic flowchart of a data transmission method according to Embodiment 7 of the present invention;
图8为本发明实施例八数据传输方法流程示意图;FIG. 8 is a schematic flowchart of a data transmission method according to Embodiment 8 of the present invention; FIG.
图9为本发明实施例一数据传输装置结构示意图;FIG. 9 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention; FIG.
图10为本发明实施例二数据传输装置结构示意图;10 is a schematic structural diagram of a data transmission apparatus according to Embodiment 2 of the present invention;
图11为本发明实施例数据传输系统结构示意图。FIG. 11 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例所述数据传输方法,顶层网关接收来自互联网的下行报文,将所述下行报文进行缓存,并发送到接入网关;接入网关将所述下行报文发送到终端;接收终端发送的确认消息,当接收到所述确认消息时,构建确认报文,并将所述确认报文发送到顶层网关;顶层网关在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,删除所述缓存的下行报文;否则,将所述下行报文重新发送到接入网关。 In the data transmission method of the embodiment of the present invention, the top-level gateway receives the downlink packet from the Internet, caches the downlink packet, and sends the downlink packet to the access gateway; the access gateway sends the downlink packet to the terminal; The acknowledgment message sent by the terminal, when receiving the acknowledgment message, constructs an acknowledgment message, and sends the acknowledgment message to the top-level gateway; the top-level gateway detects whether the acknowledgement message from the access gateway is received within a preset time. If the acknowledgement packet from the access gateway is received, the buffered downlink packet is deleted; otherwise, the downlink packet is resent to the access gateway.
所述顶层网关在将所述下行报文进行缓存时,同时启动定时器;并在定时器预设的时间内检测是否接收到来自接入网关的确认报文;当所述顶层网关接收到来自接入网关的确认报文时,关闭定时器。The top-level gateway starts a timer when the downlink packet is buffered, and detects whether an acknowledgement packet from the access gateway is received within a preset time of the timer; when the top-level gateway receives the The timer is turned off when the gateway acknowledges the packet.
当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,所述顶层网关启动异常处理流程。When the number of repeated transmissions of the same packet reaches the preset threshold and the acknowledgement packet is not received, the top-level gateway starts an exception processing procedure.
这里,所述顶层网关将下行报文发送到接入网关包括:直接将所述下行报文发送到接入网关,和/或通过中间网关将所述下行报文发送到接入网关;相应地,所述顶层网关检测是否接收到来自接入网关的确认报文包括:检测是否接收到直接来自接入网关的确认报文、和/或接入网关通过中间网关发送的确认报文。Here, the sending, by the top-level gateway, the downlink packet to the access gateway includes: directly sending the downlink packet to the access gateway, and/or sending the downlink packet to the access gateway by using an intermediate gateway; And detecting, by the top-level gateway, whether the acknowledgment message from the access gateway is received includes: detecting whether an acknowledgment message directly from the access gateway is received, and/or an acknowledgment message sent by the access gateway through the intermediate gateway.
下面结合附图及实施例,对本发明实施例技术方案的实施作详细描述。图1为本发明实施例一数据传输方法流程示意图,如图1所示,本发明实施例数据传输方法包括以下步骤:The implementation of the technical solution of the embodiment of the present invention is described in detail below with reference to the accompanying drawings and embodiments. FIG. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present invention. As shown in FIG. 1 , a data transmission method according to an embodiment of the present invention includes the following steps:
步骤101:接收来自互联网的下行报文;Step 101: Receive a downlink message from the Internet;
步骤102:将所述下行报文进行缓存,并发送到接入网关;Step 102: Cache the downlink packet and send it to the access gateway.
这里,所述接入网关指和终端协同完成用户数据在空口的交互的网关,接入网关一般负责无线资源管理、终端数据报文在空口的收发,但是不限于上述功能,并且,接入网关不限于一个物理实体。Here, the access gateway refers to a gateway that cooperates with the terminal to complete the interaction of the user data in the air interface, and the access gateway is generally responsible for the radio resource management and the transmission and reception of the terminal data packet in the air interface, but is not limited to the above functions, and the access gateway Not limited to one physical entity.
本发明实施例中,在下行报文进行缓存和发送之前,所述方法还包括:对所接收到的下行报文数据进行封装;对所述下行报文进行封装的字段里面,包括区别所述下行报文的唯一标识;In the embodiment of the present invention, before the downlink packet is buffered and sent, the method further includes: encapsulating the received downlink packet data; and the field for encapsulating the downlink packet includes: The unique identifier of the downlink packet;
本步骤中,在将所述下行报文进行缓存时,所述方法还包括:启动定时器;In this step, when the downlink packet is buffered, the method further includes: starting a timer;
所述将下行报文发送到接入网关包括:直接将所述封装后的下行报文发送到接入网关,和/或通过中间网关将所述封装后的下行报文发送到接入 网关;The sending the downlink packet to the access gateway includes: directly sending the encapsulated downlink packet to the access gateway, and/or sending the encapsulated downlink packet to the access through the intermediate gateway. Gateway
步骤103:在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,执行步骤103;否则执行步骤104;Step 103: Detecting whether an acknowledgment message from the access gateway is received, and when receiving the acknowledgment message from the access gateway, step 103 is performed; otherwise, step 104 is performed;
本步骤中,所述在预设时间内检测是否接收到来自接入网关的确认报文为:在定时器预设的时间内检测是否接收到来自接入网关的确认报文;所述定时器预设的时间可以根据组网情况进行设定。In this step, the detecting, by the preset time, whether the acknowledgment message from the access gateway is received is: detecting whether an acknowledgment message from the access gateway is received within a preset time of the timer; The preset time can be set according to the networking conditions.
所述检测是否接收到来自接入网关的确认报文包括:检测是否接收到直接来自接入网关的确认报文、和/或接入网关通过中间网关发送的确认报文。The detecting whether the acknowledgment message from the access gateway is received includes: detecting whether an acknowledgment message directly from the access gateway is received, and/or an acknowledgment message sent by the access gateway through the intermediate gateway.
步骤104:删除所述缓存的下行报文;Step 104: Delete the buffered downlink packet.
当接收到来自接入网关的确认报文时,所述方法还包括:关闭定时器。When receiving an acknowledgment message from the access gateway, the method further includes: turning off the timer.
步骤105:将所述下行报文重新发送到接入网关;Step 105: Resend the downlink packet to the access gateway.
当终端和顶层网关之间拥有不止一条传输链路的时候,下行报文的重新发送可以换更换链路进行,也可以在原有的链路上进行,以取得更好的效果。When there is more than one transmission link between the terminal and the top-level gateway, the re-sending of the downlink packet can be performed on the replacement link or on the original link to achieve better results.
本发明实施例中,当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,启动异常处理流程。所述同一报文重复发送次数的预设阈值可以根据组网情况进行确定。In the embodiment of the present invention, when the number of repeated transmissions of the same packet reaches a preset threshold and the acknowledgement packet is not received, the exception processing procedure is started. The preset threshold for the number of times the same packet is repeatedly sent may be determined according to the networking situation.
图2为本发明实施例二数据传输方法流程示意图,如图2所示,本发明实施例数据传输方法包括以下步骤:2 is a schematic flowchart of a data transmission method according to Embodiment 2 of the present invention. As shown in FIG. 2, a data transmission method according to an embodiment of the present invention includes the following steps:
步骤201:接收来自顶层网关的下行报文,并将所述下行报文发送到终端;Step 201: Receive a downlink packet from the top-level gateway, and send the downlink packet to the terminal.
本步骤中,在接收来自顶层网关的下行报文后,将所述下行报文通过空中接口转发到终端。In this step, after receiving the downlink packet from the top-level gateway, the downlink packet is forwarded to the terminal through the air interface.
步骤202:接收终端发送的确认消息,当接收到所述确认消息时,构建 确认报文,并将所述确认报文发送到顶层网关;Step 202: Receive an acknowledgement message sent by the terminal, and when receiving the acknowledgement message, construct Acknowledge the message and send the acknowledgement message to the top-level gateway;
本发明实施例中,所述顶层网关指无线网络接入互联网的最后接入互联网的一个网关,其负责用户数据在无线网络和互联网之间的对接,顶层网关具备给终端分配IP地址、支持一定范围内终端移动时业务链路的完整性、和终端协商并管控无线通道的服务质量(QOS,Quality of Service)属性、以及对报文发送的速率做控制,以避免无线网络内传输节点拥塞。本发明实施例中,顶层网关的能力不限于上述范围。In the embodiment of the present invention, the top-level gateway refers to a gateway of the wireless network that accesses the Internet and finally accesses the Internet, and is responsible for the interconnection of user data between the wireless network and the Internet. The top-level gateway has an IP address assigned to the terminal, and the support is fixed. Control the integrity of the service link when the terminal moves, and the terminal negotiates and controls the quality of service (QOS, Quality of Service) attributes of the wireless channel, and controls the rate of packet transmission to avoid congestion of the transmission node in the wireless network. In the embodiment of the present invention, the capability of the top-level gateway is not limited to the above range.
图3为本发明实施例三数据传输方法流程示意图,如图3所示,本发明实施例数据传输方法包括以下步骤:FIG. 3 is a schematic flowchart of a data transmission method according to Embodiment 3 of the present invention. As shown in FIG. 3, the data transmission method in the embodiment of the present invention includes the following steps:
步骤301:顶层网关接收来自互联网的下行报文;Step 301: The top-level gateway receives the downlink packet from the Internet.
步骤302:顶层网关将所述下行报文进行缓存,并发送到接入网关;Step 302: The top-level gateway caches the downlink packet and sends the downlink packet to the access gateway.
本发明实施例中,在下行报文进行缓存和发送之前,所述方法还包括:对所接收到的下行报文数据进行封装;对所述下行报文进行封装的字段里面,包括区别所述下行报文的唯一标识;In the embodiment of the present invention, before the downlink packet is buffered and sent, the method further includes: encapsulating the received downlink packet data; and the field for encapsulating the downlink packet includes: The unique identifier of the downlink packet;
所述顶层网关在将所述下行报文进行缓存时,所述方法还包括:启动定时器;When the top-level gateway caches the downlink packet, the method further includes: starting a timer;
所述顶层网关将下行报文发送到接入网关包括:直接将所述封装后的下行报文发送到接入网关,和/或通过中间网关将所述封装后的下行报文发送到接入网关;The sending, by the top-level gateway, the downlink packet to the access gateway includes: directly sending the encapsulated downlink packet to the access gateway, and/or sending the encapsulated downlink packet to the access through the intermediate gateway Gateway
步骤303:接入网关将所述下行报文发送到终端;Step 303: The access gateway sends the downlink packet to the terminal.
本步骤中,接入网关在接收来自顶层网关的下行报文后,将所述下行报文通过空中接口转发到终端。In this step, after receiving the downlink packet from the top-level gateway, the access gateway forwards the downlink packet to the terminal through the air interface.
步骤304:接入网关接收终端发送的确认消息,当接收到所述确认消息时,构建确认报文,并将所述确认报文发送到顶层网关;Step 304: The access gateway receives the acknowledgement message sent by the terminal, and when receiving the acknowledgement message, constructs an acknowledgement message, and sends the acknowledgement message to the top-level gateway.
步骤305:顶层网关在预设时间内检测是否接收到来自接入网关的确认 报文,当接收到来自接入网关的确认报文时,执行步骤306;否则,执行步骤307;Step 305: The top-level gateway detects whether a confirmation from the access gateway is received within a preset time. The message, when receiving the confirmation message from the access gateway, step 306; otherwise, step 307;
所述顶层网关在预设时间内检测是否接收到来自接入网关的确认报文为:在定时器预设的时间内检测是否接收到来自接入网关的确认报文;所述定时器预设的时间可以根据组网情况进行设定。The apex gateway detects whether the acknowledgment message from the access gateway is received within a preset time period: detecting whether an acknowledgment message from the access gateway is received within a preset time of the timer; The time can be set according to the networking situation.
所述顶层网关检测是否接收到来自接入网关的确认报文包括:检测是否接收到直接来自接入网关的确认报文、和/或接入网关通过中间网关发送的确认报文。The detecting, by the top-level gateway, whether the acknowledgment message from the access gateway is received includes: detecting whether an acknowledgment message directly from the access gateway is received, and/or an acknowledgment message sent by the access gateway through the intermediate gateway.
步骤306:顶层网关删除所述缓存的下行报文;Step 306: The top-level gateway deletes the buffered downlink packet.
当所述顶层网关接收到来自接入网关的确认报文时,所述方法还包括:关闭定时器。When the top-level gateway receives the acknowledgement message from the access gateway, the method further includes: turning off the timer.
步骤307:顶层网关将所述下行报文重新发送到接入网关。Step 307: The top-level gateway resends the downlink packet to the access gateway.
当终端和顶层网关之间拥有不止一条传输链路的时候,下行报文的重新发送可以换更换链路进行,也可以在原有的链路上进行,以取得更好的效果。When there is more than one transmission link between the terminal and the top-level gateway, the re-sending of the downlink packet can be performed on the replacement link or on the original link to achieve better results.
当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,所述顶层网关启动异常处理流程。所述同一报文重复发送次数的预设阈值可以根据组网情况进行确定。When the number of repeated transmissions of the same packet reaches the preset threshold and the acknowledgement packet is not received, the top-level gateway starts an exception processing procedure. The preset threshold for the number of times the same packet is repeatedly sent may be determined according to the networking situation.
下面结合实施例,对本发明技术方案的多种实施方案进行详细说明。以下公开的实施例,以3GPP LTE相关协议为基础进行描述,重点描述本发明实施例所提供的技术方案,相对原有的3GPP LTE协议以及和本发明实施例技术方案无关的流程和细节在实施例中做淡化或忽略处理。以下所公开的实施例仅仅是以3GPP LTE制式为蓝本进行描述,但并不限于此范围,也不限于LTE制式,任何本领域的技术人员根据本发明实施例所述技术方案进行简单的变化所得出的方案都应落入本发明的保护范围。 Various embodiments of the technical solution of the present invention will be described in detail below with reference to the embodiments. The following disclosed embodiments are described based on the 3GPP LTE related protocol, and the technical solutions provided by the embodiments of the present invention are mainly described. The processes and details related to the original 3GPP LTE protocol and the technical solutions of the embodiments of the present invention are implemented. In the case, fade or ignore the processing. The embodiments disclosed in the following are only based on the 3GPP LTE standard, but are not limited to this scope, and are not limited to the LTE standard. Any technical person skilled in the art can easily change the technical solution according to the embodiment of the present invention. The solution should be within the scope of the present invention.
图4为本发明实施例四数据传输方法流程示意图,图4所示实施例为顶层网关和接入网关之间存在单链接时的处理过程,如图4所示,本发明实施例数据传输方法包括以下步骤:4 is a schematic flowchart of a data transmission method according to Embodiment 4 of the present invention. The embodiment shown in FIG. 4 is a processing procedure when a single link exists between a top-level gateway and an access gateway, as shown in FIG. 4, the data transmission method according to an embodiment of the present invention is shown in FIG. Includes the following steps:
步骤401:终端通过4G无线网络和互联网的业务服务器建立连接,以接收业务服务器发送的业务服务器发送的下行报文;Step 401: The terminal establishes a connection with the service server of the Internet through the 4G wireless network, and receives the downlink packet sent by the service server sent by the service server.
步骤402:业务服务器向顶层网关发送一个下行报文;Step 402: The service server sends a downlink packet to the top-level gateway.
步骤403:顶层网关接收到所述下行报文,将所述下行报文进行缓存,并启动定时器,等待响应消息;Step 403: The top-level gateway receives the downlink packet, caches the downlink packet, and starts a timer to wait for a response message.
在4G网络中,顶层网关一般指公共数据网网关(PGW,Public Data Network Gateway);在2G、3G网络中,顶层网关一般指网关通用分组无线业务支持节点(GGSN,Gateway General Packet Radio Service Support Node);对其它制式而言,顶层网关指类似PGW和GGSN的功能实体;In a 4G network, a top-level gateway generally refers to a Public Data Network Gateway (PGW); in a 2G or 3G network, a top-level gateway generally refers to a Gateway General Packet Radio Service Support Node (GGSN). For other systems, the top-level gateway refers to functional entities like PGW and GGSN;
所述定时器的设定,在不同的组网环境可以不同。例如可以事先测定无线系统的传输路径的时延,取其4倍值;或者参考TCP协议关于超时定时器的设定;The setting of the timer may be different in different networking environments. For example, the delay of the transmission path of the wireless system may be determined in advance, and the value of the timeout timer may be determined by referring to the TCP protocol;
步骤404:顶层网关按照相关无线协议对所接收到的下行报文进行封装;Step 404: The top-level gateway encapsulates the received downlink packet according to the relevant wireless protocol.
对所述下行报文进行封装的字段里面,包括区别所述下行报文的唯一标识;The field for encapsulating the downlink packet includes a unique identifier that distinguishes the downlink packet;
对下行报文进行封装的相关无线协议在本专利中不做限定,对2G、3G、4G而言,相关无线协议可以为3GPP 29.060、3GPP 23.401等协议,对应的,区别所述下行报文的唯一标识是用GTP户面协议(GTPU,GTP User plane)头部的序列号、GTPU隧道端点标识符(GTPU TEID,Tunnel Endpoint identifier)、GTPU IP地址的组合等;对其它制式,相关协议指类似2G、3G、4G协议的类似协议; The related wireless protocol for encapsulating the downlink packet is not limited in this patent. For 2G, 3G, and 4G, the related wireless protocol may be a protocol such as 3GPP 29.060 or 3GPP 23.401, and correspondingly, the downlink packet is distinguished. The unique identifier is the combination of the serial number of the GTP User plane (GTPU, GTP User plane) header, the GTPU TEID (Tunnel Endpoint identifier), and the GTPU IP address. For other standards, the relevant protocol refers to similar Similar agreements for 2G, 3G, 4G protocols;
步骤405:顶层网关将所述封装后的下行报文发送到接入网关;Step 405: The top-level gateway sends the encapsulated downlink packet to the access gateway.
步骤406:接入网关接收到所述下行报文后,记录所述下行报文中的唯一标示;Step 406: After receiving the downlink packet, the access gateway records a unique identifier in the downlink packet.
步骤407:接入网关将所述下行报文通过空口发送到终端;Step 407: The access gateway sends the downlink packet to the terminal through an air interface.
在4G网络中,接入网关一般指演进型基站(eNB,evolved Node B);在2G网络中,接入网关一般指基站控制器(BSC,Base Station Controller)和下辖基站;在3G网络中,接入网关指无线网络控制器(RNC,Radio Network Controller)和下辖基站;对其它制式而言,接入网关指类似eNB和BSC、RNC的功能实体;In a 4G network, an access gateway generally refers to an evolved base station (eNB), and in a 2G network, an access gateway generally refers to a base station controller (BSC, Base Station Controller) and a base station; The access gateway refers to a Radio Network Controller (RNC) and a base station; for other systems, the access gateway refers to a functional entity similar to the eNB, the BSC, and the RNC;
接入网关通过空口将所述下行报文发送到终端的行为本专利中不做限定,对4G而言,可以参照3GPP 36系列协议;对其它制式,参照制式的类似3GPP 36系列的协议;The behavior of the access gateway transmitting the downlink packet to the terminal through the air interface is not limited in this patent. For 4G, reference may be made to the 3GPP 36 series protocol; for other standards, refer to the similar 3GPP 36 series protocol of the standard;
步骤408:终端接收到所述下行报文后,发送确认消息到接入网关;Step 408: After receiving the downlink packet, the terminal sends an acknowledgement message to the access gateway.
步骤409:接入网关收到所述终端发送的确认消息时,使用记录的下行报文唯一标识构建确认报文;Step 409: When receiving the acknowledgment message sent by the terminal, the access gateway uses the recorded downlink message to uniquely identify the acknowledgment message.
本步骤中,所述确认报文可以采用任何能被顶层网关识别的方式进行构建。In this step, the acknowledgement message can be constructed in any manner that can be recognized by the top-level gateway.
步骤410:接入网关将所述确认报文发送到顶层网关;Step 410: The access gateway sends the acknowledgement message to the top-level gateway.
步骤411:当顶层网关接收到所述确认报文时,提取响应报文的唯一标识,依据所述唯一标识找到并停止所述下行报文对应定时器,然后找到并删除缓存的所述下行报文。Step 411: When the top-level gateway receives the acknowledgement packet, extract the unique identifier of the response packet, find and stop the downlink packet corresponding timer according to the unique identifier, and then find and delete the cached downlink. Text.
本发明实施例中,当步骤411中由于各种原因例如顶层网关和接入网关之间的地面传输拥塞、接入网关处理异常、空口连接丢失等,导致顶层网关没有接收到所述确认报文时,顶层网关将缓存的下行报文重新发送,并重设定时器,即重新执行步骤404至步骤410所述过程。如果重新发送 能获得正确的确认报文,则执行步骤411,顶层网关删除缓存的下行报文,并停止定时器,否则,再次进行重新发送;如果同一报文多次发送仍不能获得正确的响应,则顶层网关启动异常处理流程,如终止UE的无线连接等。In the embodiment of the present invention, in the step 411, the top-level gateway does not receive the acknowledgement packet due to various reasons, such as ground transmission congestion between the top-level gateway and the access gateway, abnormal access gateway processing, and loss of air interface connection. The top-level gateway resends the buffered downlink message and resets the timer, that is, the process of steps 404 to 410 is re-executed. If resending If the correct acknowledgement packet is obtained, go to step 411. The top-level gateway deletes the buffered downlink packet and stops the timer. Otherwise, the re-send is performed again. If the same packet is sent multiple times, the correct response cannot be obtained. The gateway initiates an exception handling process, such as terminating the wireless connection of the UE.
图5为本发明实施例五数据传输方法流程示意图,图5所示实施例为顶层网关和接入网关之间存在双链接时的处理过程,如图5所示,本发明实施例数据传输方法包括以下步骤:5 is a schematic flowchart of a data transmission method according to Embodiment 5 of the present invention. The embodiment shown in FIG. 5 is a processing procedure when a double link exists between a top-level gateway and an access gateway, as shown in FIG. 5, the data transmission method of the embodiment of the present invention is shown in FIG. Includes the following steps:
步骤501:终端通过4G无线网络和互联网的业务服务器建立连接,以接收业务服务器发送的业务服务器发送的下行报文;Step 501: The terminal establishes a connection with the service server of the Internet through the 4G wireless network, and receives the downlink packet sent by the service server sent by the service server.
本步骤中,所述无线网络中的顶层网关和接入网关之间存在双链接,例如,LTE+Wifi的双链接;In this step, there is a double link between the top-level gateway and the access gateway in the wireless network, for example, a dual link of LTE+Wifi;
步骤502:业务服务器向顶层网关发送多个下行报文;Step 502: The service server sends multiple downlink packets to the top-level gateway.
例如,所述业务服务器向顶层网关发送两个下行报文:下行报文1和下行报文2;For example, the service server sends two downlink packets to the top-level gateway: downlink packet 1 and downlink packet 2;
步骤503:顶层网关接收到下行报文1和下行报文2,将所述两个下行报文进行缓存,并分别为下行报文1和下行报文2启动定时器1和定时器2,等待响应消息;Step 503: The top-level gateway receives the downlink packet 1 and the downlink packet 2, buffers the two downlink packets, and starts timer 1 and timer 2 for the downlink packet 1 and the downlink packet 2, respectively, waiting Response message
这里,所述顶层网关可以为PGW;Here, the top-level gateway may be a PGW;
步骤504:顶层网关按照相关无线协议对所接收到的下行报文1和下行报文2进行封装;Step 504: The top-level gateway encapsulates the received downlink packet 1 and downlink packet 2 according to the relevant wireless protocol.
对所述下行报文进行封装的字段里面,包括唯一区别所述下行报文1和下行报文2的标识:唯一标识1和唯一标识2;本步骤中,所述顶层网关对下行报文1和下行报文2的封装方式与步骤404相同;The field that encapsulates the downlink packet includes an identifier that uniquely distinguishes the downlink packet 1 and the downlink packet 2: a unique identifier 1 and a unique identifier 2; in this step, the top-level gateway downlink packet 1 And the encapsulation manner of the downlink packet 2 is the same as the step 404;
步骤505:顶层网关将封装后的下行报文1发送到接入网关1,将封装后的下行报文2发送到接入网关2;Step 505: The top-level gateway sends the encapsulated downlink packet 1 to the access gateway 1, and sends the encapsulated downlink packet 2 to the access gateway 2;
所述接入网关1可以为eNB,所述接入网关2可以为接入点(AP,Access  Point);The access gateway 1 may be an eNB, and the access gateway 2 may be an access point (AP, Access). Point);
步骤506:接入网关1接收到所述下行报文1后,记录所述下行报文中1的唯一标示1;接入网关2接收到所述下行报文2后,记录所述下行报文中2的唯一标示2;Step 506: After receiving the downlink packet 1, the access gateway 1 records the unique identifier 1 of the downlink packet. After receiving the downlink packet 2, the access gateway 2 records the downlink packet. The only indication of 2 is 2;
步骤507:接入网关1将所述下行报文1通过空口发送到终端;接入网关2将所述下行报文2通过空口发送到终端;Step 507: The access gateway 1 sends the downlink packet 1 to the terminal through the air interface; the access gateway 2 sends the downlink packet 2 to the terminal through the air interface;
步骤508:终端接收到所述下行报文后,分别发送确认消息1和确认消息2到接入网关1和接入网关2;Step 508: After receiving the downlink packet, the terminal sends an acknowledgement message 1 and an acknowledgement message 2 to the access gateway 1 and the access gateway 2 respectively;
步骤509:接入网关1收到所述终端发送的确认消息1时,使用记录的报文唯一标识1构建确认报文1;接入网关2收到所述终端发送的确认消息2时,使用记录的报文唯一标识2构建确认报文2;Step 509: When receiving the acknowledgment message 1 sent by the terminal, the access gateway 1 constructs the acknowledgment message 1 by using the recorded message unique identifier 1; when the access gateway 2 receives the acknowledgment message 2 sent by the terminal, the access gateway 2 uses The recorded message unique identifier 2 constructs the confirmation message 2;
步骤510:接入网关1将所述确认报文1发送到顶层网关;接入网关2将所述确认报文2发送到顶层网关;Step 510: The access gateway 1 sends the acknowledgement message 1 to the top-level gateway; the access gateway 2 sends the acknowledgement message 2 to the top-level gateway;
步骤511:当顶层网关接收到所述确认报文1时,提取响应报文的唯一标识1,依据所述唯一标识1找到并停止所述下行报文1对应定时器1,然后找到并删除缓存下行报文1;当顶层网关接收到所述确认报文2时,提取响应报文的唯一标识2,依据所述唯一标识2找到并停止所述下行报文2对应定时器2,然后找到并删除缓存下行报文2。Step 511: When the top-level gateway receives the acknowledgement packet 1, extract the unique identifier 1 of the response packet, find and stop the downlink packet 1 corresponding to the timer 1 according to the unique identifier 1, and then find and delete the cache. When the acknowledgment message 2 is received, the top-level gateway extracts the unique identifier 2 of the response packet, finds and stops the downlink packet 2 corresponding to the timer 2 according to the unique identifier 2, and then finds and Delete cached downstream packet 2.
图6为本发明实施例六数据传输方法流程示意图,图6所示实施例为顶层网关和接入网关之间存在双链接时的异常处理过程,如图6所示,本发明实施例数据传输方法包括以下步骤:6 is a schematic flowchart of a data transmission method according to Embodiment 6 of the present invention. The embodiment shown in FIG. 6 is an exception processing process when a double link exists between a top-level gateway and an access gateway. As shown in FIG. 6, the data transmission is performed in the embodiment of the present invention. The method includes the following steps:
步骤601:终端通过4G无线网络和互联网的业务服务器建立连接,以接收业务服务器发送的业务服务器发送的下行报文;Step 601: The terminal establishes a connection with the service server of the Internet through the 4G wireless network, and receives the downlink packet sent by the service server sent by the service server.
本步骤中,所述无线网络中的顶层网关和接入网关之间存在双链接,例如,LTE+Wifi的双链接场景; In this step, there is a double link between the top-level gateway and the access gateway in the wireless network, for example, a dual-link scenario of LTE+Wifi;
步骤602:业务服务器向顶层网关发送一个下行报文;Step 602: The service server sends a downlink packet to the top-level gateway.
步骤603:顶层网关接收到所述下行报文,将所述下行报文进行缓存,并启动定时器,等待响应消息;Step 603: The top-level gateway receives the downlink packet, caches the downlink packet, starts a timer, and waits for a response message.
步骤604:顶层网关按照相关无线协议对所接收到的下行报文进行封装;Step 604: The top-level gateway encapsulates the received downlink packet according to the relevant wireless protocol.
本步骤中,对所述下行报文进行封装的字段里面,包括区别所述下行报文的唯一标识;In this step, the field that encapsulates the downlink packet includes a unique identifier that distinguishes the downlink packet.
步骤605:顶层网关将所述封装后的下行报文发送到接入网1;Step 605: The top-level gateway sends the encapsulated downlink packet to the access network 1;
这里,所述接入网关1可以为eNB;Here, the access gateway 1 may be an eNB;
步骤606:接入网关1接收到所述下行报文后,因为异常原因未能将所述下行报文发送给终端;Step 606: After receiving the downlink packet, the access gateway 1 fails to send the downlink packet to the terminal due to the abnormality.
这里所述异常原因包括但不限于接入网关处理异常、空口连接丢失等;The abnormal reasons mentioned here include, but are not limited to, abnormal processing of the access gateway, loss of air interface connection, and the like;
步骤607:顶层网关中所述下行报文对应的定时器超时仍没有收到来自接入网关的确认报文;Step 607: The timer corresponding to the downlink packet in the top-level gateway still fails to receive the acknowledgement packet from the access gateway.
步骤608:顶层网关将所述下行报文发送到接入网关2;Step 608: The top-level gateway sends the downlink packet to the access gateway 2;
本步骤中,所述接入网关2可以为AP;In this step, the access gateway 2 may be an AP;
步骤609:接入网关2接入网关接收到所述下行报文后,记录所述下行报文中的唯一标示;Step 609: After receiving the downlink packet, the access gateway 2 accesses the gateway to record a unique identifier in the downlink packet.
步骤610:接入网关2将所述下行报文通过空口发送到终端;Step 610: The access gateway 2 sends the downlink packet to the terminal through an air interface.
步骤611:终端接收到所述下行报文后,发送确认消息到接入网关2;Step 611: After receiving the downlink packet, the terminal sends an acknowledgement message to the access gateway 2;
步骤612:接入网关2收到所述终端发送的确认消息时,使用记录的报文唯一标识构建确认报文;Step 612: When receiving the acknowledgment message sent by the terminal, the access gateway 2 uses the recorded message to uniquely identify the acknowledgment message.
步骤613:接入网关2将所述确认报文发送到顶层网关;Step 613: The access gateway 2 sends the acknowledgement message to the top-level gateway.
步骤614:当顶层网关接收到所述确认报文时,提取响应报文的唯一标识,依据所述唯一标识找到并停止所述下行报文对应定时器,然后找到并 删除缓存的所述下行报文。Step 614: When the top-level gateway receives the acknowledgement packet, extract the unique identifier of the response packet, find and stop the timer corresponding to the downlink packet according to the unique identifier, and then find and The cached downlink packet is deleted.
图7为本发明实施例七数据传输方法流程示意图,图7所示实施例为顶层网关和接入网关之间存在中间网关时的处理过程,如图7所示,本发明实施例数据传输方法包括以下步骤:FIG. 7 is a schematic flowchart of a data transmission method according to Embodiment 7 of the present invention. The embodiment shown in FIG. 7 is a processing procedure when an intermediate gateway exists between a top-level gateway and an access gateway, as shown in FIG. 7, the data transmission method according to the embodiment of the present invention is shown in FIG. Includes the following steps:
步骤701:终端通过4G无线网络和互联网的业务服务器建立连接,以接收业务服务器发送的业务服务器发送的下行报文;Step 701: The terminal establishes a connection with the service server of the Internet through the 4G wireless network, and receives the downlink packet sent by the service server sent by the service server.
步骤702:业务服务器向顶层网关发送一个下行报文;Step 702: The service server sends a downlink packet to the top-level gateway.
步骤703:顶层网关接收到所述下行报文,将所述下行报文进行缓存,并启动定时器,等待响应消息;Step 703: The top-level gateway receives the downlink packet, caches the downlink packet, starts a timer, and waits for a response message.
步骤704:顶层网关按照相关无线协议对所接收到的下行报文进行封装;Step 704: The top-level gateway encapsulates the received downlink packet according to the relevant wireless protocol.
步骤705:顶层网关将所述封装后的下行报文发送到中间网关;Step 705: The top-level gateway sends the encapsulated downlink packet to the intermediate gateway.
本发明实施例中,所述中间网关一般指顶层网关和接入网关之间可能存在的其它网关。例如在4G网络中,所述中间网关可以为业务网关(SGW,Service Gateway;在2G、3G网络中,所述中间网关可以为业务通用分组无线业务支持节点(SGSN,Serving General Packet Radio Service Support Node);对其它制式而言,中间网关指类似SGW、SGSN的网元。本实施例基于中间网关存在的情况下进行描述。In the embodiment of the present invention, the intermediate gateway generally refers to other gateways that may exist between the top-level gateway and the access gateway. For example, in a 4G network, the intermediate gateway may be a service gateway (SGW, Service Gateway; in a 2G, 3G network, the intermediate gateway may be a service general packet radio service support node (SGSN, Serving General Packet Radio Service Support Node). For other systems, the intermediate gateway refers to a network element similar to the SGW and the SGSN. This embodiment is described based on the existence of the intermediate gateway.
步骤706:中间网关将所述下行报文进行GTPU解封装,获取所述下行报文唯一标识后重新对报文进行GTPU封装,并将新GTPU报文的序列号作为所述下行报文的新的唯一标示;并记录所述下行报文的新旧唯一标识的对应关系;Step 706: The intermediate gateway performs GTPU decapsulation on the downlink packet, obtains the unique identifier of the downlink packet, and then performs GTPU encapsulation on the packet, and uses the sequence number of the new GTPU packet as the new downlink packet. a unique identifier; and record the correspondence between the old and new unique identifiers of the downlink message;
本发明实施例中,所述中间网关可以记录解封装和重封装前后的报文的唯一标识即GTPU序列号,在接收到来自终端的确认报文是进行替换;也可以直接使用顶层网关封装后的唯一标识向接入网关发送所述下行报 文,这种情况下中间网关就不需要记录新旧唯一标识,但是需要确保所述唯一标识的唯一性,避免因为系统中存在多个顶层网关、多个中间网关而使唯一标识发生冲突。In the embodiment of the present invention, the intermediate gateway may record the unique identifier of the packet before and after decapsulation and re-encapsulation, that is, the GTPU sequence number, and replace the acknowledgement packet received from the terminal; or directly use the top-level gateway to encapsulate Unique identifier sent to the access gateway In this case, the intermediate gateway does not need to record the old and new unique identifiers, but needs to ensure the uniqueness of the unique identifiers, and avoids conflicts between the unique identifiers because there are multiple top-level gateways and multiple intermediate gateways in the system.
步骤707:中间网关将所述重新封装后的下行报文发送给接入网关;Step 707: The intermediate gateway sends the re-encapsulated downlink packet to the access gateway.
步骤708:接入网关接收到所述下行报文后,记录所述下行报文中的唯一标示;Step 708: After receiving the downlink packet, the access gateway records a unique identifier in the downlink packet.
这里,当步骤706中中间网关对所述下行报文进行重新封装后,所述接入网关接收到的下行报文中的唯一标识为重新封装后产生的新的唯一标识。Here, after the intermediate gateway re-encapsulates the downlink packet in step 706, the unique identifier in the downlink packet received by the access gateway is a new unique identifier generated after re-encapsulation.
步骤709:接入网关将所述下行报文通过空口发送到终端;Step 709: The access gateway sends the downlink packet to the terminal through an air interface.
步骤710:终端接收到所述下行报文后,发送确认消息到接入网关;Step 710: After receiving the downlink packet, the terminal sends an acknowledgement message to the access gateway.
步骤711:接入网关收到所述终端发送的确认消息时,使用记录的下行报文唯一标识构建确认报文;Step 711: When receiving the acknowledgment message sent by the terminal, the access gateway uses the recorded downlink message to uniquely identify the acknowledgment message.
步骤712:接入网关将所述确认报文发送到中间网关;Step 712: The access gateway sends the acknowledgement packet to the intermediate gateway.
步骤713:中间网关根据存储的所述下行报文新旧唯一标识的对应关系,将接收到的确认报文中的唯一标识进行替换;将所述下行报文中的新的唯一标识替换为原有的旧的唯一标识;Step 713: The intermediate gateway replaces the unique identifier in the received acknowledgement packet according to the stored correspondence between the old and new unique identifiers of the downlink packet, and replaces the new unique identifier in the downlink packet with the original identifier. Old unique identifier;
本发明实施例中,当步骤706中所述中间网关直接使用顶层网关封装后的唯一标识向接入网关发送所述下行报文时,本步骤不需要执行;In this embodiment of the present invention, when the intermediate gateway directly uses the unique identifier encapsulated by the top-level gateway to send the downlink packet to the access gateway, the step does not need to be performed;
步骤714:中间网关将所述确认报文发送到顶层网关;Step 714: The intermediate gateway sends the acknowledgement message to the top-level gateway.
步骤715:当顶层网关接收到所述确认报文时,提取响应报文的唯一标识,依据所述唯一标识找到并停止所述下行报文对应定时器,然后找到并删除缓存的所述下行报文。Step 715: When the top-level gateway receives the acknowledgement packet, extract the unique identifier of the response packet, find and stop the downlink packet corresponding timer according to the unique identifier, and then find and delete the cached downlink. Text.
图8为本发明实施例八数据传输方法流程示意图,图8所示实施例多个下行报文同时处理的过程,如图8所示,本发明实施例数据传输方法包 括以下步骤:8 is a schematic flowchart of a data transmission method according to Embodiment 8 of the present invention. The process of simultaneously processing multiple downlink packets in the embodiment shown in FIG. 8 is as shown in FIG. 8. The data transmission method package according to the embodiment of the present invention is shown in FIG. Including the following steps:
步骤801:终端通过4G无线网络和互联网的业务服务器建立连接,以接收业务服务器发送的业务服务器发送的多个下行报文;Step 801: The terminal establishes a connection between the service server of the Internet through the 4G wireless network, and receives multiple downlink packets sent by the service server sent by the service server.
步骤802:顶层网关启用拥塞控制机制,首先将接收到的来自互联网的一个下行报文发送到接入网关;Step 802: The top-level gateway enables the congestion control mechanism, and first sends a received downlink packet from the Internet to the access gateway.
步骤803:接入网关对所述下行报文进行转发,并进行确认消息接收和确认报文构建过程;其过程可参照上述任何一个实施例报文转发过程;Step 803: The access gateway forwards the downlink packet, and performs a process of confirming the message receiving and confirming the packet. The process may refer to the packet forwarding process in any of the foregoing embodiments.
步骤804:接入网关发送一个确认报文到顶层网关;Step 804: The access gateway sends an acknowledgement message to the top-level gateway.
步骤805:顶层网关删除缓存的下行报文;Step 805: The top-level gateway deletes the buffered downlink packet.
步骤806:顶层网关发送两个下行报文到接入网关;Step 806: The top-level gateway sends two downlink packets to the access gateway.
步骤807:接入网关对所述下行报文进行转发,并进行确认消息接收和确认报文构建过程,其过程可参照上述任何一个实施例报文转发过程;Step 807: The access gateway forwards the downlink packet, and performs a process of confirming the message receiving and confirming the packet. The process may refer to the packet forwarding process in any of the foregoing embodiments.
步骤808:接入网关发送两个确认报文到顶层网关;Step 808: The access gateway sends two acknowledgement messages to the top-level gateway.
步骤809:顶层网关删除缓存的下行报文;Step 809: The top-level gateway deletes the buffered downlink packet.
步骤810:顶层网关逐渐增加发送的下行报文数量,以避免无线系统拥塞。Step 810: The top-level gateway gradually increases the number of downlink packets sent to avoid wireless system congestion.
本发明实施例还提供了一种数据传输装置,图9为本发明实施例一数据传输装置结构示意图,所述装置位于顶层网关,如图9所示,所述装置包括:下行报文接收模块91、缓存模块92、下行报文发送模块93、确认报文接收模块94、处理模块95;其中,The embodiment of the present invention further provides a data transmission device. FIG. 9 is a schematic structural diagram of a data transmission device according to an embodiment of the present invention. The device is located at a top-level gateway. As shown in FIG. 9, the device includes: a downlink packet receiving module. 91, a cache module 92, a downlink packet sending module 93, an acknowledgement packet receiving module 94, and a processing module 95;
所述下行报文接收模块91,配置为接收来自互联网的下行报文;The downlink packet receiving module 91 is configured to receive a downlink packet from the Internet;
所述缓存模块92,配置为将所述下行报文进行缓存;The cache module 92 is configured to cache the downlink packet.
本发明实施例中,所述装置还包括封装模块96,配置为在下行报文进行缓存和发送之前,对所接收到的下行报文数据进行封装;所述封装模块96对所述下行报文进行封装的字段里面,包括区别所述下行报文的唯一标 识;In the embodiment of the present invention, the device further includes an encapsulating module 96, configured to encapsulate the received downlink packet data before the downlink packet is buffered and sent, and the encapsulating module 96 is configured to the downlink packet. The field to be encapsulated includes a unique identifier that distinguishes the downlink message. knowledge;
本发明实施例中,所述装置还包括定时器97,配置为在将所述下行报文进行缓存时,开启定时功能;In the embodiment of the present invention, the device further includes a timer 97, configured to enable a timing function when the downlink packet is buffered;
所述下行报文发送模块93,配置为将所述下行报文发送到接入网关;The downlink packet sending module 93 is configured to send the downlink packet to an access gateway.
本发明实施例中,下行报文发送模块93配置为:直接将所述下行报文发送到接入网关,和/或通过中间网关将所述下行报文发送到接入网关;In the embodiment of the present invention, the downlink packet sending module 93 is configured to: directly send the downlink packet to the access gateway, and/or send the downlink packet to the access gateway through the intermediate gateway;
所述确认报文接收模块94,配置为接收到来自接入网关的确认报文;The acknowledgement message receiving module 94 is configured to receive an acknowledgement message from the access gateway.
所述处理模块95,配置为在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,删除所述缓存的下行报文;否则,将所述下行报文重新发送到接入网关;The processing module 95 is configured to detect whether an acknowledgment message from the access gateway is received within a preset time, and when the acknowledgment message from the access gateway is received, delete the cached downlink message; otherwise, Resending the downlink packet to the access gateway;
所述处理模块95配置为在定时器预设的时间内检测是否接收到来自接入网关的确认报文;包括检测是否接收到直接来自接入网关的确认报文、和/或接入网关通过中间网关发送的确认报文。The processing module 95 is configured to detect whether an acknowledgment message from the access gateway is received within a preset time of the timer, including detecting whether an acknowledgment message directly from the access gateway is received, and/or the access gateway passes The acknowledgement packet sent by the intermediate gateway.
当接收到来自接入网关的确认报文时,所述处理模块95还配置为:关闭定时器;The processing module 95 is further configured to: close the timer when receiving the acknowledgement message from the access gateway;
所述处理模块95将所述下行报文重新发送到接入网关的过程中,当终端和顶层网关之间拥有不止一条传输链路的时候,下行报文的重新发送可以换更换链路进行,也可以在原有的链路上进行,以取得更好的效果。The processing module 95 retransmits the downlink packet to the access gateway. When there is more than one transmission link between the terminal and the top-level gateway, the re-sending of the downlink packet can be performed by replacing the link. It can also be done on the original link for better results.
当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,所述处理模块95还配置为:当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,启动异常处理流程。所述同一报文重复发送次数的预设阈值可以根据组网情况进行确定。When the number of times that the same packet is repeatedly sent reaches the preset threshold and the acknowledgment packet is not received, the processing module 95 is further configured to: when the number of repeated transmissions of the same packet reaches the preset threshold, the acknowledgment packet is still not received. Exception handling process. The preset threshold for the number of times the same packet is repeatedly sent may be determined according to the networking situation.
本发明实施例还提供一种数据传输装置,图10为本发明实施例数据传输装置结构示意图,所述装置位于接入网关,如图10所述装置包括:下行报文接收模块101、下行报文发送模块102、确认消息接收模块103、确认 报文构建模块104、确认报文发送模块105,其中,The embodiment of the present invention further provides a data transmission apparatus. FIG. 10 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention. The apparatus is located at an access gateway, and the apparatus according to FIG. 10 includes: a downlink packet receiving module 101 and a downlink. Text sending module 102, confirmation message receiving module 103, confirmation a message construction module 104, an acknowledgement message sending module 105, wherein
所述下行报文接收模块101,配置为接收来自顶层网关的下行报文;The downlink packet receiving module 101 is configured to receive a downlink packet from a top-level gateway;
所述下行报文发送模块102,配置为将所述下行报文发送到终端;The downlink packet sending module 102 is configured to send the downlink packet to the terminal;
本发明实施例中,所述下行报文发送模块102将所述下行报文通过空中接口转发到终端;In the embodiment of the present invention, the downlink packet sending module 102 forwards the downlink packet to the terminal through an air interface;
所述确认消息接收模块103,配置为接收终端发送的确认消息;The confirmation message receiving module 103 is configured to receive an acknowledgement message sent by the terminal;
所述确认报文构建模块104,配置为当接收到所述确认消息时,构建确认报文;The confirmation message construction module 104 is configured to construct an acknowledgement message when the confirmation message is received;
所述确认报文发送模块105,配置为将所述确认报文发送到顶层网关。The acknowledgement message sending module 105 is configured to send the acknowledgement message to the top-level gateway.
本发明实施例还提供了一种数据传输系统,图11为本发明实施例数据传输系统结构示意图,如图11所示,所述系统包括顶层网关111、接入网关112,其中,The embodiment of the present invention further provides a data transmission system, and FIG. 11 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention. As shown in FIG. 11, the system includes a top-level gateway 111 and an access gateway 112, where
所述顶层网关111,配置为接收来自互联网的下行报文,将所述下行报文进行缓存,并发送到接入网关;在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,删除所述缓存的下行报文;否则,将所述下行报文重新发送到接入网关;The top-level gateway 111 is configured to receive a downlink packet from the Internet, cache the downlink packet, and send the downlink packet to the access gateway, and detect whether the acknowledgement packet from the access gateway is received within a preset time. Deleting the buffered downlink packet when receiving the acknowledgement packet from the access gateway; otherwise, the downlink packet is resent to the access gateway;
在4G网络中,顶层网关一般指公共数据网网关(PGW,Public Data Network Gateway);在2G、3G网络中,顶层网关一般指网关通用分组无线业务支持节点(GGSN,Gateway General Packet Radio Service Support Node);对其它制式而言,顶层网关指类似PGW和GGSN的功能实体;In a 4G network, a top-level gateway generally refers to a Public Data Network Gateway (PGW); in a 2G or 3G network, a top-level gateway generally refers to a Gateway General Packet Radio Service Support Node (GGSN). For other systems, the top-level gateway refers to functional entities like PGW and GGSN;
本发明实施例中,所述顶层网关111还配置为在下行报文进行缓存和发送之前,对所接收到的下行报文数据进行封装;对所述下行报文进行封装的字段里面,包括区别所述下行报文的唯一标识;In the embodiment of the present invention, the top-level gateway 111 is further configured to encapsulate the received downlink packet data before the downlink packet is buffered and sent, and the field encapsulated in the downlink packet includes a difference. a unique identifier of the downlink packet;
本发明实施例中,所述系统还可以包括中间网关113,配置为将接收到的来自顶层网关的下行报文发送到接入网关,将接收到的来自接入网关的 确认报文发送到顶层网关;In the embodiment of the present invention, the system may further include an intermediate gateway 113, configured to send the received downlink packet from the top-level gateway to the access gateway, and receive the received from the access gateway. Confirm that the message is sent to the top-level gateway;
所述中间网关一般指顶层网关和接入网关之间可能存在的其它网关。例如在4G网络中,所述中间网关可以为SGW;在2G、3G网络中,所述中间网关可以为SGSN;对其它制式而言,中间网关指类似SGW、SGSN的网元。所述中间网关可能存在,也可以不存在。The intermediate gateway generally refers to other gateways that may exist between the top-level gateway and the access gateway. For example, in a 4G network, the intermediate gateway may be an SGW; in a 2G or 3G network, the intermediate gateway may be an SGSN; for other systems, the intermediate gateway refers to a network element similar to the SGW and the SGSN. The intermediate gateway may or may not exist.
所述接入网关113配置为:将所述下行报文进行解封装,获取所述下行报文唯一标识后重新对报文进行封装,并将重新封装的下行报文的序列号作为所述下行报文的新的唯一标示;记录所述下行报文的新旧唯一标识的对应关系;将所述重新封装后的下行报文发送给接入网关;所述接入网关113也可以直接使用顶层网关封装后的唯一标识向接入网关发送所述下行报文,这种情况下中间网关113就不需要记录新旧唯一标识,但是需要确保所述唯一标识的唯一性,避免因为系统中存在多个顶层网关、多个中间网关而使唯一标识发生冲突。The access gateway 113 is configured to: decapsulate the downlink packet, obtain the unique identifier of the downlink packet, and then re-encapsulate the packet, and use the sequence number of the re-encapsulated downlink packet as the downlink. a new unique identifier of the packet; a correspondence between the old and new unique identifiers of the downlink packet; the re-encapsulated downlink packet is sent to the access gateway; and the access gateway 113 can directly use the top-level gateway The encapsulated unique identifier sends the downlink packet to the access gateway. In this case, the intermediate gateway 113 does not need to record the old and new unique identifiers, but needs to ensure the uniqueness of the unique identifier to avoid multiple top layers in the system. The gateway and multiple intermediate gateways cause the unique identifier to collide.
接收接入网关发送的确认报文,根据存储的所述下行报文新旧唯一标识的对应关系,将接收到的确认报文中的唯一标识进行替换;将所述下行报文中的新的唯一标识替换为原有的旧的唯一标识;将所述确认报文发送到顶层网关。And receiving the acknowledgment message sent by the access gateway, and replacing the unique identifier in the received acknowledgment message according to the stored correspondence between the old and new unique identifiers of the downlink packet; and the new unique one in the downlink packet The identifier is replaced with the old old unique identifier; the acknowledgement message is sent to the top-level gateway.
所述顶层网关111配置为:直接将所述下行报文发送到接入网关113,和/或通过中间网关113将所述下行报文发送到接入网关112;检测是否接收到直接来自接入网关112的确认报文、和/或接入网关通过中间网113关发送的确认报文。The top-level gateway 111 is configured to: directly send the downlink packet to the access gateway 113, and/or send the downlink packet to the access gateway 112 through the intermediate gateway 113; and detect whether the direct access is received. The acknowledgment message of the gateway 112 and/or the acknowledgment message sent by the access gateway through the intermediate network 113.
在将所述下行报文进行缓存时,所述顶层网关111还配置为启动定时器;When the downlink packet is buffered, the top-level gateway 111 is further configured to start a timer;
相应地,所述顶层网关111配置为:在定时器预设的时间内检测是否接收到来自接入网关的确认报文;当所述顶层网关111接收到来自接入网 关的确认报文时,所述顶层网关111还配置为:关闭定时器。所述定时器预设的时间可以根据组网情况进行设定。Correspondingly, the top-level gateway 111 is configured to: detect whether an acknowledgement message from the access gateway is received within a preset time of the timer; when the top-level gateway 111 receives the access network from the access network When the acknowledgement message is closed, the top-level gateway 111 is further configured to: close the timer. The preset time of the timer can be set according to the networking situation.
所述顶层网关111在将所述下行报文重新发送到接入网关的过程中,当终端和顶层网关之间拥有不止一条传输链路的时候,下行报文的重新发送可以换更换链路进行,也可以在原有的链路上进行,以取得更好的效果。When the top-level gateway 111 retransmits the downlink packet to the access gateway, when there is more than one transmission link between the terminal and the top-level gateway, the re-sending of the downlink packet can be performed by replacing the link. , can also be carried out on the original link to achieve better results.
所述顶层网关111还配置为当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,所述顶层网关启动异常处理流程。所述同一报文重复发送次数的预设阈值可以根据组网情况进行确定。The top-level gateway 111 is further configured to start an exception processing process when the number of times the same packet is repeatedly sent reaches a preset threshold and the acknowledge packet is not received. The preset threshold for the number of times the same packet is repeatedly sent may be determined according to the networking situation.
所述接入网关112,配置为将所述下行报文发送到终端;接收终端发送的确认消息,当接收到所述确认消息时,构建确认报文,并将所述确认报文发送到顶层网关;The access gateway 112 is configured to send the downlink packet to the terminal, and receive an acknowledgement message sent by the terminal. When receiving the acknowledgement message, construct an acknowledgement packet, and send the acknowledgement packet to the top layer. Gateway
本发明实施例中,所述接入网关112在接收来自顶层网关的下行报文后,将所述下行报文通过空中接口转发到终端。In the embodiment of the present invention, after receiving the downlink packet from the top-level gateway, the access gateway 112 forwards the downlink packet to the terminal through the air interface.
在4G网络中,接入网关一般指演进型基站(eNB,evolved Node B);在2G网络中,接入网关一般指基站控制器(BSC,Base Station Controller)和下辖基站;在3G网络中,接入网关指无线网络控制器(RNC,Radio Network Controller)和下辖基站;对其它制式而言,接入网关指类似eNB和BSC、RNC的功能实体;In a 4G network, an access gateway generally refers to an evolved base station (eNB), and in a 2G network, an access gateway generally refers to a base station controller (BSC, Base Station Controller) and a base station; The access gateway refers to a Radio Network Controller (RNC) and a base station; for other systems, the access gateway refers to a functional entity similar to the eNB, the BSC, and the RNC;
本发明实施例中提出的数据传输装置中的各模块都可以通过处理器来实现,当然也可通过具体的逻辑电路实现;其中所述处理器可以是移动终端或服务器上的处理器,在实际应用中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。Each module in the data transmission device proposed in the embodiment of the present invention may be implemented by a processor, and may also be implemented by a specific logic circuit; wherein the processor may be a processor on a mobile terminal or a server, in practice In an application, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA).
本发明实施例中,如果以软件功能模块的形式实现上述数据传输方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介 质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。In the embodiment of the present invention, if the above data transmission method is implemented in the form of a software function module, and is sold or used as an independent product, it may also be stored in a computer readable storage medium. Quality. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序,该计算机程序用于执行图1所述的数据传输方法。Correspondingly, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for executing the data transmission method described in FIG.
本发明实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序,该计算机程序用于执行图2所述的数据传输方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for executing the data transmission method described in FIG. 2 .
本发明实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序,该计算机程序用于执行图3至图8所述的数据传输方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for executing the data transmission method described in FIG. 3 to FIG.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims (21)

  1. 一种数据传输方法,所述方法包括:A data transmission method, the method comprising:
    接收来自互联网的下行报文,将所述下行报文进行缓存,并发送到接入网关;Receiving a downlink packet from the Internet, buffering the downlink packet, and sending the downlink packet to the access gateway;
    在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,删除所述缓存的下行报文;否则,将所述下行报文重新发送到接入网关。Detecting whether an acknowledgment message from the access gateway is received, and deleting the buffered downlink packet when receiving the acknowledgment message from the access gateway; otherwise, resending the downlink packet Go to the access gateway.
  2. 根据权利要求1所述方法,其中,在将所述下行报文进行缓存时,所述方法还包括:启动定时器;The method of claim 1, wherein when the downlink message is buffered, the method further comprises: starting a timer;
    相应地,所述在预设时间内检测是否接收到来自接入网关的确认报文为:在定时器预设的时间内检测是否接收到来自接入网关的确认报文;Correspondingly, the detecting, in the preset time, whether the acknowledgment message from the access gateway is received is: detecting whether an acknowledgment message from the access gateway is received within a preset time of the timer;
    相应地,当接收到来自接入网关的确认报文时,所述方法还包括:关闭定时器。Correspondingly, when receiving the acknowledgement message from the access gateway, the method further comprises: turning off the timer.
  3. 根据权利要求1所述方法,其中,所述方法还包括:当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,启动异常处理流程。The method according to claim 1, wherein the method further comprises: when the number of repeated transmissions of the same message reaches a preset threshold and still does not receive the confirmation message, the exception processing flow is started.
  4. 根据权利要求1所述方法,其中,所述将下行报文发送到接入网关包括:直接将所述下行报文发送到接入网关,和/或通过中间网关将所述下行报文发送到接入网关;The method of claim 1, wherein the sending the downlink message to the access gateway comprises: directly sending the downlink message to the access gateway, and/or sending the downlink message to the intermediate gateway Access gateway
    相应地,所述检测是否接收到来自接入网关的确认报文包括:检测是否接收到直接来自接入网关的确认报文、和/或接入网关通过中间网关发送的确认报文。Correspondingly, the detecting whether the acknowledgment message from the access gateway is received includes: detecting whether an acknowledgment message directly from the access gateway is received, and/or an acknowledgment message sent by the access gateway through the intermediate gateway.
  5. 一种数据传输方法,所述方法包括:A data transmission method, the method comprising:
    接收来自顶层网关的下行报文,并将所述下行报文发送到终端;Receiving a downlink packet from the top-level gateway, and sending the downlink packet to the terminal;
    接收终端发送的确认消息,当接收到所述确认消息时,构建确认报文,并将所述确认报文发送到顶层网关。 Receiving an acknowledgment message sent by the terminal, when receiving the acknowledgment message, constructing an acknowledgment message, and sending the acknowledgment message to the top-level gateway.
  6. 一种数据传输方法,其中,所述方法包括:A data transmission method, wherein the method comprises:
    顶层网关接收来自互联网的下行报文,将所述下行报文进行缓存,并发送到接入网关;The top-level gateway receives the downlink packet from the Internet, caches the downlink packet, and sends the downlink packet to the access gateway;
    接入网关将所述下行报文发送到终端;接收终端发送的确认消息,当接收到所述确认消息时,构建确认报文,并将所述确认报文发送到顶层网关;The access gateway sends the downlink packet to the terminal; the acknowledgment message sent by the terminal, when receiving the acknowledgment message, constructs an acknowledgment message, and sends the acknowledgment message to the top-level gateway;
    顶层网关在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,删除所述缓存的下行报文;否则,将所述下行报文重新发送到接入网关。The apex gateway detects whether the acknowledgment message from the access gateway is received within the preset time. When receiving the acknowledgment message from the access gateway, the cached downlink packet is deleted; otherwise, the downlink packet is received. Resend to the access gateway.
  7. 根据权利要求6所述方法,其中,所述顶层网关在将所述下行报文进行缓存时,所述方法还包括:启动定时器;The method of claim 6, wherein when the top-level gateway caches the downlink packet, the method further includes: starting a timer;
    相应地,所述顶层网关在预设时间内检测是否接收到来自接入网关的确认报文为:在定时器预设的时间内检测是否接收到来自接入网关的确认报文;Correspondingly, the apex gateway detects whether the acknowledgment message from the access gateway is received within a preset time period: detecting whether an acknowledgment message from the access gateway is received within a preset time of the timer;
    相应地,当所述顶层网关接收到来自接入网关的确认报文时,所述方法还包括:关闭定时器。Correspondingly, when the top-level gateway receives the acknowledgement message from the access gateway, the method further includes: turning off the timer.
  8. 根据权利要求6所述方法,其中,所述方法还包括:当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,所述顶层网关启动异常处理流程。The method according to claim 6, wherein the method further comprises: when the number of repeated transmissions of the same packet reaches a preset threshold and the acknowledgement message is not received, the top gateway starts an exception processing procedure.
  9. 根据权利要求6所述方法,其中,所述顶层网关将下行报文发送到接入网关包括:所述顶层网关直接将所述下行报文发送到接入网关,和/或通过中间网关将所述下行报文发送到接入网关;The method of claim 6, wherein the sending, by the top-level gateway, the downlink message to the access gateway comprises: sending, by the top-level gateway, the downlink message to the access gateway, and/or through the intermediate gateway The downlink packet is sent to the access gateway;
    相应地,所述顶层网关检测是否接收到来自接入网关的确认报文包括:所述顶层网关检测是否接收到直接来自接入网关的确认报文、和/或接入网关通过中间网关发送的确认报文。 Correspondingly, the detecting, by the top-level gateway, whether the acknowledgment message is received from the access gateway comprises: detecting, by the top-level gateway, whether an acknowledgment message directly from the access gateway is received, and/or the access gateway sends the message through the intermediate gateway. Confirm the message.
  10. 一种数据传输装置,所述装置位于顶层网关,所述装置包括:下行报文接收模块、缓存模块、下行报文发送模块、确认报文接收模块、处理模块;其中,A data transmission device, the device is located at a top-level gateway, and the device includes: a downlink packet receiving module, a buffer module, a downlink packet sending module, an acknowledgement packet receiving module, and a processing module;
    所述下行报文接收模块,配置为接收来自互联网的下行报文;The downlink packet receiving module is configured to receive a downlink packet from the Internet;
    所述缓存模块,配置为将所述下行报文进行缓存;The cache module is configured to cache the downlink packet.
    所述下行报文发送模块,配置为将所述下行报文发送到接入网关;The downlink packet sending module is configured to send the downlink packet to an access gateway;
    所述确认报文接收模块,配置为接收到来自接入网关的确认报文;The acknowledgement message receiving module is configured to receive an acknowledgement message from the access gateway;
    所述处理模块,配置为在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,删除所述缓存的下行报文;否则,将所述下行报文重新发送到接入网关。The processing module is configured to detect whether an acknowledgment message from the access gateway is received within a preset time, and when the acknowledgment message from the access gateway is received, delete the cached downlink message; otherwise, The downlink packet is resent to the access gateway.
  11. 根据权利要求10所述装置,其中,所述装置还包括定时器,配置为在将所述下行报文进行缓存时,开启定时功能;The device according to claim 10, wherein the device further comprises a timer configured to enable a timing function when the downlink message is buffered;
    相应地,所述处理模块配置为在定时器预设的时间内检测是否接收到来自接入网关的确认报文;Correspondingly, the processing module is configured to detect whether an acknowledgement message from the access gateway is received within a preset time of the timer;
    当接收到来自接入网关的确认报文时,所述处理模块还配置为:关闭定时器。When receiving an acknowledgment message from the access gateway, the processing module is further configured to: close the timer.
  12. 根据权利要求10所述装置,其中,所述处理模块还配置为:当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,启动异常处理流程。The apparatus according to claim 10, wherein the processing module is further configured to: when an repeated number of times the same message is repeatedly sent reaches a preset threshold and no acknowledgement message is received, the exception processing flow is started.
  13. 根据权利要求10所述装置,其中,下行报文发送模块配置为:直接将所述下行报文发送到接入网关,和/或通过中间网关将所述下行报文发送到接入网关;The device according to claim 10, wherein the downlink packet sending module is configured to: directly send the downlink packet to the access gateway, and/or send the downlink packet to the access gateway through the intermediate gateway;
    相应地,所述处理模块配置为:检测是否接收到直接来自接入网关的确认报文、和/或接入网关通过中间网关发送的确认报文。Correspondingly, the processing module is configured to: detect whether an acknowledgment message directly from the access gateway is received, and/or an acknowledgment message sent by the access gateway through the intermediate gateway.
  14. 一种数据传输装置,所述装置位于接入网关,所述装置包括:下 行报文接收模块、下行报文发送模块、确认消息接收模块、确认报文构建模块、确认报文发送模块,其中,A data transmission device, the device is located at an access gateway, and the device includes: a line message receiving module, a downlink message sending module, an acknowledgment message receiving module, an acknowledgment message building module, and an acknowledgment message sending module, wherein
    所述下行报文接收模块,配置为接收来自顶层网关的下行报文;The downlink packet receiving module is configured to receive a downlink packet from the top-level gateway;
    所述下行报文发送模块,配置为将所述下行报文发送到终端;The downlink packet sending module is configured to send the downlink packet to the terminal;
    所述确认消息接收模块,配置为接收终端发送的确认消息;The confirmation message receiving module is configured to receive an acknowledgement message sent by the terminal;
    所述确认报文构建模块,配置为当接收到所述确认消息时,构建确认报文;The confirmation message construction module is configured to: when receiving the confirmation message, construct an acknowledgement message;
    所述确认报文发送模块,配置为将所述确认报文发送到顶层网关。The acknowledgement message sending module is configured to send the acknowledgement message to the top-level gateway.
  15. 一种数据传输系统,所述系统包括顶层网关、接入网关,其中,A data transmission system, the system comprising a top-level gateway and an access gateway, wherein
    所述顶层网关,配置为接收来自互联网的下行报文,将所述下行报文进行缓存,并发送到接入网关;在预设时间内检测是否接收到来自接入网关的确认报文,当接收到来自接入网关的确认报文时,删除所述缓存的下行报文;否则,将所述下行报文重新发送到接入网关;The top-level gateway is configured to receive a downlink packet from the Internet, cache the downlink packet, and send the packet to the access gateway, and detect whether the acknowledgement packet from the access gateway is received within a preset time. And when the acknowledgment message from the access gateway is received, the buffered downlink packet is deleted; otherwise, the downlink packet is resent to the access gateway;
    所述接入网关,配置为将所述下行报文发送到终端;接收终端发送的确认消息,当接收到所述确认消息时,构建确认报文,并将所述确认报文发送到顶层网关。The access gateway is configured to send the downlink packet to the terminal, and receive an acknowledgement message sent by the terminal. When receiving the acknowledgement message, construct an acknowledgement message, and send the acknowledgement packet to the top-level gateway. .
  16. 根据权利要求15所述系统,其中,所述顶层网关还配置为在将所述下行报文进行缓存时,启动定时器;The system of claim 15, wherein the top-level gateway is further configured to start a timer when the downlink message is buffered;
    相应地,所述顶层网关配置为:在定时器预设的时间内检测是否接收到来自接入网关的确认报文;Correspondingly, the top-level gateway is configured to: detect whether an acknowledgement message from the access gateway is received within a preset time of the timer;
    当所述顶层网关接收到来自接入网关的确认报文时,所述顶层网关还配置为:关闭定时器。When the top-level gateway receives the acknowledgement message from the access gateway, the top-level gateway is further configured to: close the timer.
  17. 根据权利要求15所述系统,其中,所述顶层网关还配置为当同一报文重复发送次数达到预设阈值仍没有收到确认报文时,所述顶层网关启动异常处理流程。 The system of claim 15, wherein the top-level gateway is further configured to start an exception handling process when the number of times the same packet is repeatedly sent reaches a preset threshold and the acknowledgement message is not received.
  18. 根据权利要求15所述系统,其中,所述顶层网关配置为:直接将所述下行报文发送到接入网关,和/或通过中间网关将所述下行报文发送到接入网关;The system of claim 15, wherein the top-level gateway is configured to: directly send the downlink packet to an access gateway, and/or send the downlink packet to an access gateway through an intermediate gateway;
    检测是否接收到直接来自接入网关的确认报文、和/或接入网关通过中间网关发送的确认报文。It is detected whether an acknowledgment message directly from the access gateway and/or an acknowledgment message sent by the access gateway through the intermediate gateway are received.
  19. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至4任一项所述的业务调度方法。A computer storage medium having stored therein computer executable instructions for performing the service scheduling method of any one of claims 1 to 4.
  20. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求5所述的业务调度方法。A computer storage medium having stored therein computer executable instructions for performing the service scheduling method of claim 5.
  21. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求6至9任一项所述的业务调度方法。 A computer storage medium having stored therein computer executable instructions for performing the service scheduling method of any one of claims 6 to 9.
PCT/CN2015/083993 2014-10-15 2015-07-14 Data transmission method, device and system, and storage medium WO2016058424A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410546582.3A CN105577565A (en) 2014-10-15 2014-10-15 Data transmission methods, apparatuses and system thereof
CN201410546582.3 2014-10-15

Publications (1)

Publication Number Publication Date
WO2016058424A1 true WO2016058424A1 (en) 2016-04-21

Family

ID=55746097

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/083993 WO2016058424A1 (en) 2014-10-15 2015-07-14 Data transmission method, device and system, and storage medium

Country Status (2)

Country Link
CN (1) CN105577565A (en)
WO (1) WO2016058424A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109963309A (en) * 2017-12-22 2019-07-02 上海未来宽带技术股份有限公司 Adaptive Rate Shape method, system, storage medium and network server in LoRaWAN network

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111478929B (en) * 2019-01-23 2021-06-11 大唐移动通信设备有限公司 Video service data transmission method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1412987A (en) * 2001-10-15 2003-04-23 华为技术有限公司 Quick retransmission processing method of GTP data packet
CN1561615A (en) * 2001-09-28 2005-01-05 埃沃柳姆公司 Method of improving the performance of a transmission protocol using a retransmission timer
KR20050029381A (en) * 2003-09-22 2005-03-28 엘지전자 주식회사 Method for deleting gprs tunnel protocol resource
CN103179618A (en) * 2013-03-19 2013-06-26 福建三元达通讯股份有限公司 Method for improving QoS (Quality of Service) of backhaul network based on LTE (Long Term Evolution) Femto system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340535B (en) * 2011-07-13 2014-04-02 华为技术有限公司 Data transmission method, device and system
CN102340754B (en) * 2011-09-23 2014-07-23 电信科学技术研究院 Data transmission and receiving methods and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561615A (en) * 2001-09-28 2005-01-05 埃沃柳姆公司 Method of improving the performance of a transmission protocol using a retransmission timer
CN1412987A (en) * 2001-10-15 2003-04-23 华为技术有限公司 Quick retransmission processing method of GTP data packet
KR20050029381A (en) * 2003-09-22 2005-03-28 엘지전자 주식회사 Method for deleting gprs tunnel protocol resource
CN103179618A (en) * 2013-03-19 2013-06-26 福建三元达通讯股份有限公司 Method for improving QoS (Quality of Service) of backhaul network based on LTE (Long Term Evolution) Femto system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MEYER, M.: "TCP Performance over GPRS", WCNC., 1999, XP010353662 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109963309A (en) * 2017-12-22 2019-07-02 上海未来宽带技术股份有限公司 Adaptive Rate Shape method, system, storage medium and network server in LoRaWAN network
CN109963309B (en) * 2017-12-22 2022-12-09 上海未来宽带技术股份有限公司 Adaptive rate adjustment method, system, storage medium and network server in LoRaWAN (Long Range network)

Also Published As

Publication number Publication date
CN105577565A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
US11617072B2 (en) Reliable data delivery over non-access stratum
TWI415433B (en) Bi-directional rlc non-persistent mode for low delay services
RU2649298C1 (en) Gateway device and method of its management
KR102259652B1 (en) Apparatus and method for providing service in communication network supporting multipath transport control protocol
JP5351329B2 (en) Method and terminal for receiving one-to-many service in a wireless communication system
KR20190073479A (en) Method and device for transmitting messages, chip and terminal
US11729686B2 (en) Transmission control method, apparatus, and system
EP2667655B1 (en) Method and apparatus for controlling congestion in wireless communication system
TW200917870A (en) Layer 2 tunneling of data during handover in a wireless communication system
WO2014127515A1 (en) Service providing system, method, mobile edge application server and support node
WO2013040962A1 (en) Data sending and receiving method and device
WO2021184783A1 (en) Method and apparatus for realizing network capability opening, electronic device and storage medium
US20180317156A1 (en) Methods and Devices for Handling Data Packet Transmissions in a Multi-Path Multi-Hop Adapted Wireless Communication Network
WO2015196393A1 (en) Data transmission method and device
WO2011100911A2 (en) Detection processing method, data transmitter, data receiver and communication system
WO2016015244A1 (en) Multi-communication-mode transmission method and apparatus
WO2020147453A1 (en) Data transmission method and related apparatus
Abed et al. Comparative performance investigation of TCP and SCTP protocols over LTE/LTE-advanced systems
WO2016095198A1 (en) Apparatus, system and method for preventing tcp connection interruption
WO2016058424A1 (en) Data transmission method, device and system, and storage medium
WO2016154831A1 (en) Method and device for realizing transmission control protocol (tcp) transmission
JP2021509779A (en) How and equipment to retransmit data
US20240031861A1 (en) Communication method and device
Kim Techniques for end-to-end TCP performance enhancement over wireless networks
Pawar et al. A Review on TCP Protocol on LTE Network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15850645

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15850645

Country of ref document: EP

Kind code of ref document: A1