NetBench simple HOWTO

上一篇 / 下一篇  2008-01-10 00:04:05 / 个人分类:网络测试工具

NetBenchsimple HOWTO51Testing软件测试网%Z@e:_0l }Lrs

6j@V%aL9e#[2x!ne051Testing软件测试网U,prY3Q5S
51Testing软件测试网 b{.kd;Y+g0U]

51Testing软件测试网"x"w@O gB9?z)OB

NetBench is a portable benchmark program that measures how well a file server handles file I/O requests from 32-bit Windows clients, which pelt the server with requests for network file operations. NetBench reports throughput and client response time measurements. To run NetBench, you need a file server, a PC running Windows NT/2000 or Windows XP (called the controller) to start and monitor the tests, and clients that are running Windows 95/98, Windows NT/2000, or Windows XP.

2Jum3~1N"\051Testing软件测试网gw;vqV-D

Pre-knowledge:51Testing软件测试网#KG-n#z%U [p\

51Testing软件测试网8Z Fga_R'u?

Linux Command: mount, umount, fdisk, ls, vi, mkreiserfs, ifconfig,

A9_qGP{pS/E051Testing软件测试网~av,T)_;b+w.r

Structural diagram:51Testing软件测试网S.P3b6h0uQ)? MY%w2u

51Testing软件测试网-O-CQc{2~vK

51Testing软件测试网+G`!ZU4F#u*S`U['ri U

Procedure:

)BE'?7w'k Ct'F;d7J8y051Testing软件测试网BV$jo/z

1. Mount disk to DUT and partition disk. [Operate on terminal]

3x0v;f2}#r2s,M051Testing软件测试网L5B#|u)}:A+\

1.1 Plug indatawireandpower cable correctly, assure system run normally.51Testing软件测试网*R4k"\'x-k`3`r

51Testing软件测试网8l*q[!X%tD-Zk `

1.2 To get the disk information with command “fdisk -l”. You can find that the disk is identified or not by system. If find, the terminal will prompt the disk information, e.g.:/dev/sda.51Testing软件测试网 WV@6?5F fQY$e

51Testing软件测试网5Q$^7XTo1W

1.3 Partition disk with command “fdisk /dev/sda”. You will create partial “/dev/sda1. (Detail information about command “fdisk”, please refer to man help.)51Testing软件测试网)Q:E@*g%hr5] uh~

51Testing软件测试网d{)]xig+et8k~ r

1.4 Build up file system on the partial with command “mkreiserfs /dev/sda1. (Need DUT support.)51Testing软件测试网&R,R0T#?Xy*{

6r,[3|"^i(ni q"s01.5 Mount partial “/dev/sda1” with command “mount /dev/sda1 /mnt/sda”. First of all need making directory “/mnt/sda”.

V+u:ty%Q? I0

-v`G f,dp w02. Share disk partial with Samba. [Operate on terminal]51Testing软件测试网A SR|b5~

u6h C}Tu({1n u0Samba support Windows to access Linux share file on LAN.51Testing软件测试网!k+M_IK m+y

9m6Tf0L:B FZV]0Procedure:51Testing软件测试网5]7c$a*z)Rv8u

Y'Cju%}02.1 Modified Samba config file.51Testing软件测试网 pQ"Q[3?;O

$E%a8b}1l Pa2^0Command: #vi /root/usr/local/samba/lib/smb.config

2w^"x"K9r u0

