CN102420858A - FTP (File Transfer Protocol) mode configuration method, data transmission method and device - Google Patents

FTP (File Transfer Protocol) mode configuration method, data transmission method and device Download PDF

Info

Publication number
CN102420858A
CN102420858A CN2011103731772A CN201110373177A CN102420858A CN 102420858 A CN102420858 A CN 102420858A CN 2011103731772 A CN2011103731772 A CN 2011103731772A CN 201110373177 A CN201110373177 A CN 201110373177A CN 102420858 A CN102420858 A CN 102420858A
Authority
CN
China
Prior art keywords
ftp
address
server
client
pattern
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
CN2011103731772A
Other languages
Chinese (zh)
Other versions
CN102420858B (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201110373177.2A priority Critical patent/CN102420858B/en
Publication of CN102420858A publication Critical patent/CN102420858A/en
Application granted granted Critical
Publication of CN102420858B publication Critical patent/CN102420858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an FTP (File Transfer Protocol) mode configuration method, a data transmission method and device. The FTP mode configuration method comprises the steps: after receiving a registering request message of an FTP client end, an FTP server determines a networking structure of the FTP server and the FTP client end according to address information carried in the registering request message; the FTP server configures an FTP mode for the FTP client end according to the determined networking structure, wherein if the FTP server is positioned in a public network, the FTP client end is positioned in a private network, a PASV (passive mode) is configured for the FTP client end, if the FTP server is positioned in the private network, the FTP client end is positioned in the public network, a PORT mode is configured for the FTP client end; and the FTP server returns a registering response message to the FTP client end, wherein the registering response message carries indication information of the FTP mode configured for the FTP client end so as to indicate that the FTP client configures the corresponding FTP mode. By adopting the invention, dependence of FTP-based data transmission to an NAT (Network Address Translation) device can be reduced.

Description

A kind of FTP mode configuration method, data transmission method and equipment
Technical field
The present invention relates to the data transmission technology in the communication technical field, relate in particular to a kind of FTP mode configuration method, data transmission method and equipment.
Background technology
Be widely used along with what monitoring was used, monitoring networking scale is increasing, and front end EC (Encoder, encoder), DC (Decoder, decoder) number reach thousands of.For the equipment of these a large amount of dispersions, manually the upgrade job amount is very big, so the automatic batch upgrading becomes trend.
The automatic batch upgrading is meant that the version that the user will upgrade uploads to VM (Video Management; Video management server) on; Software version and the software version on the VM that the client that front end EC, DC etc. have disposed the auto-update function is judged self are not simultaneously; Use FTP (File Transfer Protocol, FTP) mode to carry out download and upgrade from the VM server.
FTP has two kinds of different working modes: PORT (aggressive mode) and PASV (Passive Mode).
Under the PORT pattern, the ftp file transmission course mainly comprises: client tells the FTP service end to use the PORT pattern through the PORT order, provides the designated port that client is used for connecting simultaneously; The FTP service end selects a dynamic port to initiate to connect, and connects the designated port of client, carries out transfer of data.Under this pattern; If client at private network, VM server at public network; The communication process of then above-mentioned client and VM server needs NAT (network address translation) equipment to launch FTP ALG (Application Layer Gateway, ALG) function, this be because:
In the actual application of NAT; NAT device only carries out the identification and the conversion of IP address to the heading of network layer message; Address information for message load in the application layer protocol negotiations process is carried then can't be discerned and changed; Therefore in the networking that has NAT device to handle, NAT device utilizes the ALG technology can carry out the parsing and the address transition of the message information of application layer, guarantees the correctness of communicating by letter on the application layer.In the for example above-mentioned flow process, the client of private network side will be visited the VM server of public network, has disposed the mapping of private net address 192.168.0.10 to public network address 50.10.10.10 on the NAT device; Realize the NAT conversion of address; In this networking, if NAT device is not supported the processing of ALG to message load, after the PORT message that the private network client is sent arrives server end; The VM server can't be discerned the private net address in this message load, also just can't set up proper data and connect.
Under the PASV pattern, the ftp file transmission course mainly comprises: client tells the VM service end to use the PASV pattern through the PASV order; The VM service end is returned a dynamic port, and client is initiated to connect, and connects this dynamic port of VM service end, realizes file transfer.If the VM server in private network, client at public network; The communication process of then above-mentioned client and VM server needs NAT device to launch the FTPALG function; Thereby is public network IP address through NAT device with the private network IP address transition that payload segment in the PASV message of the VM server transmission of private network side carries, and is connected so that client can be set up FTP with this VM server.
General acquiescence is used a kind of FTP pattern on the client, still along with the extensive use of supervisory control system, different NAT networkings can occur.If NAT device is not supported FTP ALG, the acquiescence FTP pattern of client can't guarantee to be applicable to all NAT networkings, promptly can't guarantee through acquiescence FTP pattern from the ftp server file in download.
This shows that there is dependence in existing transfer of data based on FTP to NAT device,, then possibly cause client to realize the file download through acquiescence FTP pattern if NAT device is not supported FTP ALG.
Summary of the invention
The invention provides a kind of FTP mode configuration method, data transmission method and equipment, in order to reduce based on the dependence of the transfer of data of FTP to NAT device.
FTP mode configuration method provided by the invention is applied to include the network system of ftp server and ftp client, and this method comprises:
After ftp server receives the register requirement message of ftp client, confirm the networking structure of this ftp server and this ftp client according to the address information of carrying in this register requirement message;
Said ftp server is said ftp client configuration FTP pattern according to the networking structure of determining; Wherein, If said ftp server is positioned at public network, said ftp client is positioned at private network; Then being said ftp client configuration PASV pattern, if said ftp server is positioned at private network, said ftp client is positioned at public network, then is said ftp client configuration PORT pattern;
Said ftp server returns response message to said ftp client, wherein carries the indication information of the FTP pattern of promising this ftp client configuration, disposes corresponding FTP pattern to indicate said ftp client.
Ftp server provided by the invention comprises:
Receiver module is used to receive the register requirement message of ftp client;
Determination module is used for confirming according to the address information that said register requirement message carries the networking structure of this ftp server and this ftp client;
Distribution module is used for according to the networking structure of determining, and is said ftp client configuration FTP pattern; Wherein, If said ftp server is positioned at public network, said ftp client is positioned at private network; Then being said ftp client configuration PASV pattern, if said ftp server is positioned at private network, said ftp client is positioned at public network, then is said ftp client configuration PORT pattern;
Sending module is used for returning response message to said ftp client, wherein carries the indication information of the FTP pattern of promising this ftp client configuration, disposes corresponding FTP pattern to indicate said ftp client.
The data transmission method of the FTP that realizes based on said method provided by the invention comprises:
Ftp client sends register requirement to ftp server, wherein carries address information;
Said ftp client receives the response that carries FTP pattern indication information that said ftp server returns, and disposes corresponding FTP pattern according to this FTP pattern indication information;
When said ftp client need be from said ftp server file in download, the FTP pattern according to configuration on it adopted corresponding FTP pattern from said ftp server file in download.
Ftp client equipment provided by the invention comprises:
Sending module is used for sending register requirement to ftp server, wherein carries address information;
Receiver module is used to receive the response that carries FTP pattern indication information that said ftp server returns; Wherein, Said ftp server is said ftp client configuration FTP pattern, wherein according to the networking structure of determining; If said ftp server is positioned at public network, said ftp client is positioned at private network; Then being said ftp client configuration PASV pattern, if said ftp server is positioned at private network, said ftp client is positioned at public network, then is said ftp client configuration PORT pattern;
Configuration module is used for disposing corresponding FTP pattern according to said FTP pattern indication information;
The FTP module is used for when needs during from said ftp server file in download, and the FTP pattern according to configuration on it adopts corresponding FTP pattern from said ftp server file in download.
Compared with prior art, useful technique effect of the present invention comprises:
Confirm that according to the register requirement message of ftp client own networking structure with this client distributes corresponding FTP pattern for this client through ftp server: when ftp server is positioned at public network, ftp client is positioned at private network; Then be ftp client configuration PASV pattern; When ftp server is positioned at private network, ftp client is positioned at public network; Then, support the NATALG function, promptly do not support under the situation of NATALG function at NAT device thereby need not NAT device for ftp client configuration PORT pattern; Can realize that client carries out FTP from server and download, reduce based on the dependence of the transfer of data of FTP to NAT device.
Description of drawings
FTP pattern configurations that Fig. 1 provides for the embodiment of the invention and the schematic flow sheet that carries out transfer of data based on the FTP pattern of configuration;
FTP pattern configurations schematic flow sheet under the video monitoring system that Fig. 2 provides for the embodiment of the invention;
The structural representation of the ftp server that Fig. 3 provides for the embodiment of the invention;
The structural representation of the ftp client equipment that Fig. 4 provides for the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing the embodiment of the invention is described in detail.
Referring to Fig. 1, the FTP pattern configurations that provides for the embodiment of the invention and carry out the schematic flow sheet of transfer of data based on the FTP pattern of configuration, as shown in the figure, this flow process can comprise:
When step 101, ftp client are registered to ftp server, after ftp server receives the register requirement of ftp client, confirm the networking structure of this ftp server and this ftp client according to the source address of carrying in this register requirement and destination address.
Wherein, the networking structure of ftp server and ftp client can comprise following several kinds of situation:
Situation 1:FTP server is positioned at public network, and ftp client is positioned at private network;
Situation 2:FTP server is positioned at private network, and ftp client is positioned at public network;
Situation 3:FTP server is positioned at private network, and ftp client is positioned at private network;
Situation 4:FTP server is positioned at private network, and ftp client is positioned at private network.
Step 102, ftp server are this ftp client configuration FTP pattern according to networking structure own and this ftp client.
Concrete; If ftp server is positioned at public network, ftp client is positioned at private network; Then ftp server is a ftp client configuration PASV pattern, if ftp server is positioned at private network, ftp client is positioned at public network, then ftp server is a ftp client configuration PORT pattern; Like this, NAT device need not to support or need not to start the FTPALG function.If ftp server and ftp client all are positioned at private network or all are positioned at public network, then to the FTP pattern no requirement (NR) that ftp client adopted, promptly ftp server both can be the also configurable PASV pattern of ftp client configuration PORT pattern.
Step 103, ftp server will be notified to ftp client for the FTP pattern of ftp client configuration, return to ftp client as can the indication information of the FTP pattern that disposes for ftp client being carried on registration reply message.
Step 104, ftp client is according to the FTP pattern of this this equipment of notice configuration.
Concrete, if ftp client disposed acquiescence FTP pattern before receiving this notice, then notify indicated FTP pattern according to this, upgrade the acquiescence FTP pattern of being somebody's turn to do; If ftp client did not dispose acquiescence FTP pattern before receiving this notice, then notify indicated FTP pattern configurations to be acquiescence FTP pattern this.
Step 105 when ftp client need be from the ftp server file in download, according to the FTP pattern of configuration on it, adopts corresponding manner from the ftp server file in download.
The above embodiment of the present invention; Can be according to the networking situation of ftp server and ftp client; Self adaptation is that ftp client distributes the FTP pattern, thereby does not support under the situation of FTP ALG function at NAT device, and the FTP pattern that ftp client also can pass through configuration is from the ftp server file in download.Its principle is following:
Ftp server is positioned at public network, when ftp client is positioned at private network, is ftp client configuration PASV pattern, like this; When ftp client need be from the FTP file in download; Be to initiate connection request by the ftp server of public network side, its payload segment carries the public network address and the port numbers of this ftp server, and this payload segment need not to carry out ALG and handles; Address and port numbers that ftp client can carry according to the payload segment of this connection request message are set up FTP with ftp server and are connected;
Ftp server is positioned at private network, when ftp client is positioned at public network, is ftp client configuration PORT pattern, like this; When ftp client need be from the FTP file in download; Be to initiate connection request by the ftp client of public network side, its payload segment carries the public network address and the port numbers of this ftp client, and this payload segment need not to carry out ALG and handles; Address and port numbers that ftp server can carry according to the payload segment of this connection request message are set up FTP with ftp client and are connected;
When ftp server all is positioned at private network or all is positioned at public network, no matter for ftp client configuration PORT pattern still is the PASV pattern, can not pass through NAT device and carry out network address translation, no matter which end initiate connection request by, the opposite end all can be set up FTP with it and be connected.
Be example below with the video monitoring system, the above-mentioned flow process of the embodiment of the invention is described in detail.
Existing video monitoring system mainly is made up of following elementary cell: EC, VM, MS (Media Switch; The exchange of media server), IPSAN (Internet Protocol Storage Area Network; Storage area network), DM (Data Management Server, data management server), DC (Decoder, decoder), VC (Video Client; And corresponding software management system and web-transporting device videoconference client) etc..When terminal equipment such as EC, DC adds video monitoring system, at first will be to server registrations such as VM.
Based on above-mentioned video monitoring system framework, Fig. 2 shows EC in the VM registration process, and VM is the flow process of EC configuration FTP pattern, and this flow process can comprise:
Step 201, EC sends logon message to VM.
Step 202, VM extracts the IP address that this header and payload segment carry after receiving the logon message of EC transmission.
It is (following convenient for describing to include source IP address and purpose IP address in the IP head of this logon message; Source IP address in the heading is called IP1; Purpose IP address in the heading is called IP2), the Session Initiation Protocol part FROM/TO field of this logon message payload segment carries source IP address (convenient for describing, that this IP address is called IP3); Carry purpose IP address (convenient for describing, that this IP address is called IP4) in Session Initiation Protocol part Request-Line field.
Step 203~206, VM judges networking structure own and this EC according to the IP address that extracts, as, among own and the EC which at public network, which is at private network, and disposes the FTP pattern according to judged result for this EC.
In this step; VM is through the source IP address with Session Initiation Protocol part in source IP address in the message IP head and the message load; And the purpose IP address of Session Initiation Protocol part compares in purpose IP address in the message IP head and the message load, draw EC whether at private network and VM whether at private network.
Concrete, if EC and VM in same network, logon message need not to carry out the NAT conversion, thereby the source IP address in the IP head and purpose IP address be real ip address, IP1 equals IP3 at this moment, IP2 equals IP4.In such cases, VM is that EC distributes PORT pattern or PASV pattern (step 204).
If at private network, then logon message can be revised the source IP address in the IP head by NAT device to VM at public network, EC, the private network source IP address that is about in the IP head is revised as public network IP address, and this moment, IP1 was not equal to IP3, and IP2 equals IP4.In such cases, VM is that EC distributes PASV pattern (step 205).
If at public network, then logon message can be revised the purpose IP address in the IP head by NAT device to VM at private network, EC, the private network purpose IP address modification that is about in the IP head is a public network IP address, and this moment, IP1 equaled IP3, and IP2 is not equal to IP4.In such cases, VM is that EC distributes PORT pattern (step 206).
Step 207, VM sends the register response message to this EC, wherein carries the indication information into the FTP pattern of this EC configuration.
Step 208 is after EC receives the register response message, according to the acquiescence FTP pattern of wherein indicated this equipment of FTP pattern configurations.
When EC need carry out software upgrading, set up FTP according to the acquiescence FTP pattern of configuration on it with VM and be connected, and FTP connection the carrying out software download through setting up, to accomplish upgrading.It is set up, and FTP connects and the FTP downloading process is identical with prior art, repeats no more at this.
Along with the development of video monitoring system, terminal equipment possibly need through the FTP mode from a plurality of server file in download.For the ease of later expansion; In another embodiment of the present invention; Client device is initiated registration to each server; And after receiving the indication information of the FTP pattern of distributing for this client device that each server returns through register response, can on client device, generate the adaptive list item of FTP, promptly corresponding to a plurality of adaptive patterns of a plurality of ftp servers.Client device earlier through this list item of inquiry, is confirmed the FTP pattern that oneself need use when file in download, use this pattern to carry out file then and download.Table 1 shows a kind of instance of FTP self adaptation list item.
Table 1
Server The FTP adaptive pattern
Server 1 PASV (Passive Mode)
Server 2 PORT (aggressive mode)
Server 3 PORT (aggressive mode)
...... ......
Wherein, server 1,2,3...... can be the information that server identification or address etc. can the unique identification servers.
Can find out through above description; The IP address of VM through carrying in the SIP logon message that compares front end EC; Judge that EC still is that the VM server is in private network in private network; Then according to judged result notice EC configuration FTP pattern, so that EC need not NAT device and launches NAT ALG function setting up with VM when FTP is connected.
Need to prove that above-mentioned flow process only is that example is described with the video monitoring system, those skilled in the art should be able to understand, and above-mentioned technological thought is applied to the networking of other operation system, equally can realize the object of the invention.
Based on identical technical conceive, the embodiment of the invention also provides a kind of server and client side's equipment that can be applicable to above-mentioned flow process.
Referring to Fig. 3, the structural representation of the ftp server that provides for the embodiment of the invention, this ftp server can be but be not limited to the server in the video monitoring system that this ftp server can comprise:
Receiver module 301 is used to receive the register requirement message of ftp client;
Determination module 302 is used for confirming according to the address information that said register requirement message carries the networking structure of this ftp server and this ftp client;
Distribution module 303 is used for according to the networking structure of determining, and is said ftp client configuration FTP pattern; Wherein, If said ftp server is positioned at public network, said ftp client is positioned at private network; Then being said ftp client configuration PASV pattern, if said ftp server is positioned at private network, said ftp client is positioned at public network, then is said ftp client configuration PORT pattern;
Sending module 304 is used for returning the register response message to said ftp client, wherein carries the indication information of the FTP pattern of promising this ftp client configuration, disposes corresponding FTP pattern to indicate said ftp client.
Further; Distribution module 303 also is used for: if the networking structure that determination module 302 is determined is: said ftp server and said ftp client all are positioned at private network or all are positioned at public network, then are in said ftp client configuration PASV pattern and the PORT pattern any one.
Concrete, determination module 302 specifically is used for: extract an IP address and the 2nd IP address of said register requirement message IP head, and the 3rd IP address of this message payload segment and the 4th IP address; Wherein, first and third IP address is a source IP address, and second, four IP addresses are purpose IP address; The IP address that relatively extracts; And confirm the networking structure of said ftp server and said ftp client according to comparative result; Wherein, If an IP address is different with the 3rd IP address, the 2nd IP address is identical with the 4th IP address, then said ftp server is positioned at public network, said ftp client is positioned at private network; If an IP address is identical with the 3rd IP address, the 2nd IP address is different with the 4th IP address, then said ftp server is positioned at private network, said ftp client is positioned at public network; If an IP address is identical with the 3rd IP address, the 2nd IP address is identical with the 4th IP address, then said ftp server and said ftp client are positioned at consolidated network.
Referring to Fig. 4, the structural representation of the ftp client equipment that provides for the embodiment of the invention, this ftp client equipment can be but be not limited to the terminal equipment in the video monitoring system that this ftp client equipment can comprise:
Sending module 401 is used for sending register requirement to ftp server, wherein carries address information;
Receiver module 402 is used to receive the register response that carries FTP pattern indication information that said ftp server returns; Wherein, Said ftp server is said ftp client configuration FTP pattern, wherein according to the networking structure of determining; If said ftp server is positioned at public network, said ftp client is positioned at private network; Then being said ftp client configuration PASV pattern, if said ftp server is positioned at private network, said ftp client is positioned at public network, then is said ftp client configuration PORT pattern;
Configuration module 403 is used for disposing corresponding FTP pattern according to said FTP pattern indication information;
FTP module 404 is used for when needs during from said ftp server file in download, and the FTP pattern according to configuration on it adopts corresponding FTP pattern from said ftp server file in download.
Dispose ftp server tabulation in the above-mentioned ftp client, be used to write down ftp server and the FTP pattern information of this ftp server for this ftp client distribution.Accordingly, configuration module 403 can store FTP pattern information of carrying in the said response message and said ftp server in the said FTP tabulation into; FTP module 404 can be inquired about said FTP tabulation when said ftp client need be from said ftp server file in download, adopt the FTP pattern corresponding with said ftp server from said ftp server file in download.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium, comprise some instructions with so that a station terminal equipment (can be mobile phone, personal computer; Server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be looked protection scope of the present invention.

Claims (13)

1. FTP FTP mode configuration method is applied to include the network system of ftp server and ftp client, it is characterized in that this method comprises:
After ftp server receives the register requirement message of ftp client, confirm the networking structure of this ftp server and this ftp client according to the address information of carrying in this register requirement message;
Said ftp server is said ftp client configuration FTP pattern according to the networking structure of determining; Wherein, If said ftp server is positioned at public network, said ftp client is positioned at private network; Then being said ftp client configuration PASV pattern, if said ftp server is positioned at private network, said ftp client is positioned at public network, then is said ftp client configuration PORT pattern;
Said ftp server returns response message to said ftp client, wherein carries the indication information of the FTP pattern of promising this ftp client configuration, disposes corresponding FTP pattern to indicate said ftp client.
2. the method for claim 1 is characterized in that, this method also comprises:
If the networking structure that said ftp server is determined is: said ftp server and said ftp client all are positioned at private network or all are positioned at public network, then be that said ftp client disposes any one in PASV pattern and the PORT pattern.
3. the method for claim 1 is characterized in that, saidly confirms to comprise the networking structure of ftp server and ftp client according to the address information of carrying in the register requirement message:
Said ftp server extracts an IP address and the 2nd IP address of said register requirement message IP head, and the 3rd IP address of this message payload segment and the 4th IP address; Wherein, first and third IP address is a source IP address, and second, four IP addresses are purpose IP address;
The IP address that said ftp server relatively extracts, and confirm the networking structure of said ftp server and said ftp client according to comparative result; Wherein, if an IP address is different with the 3rd IP address, the 2nd IP address is identical with the 4th IP address, then said ftp server is positioned at public network, said ftp client is positioned at private network; If an IP address is identical with the 3rd IP address, the 2nd IP address is different with the 4th IP address, then said ftp server is positioned at private network, said ftp client is positioned at public network; If an IP address is identical with the 3rd IP address, the 2nd IP address is identical with the 4th IP address, then said ftp server and said ftp client are positioned at consolidated network.
4. like the described method of one of claim 1-3, it is characterized in that said network system is a video monitoring system, said ftp server is the server in the said video monitoring system, and said ftp client is the terminal equipment in the said video monitoring system.
5. a ftp server is characterized in that, comprising:
Receiver module is used to receive the register requirement message of ftp client;
Determination module is used for confirming according to the address information that said register requirement message carries the networking structure of this ftp server and this ftp client;
Distribution module is used for according to the networking structure of determining, and is said ftp client configuration FTP pattern; Wherein, If said ftp server is positioned at public network, said ftp client is positioned at private network; Then being said ftp client configuration PASV pattern, if said ftp server is positioned at private network, said ftp client is positioned at public network, then is said ftp client configuration PORT pattern;
Sending module is used for returning response message to said ftp client, wherein carries the indication information of the FTP pattern of promising this ftp client configuration, disposes corresponding FTP pattern to indicate said ftp client.
6. ftp server as claimed in claim 5; It is characterized in that; Said distribution module also is used for; If the networking structure that said determination module is determined is: said ftp server and said ftp client all are positioned at private network or all are positioned at public network, then be that said ftp client disposes any one in PASV pattern and the PORT pattern.
7. ftp server as claimed in claim 4 is characterized in that said determination module specifically is used for, and extracts an IP address and the 2nd IP address of said register requirement message IP head, and the 3rd IP address of this message payload segment and the 4th IP address; Wherein, first and third IP address is a source IP address, and second, four IP addresses are purpose IP address; The IP address that relatively extracts; And confirm the networking structure of said ftp server and said ftp client according to comparative result; Wherein, If an IP address is different with the 3rd IP address, the 2nd IP address is identical with the 4th IP address, then said ftp server is positioned at public network, said ftp client is positioned at private network; If an IP address is identical with the 3rd IP address, the 2nd IP address is different with the 4th IP address, then said ftp server is positioned at private network, said ftp client is positioned at public network; If an IP address is identical with the 3rd IP address, the 2nd IP address is identical with the 4th IP address, then said ftp server and said ftp client are positioned at consolidated network.
8. ftp server as claimed in claim 4 is characterized in that, said ftp server is the server in the video monitoring system.
9. data transmission method based on the FTP that realizes like the described method of one of claim 1-4 is characterized in that this method comprises:
Ftp client sends register requirement to ftp server, wherein carries address information;
Said ftp client receives the response that carries FTP pattern indication information that said ftp server returns, and disposes corresponding FTP pattern according to this FTP pattern indication information;
When said ftp client need be from said ftp server file in download, the FTP pattern according to configuration on it adopted corresponding FTP pattern from said ftp server file in download.
10. method as claimed in claim 9 is characterized in that, disposes ftp server tabulation in the said ftp client, is used to write down ftp server and the FTP pattern information of this ftp server for this ftp client distribution;
Said ftp client also comprises after receiving the response message that ftp server returns: the FTP pattern information of carrying in this response message and this ftp server are stored in the said FTP tabulation;
When said ftp client need be from said ftp server file in download, inquire about said FTP tabulation, adopt the FTP pattern corresponding from said ftp server file in download with said ftp server.
11. a ftp client equipment is characterized in that, comprising:
Sending module is used for sending register requirement to ftp server, wherein carries address information;
Receiver module is used to receive the response that carries FTP pattern indication information that said ftp server returns; Wherein, Said ftp server is said ftp client configuration FTP pattern, wherein according to the networking structure of determining; If said ftp server is positioned at public network, said ftp client is positioned at private network; Then being said ftp client configuration PASV pattern, if said ftp server is positioned at private network, said ftp client is positioned at public network, then is said ftp client configuration PORT pattern;
Configuration module is used for disposing corresponding FTP pattern according to said FTP pattern indication information;
The FTP module is used for when needs during from said ftp server file in download, and the FTP pattern according to configuration on it adopts corresponding FTP pattern from said ftp server file in download.
12. ftp client equipment as claimed in claim 11 is characterized in that, disposes ftp server tabulation in the said ftp client, is used to write down ftp server and the FTP pattern information of this ftp server for this ftp client distribution;
Said configuration module also is used for, and FTP pattern information of carrying in the said response message and said ftp server are stored in the said FTP tabulation;
Said FTP module specifically is used for, and when said ftp client need be from said ftp server file in download, inquires about said FTP tabulation, adopts the FTP pattern corresponding with said ftp server from said ftp server file in download.
13., it is characterized in that said ftp client equipment is the terminal equipment in the video monitoring system like claim 11 or 12 described ftp client equipment.
CN201110373177.2A 2011-11-22 2011-11-22 FTP (File Transfer Protocol) mode configuration method, data transmission method and device Active CN102420858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110373177.2A CN102420858B (en) 2011-11-22 2011-11-22 FTP (File Transfer Protocol) mode configuration method, data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110373177.2A CN102420858B (en) 2011-11-22 2011-11-22 FTP (File Transfer Protocol) mode configuration method, data transmission method and device

Publications (2)

Publication Number Publication Date
CN102420858A true CN102420858A (en) 2012-04-18
CN102420858B CN102420858B (en) 2014-12-24

Family

ID=45945090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110373177.2A Active CN102420858B (en) 2011-11-22 2011-11-22 FTP (File Transfer Protocol) mode configuration method, data transmission method and device

Country Status (1)

Country Link
CN (1) CN102420858B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2773081A1 (en) 2013-02-28 2014-09-03 Siemens Aktiengesellschaft Communication device for an industrial communication network and a method for providing data, in particular files, in an industrial communication network using file transfer protocol
CN106603717A (en) * 2016-12-31 2017-04-26 深圳市智联宝生态科技有限公司 FTP extending method and FTP extending system supporting single data port and NAT traversal
CN112468610A (en) * 2020-11-17 2021-03-09 杭州安恒信息安全技术有限公司 Data transmission method, monitoring node, monitoring server and monitoring network system
CN113315833A (en) * 2021-05-26 2021-08-27 北京天空卫士网络安全技术有限公司 File transfer mode processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252509A (en) * 2007-02-21 2008-08-27 华耀环宇科技有限公司 Dynamic system and method for virtual private network (VPN) information packet level routing using dual-NAT method
CN101442492A (en) * 2008-12-26 2009-05-27 中国科学院计算技术研究所 Method and system for implementing NAT penetration in P2P network
CN101895590A (en) * 2010-07-23 2010-11-24 华南理工大学 UDT-based system and method for realizing network address translator traversal
CN102035882A (en) * 2010-11-29 2011-04-27 杭州思福迪信息技术有限公司 FTP secondary logon system and method for transferring file and monitoring process
CN102148845A (en) * 2010-02-08 2011-08-10 中兴通讯股份有限公司 File transfer protocol (FTP) data transmission method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252509A (en) * 2007-02-21 2008-08-27 华耀环宇科技有限公司 Dynamic system and method for virtual private network (VPN) information packet level routing using dual-NAT method
CN101442492A (en) * 2008-12-26 2009-05-27 中国科学院计算技术研究所 Method and system for implementing NAT penetration in P2P network
CN102148845A (en) * 2010-02-08 2011-08-10 中兴通讯股份有限公司 File transfer protocol (FTP) data transmission method and system
CN101895590A (en) * 2010-07-23 2010-11-24 华南理工大学 UDT-based system and method for realizing network address translator traversal
CN102035882A (en) * 2010-11-29 2011-04-27 杭州思福迪信息技术有限公司 FTP secondary logon system and method for transferring file and monitoring process

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2773081A1 (en) 2013-02-28 2014-09-03 Siemens Aktiengesellschaft Communication device for an industrial communication network and a method for providing data, in particular files, in an industrial communication network using file transfer protocol
CN106603717A (en) * 2016-12-31 2017-04-26 深圳市智联宝生态科技有限公司 FTP extending method and FTP extending system supporting single data port and NAT traversal
CN112468610A (en) * 2020-11-17 2021-03-09 杭州安恒信息安全技术有限公司 Data transmission method, monitoring node, monitoring server and monitoring network system
CN113315833A (en) * 2021-05-26 2021-08-27 北京天空卫士网络安全技术有限公司 File transfer mode processing method and device
CN113315833B (en) * 2021-05-26 2022-09-13 北京天空卫士网络安全技术有限公司 File transfer mode processing method and device

Also Published As

Publication number Publication date
CN102420858B (en) 2014-12-24

Similar Documents

Publication Publication Date Title
US7228141B2 (en) Providing location-specific services to a mobile node
CN100477619C (en) Method and system for establishing bidirectional tunnel
CN101296203B (en) Device, system and method for automatically configuring application terminal in family network
CN102833698B (en) Use the data service technology that network is initiated to push the system and method for content to terminal
CN103581740B (en) A kind of distributed IPTV multi-screens gateway and IPTV multi-screen interaction methods
US20120324063A1 (en) Method, network device, and system for automatically configuring network device in ipv6 network
CN101136943B (en) System and method for implementing extended Diameter protocol application
JP2011166737A (en) Method and system for changing sip server while terminal connection is maintained
CN104980528A (en) Method, system and apparatus for realizing communication between nodes
CN105245629A (en) DHCP-based host communication method and device
CN101789981A (en) Method and equipment for dual-stack data transmission
CN109379291A (en) The processing method and processing device of service request in a kind of networking
CN102577453B (en) Method for enabling delivery of a message between an IMS domain and a CS domain
CN102420858A (en) FTP (File Transfer Protocol) mode configuration method, data transmission method and device
CN101668032B (en) Method, system and equipment for WEB service communication
CN101426261B (en) Method for service handling of multimedia subsystem, P-CSCF, I-CSCF and subsystem
CN101120580A (en) Method for establishing a communication link in at least one communications network
CN101262384A (en) Broadband access system and its used IP address allocation, continued lease and release method
CN102694675A (en) Asynchronous communication method and device based on SNMP (Simple Network Management Protocol)
CN103179222B (en) Method and device for distributing double-stack addresses
CN105025114A (en) Domain name resolution method and domain name resolution system
CN101043514B (en) Method for reusing byname connection
CN101527711B (en) Method, device and system for detecting survival of IPv6 session
CN1738316B (en) System and method for allocating session initiation protocol (sip) identification (ids) to user agents
CN105636034A (en) Authentication method and device for user equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230627

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.