CN101136791A - File transfer protocol based network throughput testing approach - Google Patents
File transfer protocol based network throughput testing approach Download PDFInfo
- Publication number
- CN101136791A CN101136791A CNA2006101568864A CN200610156886A CN101136791A CN 101136791 A CN101136791 A CN 101136791A CN A2006101568864 A CNA2006101568864 A CN A2006101568864A CN 200610156886 A CN200610156886 A CN 200610156886A CN 101136791 A CN101136791 A CN 101136791A
- Authority
- CN
- China
- Prior art keywords
- transmission
- data
- file
- throughput
- thread
- 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
Links
Images
Abstract
In the invention, the sending party sets up buffer area, and fills data as data source of simulation file; and the receiving party creates buffer area to receive data. After test is started, the method executes steps: specifying remote server file (RSF), or determining route, name and size of RSF; calculating transmission positions of starting and stopping each thread; creating prearranged number of transmission thread, and starting up execution of transmission; obtaining size of transmitted data (TD) and transmission time (TT) of each thread, making statistics for throughput; when TD reach specified size, or TT reaches specified time, or user stops testing, the method stops each transmission thread. Making the most of network capacity, the invention eliminates unnecessary interference from reading/writing files so as to reflect actual throughput of network precisely and raise reliability. Moreover, automation control increases easy to use the test device and efficiency of test.
Description
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;
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, 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.
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.
Claims (5)
1. the 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;
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 based on file transfer protocol (FTP) of claim 1 is characterized in that, 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.
5. 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.
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 true CN101136791A (en) | 2008-03-05 |
CN100561952C 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) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102026189A (en) * | 2010-12-20 | 2011-04-20 | 西安西电捷通无线网络通信股份有限公司 | Internal friction test module, internal friction test method, simulation test system and simulation test method |
CN101674492B (en) * | 2008-09-09 | 2011-09-21 | 中兴通讯股份有限公司 | Method and device for testing performance of stream media server |
CN102377649A (en) * | 2010-08-13 | 2012-03-14 | 国基电子(上海)有限公司 | Router and method for extending effective period of control session in FTP with utilization of router |
CN102461115A (en) * | 2009-04-16 | 2012-05-16 | 爱普夏尔有限公司 | Method and system for network-based collaboration |
CN103986744A (en) * | 2013-11-18 | 2014-08-13 | 四川大学 | Throughput-based file parallel transmission method |
WO2014187219A1 (en) * | 2013-05-20 | 2014-11-27 | Tencent Technology (Shenzhen) Company Limited | Electronic device, storage medium and file transferrting method |
CN104581763A (en) * | 2014-12-08 | 2015-04-29 | 深圳市广和通实业发展有限公司 | Interconnection test method and system for wireless communication modules |
CN104702592A (en) * | 2015-01-08 | 2015-06-10 | 三星电子(中国)研发中心 | Method and device for downloading stream media |
CN104767801A (en) * | 2015-03-23 | 2015-07-08 | 上海大唐移动通信设备有限公司 | Two-thread ftp transmission method and system |
CN106790709A (en) * | 2017-02-28 | 2017-05-31 | 烽火通信科技股份有限公司 | Ftp file transmission method and ftp client based on asynchronization read-write |
TWI651976B (en) * | 2017-04-24 | 2019-02-21 | 美商惠普發展公司有限責任合夥企業 | 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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100677425B1 (en) * | 2005-01-13 | 2007-02-02 | 엘지전자 주식회사 | Apparatus and method for checking performance of wireless data network |
-
2006
- 2006-11-16 CN CNB2006101568864A patent/CN100561952C/en not_active Expired - Fee Related
Cited By (23)
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 |
CN102461115B (en) * | 2009-04-16 | 2015-08-05 | 爱普夏尔有限公司 | The method and system of network cooperation |
CN102461115A (en) * | 2009-04-16 | 2012-05-16 | 爱普夏尔有限公司 | Method and system for network-based collaboration |
CN105100089A (en) * | 2009-04-16 | 2015-11-25 | 爱普夏尔有限公司 | 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 |
CN102026189A (en) * | 2010-12-20 | 2011-04-20 | 西安西电捷通无线网络通信股份有限公司 | Internal friction test module, internal friction test method, simulation test system and simulation test method |
WO2014187219A1 (en) * | 2013-05-20 | 2014-11-27 | Tencent Technology (Shenzhen) Company Limited | Electronic device, storage medium and file transferrting method |
US10069894B2 (en) | 2013-05-20 | 2018-09-04 | Tencent Technology (Shenzhen) Company Limited | Electronic device, storage medium and file transferring method |
CN103986744A (en) * | 2013-11-18 | 2014-08-13 | 四川大学 | Throughput-based file parallel transmission method |
CN103986744B (en) * | 2013-11-18 | 2017-02-08 | 四川大学 | Throughput-based file parallel transmission method |
CN104581763A (en) * | 2014-12-08 | 2015-04-29 | 深圳市广和通实业发展有限公司 | Interconnection test method and system for wireless communication modules |
CN104581763B (en) * | 2014-12-08 | 2018-05-15 | 深圳市广和通无线股份有限公司 | The interconnecting test method and system of wireless communication module |
CN104702592A (en) * | 2015-01-08 | 2015-06-10 | 三星电子(中国)研发中心 | Method and device for downloading stream media |
CN104767801A (en) * | 2015-03-23 | 2015-07-08 | 上海大唐移动通信设备有限公司 | Two-thread ftp transmission method and system |
CN104767801B (en) * | 2015-03-23 | 2018-05-08 | 上海大唐移动通信设备有限公司 | A kind of transmission method and system of two threads ftp |
CN106790709A (en) * | 2017-02-28 | 2017-05-31 | 烽火通信科技股份有限公司 | Ftp file transmission method and ftp client based on asynchronization read-write |
CN106790709B (en) * | 2017-02-28 | 2019-09-17 | 烽火通信科技股份有限公司 | Ftp file transmission method and ftp client based on asynchronization read-write |
TWI651976B (en) * | 2017-04-24 | 2019-02-21 | 美商惠普發展公司有限責任合夥企業 | Dynamic wireless network selections |
US11362926B2 (en) | 2017-04-24 | 2022-06-14 | 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 |
Also Published As
Publication number | Publication date |
---|---|
CN100561952C (en) | 2009-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100561952C (en) | A kind of network throughput testing approach based on file transfer protocol (FTP) | |
CN101388732B (en) | In-situ test system and method oriented to water sound sensor network | |
CN104742126B (en) | There is the robot system of Wireless Acceleration Sensor | |
CN101436961B (en) | Conversation management system and method | |
US8943166B2 (en) | Data transfer device, data transfer method, and data transfer system | |
CN105099540A (en) | Method for reconstructing in-orbit function of satellite processing type loads | |
JP4786354B2 (en) | iSCSI communication control method and storage system using the same | |
CN103647727A (en) | Audio and video transmission control method and audio and video transmission control device | |
CN111371632B (en) | Communication method, device, equipment and storage medium | |
JP2006148822A5 (en) | ||
CN101902394B (en) | Signal deep-sea long-distance transmission method based on serial communication | |
US20090190483A1 (en) | Network transmission system and a testing method thereof | |
JP2003198563A (en) | Radio communication device, method therefor, radio communication program and computer readable recording medium recorded with the same program | |
CN102946335B (en) | A kind of network condition detection method and system | |
CN103974295A (en) | Link status detection device and working method thereof | |
CN109120479B (en) | Network throughput testing method based on network message format | |
KR100347183B1 (en) | A checking system for finding the data transmission error in wireless communication network | |
CN106006271A (en) | Single chip microcomputer driving MODEM internet-surfing transmission method and related intelligent elevator remote monitoring system | |
CN116647490A (en) | Aviation AFDX network data detection system | |
CN102307135A (en) | Method for processing baseband data transmission data in real time by utilizing VxWorks platform | |
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 | |
CN112749234A (en) | Monitoring management system for monitoring and managing indoor air quality and energy | |
JP5191366B2 (en) | Wireless network analysis system |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20091118 Termination date: 20151116 |