CN100561952C - A kind of network throughput testing approach based on file transfer protocol (FTP) - Google Patents

A kind of network throughput testing approach based on file transfer protocol (FTP) Download PDF

Info

Publication number
CN100561952C
CN100561952C CNB2006101568864A CN200610156886A CN100561952C CN 100561952 C CN100561952 C CN 100561952C CN B2006101568864 A CNB2006101568864 A CN B2006101568864A CN 200610156886 A CN200610156886 A CN 200610156886A CN 100561952 C CN100561952 C CN 100561952C
Authority
CN
China
Prior art keywords
transmission
data
file
throughput
ftp
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.)
Expired - Fee Related
Application number
CNB2006101568864A
Other languages
Chinese (zh)
Other versions
CN101136791A (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 CNB2006101568864A priority Critical patent/CN100561952C/en
Publication of CN101136791A publication Critical patent/CN101136791A/en
Application granted granted Critical
Publication of CN100561952C publication Critical patent/CN100561952C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A kind of network throughput testing approach based on file transfer protocol (FTP) is provided with buffering area and padding data as the simulation files data source at transmit leg, opens up buffering area the recipient and receives data.After starting test, designated remote server file or definite remote server file path, title and size; Calculate the transmission positions of starting and stopping of each thread; Create the transmission thread of prearranged number and start the execution of transmitting; Obtain the transmission size of data and the transmission time of each thread, the statistics throughput; Reach the size of appointment in the transmission data, or transmission reaches the transmission time of appointment, or the user stops respectively transmitting thread when stopping testing.The present invention has made full use of network capacity, eliminated the interference of unnecessary file read-write, the goodput that has reflected network more accurately, also improved reliability when reducing the equipment performance influence, the automation control of test has then improved the ease for use and the testing efficiency of testing equipment greatly.

Description

A kind of network throughput testing approach based on file transfer protocol (FTP)
Technical field
The present invention relates to the COMMUNICATION NETWORK PERFORMANCES field tests, relate in particular to a kind of method of testing of the network throughput based on file transfer protocol (FTP).
Background technology
Usually, for locating network fault, network is optimized, needs the performance of test network, network performance index mainly comprises throughput, response time, time-delay, shake, packet loss etc.Wherein throughput is meant in following unit interval of situation of packet loss not the maximum amount of data by network, with per second by bit or byte number as unit of measurement.Throughput is the comprehensive embodiment of network performance.
Throughput and procotol are closely related, because different procotols, the encapsulation format of its packet, verification and transmitting-receiving are handled also different.FTP (file transfer protocol (FTP)), it is the standard of carrying out file transfer in the network, it is a kind of widely used important application layer protocol, simultaneously owing to adopted TCP (transmission control protocol) to transmit control, the TCP performance that can directly reflect network, and TCP is the basis of numerous network applications, therefore the testing throughput based on FTP is one of most important method of assessment network performance, (file of client computer is sent to server to comprise the uplink throughput test, promptly upload) and downlink throughput capacity test (file of server is sent to client computer, promptly downloads).
FTP adopts two TCP that reliable byte stream transmission is provided to connect to carry out file transfer, one of them connection is a control connection, this connection will be ordered from client and be passed to server, and pass replying of server back, another connection is that data connect, and data are connected transfer files data between the client and server.Fig. 1 is a complete ftp file transmission system, and its transmission and processing process is as follows: the user is by interface request connection and logon server, sends to server and sets up control connection thereby client computer is converted to the FTP order with user's request and authorization information.User's select File and request are uploaded or are downloaded, client computer is set up corresponding data by control connection and server negotiate and is connected also startup file transmission, transmit leg reads file and connects the transmission data by data from file system, the recipient connects the reception data and writes file by file system from data, data are connected closes after transfer of data is finished, and control connection is closed when mutual no longer needing.
Therefore, a typical document transmission system can be divided into three parts, is respectively: mutual control, transfer of data, file read-write.Wherein, interaction controlling portion is divided control flow, and is determining the ease for use of system, transfer of data and file read-write part then major decision the reliability and the performance of file transfer.
TCP connects provides reliability by following manner:
1, data are divided into a certain size data block that is fit to transmission (being called message segment or section).
2, TCP starts a corresponding timer after sending a section, waits for that destination acknowledges receipt of this message segment.If can not in time receive affirmation, will retransmit this message segment.
3, when receiving, TCP data from the other end will send an affirmation.This really admits a fault and sends immediately, will postpone usually part second.
4, the TCP message segment have its stem and data check and, if the check of the section of receiving and mistake is arranged, TCP will abandon this message segment and not acknowledge receipt of this message segment (make make a start overtime and retransmit).
5, the arrival of message segment may be out of order, and TCP will resequence to the data of receiving in this case, gives the upper strata with the data of receiving with correct order.
6, data message can repeat, so the receiving terminal of TCP must abandon the data of repetition.
7, each side of TCP connection has a certain size cushion space.The receiving terminal of TCP only allows the receptive data of other end transmitting and receiving terminal buffering area, thereby carries out flow control, prevents that very fast main frame from causing the buffering area of slow main frame to overflow.
Obviously, the measure of TCP reliability has limited throughput to a certain extent.The blocks of data of data transmit into to(for) specific responsibility connect, mainly improve throughput by sliding window protocol, its principle is: the buffering area that the recipient opens up a certain size receives data, transmit leg is stopping also can sending a plurality of groupings continuously before the wait acknowledge like this, and the recipient is confirming again this data segment corresponding buffer region to be used to receive new data block after a data block.Because network delay is inevitable, the disposal ability of main frame and buffering area also can not be infinitely great, and therefore single connection often can not make full use of the actual capacity of network.For this reason, a lot of ftp file transmission systems adopt multithreading to set up a plurality of connections, and the while transfer files is to improve throughput.
At present, test based on the network throughput of FTP, perhaps directly adopt the ftp file transmission system among Fig. 1, perhaps one of them part is installed in test instrumentation or the specific equipment as a module, basic skills is: logon server, and select the file of suitable size and type and start transmission, transmit leg reads file data and is sent to the recipient by network thereafter, the recipient is saved in the local file after receiving data, and the data that the unit of account time transmits are as throughput.There is the deficiency of the following aspects in such method of testing:
1, throughput is the maximum data rate of packet drop lower network not, and the generic-document transmission system is not to be purpose to measure throughput, even support the multithreading transmission, also be that a thread transmits a part of file data, that part of transfer of data of appointment is finished thread and is also finished thereupon, therefore can not all reflect maximum rate in whole test process, upload, make because system does not support multithreading to transmit same file that especially testing throughput is relatively more difficult accurately for file.
2, file read-write is not the part of Network Transmission, but take the processing time, particularly fast at network speed, and disk system speed is slow and testing equipment internal memory condition of limited under, the file read-write time, relative network latency was more considerable, test result is not got rid of this part time, makes measured value littler than actual value.
3, file read-write can bring extra processing burden and memory space to expend to testing equipment.Particularly for the drive test of wireless network, when carrying out transfer of data, also to gather and preserve a large amount of wireless parameters and other test datas, preserve the file that does not have practical significance for test this moment, may the collection and the preservation of useful data be exerted an influence, compare under the condition of severe (as the car and boat severe jolt at equipment place) the also easy exception throw of the read-write operation of disk at test environment.
4, the path and the title that need manual select File, and guarantee that the size and the type of file are suitable make complex operation, and ease for use is not high, and and then have influenced testing efficiency.Simultaneously, the result adds up mainly based on file size, if connect interruption because network appears in misoperation or test process, makes that file size change or actual transmissions time are unreliable, can cause test result invalid.
Summary of the invention
The objective of the invention is to, a kind of method of testing of the network throughput based on file transfer protocol (FTP) is provided, can improve testing throughput result's accuracy, and it is simply efficient to have a test operation, the characteristics that testing reliability is high.
The present invention is based on the network throughput testing approach of file transfer protocol (FTP), buffering area and padding data be set as the simulation files data source, open up buffering area the recipient and receive data, may further comprise the steps at transmit leg:
After step 1, the startup test, at first judge whether the designated remote server file, if then carry out next step; Otherwise, determine remote server file path, title and size;
Step 2, basis are wanted the size of transfer files data and can be made throughput reach maximum transmission number of threads, calculate the transmission positions of starting and stopping of each thread;
The execution of step 3, the transmission thread of creating prearranged number and startup transmission; In the implementation of transmission, for download, the data that receive directly abandon after statistics and do not write file; For uploading, the data of transmission do not read from file but directly send simulation files data the buffering area, and the simulation files data are customized by the tester, or generate automatically;
Step 4, the transmission size of data of obtaining each thread and transmission time, the statistics throughput;
Step 5, reach the size of appointment, or transmission reaches the transmission time of appointment, or the user stops respectively transmitting thread when stopping testing, finish test in the transmission data.
In such scheme of the present invention, logon server, search and select File, startup and end transmission operation all utilize the order of File Transfer Protocol to finish automatically.
In the step 2 of such scheme, determine that can make throughput reach peaked transmission line number of passes purpose method comprises: sound out by the FTP transmission of carrying out the different threads number obtain, the tester rule of thumb is worth setting.
Among the present invention, each transmits startup, executed in parallel simultaneously, in the test overall process each is connected transmission state and monitors, and attempts connection and transmission when connecting disconnection again, and when interrupting, transmission suspends throughput calculation, the calculating of restarting throughput when transmission recovers.
The present invention has made full use of network capacity, eliminated the interference of unnecessary file read-write, the goodput that has reflected network more accurately, also improved reliability when reducing the equipment performance influence, the automation control of test has then improved the ease for use and the testing efficiency of testing equipment greatly.
Description of drawings
Fig. 1 is existing ftp file transmission system structure chart;
Fig. 2 is the test process flow chart of one embodiment of the present of invention.
Embodiment
Main thought of the present invention is, network throughput is tested main focused data transmission, and be indifferent in the generic-document transmission system very important file and corresponding read-write is handled, need to compare test control flexibly simultaneously, according to these characteristics, strengthen the tcp data segment in the traditional F TP transmission system, avoid the file read-write part, the branch of automation interaction controlling portion as far as possible.
Introduce a specific embodiment of the present invention below in conjunction with Fig. 2:
After step 20, the startup test, at first judge whether the designated remote server file.If, forward step 21B to, otherwise, forward step 21A to.
Step 21A, determine telefile automatically: determine remote server file path, title and size, if download, these fileinfos obtain by the search ftp server; If upload, fileinfo generates automatically, and wherein file name reflects that file is testing throughput file and testing time.
Step 21B, according to will transmitting the size of data, and sound out the throughput that can make that obtains and reach maximum transmission number of threads, calculate the transmission positions of starting and stopping of each thread.
Step 22, establishment transmission thread also start the execution of transmitting, and forward step 23 then to.In the implementation of transmission,, receive data and do not write file for download; For uploading, directly do not send the simulation files data the buffering area from the file reading of data, in the present embodiment, analogue data before transmission from local search to compressed file extract.The transmission thread can be monitored connection status, attempts again connecting when connecting disconnection and transmission.
Step 23, the transmission size of obtaining each thread and time, the statistics throughput also sends to correlation module, as send to interface display or test data logging modle.
Step 24, judge whether to arrive the transmission size of appointment, if, stop respectively transmitting thread, finish test; Otherwise, forward step 25 to.
Step 25, judge whether to arrive transmission time of appointment, if, stop respectively transmitting thread, finish test; Otherwise, forward step 26 to.
Step 26, judge whether that the user stops test, if, stop respectively transmitting thread, finish test; Otherwise, forward step 23 to.

Claims (4)

1, a kind of network throughput testing approach based on file transfer protocol (FTP) is characterized in that, buffering area and padding data is set as the simulation files data source at transmit leg, opens up buffering area the recipient and receives data, may further comprise the steps:
After step 1, the startup test, at first judge whether the designated remote server file, if then carry out next step; Otherwise, determine remote server file path, title and size;
Step 2, basis are wanted the size of transfer files data and can be made throughput reach maximum transmission number of threads, calculate the transmission positions of starting and stopping of each thread;
The execution of step 3, the transmission thread of creating prearranged number and startup transmission; In the implementation of transmission, for download, the data that receive directly abandon after statistics and do not write file; For uploading, the data of transmission do not read from file but directly send simulation files data the buffering area, and the simulation files data are customized by the tester, or generate automatically;
Step 4, the transmission size of data of obtaining each thread and transmission time, the statistics throughput;
Step 5, reach the size of appointment, or transmission reaches the transmission time of appointment, or the user stops respectively transmitting thread when stopping testing, finish test in the transmission data.
2, the described network throughput testing approach based on file transfer protocol (FTP) of claim 1 is characterized in that, logon server, search and select File, startup and end transmission operation all utilize the order of File Transfer Protocol to finish automatically.
3, the described network throughput testing approach of claim 1 based on file transfer protocol (FTP), it is characterized in that, in the described step 2, determine that can make throughput reach peaked transmission line number of passes purpose method comprises: sound out by the FTP transmission of carrying out the different threads number and obtain or the tester rule of thumb is worth setting.
4, the described network throughput testing approach of claim 1 based on file transfer protocol (FTP), it is characterized in that, each transmission starts simultaneously, executed in parallel, in the test overall process each being connected transmission state monitors, when connecting disconnection, attempt again connecting and transmission, and when interrupting, transmission suspends throughput calculation, the calculating of restarting throughput when transmission recovers.
CNB2006101568864A 2006-11-16 2006-11-16 A kind of network throughput testing approach based on file transfer protocol (FTP) Expired - Fee Related CN100561952C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101568864A CN100561952C (en) 2006-11-16 2006-11-16 A kind of network throughput testing approach based on file transfer protocol (FTP)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101568864A CN100561952C (en) 2006-11-16 2006-11-16 A kind of network throughput testing approach based on file transfer protocol (FTP)

Publications (2)

Publication Number Publication Date
CN101136791A CN101136791A (en) 2008-03-05
CN100561952C true CN100561952C (en) 2009-11-18

Family

ID=39160646

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101568864A Expired - Fee Related CN100561952C (en) 2006-11-16 2006-11-16 A kind of network throughput testing approach based on file transfer protocol (FTP)

Country Status (1)

Country Link
CN (1) CN100561952C (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674492B (en) * 2008-09-09 2011-09-21 中兴通讯股份有限公司 Method and device for testing performance of stream media server
GB2469501B (en) * 2009-04-16 2012-01-04 Appshare Ltd Method and system for network-based collaboration
CN102377649A (en) * 2010-08-13 2012-03-14 国基电子(上海)有限公司 Router and method for extending effective period of control session in FTP with utilization of router
CN102026189B (en) * 2010-12-20 2012-11-07 西安西电捷通无线网络通信股份有限公司 Internal friction test module, internal friction test method, simulation test system and simulation test method
CN104184753B (en) 2013-05-20 2018-04-27 腾讯科技(深圳)有限公司 A kind of document transmission method and device
CN103986744B (en) * 2013-11-18 2017-02-08 四川大学 Throughput-based file parallel transmission method
CN104581763B (en) * 2014-12-08 2018-05-15 深圳市广和通无线股份有限公司 The interconnecting test method and system of wireless communication module
CN104702592B (en) * 2015-01-08 2018-09-11 三星电子(中国)研发中心 Stream media downloading method and device
CN104767801B (en) * 2015-03-23 2018-05-08 上海大唐移动通信设备有限公司 A kind of transmission method and system of two threads ftp
CN106790709B (en) * 2017-02-28 2019-09-17 烽火通信科技股份有限公司 Ftp file transmission method and ftp client based on asynchronization read-write
WO2018199905A1 (en) * 2017-04-24 2018-11-01 Hewlett-Packard Development Company, L.P. Dynamic wireless network selections
CN110427268A (en) * 2019-08-01 2019-11-08 浪潮电子信息产业股份有限公司 A kind of method for detecting and relevant apparatus of the Performance Influence Factor of accelerator
CN110730112A (en) * 2019-10-28 2020-01-24 上海移远通信技术股份有限公司 Method, system, equipment and storage medium for testing network running speed
CN113496749A (en) * 2020-04-02 2021-10-12 深圳星火半导体科技有限公司 Storage performance test analysis method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1681884A1 (en) * 2005-01-13 2006-07-19 LG Electronics Inc. Apparatus and method for checking performance of wireless data network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1681884A1 (en) * 2005-01-13 2006-07-19 LG Electronics Inc. Apparatus and method for checking performance of wireless data network

Also Published As

Publication number Publication date
CN101136791A (en) 2008-03-05

Similar Documents

Publication Publication Date Title
CN100561952C (en) A kind of network throughput testing approach based on file transfer protocol (FTP)
CN101436961B (en) Conversation management system and method
JP5452602B2 (en) Data transfer device, data transfer method, and data transfer system
JP2006260551A5 (en)
CN102438010B (en) For the method and apparatus of streaming data profiling
CN105099540A (en) Method for reconstructing in-orbit function of satellite processing type loads
CN102223452B (en) The TTY method of testing of mobile terminal and system
CN112685248A (en) Intelligent network card monitoring log obtaining method and device, electronic equipment and storage medium
CN103647727B (en) Audio and video transmission control method and audio and video transmission control device
CN108206829B (en) Method for realizing network communication by GigE Vision protocol based on FPGA
WO2020029602A1 (en) Time delay detection method and apparatus, and system
CN101902394B (en) Signal deep-sea long-distance transmission method based on serial communication
US20140088911A1 (en) VLSI Circuit Verification
CN111371632A (en) Communication method, device, equipment and storage medium
CN102946335B (en) A kind of network condition detection method and system
CN109120479B (en) Network throughput testing method based on network message format
CN101860520B (en) Ethernet-based high-speed seismic data transmission and control system
CN106006271A (en) Single chip microcomputer driving MODEM internet-surfing transmission method and related intelligent elevator remote monitoring system
KR100347183B1 (en) A checking system for finding the data transmission error in wireless communication network
CN116647490A (en) Aviation AFDX network data detection system
CN102307135A (en) Method for processing baseband data transmission data in real time by utilizing VxWorks platform
CN102402494A (en) Data processing method and device for 10 gigabit media independent interface (XGMII) and inter-chip bidirectional handshaking method
CN114253210A (en) Json-RPC-based PLC communication system and method
CN113965950A (en) Virtual-real cooperative platform supporting remote wireless communication link test
CN106657386A (en) Remote transmitting gas meter data acquisition unit adopting fourth-generation communication technology, system and method

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091118

Termination date: 20151116

CF01 Termination of patent right due to non-payment of annual fee