CN105897665A - Method for realizing TCP transmission in satellite network environment and corresponding gateway - Google Patents

Method for realizing TCP transmission in satellite network environment and corresponding gateway Download PDF

Info

Publication number
CN105897665A
CN105897665A CN201510038936.8A CN201510038936A CN105897665A CN 105897665 A CN105897665 A CN 105897665A CN 201510038936 A CN201510038936 A CN 201510038936A CN 105897665 A CN105897665 A CN 105897665A
Authority
CN
China
Prior art keywords
tcp
message
tmsg
connection
connection identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510038936.8A
Other languages
Chinese (zh)
Other versions
CN105897665B (en
Inventor
常伟
唐雄
麦伟鹏
晏文彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201510038936.8A priority Critical patent/CN105897665B/en
Priority to PCT/CN2015/089060 priority patent/WO2016119464A1/en
Publication of CN105897665A publication Critical patent/CN105897665A/en
Application granted granted Critical
Publication of CN105897665B publication Critical patent/CN105897665B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Radio Relay Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method for realizing TCP transmission in a satellite network environment and a corresponding gateway. A gateway which is connected to a client in a PEP performs the following processing of intercepting the TCP connection request sent to a server by the client, extracting first connection information from the TCP connection request and sending a pseudo response to the client, and establishing a first TCP connection with the client; taking the first connection information as a data part and packaging a TMSG head, generating a packet of asking to establish a connection and sending the packet to an opposite end gateway connected to the server through a satellite link, wherein, the TMSG head carries a first TCP connection identification; and recording the second TCP connection identification carried by the TMSG head and associating the second TCP connection identification with the first TCP connection identification after the response packet that the connection is established successfully returned by the opposite end gateway is received. According to the invention, the change of the protocol stacks of the server and the client is not needed, and the related processing of the TCP transmission between the client and the server is realized.

Description

The method of TCP transmission and corresponding gateway is realized under a kind of satellite network environment
Technical field
The present invention relates to satellite communication, realize TCP more particularly, to one based under satellite network environment The method of transmission and corresponding gateway.
Background technology
Owing to satellite technology plays an increasingly important role in modern communication infrastructure, satellite network with The combination of ground IP network is the development trend that current satellite communication field is the most popular.Transmission Control Protocol is towards even The transport layer protocol connect, provides the transmission of reliable data to relevant application.According to statistics, current Internet The data stream of upper more than 95% uses TCP as host-host protocol.But when being applied to defend by Transmission Control Protocol During star network environment, owing to satellite channel is different from some inherent characteristicses of terrestrial links, have a strong impact on The performance of TCP, reduces the utilization rate of satellite channel bandwidth.
About how improving the performance of TCP under satellite network environment, it is done much research, In at present conventional raisings satellite system the method for TCP performance mainly take to accelerate to act on behalf of (PEP, Performe Enhancment Proxy) mode, which is divided into single-ended and both-end two kinds.Wherein, double End PEP includes two gateways being individually positioned in satellite network two ends, as it is shown in figure 1, all of TCP Connect and be divided into three sections: server and main website end PEP (being arranged in the gateway being connected with server) are even Connecing, main website end PEP and small station end PEP (being arranged in the gateway being connected with client computer) connects, small station End PEP and client computer connect.Both-end PEP scheme not protocol stack and application program to communicating pair does and changes Dynamic, but, in order to be suitable for the feature of satellite link, between two gateways, employing is different from its of TCP He carries out data transmission agreement, the most how to realize the TCP transmission between client-server, is anxious Technical problem to be solved.
Summary of the invention
In view of this, the invention provides a kind of method realizing TCP transmission under satellite network environment, should Accelerating to act on behalf of the gateway being connected in PEP with client computer for both-end, described method includes following connection establishment Process:
Intercept client computer and be sent to the TCP connection request of server, therefrom extract the first link information and to Described client computer sends pseudo-response, sets up a TCP with described client computer and is connected;
With described first link information as data division and encapsulation transition message TMSG head, generation request is built The vertical message connected also is sent to the peer gateway being connected with described server by satellite link, described TMSG head carries for identifying the TCP connection identifier that a described TCP connects;
After receiving the successful response message of connection establishment that described peer gateway returns, record is wherein The 2nd TCP connection identifier that TMSG head carries also associates with a described TCP connection identifier, described 2nd TCP connection identifier is the mark of the TCP connection of described peer gateway and the foundation of described server.
It is preferred that
Described TMSG head includes type of message, connection identifier and message length field, and its length is less than The length of TCP header.
It is preferred that
Described method also includes the process that data below is transmitted:
Intercept described client computer and connected the tcp data message being sent to described server by a TCP And carry out response, from described tcp data message, extract data division and encapsulate TMSG head, generating Data send message be sent to described peer gateway by described satellite link, described TMSG head carries The described 2nd TCP connection identifier associated with a described TCP connection identifier;And
Receive data from described satellite link and send message, as described in the connection identifier of wherein TMSG head is Oneth TCP connection identifier, then send from described data and extract data division message and encapsulate corresponding TCP header, the tcp data message of generation is sent to described client computer by a described TCP connection.
It is preferred that
Described method also include following connect disconnect process:
The communication disruption that a described TCP connects detected;
Send request by described satellite link to described peer gateway and close the message connected, therein TMSG head carries described 2nd TCP connection identifier;
After receiving the successful response message of connection closed that described peer gateway returns, disconnect described first TCP connects.
It is preferred that
The process of described connection establishment also includes: is connected by a described TCP and closes with described satellite link Connection;
Described method also includes the following process connecting and disconnecting: detect that described satellite link disconnects, will be with All TCP of described satellite link association connect disconnection.
In view of this, present invention also offers one to be applied to both-end and accelerate to act on behalf of in PEP with client computer even The gateway connect, including user side protocol entity and satellite side protocol entity, wherein:
Described user side protocol entity includes the packet filtering module of bottom and the Socket service device on upper strata;
Described packet filtering module includes:
Reversely retransmission unit, the connection sent when TCP is connected for intercepting client computer to set up with server is asked Ask message and ACK message, the purpose IP address in message and destination interface are replaced with described Socket Described Socket service device it is sent to behind the IP address of server and port;Wherein, described connection is intercepted During request message, also record including source IP address, source port, purpose IP address and destination interface The first link information and be sent to described Socket service device;
Forwards Forwarding unit, for being sent to the ACK report of described client computer by described Socket service device Source IP address and source port in literary composition replace with the purpose IP address in described first link information and purpose After port, it is sent to described client computer;
Described Socket service device includes: connection establishment module, for receiving the institute that packet filtering module sends After stating connection request message and the first link information, send ACK message to client computer;And receiving bag After the described ACK message that filtering module sends, set up and be connected with a TCP of described client computer and give birth to Become a TCP connection identifier, notify protocol entity the oneth TCP connection establishment success of described satellite side, Carry described first link information;
Described satellite side protocol entity includes: connection establishment module, is used for receiving described Socket service device A TCP connection establishment successfully notify after, and encapsulate with described first link information as data division Conversion message TMSG head, the request of generation is set up the message connected and is sent to opposite end net by satellite link Closing, described TMSG head carries a described TCP connection identifier;And be used for receiving described peer gateway By, after the successful response message of connection establishment that described satellite link returns, recording wherein TMSG head and take Band the 2nd TCP connection identifier and associate with a described TCP connection identifier, described 2nd TCP company Connect and be designated the mark that the TCP of described peer gateway and the foundation of described server connects.
It is preferred that
The described TMSG head of the connection establishment module encapsulation of described satellite side protocol entity includes message class Type, connection identifier and message length field, its length is less than the length of TCP header.
It is preferred that
Reverse retransmission unit in described packet filtering module is additionally operable to intercept the tcp data message of process, as Link information therein is mated with described first link information, and the most described tcp data message is from first TCP connects, and is replaced with in the purpose IP address in described tcp data message and destination interface described The IP address of Socket service device and port, be sent to described Socket service device;
Described Socket service device also includes: message processing module (MPM), for receiving from a TCP even The described tcp data message that connects also sends TCP response message;
Forwards Forwarding unit in described packet filtering module is additionally operable to described Socket service device is sent to institute State the source IP address in the TCP response message of client computer and source port replaces with described first link information In purpose IP address and destination interface after, be sent to described client computer;
Described satellite side protocol entity also includes: packet sending and receiving module, for connecting from a TCP Described tcp data message data division before encapsulate TMSG head, the data of generation send message and lead to Crossing described satellite link and be sent to described peer gateway, described TMSG head carries and a described TCP The described 2nd TCP connection identifier of connection identifier association.
It is preferred that
The packet sending and receiving module of described satellite side protocol entity is additionally operable to receive from described satellite link be sent to The data of described client computer send message;
Message processing module (MPM) in described Socket service device is additionally operable to identify that described satellite side protocol entity connects The data received send message, a TCP connection identifier as described in the connection identifier of wherein TMSG head is, Then send from described data and message extracts data division and encapsulates corresponding TCP header, the TCP of generation Data message is also sent to described client computer by a described TCP connection;
Forwards Forwarding unit in described packet filtering module is additionally operable to described Socket service device is sent to institute State the source IP address in the tcp data message of client computer and source port replaces with described first link information In purpose IP address and destination interface after, be sent to described client computer.
It is preferred that
Described Socket service device also includes: connects maintenance module, is used for a described TCP being detected When connecting communication disruption, notify described satellite side protocol entity the oneth TCP disconnecting;And receive described After the connection closed of satellite side protocol entity successfully notifies, disconnect a described TCP and connect;
Described satellite side protocol entity also includes: connects maintenance module, is used for receiving described Socket service After the notice of the oneth TCP disconnecting of device, being sent to described peer gateway by described satellite link please Asking and close the message connected, TMSG head therein carries described 2nd TCP connection identifier;And be used for After receiving the successful response message of connection closed that described peer gateway returns, notify described Socket The success of server connection closed.
It is preferred that
The connection maintenance module of described satellite side protocol entity is additionally operable to detecting that described satellite link disconnects Time, send, to described Socket service device, the notice that described satellite link disconnects;
The connection maintenance module of described Socket service device is additionally operable to connect with described a described TCP Satellite link associates;After receiving the notice that described satellite link disconnects, by associate with described satellite link All TCP connect disconnection.
In view of this, the present invention also provides for a kind of method realizing TCP transmission under satellite network environment, should Accelerating to act on behalf of the gateway being connected in PEP with server for both-end, described method includes following connection establishment Process:
Receive the message of the connection establishment request that the peer gateway being connected with client computer sends through satellite link After, record a TCP connection identifier and data division that wherein conversion message TMSG head carries carry The first link information that the TCP that described client computer is set up with described peer gateway is connected, described first TCP connection identifier is used for identifying a described TCP and connects;
Set up the 2nd TCP with described server to be connected, after connection establishment completes, by described satellite link Returning the successful response message of connection establishment to described peer gateway, TMSG head therein carries for marking Know the 2nd TCP connection identifier that described 2nd TCP connects;By described 2nd TCP connection identifier and institute State a TCP connection identifier association.
It is preferred that
Described TMSG head includes type of message, connection identifier and message length field, and its length is less than The length of TCP header.
It is preferred that
Described method also includes the process that data below is transmitted:
Receive described server and connected the TCP number being sent to described client computer by described 2nd TCP According to carrying out response after message, from described tcp data message, extract data division and encapsulate TMSG head, Generate data send message and be sent to described peer gateway, described TMSG head by described satellite link Carry the described TCP connection identifier associated with described 2nd TCP connection identifier;And
The data transmission message being sent to described server is received, as wherein from described satellite link The connection identifier that TMSG head carries is described 2nd TCP connection identifier, sends message from described data Extracting data division and encapsulate corresponding TCP header, the tcp data message of generation passes through described 2nd TCP Connect and be sent to described server.
It is preferred that
Described method also include following connect disconnect process:
The communication disruption that described 2nd TCP connects detected;
Send request by described satellite link to described peer gateway and close the message connected, therein TMSG head carries a described TCP connection identifier;
Receive the successful response message of connection closed that described peer gateway returns through described satellite link After, disconnect described 2nd TCP and connect.
It is preferred that
The process of described connection establishment also includes: connect relevant to described satellite link by described 2nd TCP Connection;
Described method also includes the following process connecting and disconnecting: after detecting that described satellite link disconnects, will All TCP of described satellite link association connect disconnection.
In view of this, present invention also offers one to be applied to both-end and accelerate to act on behalf of in PEP with server even The gateway connect, including server side protocol entity and satellite side protocol entity, wherein:
Described satellite side protocol entity includes: connection establishment module, is connected with client computer for receiving After the message that the connection establishment that peer gateway sends through satellite link is asked, message wherein changed in record A TCP connection identifier that TMSG head carries and the first link information that data division carries, and notify Described server side protocol entity is set up and is connected with the 2nd TCP of server;Described first link information is The link information that the TCP that described peer gateway is set up with described client computer is connected, a described TCP Connection identifier is used for identifying a described TCP and connects;
Described server side protocol entity includes: connection establishment module, is used for receiving the described TCP that sets up and connects After the notice connect, set up described 2nd TCP with described server and be connected, generate and be used for identifying described second The 2nd TCP connection identifier that TCP connects, returns connection by described satellite link to described peer gateway The response message being successfully established, carries described 2nd TCP connection identifier, and notifies described satellite side agreement The success of entity the 2nd TCP connection establishment, carries described 2nd TCP connection identifier;
The connection establishment module of described satellite side protocol entity is additionally operable to receive described in the protocol entity of server side After 2nd TCP connection establishment successfully notifies, returned even to described peer gateway by described satellite link Connecing the response message being successfully established, TMSG head therein carries described 2nd TCP connection identifier;Will Described 2nd TCP connection identifier associates with a described TCP connection identifier.
It is preferred that
Described server side protocol entity also includes: packet sending and receiving module, is used for receiving described server and leads to Cross described 2nd TCP connection be sent to the tcp data message of described client computer and carry out response;
Described satellite side protocol entity also includes: packet sending and receiving module, for from described server side agreement The described tcp data message that entity receives extracts data division and encapsulates TMSG head, the number of generation According to send message be sent to described peer gateway by described satellite link, TMSG head therein carry and A described TCP connection identifier of described 2nd TCP connection identifier association.
It is preferred that
The packet sending and receiving module of described satellite side protocol entity is additionally operable to receive from described satellite link be sent to The data of described server send message;
The packet sending and receiving module of described server side protocol entity is additionally operable to identify described satellite side protocol entity The data received send message, the connection identifier carried such as TMSG head therein be as described in the 2nd TCP Connection identifier, then send from described data and extract data division message and encapsulate corresponding TCP header, raw The tcp data message become is sent to described server by described 2nd TCP connection.
It is preferred that
The described TMSG head of the packet sending and receiving module encapsulation of described satellite side protocol entity includes message class Type, connection identifier and message length field, its length is less than the length of TCP header.
It is preferred that
Described server side protocol entity also includes: connects maintenance module, is used for described 2nd TCP being detected During the communication disruption connected, notify described satellite side protocol entity the 2nd TCP disconnecting;And receive institute State after the connection closed of satellite side protocol entity successfully notifies, disconnect described 2nd TCP and connect;
Described satellite side protocol entity also includes: connect maintenance module, is used for receiving in the 2nd TCP connection After disconnected notice, send request by described satellite link to described peer gateway and close the message connected, TMSG head therein carries a described TCP connection identifier;And receive what described peer gateway returned After the successful response message of connection closed, notify the protocol entity connection closed success of described server side.
It is preferred that
The connection maintenance module of described satellite side protocol entity is additionally operable to detecting that described satellite link disconnects Time, send, to described server side protocol entity, the notice that described satellite link disconnects;
The connection maintenance module of described server side protocol entity be additionally operable to by described 2nd TCP connect with Described satellite link associates;After receiving the notice that described satellite link disconnects, will be with described satellite link All TCP of association connect disconnection.
Such scheme is under both-end PEP scene, and two gateways are respectively directed to server and client computer use TCP cheats, in the case of without being modified the protocol stack of server and client computer, it is achieved that visitor The relevant treatment of TCP transmission between family machine and server, it is also possible to by TCP header is replaced into more Simple TMSG head, decreases and takies bandwidth.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes of the application Point, the schematic description and description of the present invention is used for explaining the present invention, is not intended that the present invention's Improper restriction.In the accompanying drawings:
Fig. 1 is the schematic diagram according to the present invention typical satellite communication application scenarios;
Fig. 2 is the flow chart of the connection establishment of the embodiment of the present invention one method;
Fig. 3 is the schematic diagram of the embodiment of the present invention one TMSG header structure;
Fig. 4 is the flow chart of the data transmission of the embodiment of the present invention one method;
Fig. 5 is the flow chart of the connection disconnection process of the embodiment of the present invention one method;
Fig. 6 is the module map of the gateway that the embodiment of the present invention one is connected with client computer;
Fig. 7 is the flow chart of the connection establishment of the embodiment of the present invention two method;
Fig. 8 is the flow chart of the data transmission of the embodiment of the present invention two method;
Fig. 9 is the flow chart of the connection disconnection process of the embodiment of the present invention two method;
Figure 10 is the module map of the gateway that the embodiment of the present invention two is connected with server;
Figure 11 is the schematic diagram of the protocol stack of each network element of application example of the present invention.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing Embodiments of the invention are described in detail.It should be noted that in the case of not conflicting, this Shen Embodiment in please and the feature in embodiment can mutual combination in any.
Embodiment one
The present embodiment relates to the method realizing TCP transmission under satellite network environment, is applied to both-end and accelerates generation The gateway being connected with client computer in reason PEP.
As in figure 2 it is shown, described method includes the process of following connection establishment:
Step 110, intercepts client computer and is sent to the TCP connection request of server, therefrom extract first even Connect information and send pseudo-response to described client computer, setting up a TCP with described client computer and be connected;
Step 120, with described first link information as data division and encapsulation transition message TMSG head, The request of generation is set up the message connected and is sent to the opposite end net being connected with described server by satellite link Closing, described TMSG head carries a TCP connection identifier;
An above-mentioned TCP connection identifier is used for identifying a described TCP and connects.
As it is shown on figure 3, the TMSG head of the present embodiment includes type of message, connection identifier and message-length Field, its length is less than the length of TCP header.Wherein:
Type of message, sets up connection message, connection establishment successful respond message including request, and request is closed Connection message, closes successful connection response message, closes all connection messages, and data send the classes such as message The message of type, but message name is not limiting as by the present invention.
Connection identifier, including for identifying the TCP that the TCP between client computer with gateway is connected Connection identifier, and for identifying the 2nd TCP connection that the 2nd TCP between gateway with server is connected Mark.
Message-length message length, i.e. comprises the message-length of TMSG.
Step 130, after receiving the successful response message of connection establishment that peer gateway returns, records it The 2nd TCP connection identifier that middle TMSG head carries also associates with a described TCP connection identifier.
Described 2nd TCP connection identifier is that the TCP of described peer gateway and the foundation of described server connects Mark.
As shown in Figure 4, the present embodiment method also includes that the gateway being connected with client computer transmits below data Process:
Step 210, is intercepted described client computer and is connected the TCP being sent to described server by a TCP Data message also carries out response, extracts data division and encapsulate TMSG from described tcp data message Head, the data of generation send message and are sent to peer gateway, described TMSG head by described satellite link Carry the described 2nd TCP connection identifier associated with a described TCP connection identifier;
Step 220, receives data from described satellite link and sends message, such as the connection of wherein TMSG head It is designated a described TCP connection identifier, then sends from described data and message extracts data division and seals Filling corresponding TCP header, the tcp data message of generation is sent to described by a described TCP connection Client computer.
As it is shown in figure 5, below the present embodiment method also includes that the gateway being connected with client computer disconnects Process:
Step 310, detects the communication disruption that a described TCP connects;
Step 320, sends request by described satellite link to described peer gateway and closes the message connected, TMSG head therein carries described 2nd TCP connection identifier;
Step 330, after receiving the successful response message of connection closed that described peer gateway returns, disconnected Open a described TCP to connect.
If be detected that described satellite link disconnects, then the gateway being connected with client computer will be with described satellite chain All TCP of road association connect disconnection.The most before this, need after setting up a TCP connection A described TCP is connected and associates with described satellite link.
Correspondingly, the present embodiment additionally provides one and is applied to both-end and accelerates to act on behalf of in PEP with client computer even The gateway connect, as shown in Figure 6, including user side protocol entity 10 and satellite side protocol entity 20, its In:
Described user side protocol entity 10 includes packet filtering module 101 and the upper strata of bottom (referring to physical layer) The Socket service device 103 of (tcp protocol layer);
Described packet filtering module 101 includes:
Reversely retransmission unit 1011, sets up transmission when TCP is connected for intercepting client computer with server Connection request message and ACK message, replace with described by the purpose IP address in message and destination interface Described Socket service device it is sent to behind the IP address of Socket service device and port;Wherein, institute is intercepted When stating connection request message, also record including source IP address, source port, purpose IP address and mesh The first link information of port and be sent to described Socket service device;
Forwards Forwarding unit 1013, for being sent to the ACK of described client computer by described Socket service device Source IP address and source port in message replace with the purpose IP address in described first link information and mesh Port after, be sent to described client computer;
Described Socket service device 103 includes:
Connection establishment module 1031, for receiving the described connection request message and that packet filtering module sends After one link information, send ACK message to client computer;And receiving described in the transmission of packet filtering module After ACK message, set up and be connected with a TCP of described client computer and generate a TCP connection identifier, Notify protocol entity the oneth TCP connection establishment success of described satellite side, carry described first link information;
Described satellite side protocol entity 20 includes:
Connection establishment module 201, becomes for receiving a TCP connection establishment of described Socket service device After the notice of merit, with described first link information as data division and encapsulation transition message TMSG head, raw Becoming request set up the message connected and be sent to peer gateway by satellite link, described TMSG head carries A described TCP connection identifier;And for receiving what described peer gateway was returned by described satellite link After the successful response message of connection establishment, record the 2nd TCP connection identifier that wherein TMSG head carries And associate with a described TCP connection identifier, described 2nd TCP connection identifier is described peer gateway Mark with the TCP connection that described server is set up.It is preferred that described TMSG head includes message class Type, connection identifier and message length field, its length is less than the length of TCP header.
It is preferred that
Reverse retransmission unit 1011 in described packet filtering module 101 is additionally operable to intercept the TCP number of process According to message, link information therein with as described in the first link information mate, the most described tcp data message Connect from a TCP, the purpose IP address in described tcp data message and destination interface are replaced For IP address and the port of described Socket service device, it is sent to described Socket service device;
Described Socket service device 103 also includes:
Message processing module (MPM) 1033, for receiving the described tcp data message connected from a TCP And send TCP response message;
Forwards Forwarding unit 1013 in described packet filtering module 101 is additionally operable to described Socket service Device is sent to the source IP address in the TCP response message of described client computer and source port replaces with described Behind purpose IP address in one link information and destination interface, it is sent to described client computer;
Described satellite side protocol entity 20 also includes:
Packet sending and receiving module 203, for the number at the described tcp data message connected from a TCP According to encapsulation TMSG head before part, the data of generation are sent message and are sent to by described satellite link described Peer gateway, described TMSG head carries described 2nd TCP associated with a described TCP connection identifier Connection identifier.
It is preferred that
The packet sending and receiving module 203 of described satellite side protocol entity 20 is additionally operable to receive from described satellite link The data being sent to described client computer send message;
Message processing module (MPM) 1033 in described Socket service device 103 is additionally operable to identify described satellite side The data that protocol entity 20 receives send message, as described in the connection identifier of wherein TMSG head is first TCP connection identifier, then send from described data and extract data division message and encapsulate corresponding TCP Head, the tcp data message of generation is also connected by a described TCP and is sent to described client computer;
Forwards Forwarding unit 1013 in described packet filtering module 101 is additionally operable to described Socket service Device is sent to the source IP address in the tcp data message of described client computer and source port replaces with described Behind purpose IP address in one link information and destination interface, it is sent to described client computer.
It is preferred that
Described Socket service device 103 also includes:
Connect maintenance module 1035, be used for detecting when a described TCP connects communication disruption, notice Described satellite side protocol entity 20 the oneth TCP disconnecting;And receive described satellite side protocol entity 20 Connection closed successfully notify after, disconnect described oneth TCP connect;
Described satellite side protocol entity 20 also includes:
Connect maintenance module 205, for receiving a TCP disconnecting of described Socket service device After notice, send request by described satellite link to described peer gateway and close the message connected, wherein TMSG head carry described 2nd TCP connection identifier;And for returning receiving described peer gateway After the successful response message of connection closed returned, notify the success of described Socket service device connection closed.
It is preferred that
The connection maintenance module 205 of described satellite side protocol entity 20 is additionally operable to described satellite chain detected When road disconnects, send, to described Socket service device 103, the notice that described satellite link disconnects;
The connection maintenance module 1035 of described Socket service device 103 is additionally operable to by a described TCP even Connect and associate with described satellite link;After receiving the notice that described satellite link disconnects, will be with described satellite chain All TCP of road association connect disconnection.
Embodiment two
The present embodiment relates to the method realizing TCP transmission under satellite network environment, is applied to both-end and accelerates generation The gateway being connected with server in reason PEP.
As it is shown in fig. 7, described method includes the process of following connection establishment:
Step 410, receives the connection establishment that the peer gateway being connected with client computer sends through satellite link After the message of request, record TCP connection identifier and the number that wherein conversion message TMSG head carries Carry that the TCP that described client computer sets up with described peer gateway is connected according to part first connects believes Breath, a described TCP connection identifier is used for identifying a described TCP and connects;
It is preferred that described TMSG head includes type of message, connection identifier and message length field, it is long Degree is less than the length of TCP header.
Step 420, sets up the 2nd TCP with described server and is connected, after connection establishment completes, by institute State satellite link and return the successful response message of connection establishment, TMSG head therein to described peer gateway Carry for identifying the 2nd TCP connection identifier that described 2nd TCP connects;By described 2nd TCP even Connect mark to associate with a described TCP connection identifier.
As shown in Figure 8, described method also includes the process that data below is transmitted:
Step 510, receives described server and is sent to described client computer by described 2nd TCP connection Tcp data message after carry out response, from described tcp data message, extract data division encapsulating TMSG head, generates data and sends message and be sent to described peer gateway, institute by described satellite link State TMSG head and carry the described TCP connection identifier associated with described 2nd TCP connection identifier;
Step 520, receives the data transmission message being sent to described server from described satellite link, The 2nd TCP connection identifier as described in connection identifier that wherein TMSG head carries is, sends out from described data Delivering newspaper and extract data division in literary composition and encapsulate corresponding TCP header, the tcp data message of generation passes through institute State the 2nd TCP connection and be sent to described server.
As it is shown in figure 9, described method may also include following connect disconnect process:
Step 610, detects the communication disruption that described 2nd TCP connects;
Step 620, sends request by described satellite link to described peer gateway and closes the message connected, TMSG head therein carries a described TCP connection identifier;
Step 630, receives the connection closed that described peer gateway returns through described satellite link successful After response message, disconnect described 2nd TCP and connect.
If be detected that after described satellite link disconnects, then the gateway being connected with server is by described satellite chain All TCP of road association connect disconnection.Certainly, this gateway needs after setting up the 2nd TCP connection, Described 2nd TCP is connected and is associated with described satellite link.
Correspondingly, the present embodiment additionally provides one and is applied to both-end and accelerates to act on behalf of in PEP with server even The gateway connect, as shown in Figure 10, including server side protocol entity 50 and satellite side protocol entity 60, Wherein:
Described satellite side protocol entity 60 includes:
Connection establishment module 601, sends out through satellite link for receiving the peer gateway being connected with client computer After the message of the connection establishment request sent, the record TCP that wherein conversion message TMSG head carries The first link information that connection identifier and data division carry, and notify that described server side protocol entity is built Stand and be connected with the 2nd TCP of server;Described first link information is described peer gateway and described client The link information that the TCP that machine is set up connects, a described TCP connection identifier is used for identifying described Oneth TCP connects;
Described server side protocol entity 50 includes:
Connection establishment module 501, after receiving the described notice setting up TCP connection, with described service Device is set up described 2nd TCP and is connected, and generates the 2nd TCP connected for identifying described 2nd TCP and connects Connect mark, return the successful response message of connection establishment by described satellite link to described peer gateway, Carry described 2nd TCP connection identifier, and notify that described satellite side protocol entity the 2nd TCP connection is built Stand successfully, carry described 2nd TCP connection identifier;
The connection establishment module 601 of described satellite side protocol entity is additionally operable to receive server side protocol entity After described 2nd TCP connection establishment successfully notifies, returned to described peer gateway by described satellite link Returning the successful response message of connection establishment, TMSG head therein carries described 2nd TCP connection identifier; Described 2nd TCP connection identifier is associated with a described TCP connection identifier.
It is preferred that
Described server side protocol entity 50 also includes:
Packet sending and receiving module 503, is used for receiving described server and is sent to by described 2nd TCP connection The tcp data message of described client computer also carries out response;
Described satellite side protocol entity 60 also includes:
Packet sending and receiving module 603, for the described tcp data received from described server side protocol entity Extracting data division in message and encapsulate TMSG head, the data of generation send message by described satellite chain Road is sent to described peer gateway, and TMSG head therein carries and closes with described 2nd TCP connection identifier A described TCP connection identifier of connection.
It is preferred that
The packet sending and receiving module 603 of described satellite side protocol entity 60 is additionally operable to receive from described satellite link The data being sent to described server send message;
The packet sending and receiving module 503 of described server side protocol entity 50 is additionally operable to identify that described satellite side is assisted The data that view entity receives send message, the connection identifier carried such as TMSG head therein be as described in second TCP connection identifier, then send from described data and extract data division message and encapsulate corresponding TCP Head, the tcp data message of generation is sent to described server by described 2nd TCP connection.
It is preferred that
The described TMSG head of packet sending and receiving module 603 encapsulation of described satellite side protocol entity 60 includes Type of message, connection identifier and message length field, its length is less than the length of TCP header.
It is preferred that
Described server side protocol entity 50 also includes:
Connect maintenance module 505, during for the communication disruption of described 2nd TCP connection being detected, notice Described satellite side protocol entity the 2nd TCP disconnecting;And receive the connection of described satellite side protocol entity Close after successfully notifying, disconnect described 2nd TCP and connect;
Described satellite side protocol entity 60 also includes:
Connect maintenance module 605, after the notice receiving the 2nd TCP disconnecting, defended by described Peer gateway described in stellar chain road direction sends request and closes the message connected, and TMSG head therein carries described Oneth TCP connection identifier;And receive the successful response message of connection closed that described peer gateway returns After, notify the protocol entity connection closed success of described server side.
It is preferred that
The connection maintenance module 605 of described satellite side protocol entity 60 is additionally operable to described satellite chain detected When road disconnects, send, to described server side protocol entity, the notice that described satellite link disconnects;
The connection maintenance module 505 of described server side protocol entity 50 is additionally operable to described 2nd TCP Connect and associate with described satellite link;After receiving the notice that described satellite link disconnects, will defend with described All TCP of star link association connect disconnection.
Above-described embodiment is under both-end PEP scene, and two gateways are respectively directed to server and client computer use TCP cheats, in the case of without being modified the protocol stack of server and client computer, it is achieved that visitor The relevant treatment of TCP transmission between family machine and server, it is also possible to by TCP header is replaced into more Simple TMSG head, changes IP+TCP head and compresses, decreasing and take bandwidth.
The most again with an application example, on the whole the inventive method and gateway are done an explanation.
Figure 11 shows the gateway and server that the client computer that above-described embodiment relates to is connected with client computer The schematic diagram of the protocol stack on the gateway connected and server.
Protocol stack in client computer (Client) and server all includes TCP, IP and MAC, it is not necessary to become Change.
On the gateway being connected with client computer, the protocol stack of the side being connected with client computer includes: TCP, IP And MAC, PHY stack is not shown.Such as the explanation in above-described embodiment one, need in physical layer In packet filtering module is set, coordinate with the Socket service device in TCP layer, it is achieved the TCP to client computer Deception (i.e. when client computer and this gateway communication, will be considered that opposite end is exactly server).This gateway and satellite Network connects the protocol stack of side and includes: TMSG and RMAC, TMSG agreement is for carrying out message The encapsulation of TMSG head and decapsulation, RMAC agreement can use various communication protocols based on satellite link View, such as Transmission Control Protocol that can be some improve for satellite link, or be specifically designed for satellite network and The proprietary protocol etc. of design, the present invention does not do and limits to.
On the gateway being connected with server, the protocol stack being connected side with satellite network includes: TMSG and RMAC, equally, TMSG agreement for carrying out encapsulation and the decapsulation of TMSG head, RMAC to message Agreement is communication protocol based on satellite link.
The connection establishment of this example, data transmission and the process step of connection closed are described below.Wherein:
The process of foundation includes:
1) client computer initiates TCP connection request to server;
2) connection request intercepts and captures request message through GW1, GW1, records TCP link information;
3) GW1 carries out TCP deception to client computer, sends pseudo-response, initiates link setup to GW2 simultaneously Request;
4) after GW2 receives, recording-related information, then according to GW1 send link setup request inside The information carried, is set up TCP by GW2 with server and is connected, and TCP is successfully established backward GW1 and returns Answer link setup success message;
5) both sides set up successful connection.
A kind of exemplary more specifically process step, including:
1) visitor's user orientation server initiates TCP connection request;
2) connection request intercepts and captures request message through GW1, GW1 underlying protocol stack packet filtering module, Record TCP link information, including source IP, source port, purpose IP, destination interface;
3) purpose IP of this request message is replaced the IP of GW1, destination by GW1 upper packet filtering module Mouth replaces with 10086, delivers to the Socket service device on GW1 upper strata, and Socket service device receives TCP Request message, carries out response, during response message is sent to client computer, through GW1 to this request Bottom, packet filtering module searches the link information of record in second step from log, if can find, Then source IP and the source port of this response message are replaced with record in table?The IP of server and port;
4) client computer receives this response message, it is believed that be that real server sends over, and responds TCP Article 3 message in three-way handshake, this message is the most also replaced through GW1 bottom packet capturing module Change purpose IP and destination interface, mail to the upper strata Socket service device of GW1, so far client computer with TCP connection establishment between GW1 is complete, and GW1 is upper can generate a Socket ID corresponding to this connection, As the connection identifier in TMSG head;
5), after between client computer and GW1, TCP Socket has set up, GW1 sends even to GW2 Connecing request, encapsulate TMSG head, type of message is set up for request and is connected, and connection identifier is filled out in the 4th step and remembered The Socket ID (GW1SID) of record, message content is the source IP source of the client computer of record in second step Mouthful, and the IP of server and port;
6) ask after GW2 receives, the source IP carried in recorded message, source port, purpose IP, purpose Port and Socket ID, then set up TCP to server and connect, and TCP three-way handshake is successfully established After, generate the Socket ID (GW2SID) of a local terminal, respond link setup success message to GW1, Encapsulation TMSG head, type of message is connection establishment success, and connection identifier extends this as GW2SID, message Content is empty;
7) GW1 receives the successful message of connection establishment, records GW2SID;
8) both sides set up successful connection.
Client computer-> server side to data transmission procedure include:
1) client computer sends data on server;
2) after GW1 receives, intercepted data message, take out the content needing transmission, encapsulate TMSG head, It is sent to GW2 up by RMAC agreement, client computer is carried out pseudo-response simultaneously;
3) after GW2 receives, take out data content, be sent to by the TCP link built up with server Server;
4) it is forwarded to application layer after server receives data, is further processed.
A kind of exemplary more specifically process step, including:
1) client sends data on server;
2), after GW1 receives this message, receive, by packet filtering module, the tcp data message that client sends After, to table look-up by source IP, source port, purpose IP, destination interface judges whether that connection request is remembered Record, does not exists, abandons.Exist, then GW1 is revised as in the purpose IP address of amendment tcp data message IP address, destination interface is revised as 10086, delivers to upper strata Socket service device, GW1 upper strata Socket Server carries out response to this data message, and to bottom packet filtering module, replacement source IP source port of tabling look-up send To client computer, it processes step and is similar to connection establishment process;
3) Socket service device in GW1 upper strata takes out TCP message data content, encapsulates TMSG hair Delivering on GW2, type of message is encapsulated as data and sends, and mark connection is encapsulated as setting up record when connecting GW2SID;
3), after GW2 receives this message, it is taken out data content, according to the GW2SID in TSMG head, Search corresponding TCP to connect, forward the data on server.
Server-> client-side to data transmission procedure include:
1) server sends data in client computer;
2) after GW2 receives, take out data content, encapsulate TMSG head, sent out by RMAC agreement Deliver on GW1, owing to server is that the TCP set up with GW2 is connected, so directly by GW2's Protocol stack is directly to server return response;
3) GW1 receives the RMAC message that GW2 sends, and takes out data, is converted into TCP message, Source IP and source port are changed into source IP and the source port of server simultaneously, is sent to client;
4) client receives data, is forwarded to application layer, is further processed.
A kind of exemplary more specifically process step, including:
1) server sends data to client computer;
2) GW2 receives the data that server sends over, and takes out data, and encapsulation TMSG hair is delivered to On GW1, type of message is that data send, and mark is connected as setting up the GW1SID of record when connecting;
3) after GW1 receives this message, take out GW1SID, search corresponding TCP and connect, by message Send to client computer;
4) bottom packet filtering module intercepts and captures this message, the table information of record during rear lookup connection establishment, Replacement source IP is server ip, and source port is Service-Port;
5), after client receives data, upper layer application is delivered to.
The process that client computer disconnects includes:
1) GW1 detects the communication disruption that the TCP between client computer is connected, and sends disconnected to GW2 Open connection request;
2) close after GW2 receives and be connected with the TCP between server, concurrently disinfect this connection of record Relevant information, sends to GW1 after completing and closes success message;
3) GW1 receives message, closes the TCP corresponding with between client and connects, and concurrently disinfects relevant letter Breath.
A kind of exemplary more specifically process step, including:
1) GW1 detects the communication disruption that the TCP with client computer is connected:
2) GW1 sends to GW2 and closes connection request, encapsulates TMSG head, and type of message is for connecting Closing, connection indications is GW2SID, and message content is empty;
3) after GW2 receives this request, take out GW2SID, close and be connected with the TCP between server, Sending to GW1 simultaneously and close success message, encapsulate TMSG head, type of message is connection closed success;
4) GW1 receives and receives the response, and closes and is connected with the TCP between client computer.
The process that server disconnects includes:
1) GW2 detects the communication disruption that the TCP between server is connected, and sends disconnected to GW1 Open connection request;
2), after GW1 receives request, close and be connected with the TCP between client computer, concurrently disinfect record This connection relevant information, sends to GW2 after completing and closes success message;
3) GW2 receives message, closes the connection between server, concurrently disinfects relevant information.
A kind of exemplary more specifically process step, including:
1) GW2 detects the communication disruption that the TCP between server is connected;
2) GW2 sends to GW1 and closes connection request, encapsulates TMSG head, and type of message is for connecting Closing, connection indications is GW1SID, and message content is empty;
3) after GW1 receives this request, take out GW1SID, close and be connected with the TCP between client computer, Sending to GW2 simultaneously and close success message, encapsulate TMSG head, type of message is connection closed success;
4) GW2 receives and receives the response, and disconnects and being connected with the TCP between server.
Process after satellite link disconnects includes:
1) GW1 bottom RMAC protocol detection disconnects to satellite link, closes between client computer all The TCP associated with this satellite link is connected;
2) GW2 bottom RMAC protocol detection disconnects to satellite link, closes between server all The TCP associated with this satellite link is connected.
One of ordinary skill in the art will appreciate that all or part of step in said method can pass through program Instructing related hardware to complete, described program can be stored in computer-readable recording medium, as read-only Memorizer, disk or CD etc..Alternatively, all or part of step of above-described embodiment can also use One or more integrated circuits realize, and correspondingly, each module/unit in above-described embodiment can use The form of hardware realizes, it would however also be possible to employ the form of software function module realizes.The present invention is not restricted to appoint The combination of the hardware and software of what particular form.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for this For the technical staff in field, the present invention can have various modifications and variations.All spirit in the present invention and Within principle, any modification, equivalent substitution and improvement etc. made, should be included in the protection of the present invention Within the scope of.

