發表文章

目前顯示的是 5月 14, 2009的文章

網路傳輸工具 curl

可透過command line 來達到傳輸檔案. 透過http 續傳一個檔案 : curl -O "-C -" "http://ardownload.adobe.com/pub/adobe/reader/pase/3.x/zh_tw/psa30se_a708_DLM_zh_tw.exe" 登錄網頁 get : curl -d "userid=admin&passwd=&Submit=LOGIN" http://192.168.2.1/index.htm curl "http://192.168.2.1/index.htm?userid=admin&passwd=&Submit=LOGIN" 透過網頁上傳檔案: curl -F "vxworks_new=@C:\curl_715_5\zz-img.bin" http://192.168.2.1/upgrade_firm_local 登錄網頁 get : curl -d "userid=admin&passwd=&Submit=LOGIN" http://192.168.2.1/index.htm 指定透過某一張網卡出去: curl --interface 192.168.1.123 http://tw.yahoo.com 查看FTP檔案: curl -l "ftp://127.0.0.1" 抓檔案另存新檔: curl -o "test" "http://ardownload.adobe.com/pub/adobe/reader/pase/3.x/zh_tw/psa30se_a708_DLM_zh_tw.exe" 抓成檔案: curl -O "http://ardownload.adobe.com/pub/adobe/reader/pase/3.x/zh_tw/psa30se_a708_DLM_zh_tw.exe" 分割檔案抓取: curl -O -r 0-1000 "http://ardownload.adobe.com/pub/adobe/reader/pase

網路速度測試工具 Iperf

使用client server 架構可透過TCP and UDP 來測試網路速度. 但須透過兩台電腦來測試 dos mode ,可透過外部程式來執行. example: server-> iperf -s -i 1 -w 120k client-> iperf -c 192.168.1.11 -i 1 -w 120k -t 3600 http://www.noc.ucf.edu/Tools/Iperf/ What is Iperf? While tools to measure network performance, such as ttcp, exist, most are very old and have confusing options. Iperf was developed as a modern alternative for measuring TCP and UDP bandwidth performance. Iperf is a tool to measure maximum TCP bandwidth, allowing the tuning of various parameters and UDP characteristics. Iperf reports bandwidth, delay jitter, datagram loss. Usage: iperf [-s|-c host] [options] iperf [-h|--help] [-v|--version] Client/Server: -f, --format [kmKM] format to report: Kbits, Mbits, KBytes, MBytes -i, --interval # seconds between periodic bandwidth reports -l, --len #[KM] length of buffer to read or write (default 8 KB) -m, --print_mss print TCP maximum segment size (MTU - TCP/IP header) -o, --output o