9V jQq,Hp(Ru0Add below contents:51Testing软件测试网 j+^#qb!q

0m Fxs@(q0[sda]                # name of the share path

jq)l1tnvAE9p_d0

q-j B6{rU#~&ow^0path = /mnt/sda   # path shared51Testing软件测试网cs k9Q J:x6C

51Testing软件测试网%P+E7e L K2a&z-U

writable = yes     # writable or not of the share51Testing软件测试网aFC7w4jHM J8GUU`

or{.yb:X0public = yes     # who can access the share.

(r5W`7q tzp Gg"g051Testing软件测试网o&u;M4k:mlR1h

If no vi program on DUT. You should add use with command/usr/local/samba/bin/smbpasswda root 123456, and then access the file edit it with notepad.

#\/[0O,U4j4r)Nn051Testing软件测试网'\|"y6oMU I)p'^

2.2 Kill Samba service.51Testing软件测试网,?/L#x@'Ro

sQ\#aT:D0Get the samba service PID (nmbdD & smbd -D):

G e1} W!u3XjH051Testing软件测试网 fm.[D wf i2X pKEOt

Command: #ps51Testing软件测试网NE k,mj?/MKh

(D0Xs |;}1@M0Kill the service:51Testing软件测试网BB&?!Whji`

51Testing软件测试网tL_3s*b tm

Command: #kill PID51Testing软件测试网.rPo Z4U*N/[ Gph

51Testing软件测试网w/L3kT!rm

2.3 Start Samba service.

U e-~;IU1z051Testing软件测试网snK4[-rO@4y

Command: #/root/usr/local/samba/bin/smbdD

e)}X(A0g.z;i051Testing软件测试网L3OUkS%M8}

3. Map Network driver and add controller IP to hosts file on client.51Testing软件测试网;d+@9b$t*xQb2T
51Testing软件测试网 V~]:E!J1}GI

51Testing软件测试网 c^#r"g5u6N1T

3.1 Get PC IP:51Testing软件测试网 j F6wh&~ye~

51Testing软件测试网z"O!xo$Sk?u.Y

3.2 Map network driver:51Testing软件测试网6dI&X Dt!F

].yH2e;RF X `6O/l*h03.3 Add Controller information:51Testing软件测试网SX f4p2gx8A g

51Testing软件测试网^/L"cp^#ROz

IPAddressController

K%sM]Hr0

WF1_3D ['a6g~04. Run NetBanch Controller on controller PC, then select the menu “ClientsàStart Log In…”. The “Connect Clients” box wills popup. DO NOT CLICK OK BUTTON!

N(Q^ s,n0

'NxBsVQ+e0

4lU+[+{ ].Ej0aG;U {05. Run NetBench Client on client PC. Wait a minutes, the NetBench client title will flush with ID number. It means the application and the network is correct. If not, you should check the network and hosts file, and then restart the NetBench Client. If it is OK, please go on. (Note: you can run five NetBench client instance on one client PC in the meantime, do not run more than it.)
WtR.gE\$h0

h&H]2PJ\}051Testing软件测试网 s'A6tK)fq

6. The linked clients ID number will be shown in the NetBench Controller on controller PC. It means that the controller have been monitor clients. Now you can click OK button to go on.51Testing软件测试网-M.W`K.e;CN

51Testing软件测试网W*bz2TA,] C6PL9q

ctCfWD07. The system will ask you to add a test suite or not, click Yes button to add test suite.

!MfS%B4@&W5heQ0

lE+gH(w8Z&o;{)m0

2r(B-i,dT2l*{7l]V08. Choose test scrīpt, accordance with test need, and then click Open button.51Testing软件测试网 ~+U9?{.b4\[

51Testing软件测试网+ZJ4}*mg!a xw

)~e6Fn-y&K09. The select Test Suite box will show your choice. You can modify some default results file name to meet you need, and add some Comment to results file, or you can leave it alone and Click OK button to go on.51Testing软件测试网.f5t*Srj l(L

51Testing软件测试网0{n:J;~fZ\:^r#N

1U|!{cZ&?3W.IA010. A Start Session box will prompt to ask you executing the test suites or not. Click Yes button.51Testing软件测试网~j!q"Fu Y y9Pg

51Testing软件测试网$^9n` rh'lvS*M

51Testing软件测试网/E\"l6x;D_q\T

10. Now the test suite will be executed. One suite has several scrīpts. Each scrīpt will add the DUT load by increasing client number, and meanwhile keeping the other parameter no change. Executing the scrīpt setting one by one, at end of the test, the ball will become red. It means that the test is over.

j.G I4r7Zm Sn0

3^8dt%Jq051Testing软件测试网N z GIbuYua4C

Not luckily, we maybe prompt error information by NetBench at initialization. We should identify that what error is normal and what is critical. And you can choose stopping or continuing. If it is critical one, you should stop the test suite and check your system setting to ask yourself some question, such as: network is OK or not, HDD is clean or nor, DUT can normally run or not, the test equipments are OK or not, etc, And also you maybe restart the whole system (include DUT and all the client). I think it needs more time and patient to assure the test go on normally.51Testing软件测试网]/oOZ1w

51Testing软件测试网5i:c} Q*M Yv-w^

M9B H"\%j011. Test result analyzing. NetBench test result file is an EXCEL file. It contains five sheets: summary, Overall Result, Client Data, Disclosure and Suite Definition. We focus on the summary sheet.The summary have two diagrams, one is Throughput, the other is Average Response Time. The two diagrams will be used in the performance report.51Testing软件测试网0cD N8Zp3C"G7l

51Testing软件测试网1W:I$qw){f*U~su{#L0j

51Testing软件测试网L\2d(Av6~ c

ZX9\0t*~KNu0 

(dx$~ Fg%}0

TAG: NetBench 网络测试工具

 

评分:0

我来说两句

Open Toolbar