Claims (22)

1. the method realizing TCP transmission under satellite network environment, is applied to both-end and accelerates to act on behalf of PEP In the gateway that is connected with client computer, described method includes the process of following connection establishment:
Intercept client computer and be sent to the TCP connection request of server, therefrom extract the first link information and to Described client computer sends pseudo-response, sets up a TCP with described client computer and is connected;
With described first link information as data division and encapsulation transition message TMSG head, generation request is built The vertical message connected also is sent to the peer gateway being connected with described server by satellite link, described TMSG head carries for identifying the TCP connection identifier that a described TCP connects;
After receiving the successful response message of connection establishment that described peer gateway returns, record is wherein The 2nd TCP connection identifier that TMSG head carries also associates with a described TCP connection identifier, described 2nd TCP connection identifier is the mark of the TCP connection of described peer gateway and the foundation of described server.
2. the method for claim 1, it is characterised in that:
Described TMSG head includes type of message, connection identifier and message length field, and its length is less than The length of TCP header.
3. method as claimed in claim 1 or 2, it is characterised in that:
Described method also includes the process that data below is transmitted:
Intercept described client computer and connected the tcp data message being sent to described server by a TCP And carry out response, from described tcp data message, extract data division and encapsulate TMSG head, generating Data send message be sent to described peer gateway by described satellite link, described TMSG head carries The described 2nd TCP connection identifier associated with a described TCP connection identifier;And
Receive data from described satellite link and send message, as described in the connection identifier of wherein TMSG head is Oneth TCP connection identifier, then send from described data and extract data division message and encapsulate corresponding TCP header, the tcp data message of generation is sent to described client computer by a described TCP connection.
4. method as claimed in claim 1 or 2, it is characterised in that:
Described method also include following connect disconnect process:
The communication disruption that a described TCP connects detected;
Send request by described satellite link to described peer gateway and close the message connected, therein TMSG head carries described 2nd TCP connection identifier;
After receiving the successful response message of connection closed that described peer gateway returns, disconnect described first TCP connects.
5. method as claimed in claim 1 or 2, it is characterised in that:
The process of described connection establishment also includes: is connected by a described TCP and closes with described satellite link Connection;
Described method also includes the following process connecting and disconnecting: detect that described satellite link disconnects, will be with All TCP of described satellite link association connect disconnection.
6. one kind be applied to both-end accelerate act on behalf of the gateway being connected in PEP with client computer, it is characterised in that Including user side protocol entity and satellite side protocol entity, wherein:
Described user side protocol entity includes the packet filtering module of bottom and the Socket service device on upper strata;
Described packet filtering module includes:
Reversely retransmission unit, the connection sent when TCP is connected for intercepting client computer to set up with server is asked Ask message and ACK message, the purpose IP address in message and destination interface are replaced with described Socket Described Socket service device it is sent to behind the IP address of server and port;Wherein, described connection is intercepted During request message, also record including source IP address, source port, purpose IP address and destination interface The first link information and be sent to described Socket service device;
Forwards Forwarding unit, for being sent to the ACK report of described client computer by described Socket service device Source IP address and source port in literary composition replace with the purpose IP address in described first link information and purpose After port, it is sent to described client computer;
Described Socket service device includes: connection establishment module, for receiving the institute that packet filtering module sends After stating connection request message and the first link information, send ACK message to client computer;And receiving bag After the described ACK message that filtering module sends, set up and be connected with a TCP of described client computer and give birth to Become a TCP connection identifier, notify protocol entity the oneth TCP connection establishment success of described satellite side, Carry described first link information;
Described satellite side protocol entity includes: connection establishment module, is used for receiving described Socket service device A TCP connection establishment successfully notify after, and encapsulate with described first link information as data division Conversion message TMSG head, the request of generation is set up the message connected and is sent to opposite end net by satellite link Closing, described TMSG head carries a described TCP connection identifier;And be used for receiving described peer gateway By, after the successful response message of connection establishment that described satellite link returns, recording wherein TMSG head and take Band the 2nd TCP connection identifier and associate with a described TCP connection identifier, described 2nd TCP company Connect and be designated the mark that the TCP of described peer gateway and the foundation of described server connects.
7. gateway as claimed in claim 6, it is characterised in that:
The described TMSG head of the connection establishment module encapsulation of described satellite side protocol entity includes message class Type, connection identifier and message length field, its length is less than the length of TCP header.
Gateway the most as claimed in claims 6 or 7, it is characterised in that:
Reverse retransmission unit in described packet filtering module is additionally operable to intercept the tcp data message of process, as Link information therein is mated with described first link information, and the most described tcp data message is from first TCP connects, and is replaced with in the purpose IP address in described tcp data message and destination interface described The IP address of Socket service device and port, be sent to described Socket service device;
Described Socket service device also includes: message processing module (MPM), for receiving from a TCP even The described tcp data message that connects also sends TCP response message;
Forwards Forwarding unit in described packet filtering module is additionally operable to described Socket service device is sent to institute State the source IP address in the TCP response message of client computer and source port replaces with described first link information In purpose IP address and destination interface after, be sent to described client computer;
Described satellite side protocol entity also includes: packet sending and receiving module, for connecting from a TCP Described tcp data message data division before encapsulate TMSG head, the data of generation send message and lead to Crossing described satellite link and be sent to described peer gateway, described TMSG head carries and a described TCP The described 2nd TCP connection identifier of connection identifier association.
9. gateway as claimed in claim 8, it is characterised in that:
The packet sending and receiving module of described satellite side protocol entity is additionally operable to receive from described satellite link be sent to The data of described client computer send message;
Message processing module (MPM) in described Socket service device is additionally operable to identify that described satellite side protocol entity connects The data received send message, a TCP connection identifier as described in the connection identifier of wherein TMSG head is, Then send from described data and message extracts data division and encapsulates corresponding TCP header, the TCP of generation Data message is also sent to described client computer by a described TCP connection;
Forwards Forwarding unit in described packet filtering module is additionally operable to described Socket service device is sent to institute State the source IP address in the tcp data message of client computer and source port replaces with described first link information In purpose IP address and destination interface after, be sent to described client computer.
10. the gateway as described in claim 6 or 7 or 9, it is characterised in that:
Described Socket service device also includes: connects maintenance module, is used for a described TCP being detected When connecting communication disruption, notify described satellite side protocol entity the oneth TCP disconnecting;And receive described After the connection closed of satellite side protocol entity successfully notifies, disconnect a described TCP and connect;
Described satellite side protocol entity also includes: connects maintenance module, is used for receiving described Socket service After the notice of the oneth TCP disconnecting of device, being sent to described peer gateway by described satellite link please Asking and close the message connected, TMSG head therein carries described 2nd TCP connection identifier;And be used for After receiving the successful response message of connection closed that described peer gateway returns, notify described Socket The success of server connection closed.
11. gateway as claimed in claim 10, it is characterised in that:
The connection maintenance module of described satellite side protocol entity is additionally operable to detecting that described satellite link disconnects Time, send, to described Socket service device, the notice that described satellite link disconnects;
The connection maintenance module of described Socket service device is additionally operable to connect with described a described TCP Satellite link associates;After receiving the notice that described satellite link disconnects, by associate with described satellite link All TCP connect disconnection.
The method realizing TCP transmission under 12. 1 kinds of satellite network environment, is applied to both-end and accelerates agency The gateway being connected with server in PEP, described method includes the process of following connection establishment:
Receive the message of the connection establishment request that the peer gateway being connected with client computer sends through satellite link After, record a TCP connection identifier and data division that wherein conversion message TMSG head carries carry The first link information that the TCP that described client computer is set up with described peer gateway is connected, described first TCP connection identifier is used for identifying a described TCP and connects;
Set up the 2nd TCP with described server to be connected, after connection establishment completes, by described satellite link Returning the successful response message of connection establishment to described peer gateway, TMSG head therein carries for marking Know the 2nd TCP connection identifier that described 2nd TCP connects;By described 2nd TCP connection identifier and institute State a TCP connection identifier association.
13. method as claimed in claim 12, it is characterised in that:
Described TMSG head includes type of message, connection identifier and message length field, and its length is less than The length of TCP header.
14. methods as described in claim 11 or 12, it is characterised in that:
Described method also includes the process that data below is transmitted:
Receive described server and connected the TCP number being sent to described client computer by described 2nd TCP According to carrying out response after message, from described tcp data message, extract data division and encapsulate TMSG head, Generate data send message and be sent to described peer gateway, described TMSG head by described satellite link Carry the described TCP connection identifier associated with described 2nd TCP connection identifier;And
The data transmission message being sent to described server is received, as wherein from described satellite link The connection identifier that TMSG head carries is described 2nd TCP connection identifier, sends message from described data Extracting data division and encapsulate corresponding TCP header, the tcp data message of generation passes through described 2nd TCP Connect and be sent to described server.
15. methods as described in claim 11 or 12, it is characterised in that:
Described method also include following connect disconnect process:
The communication disruption that described 2nd TCP connects detected;
Send request by described satellite link to described peer gateway and close the message connected, therein TMSG head carries a described TCP connection identifier;
Receive the successful response message of connection closed that described peer gateway returns through described satellite link After, disconnect described 2nd TCP and connect.
16. methods as described in claim 11 or 12, it is characterised in that:
The process of described connection establishment also includes: connect relevant to described satellite link by described 2nd TCP Connection;
Described method also includes the following process connecting and disconnecting: after detecting that described satellite link disconnects, will All TCP of described satellite link association connect disconnection.
17. 1 kinds are applied to both-end and accelerate to act on behalf of the gateway being connected with server in PEP, and its feature exists In, including server side protocol entity and satellite side protocol entity, wherein:
Described satellite side protocol entity includes: connection establishment module, is connected with client computer for receiving After the message that the connection establishment that peer gateway sends through satellite link is asked, message wherein changed in record A TCP connection identifier that TMSG head carries and the first link information that data division carries, and notify Described server side protocol entity is set up and is connected with the 2nd TCP of server;Described first link information is The link information that the TCP that described peer gateway is set up with described client computer is connected, a described TCP Connection identifier is used for identifying a described TCP and connects;
Described server side protocol entity includes: connection establishment module, is used for receiving the described TCP that sets up and connects After the notice connect, set up described 2nd TCP with described server and be connected, generate and be used for identifying described second The 2nd TCP connection identifier that TCP connects, returns connection by described satellite link to described peer gateway The response message being successfully established, carries described 2nd TCP connection identifier, and notifies described satellite side agreement The success of entity the 2nd TCP connection establishment, carries described 2nd TCP connection identifier;
The connection establishment module of described satellite side protocol entity is additionally operable to receive described in the protocol entity of server side After 2nd TCP connection establishment successfully notifies, returned even to described peer gateway by described satellite link Connecing the response message being successfully established, TMSG head therein carries described 2nd TCP connection identifier;Will Described 2nd TCP connection identifier associates with a described TCP connection identifier.
18. gateway as claimed in claim 17, it is characterised in that:
Described server side protocol entity also includes: packet sending and receiving module, is used for receiving described server and leads to Cross described 2nd TCP connection be sent to the tcp data message of described client computer and carry out response;
Described satellite side protocol entity also includes: packet sending and receiving module, for from described server side agreement The described tcp data message that entity receives extracts data division and encapsulates TMSG head, the number of generation According to send message be sent to described peer gateway by described satellite link, TMSG head therein carry and A described TCP connection identifier of described 2nd TCP connection identifier association.
19. gateways as claimed in claim 18, it is characterised in that:
The packet sending and receiving module of described satellite side protocol entity is additionally operable to receive from described satellite link be sent to The data of described server send message;
The packet sending and receiving module of described server side protocol entity is additionally operable to identify described satellite side protocol entity The data received send message, the connection identifier carried such as TMSG head therein be as described in the 2nd TCP Connection identifier, then send from described data and extract data division message and encapsulate corresponding TCP header, raw The tcp data message become is sent to described server by described 2nd TCP connection.
20. gateways as described in claim 18 or 19, it is characterised in that:
The described TMSG head of the packet sending and receiving module encapsulation of described satellite side protocol entity includes message class Type, connection identifier and message length field, its length is less than the length of TCP header.
21. gateways as described in claim 17 or 18 or 19, it is characterised in that:
Described server side protocol entity also includes: connects maintenance module, is used for described 2nd TCP being detected During the communication disruption connected, notify described satellite side protocol entity the 2nd TCP disconnecting;And receive institute State after the connection closed of satellite side protocol entity successfully notifies, disconnect described 2nd TCP and connect;
Described satellite side protocol entity also includes: connect maintenance module, is used for receiving in the 2nd TCP connection After disconnected notice, send request by described satellite link to described peer gateway and close the message connected, TMSG head therein carries a described TCP connection identifier;And receive what described peer gateway returned After the successful response message of connection closed, notify the protocol entity connection closed success of described server side.
22. gateways as claimed in claim 21, it is characterised in that:
The connection maintenance module of described satellite side protocol entity is additionally operable to detecting that described satellite link disconnects Time, send, to described server side protocol entity, the notice that described satellite link disconnects;
The connection maintenance module of described server side protocol entity be additionally operable to by described 2nd TCP connect with Described satellite link associates;After receiving the notice that described satellite link disconnects, will be with described satellite link All TCP of association connect disconnection.
CN201510038936.8A 2015-01-26 2015-01-26 Method for realizing TCP transmission in satellite network environment and corresponding gateway Active CN105897665B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510038936.8A CN105897665B (en) 2015-01-26 2015-01-26 Method for realizing TCP transmission in satellite network environment and corresponding gateway
PCT/CN2015/089060 WO2016119464A1 (en) 2015-01-26 2015-09-07 Method and corresponding gateway for implementing tcp transmission in satellite network environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510038936.8A CN105897665B (en) 2015-01-26 2015-01-26 Method for realizing TCP transmission in satellite network environment and corresponding gateway

