CN105812416B - The method and system of file is transmitted between heterogeneous networks - Google Patents

The method and system of file is transmitted between heterogeneous networks Download PDF

Info

Publication number
CN105812416B
CN105812416B CN201410843292.5A CN201410843292A CN105812416B CN 105812416 B CN105812416 B CN 105812416B CN 201410843292 A CN201410843292 A CN 201410843292A CN 105812416 B CN105812416 B CN 105812416B
Authority
CN
China
Prior art keywords
terminal
file
sent
data
heterogeneous networks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410843292.5A
Other languages
Chinese (zh)
Other versions
CN105812416A (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China Co Ltd
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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201410843292.5A priority Critical patent/CN105812416B/en
Publication of CN105812416A publication Critical patent/CN105812416A/en
Application granted granted Critical
Publication of CN105812416B publication Critical patent/CN105812416B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The method of file is transmitted between a kind of heterogeneous networks, which comprises monitor the connection request of first terminal in heterogeneous networks in real time by presetting port;The verification information that the first terminal is sent is obtained according to the connection request;The TCP long connection with the first terminal is established after being verified;By the TCP long connection, the set of interfaces enabled in advance is called to receive the file that the first terminal is sent.File can safely and effectively be transmitted between heterogeneous networks using this method.Further, it would be desirable to provide the systems that file is transmitted between a kind of heterogeneous networks.

Description

The method and system of file is transmitted between heterogeneous networks
Technical field
The present invention relates to computer network fields, more particularly to a kind of method for transmitting file between heterogeneous networks and are System.
Background technique
With the development of network technology, network security is got the attention.In the local area network of enterprises, usually Do not allow to surf the Internet.It is more troublesome if necessary to inside the content transmission to local area network downloaded on internet, operate, for office For the application system to be constantly updated of domain net domestic demand, even more need to obtain upgrade patch by way of safety.It is how safe The data transmission effectively realized in heterogeneous networks has become a problem to be solved.
Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, providing one kind can safely and effectively transmit between heterogeneous networks The method and system of file is transmitted between the heterogeneous networks of file.
The method of file is transmitted between a kind of heterogeneous networks, which comprises
Monitor the connection request of first terminal in heterogeneous networks in real time by presetting port;
The verification information that the first terminal is sent is obtained according to the connection request;
The TCP long connection with the first terminal is established after being verified;
By the TCP long connection, the set of interfaces enabled in advance is called to receive the file that the first terminal is sent.
The verification information includes first terminal mark, port information and the sets of interfaces in one of the embodiments, The keyword of conjunction.
The step of TCP long connection with the first terminal is established after being verified described in one of the embodiments, Later, further includes:
The prompt information that can not connect internet is sent to first terminal by the TCP long connection, so that first is whole The file is simultaneously packaged, the default association by file required for end is downloaded according to the prompt information according to preset protocol View includes password position.
It is described using the set of interfaces enabled in advance in one of the embodiments, institute is received by the TCP long connection After the step of stating the file of first terminal transmission, further includes:
The file received is parsed according to the preset protocol;
Data-bag lost is judged whether there is according to the data being resolved to;
If so, issuing packet loss prompt to first terminal.
In one of the embodiments, after described the step of issuing packet loss prompt to first terminal, further includes:
The data packet that first terminal is sent according to packet loss prompt is received again;
The data packet received again is subjected to parsing and forms complete file with the data parsed.
A kind of system that file is transmitted between heterogeneous networks, the system comprises:
Module is monitored, for monitoring the connection request of first terminal in heterogeneous networks in real time by presetting port;
Module is obtained, for obtaining the verification information for receiving the first terminal and sending according to the connection;
Link block, for establishing the TCP long connection with the first terminal after being verified;
Receiving module, for calling the set of interfaces enabled in advance to receive the first terminal by the TCP long connection The file of transmission.
The verification information includes first terminal mark, the port information and described connects in one of the embodiments, The keyword of mouth set.
In one of the embodiments, the system also includes:
Cue module, for the prompt information that can not connect internet to be sent to first terminal by the TCP long connection, So that first terminal downloads required file according to the prompt information and is beaten the file according to preset protocol Packet, the preset protocol includes password position.
In one of the embodiments, the system also includes:
Parsing module, for being parsed according to the preset protocol to the file received;
Judgment module, for judging whether there is data-bag lost according to the data being resolved to;
It is lost if the cue module is also used to data packet, issues packet loss prompt to first terminal.
The receiving module is also used to receive first terminal again and is prompted according to the packet loss in one of the embodiments, The data packet of transmission;The parsing module be also used to carry out the data packet received again parsing and with the data group that has parsed At complete file.
The method and system that file is transmitted between above-mentioned heterogeneous networks is monitored first in heterogeneous networks in real time by default port The connection request of terminal;The verification information that first terminal is sent is received according to connection request;It is established after being verified with first eventually The TCP long connection at end;By TCP long connection, the set of interfaces enabled in advance is called to receive the file that first terminal is sent.Pass through The connection request of default port snoop first terminal into heterogeneous networks is just established TCP long after first terminal is by verifying and is connected It connects, thus, it is possible to call the interface enabled in advance to combine the file for receiving first terminal and sending, to realize in heterogeneous networks Between safely and effectively transmit file.
Detailed description of the invention
Fig. 1 is the hardware environment figure for transmitting file in one embodiment between heterogeneous networks;
Fig. 2 is the flow chart for transmitting document method in one embodiment between heterogeneous networks;
Fig. 3 is the structural schematic diagram for transmitting file system in one embodiment between heterogeneous networks;
Fig. 4 is the structural schematic diagram for transmitting file system in another embodiment between heterogeneous networks;
Fig. 5 is the structural schematic diagram for transmitting file system in further embodiment between heterogeneous networks.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the present invention, not For limiting the present invention.
Method provided by the invention is applied in hardware environment as shown in Figure 1.First terminal 102 and second terminal 104 It is communicated by TCP (Transmission Control Protocol, transmission control protocol) long connection 108, first terminal 102 are communicated by internet 110 with Cloud Server 106.Wherein, first terminal 102 includes but is not limited to desktop computer, pen Remember this computer, tablet computer and personal digital assistant etc..Second terminal 104 includes but is not limited to server, desktop computer and pen Remember this computer etc..Second terminal 104 has opened default port, and is asked by the connection that first terminal 102 is monitored in the port in real time It asks, verification information is carried in connection request.After listening to connection request, second terminal 104 obtains first terminal 102 and sends out The verification information sent includes that first terminal mark, the information of open port and second terminal 104 pre-actuate in verification information The keyword of set of interfaces, after being verified, second terminal 104 and first terminal 102 establish TCP long connection.Establish connection it Afterwards, second terminal 104 issues the prompt information that can not connect internet to first terminal 102, and first terminal 102 is according to the prompt Information passes through HTTP (HTTP-Hypertext transfer protocol, hypertext transfer protocol) protocol access Cloud Server 106, file required for second terminal 104 is downloaded, and this document is packaged into multiple data packets according to preset protocol, and according to The password position of preset protocol encrypts each data packet, and second terminal 104 is sent in the form of data flow.Second terminal 104 The data packet for receiving first terminal 102 and sending is combined using the interface enabled in advance, and according to preset protocol to the number received Parsing, which is carried out, according to packet forms complete file.It is thus achieved that safely and effectively transmitting file between heterogeneous networks.
In one embodiment, as shown in Fig. 2, a kind of method for transmitting file between providing heterogeneous networks, this method are answered For second terminal, specifically include:
Step 202, the connection request of first terminal in heterogeneous networks is monitored in real time by presetting port.
The open default port of second terminal is different from the common network port of TCP, which is alternatively referred to as safety Port.After opening, which is hidden, and presets the information of the port in first terminal.
Step 204, the verification information that first terminal is sent is obtained according to connection request.
Other than the information in the default setting secure port of first terminal, also need to receive second terminal used in file The information of set of interfaces be pre-configured in first terminal.Corresponding verification information is carried in the connection request of first terminal. Verification information includes the keyword of first terminal mark, port information and set of interfaces.Terminal iidentification can be IP (Internet Protocol, the agreement interconnected between network) address or MAC (Media Access Control, physical address) address.Port Information can be port numbers, and the keyword of set of interfaces can be the title of set of interfaces, agreement of set of interfaces application etc..It tests The format of card information may is that MAC Address: (colon) port/(slash) set of interfaces title.
Step 206, the TCP long connection with first terminal is established after being verified.
After the verification information of first terminal is verified by second terminal, established between second terminal and first terminal TCP long connection.First terminal will not actively close the connection, ensure that second terminal can receive completely by the connection File data.
Step 208, by TCP long connection, the set of interfaces enabled in advance is called to receive the file that first terminal is sent.
The set of interfaces enabled in advance uses Transmission Control Protocol.First terminal transmission is received by calling the set of interfaces File.File refers to including described in the combination of code, text, symbol, picture or code, text, symbol and picture The combination of content.In a preferred embodiment, file can be patch etc..
In the present embodiment, the connection request of first terminal in heterogeneous networks is monitored in real time by presetting port;According to connection Request receives the verification information that first terminal is sent;The TCP long connection with first terminal is established after being verified;By TCP long Connection calls the set of interfaces enabled in advance to receive the file that first terminal is sent.Pass through default port snoop to heterogeneous networks The connection request of middle first terminal just establishes TCP long connection after first terminal is by verifying, and thus, it is possible to call preparatory enabling Interface combine receive first terminal send file, file is safely and effectively transmitted between heterogeneous networks to realize.
In one embodiment, after the step of TCP long connection with terminal is established after being verified, further includes: pass through TCP long connection sends the prompt information that can not connect internet to first terminal, so that first terminal is according under prompt information File is simultaneously packaged by file required for carrying according to preset protocol, and preset protocol includes password position.
In the present embodiment, first terminal has accessed internet, receive second terminal sending can not connect internet Prompt information after, first terminal can download corresponding file in Cloud Server.First terminal is taken by http protocol and cloud Business device communication, Cloud Server provide listed files interface and file interface.First terminal accesses Cloud Server, passes through listed files Interface obtains listed files, and the file for needing to download in select file list, this article can be downloaded by clicking corresponding download button Part.The file of downloading is packaged into multiple data packets by preset protocol, by TCP long connection, is sent in the form of data flow To second terminal.Preset protocol includes packet header and backpack body, wherein includes password position in backpack body.It is each data packet by password position It is encrypted, which thereby enhances the safety of file.
In one embodiment, using the set of interfaces enabled in advance, receive what first terminal was sent by TCP long connection After the step of file, further includes: parsed according to preset protocol to the file received;According to the data judgement being resolved to Whether data-bag lost is had;If so, issuing packet loss prompt to first terminal.
In the present embodiment, second terminal has been pre-configured with preset protocol.First terminal is received in second terminal with data After multiple data packets that the form of stream is sent, data packet is parsed according to the preset protocol.If it find that there is data packet It loses, packet loss prompt can be issued just for the data packet of loss.Packet loss is issued to first terminal in one of the embodiments, to mention After the step of showing, further includes: receive the data packet that first terminal is sent according to packet loss prompt again;The number that will be received again Parsing is carried out according to packet and forms complete file with the data parsed.In the present embodiment, first terminal can be prompted according to packet loss Only send the data packet lost in last time transmission.Due to that can be sent again just for the data packet of loss, without weight Entire file is newly sent, efficiency of transmission is thus effectively increased.
In one embodiment, as shown in figure 3, the system for transmitting file between providing a kind of heterogeneous networks, the system packet It includes: monitoring module 302, obtains module 304, link block 306 and receiving module 308, in which:
Module 302 is monitored, for monitoring the connection request of first terminal in heterogeneous networks in real time by presetting port.
Module 304 is obtained, for obtaining the verification information for receiving first terminal and sending according to connection.In one embodiment In, verification information includes the keyword of first terminal mark, port information and set of interfaces.
Link block 306, for establishing the TCP long connection with first terminal after being verified.
Receiving module 308 is sent for by TCP long connection, calling the set of interfaces enabled in advance to receive first terminal File.
In the present embodiment, by presetting the connection request of port snoop first terminal into heterogeneous networks, in first terminal By just establishing TCP long connection after verifying, thus, it is possible to call the interface enabled in advance to combine the text for receiving first terminal and sending Part safely and effectively transmits file to realize between heterogeneous networks.
In one embodiment, as shown in figure 4, the system further include: cue module 310, for by TCP long connection to First terminal sends the prompt information that can not connect internet, so that first terminal is literary required for being downloaded according to prompt information File is simultaneously packaged by part according to preset protocol, and preset protocol includes password position.
In the present embodiment, the file of downloading is packaged by multiple data packets by preset protocol, by TCP long connection, with The form of data flow is sent to second terminal.Preset protocol includes password position.It is that each data packet is encrypted by password position, Which thereby enhance the safety of file.
In one embodiment, as shown in figure 5, the system further include: parsing module 312 and judgment module 314, in which:
Parsing module 312, for being parsed according to preset protocol to the file received.
Judgment module 314, for judging whether there is data-bag lost according to the data being resolved to.
It is lost if cue module 310 is also used to data packet, issues packet loss prompt to first terminal.
In one embodiment, receiving module 308 is also used to receive the number that first terminal is sent according to packet loss prompt again According to packet;Parsing module 312 is also used to carry out the data packet received parsing again and forms with the data parsed complete File.
It is entire without retransmitting due to that can be sent again just for the data packet of loss in the present embodiment Thus file effectively increases efficiency of transmission.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (8)

1. a kind of method for transmitting file between heterogeneous networks, the method is applied to second terminal, which comprises
Monitor the connection request of first terminal in heterogeneous networks in real time by the open default port of the second terminal, described the One terminal presets the information of the default port, and the first terminal is communicated by internet with Cloud Server;
The verification information that the first terminal is sent is obtained according to the connection request;
The TCP long connection with the first terminal is established after being verified;
The prompt information that can not connect internet is sent to first terminal by the TCP long connection, so that first terminal root The file is simultaneously packaged, the preset protocol packet by file required for downloading according to the prompt information according to preset protocol Include password position;
By the TCP long connection, the set of interfaces enabled in advance is called to receive the file that the first terminal is sent.
2. the method according to claim 1, wherein the verification information includes first terminal mark, port letter The keyword of breath and the set of interfaces.
3. the method according to claim 1, wherein described by the TCP long connection, call and enable in advance Set of interfaces received after the step of file that the first terminal is sent, further includes:
The file received is parsed according to the preset protocol;
Data-bag lost is judged whether there is according to the data being resolved to;
If so, issuing packet loss prompt to first terminal.
4. according to the method described in claim 3, it is characterized in that, it is described to first terminal issue packet loss prompt the step of it Afterwards, further includes:
The data packet that first terminal is sent according to packet loss prompt is received again;
The data packet received again is subjected to parsing and forms complete file with the data parsed.
5. transmitting the system of file between a kind of heterogeneous networks, which is characterized in that the system comprises:
Module is monitored, the connection for monitoring first terminal in heterogeneous networks in real time by the open default port of second terminal is asked Ask, the first terminal presets the information of the default port, the first terminal by internet and Cloud Server into Row communication;
Module is obtained, for obtaining the verification information for receiving the first terminal and sending according to the connection;
Link block, for establishing the TCP long connection with the first terminal after being verified;
Cue module, for the prompt information that can not connect internet to be sent to first terminal by the TCP long connection, so that It obtains file required for first terminal is downloaded according to the prompt information and is packaged the file according to preset protocol, institute Stating preset protocol includes password position;
Receiving module is sent for by the TCP long connection, calling the set of interfaces enabled in advance to receive the first terminal File.
6. system according to claim 5, which is characterized in that the verification information includes first terminal mark, the end The keyword of message breath and the set of interfaces.
7. system according to claim 5, which is characterized in that the system also includes:
Parsing module, for being parsed according to the preset protocol to the file received;
Judgment module, for judging whether there is data-bag lost according to the data being resolved to;
It is lost if the cue module is also used to data packet, issues packet loss prompt to first terminal.
8. system according to claim 7, which is characterized in that the receiving module is also used to receive first terminal root again The data packet sent according to packet loss prompt;The parsing module be also used to carry out the data packet received again parsing and with The data parsed form complete file.
CN201410843292.5A 2014-12-29 2014-12-29 The method and system of file is transmitted between heterogeneous networks Active CN105812416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410843292.5A CN105812416B (en) 2014-12-29 2014-12-29 The method and system of file is transmitted between heterogeneous networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410843292.5A CN105812416B (en) 2014-12-29 2014-12-29 The method and system of file is transmitted between heterogeneous networks

Publications (2)

Publication Number Publication Date
CN105812416A CN105812416A (en) 2016-07-27
CN105812416B true CN105812416B (en) 2019-11-05

Family

ID=56420994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410843292.5A Active CN105812416B (en) 2014-12-29 2014-12-29 The method and system of file is transmitted between heterogeneous networks

Country Status (1)

Country Link
CN (1) CN105812416B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181894B (en) * 2018-11-09 2023-06-06 北京天德科技有限公司 Network communication method for enabling block chain nodes to efficiently communicate and safely

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179536A (en) * 2006-12-22 2008-05-14 腾讯科技(深圳)有限公司 Method and system for implementing instant communication between external network user and LAN user
CN103310669A (en) * 2013-06-09 2013-09-18 深圳市拓莱思科技有限公司 Data transmission method and data transmission system both used for interactive teaching
CN103997495A (en) * 2014-05-23 2014-08-20 中国人民解放军理工大学 Security isolation file transmission control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179536A (en) * 2006-12-22 2008-05-14 腾讯科技(深圳)有限公司 Method and system for implementing instant communication between external network user and LAN user
CN103310669A (en) * 2013-06-09 2013-09-18 深圳市拓莱思科技有限公司 Data transmission method and data transmission system both used for interactive teaching
CN103997495A (en) * 2014-05-23 2014-08-20 中国人民解放军理工大学 Security isolation file transmission control method

Also Published As

Publication number Publication date
CN105812416A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
US10491575B2 (en) Secure dynamic communication network and protocol
US6826627B2 (en) Data transformation architecture
CN103108037B (en) A kind of communication means, Web server and Web communication system
US10812421B2 (en) Conveying instant messages via HTTP
US20080133915A1 (en) Communication apparatus and communication method
CN105612723A (en) Method and device for distributing traffic by using plurality of network interfaces in wireless communication system
CN106789993A (en) TCP agent method and device
CN105812416B (en) The method and system of file is transmitted between heterogeneous networks
CN105553986B (en) A kind of limited real time node communication means of multihoming based on UDP
CN107395582A (en) Portal authentication devices and system
WO2016131358A1 (en) Home gateway, communication management method and communication system thereof
CN100428748C (en) Dual-status-based multi-party communication method
WO2016109404A1 (en) System and method of authenticating a live video stream
CN110213346A (en) The transmission method and device of encryption information
CN101217532B (en) An anti-network attack data transmission method and system
CN101162995B (en) Communication system and communication method of chaos safety information internet transmission
US11968188B2 (en) Secure email transmission via treasury portal
CN111770099B (en) Data transmission method and device, electronic equipment and computer readable medium
Bocovich Recipes for Resistance: A Censorship circumvention cookbook
CN117896397A (en) Cross-domain secure connection transmission method
CN117544704A (en) Smart electric meter communication method based on DLMS/COSEM and LwM2M protocol

Legal Events

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