Publications (2)

Publication Number Publication Date
CN105897665A true CN105897665A (en) 2016-08-24
CN105897665B CN105897665B (en) 2020-01-14

Family

ID=56542328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510038936.8A Active CN105897665B (en) 2015-01-26 2015-01-26 Method for realizing TCP transmission in satellite network environment and corresponding gateway

Country Status (2)

Country Link
CN (1) CN105897665B (en)
WO (1) WO2016119464A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850576A (en) * 2016-12-30 2017-06-13 中国人民解放军理工大学 Virtualization link layer IP Message processings converting system and method with stream control function
CN108243196A (en) * 2018-01-22 2018-07-03 北京启明星辰信息安全技术有限公司 The method and system, intermediate equipment, medium of TCP protocol stack are introduced under Netfilter frameworks
CN109639340A (en) * 2018-12-11 2019-04-16 成都天奥信息科技有限公司 A kind of TCP accelerated method suitable for satellite link
CN110035112A (en) * 2019-01-15 2019-07-19 广东交通职业技术学院 A kind of Transmission Control Protocol both-end in wireless network environment acts on behalf of acceleration system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1151375A1 (en) * 1999-02-02 2001-11-07 Mentat, Inc. Internet over satellite
CN1476181A (en) * 2003-07-14 2004-02-18 中国科学院计算技术研究所 Distribution type satellite network TLP performance acceleration protocol mode and method
CN101854297A (en) * 2010-05-21 2010-10-06 南京邮电大学 Method for designing transmission control protocol (tcp) cross-layer in satellite network
CN102263687A (en) * 2011-08-11 2011-11-30 武汉思为同飞网络技术有限公司 VPN (virtual private network) speed-up gateway in WAN (wide area network) as well as speed-up communication and method thereof
CN102377473A (en) * 2010-08-23 2012-03-14 熊猫电子集团有限公司 Network control center of satellite mobile communication network
CN102694810A (en) * 2012-05-31 2012-09-26 航天恒星科技有限公司 TCP ground acceleration method for satellite network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2074769A2 (en) * 2006-10-06 2009-07-01 ViaSat, Inc. Dynamic feedback for outbound link rate adjustment in multi-rate downstream
US8140687B2 (en) * 2008-11-13 2012-03-20 Hughes Network Systems, Llc Performance enhancing proxy handover

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1151375A1 (en) * 1999-02-02 2001-11-07 Mentat, Inc. Internet over satellite
CN1476181A (en) * 2003-07-14 2004-02-18 中国科学院计算技术研究所 Distribution type satellite network TLP performance acceleration protocol mode and method
CN101854297A (en) * 2010-05-21 2010-10-06 南京邮电大学 Method for designing transmission control protocol (tcp) cross-layer in satellite network
CN102377473A (en) * 2010-08-23 2012-03-14 熊猫电子集团有限公司 Network control center of satellite mobile communication network
CN102263687A (en) * 2011-08-11 2011-11-30 武汉思为同飞网络技术有限公司 VPN (virtual private network) speed-up gateway in WAN (wide area network) as well as speed-up communication and method thereof
CN102694810A (en) * 2012-05-31 2012-09-26 航天恒星科技有限公司 TCP ground acceleration method for satellite network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
何辞,张亚生,彭华: "《一种适用于卫星网络的HTTP加速技术》", 《通信系统与网络技术》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850576A (en) * 2016-12-30 2017-06-13 中国人民解放军理工大学 Virtualization link layer IP Message processings converting system and method with stream control function
CN108243196A (en) * 2018-01-22 2018-07-03 北京启明星辰信息安全技术有限公司 The method and system, intermediate equipment, medium of TCP protocol stack are introduced under Netfilter frameworks
CN108243196B (en) * 2018-01-22 2020-09-25 北京启明星辰信息安全技术有限公司 Method and system for introducing TCP protocol stack under Netfilter architecture, intermediate device and medium
CN109639340A (en) * 2018-12-11 2019-04-16 成都天奥信息科技有限公司 A kind of TCP accelerated method suitable for satellite link
CN109639340B (en) * 2018-12-11 2021-05-28 成都天奥信息科技有限公司 TCP acceleration method suitable for satellite link
CN110035112A (en) * 2019-01-15 2019-07-19 广东交通职业技术学院 A kind of Transmission Control Protocol both-end in wireless network environment acts on behalf of acceleration system and method

Also Published As

Publication number Publication date
WO2016119464A1 (en) 2016-08-04
CN105897665B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
US11671868B2 (en) Methods and apparatus for optimizing tunneled traffic
CN102484656B (en) Method and apparatus for relaying packets
KR101263783B1 (en) System and method for data transmission using relay server
US7173928B2 (en) System and method for establishing channels for a real time streaming media communication system
KR20170026541A (en) Methods and apparatus for optimizing tunneled traffic
CN108111509B (en) Data transmission method
CN102932461B (en) Network acceleration transmission method and device
CN102970227A (en) Method and device for achieving virtual extensible local area network (VXLAN) message transmitting in application specific integrated circuit (ASIC)
US8724630B2 (en) Method and system for implementing network intercommunication
CN105897665A (en) Method for realizing TCP transmission in satellite network environment and corresponding gateway
CN106899500B (en) Message processing method and device for cross-virtual extensible local area network
US8179795B2 (en) Communication terminal apparatus, distribution apparatus, error notification method, and error notification program
CN103379182A (en) Data transmission method and client sides
CN111355695A (en) Security agent method and device
CN107154917A (en) Data transmission method and server
CN104184646A (en) VPN data interaction method and system and VPN data interaction device
CN106059883A (en) Message transmission method and device
WO2024022022A1 (en) Multi-network card fusion communication method and communication system
CN103458060B (en) The transmission method and device of hostid under a kind of multistage network address conversion
CN105553986B (en) A kind of limited real time node communication means of multihoming based on UDP
WO2019041332A1 (en) Method and system for optimizing transmission of acceleration network
CN102984167B (en) Traversal method for universal firewall based on Socks5 protocol
CN110351308B (en) Virtual private network communication method and virtual private network device
CN107948165B (en) Secure broadcast system and method based on private protocol
JP2002026927A (en) Capsulating method and unit, and program recording medium

Legal Events

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