1 中央大學對外連線狀況 nov 2007. susan yang, computer center, national central university...

Post on 22-Dec-2015

232 Views

Category:

Documents

4 Downloads

Preview:

Click to see full reader

TRANSCRIPT

1

中央大學對外連線狀況

Nov 2007

2 Susan Yang, Computer Center, National Central University

中央大學對外連線

目的建設足夠的網路頻寬提升中央大學連接國內 / 國外網路效能

•能與國內學術網路快速連線•能與國內商業網路快速連線•能與國外學術團體快速連線•能與國外商業網路快速連線

– 包括 IEEE 論文查詢 , 論文資料庫連線

3 Susan Yang, Computer Center, National Central University

中央大學對外連線 (cont.)目前對外連線概況

TANET 連線•連接國內大專院校 , 高中職 , 國中小學 .•連接國外線路 (2.5 G bps, 呈嚴重壅塞 )

TWAREN 連線•連接國內大專院校 , 研究單位•共用國外 Ineternet 2 連線 ( 學術單位 )

台聯大互連與國外線路•中央 , 交通 , 清華 , 陽明 4 校互連網路•國外專線 (1.6G bps, 提供良好研究資料下載與交流 )

Hinet 互連•快速連接國內商業網路

4 Susan Yang, Computer Center, National Central University

5 Susan Yang, Computer Center, National Central University

中央大學對外連線 (cont.)

6 Susan Yang, Computer Center, National Central University

中央大學對外連線 (cont.)

國外連線延遲中央大學 ~ 台聯大出國

•O(104 ) mini-seconds桃園區網 ~ TANET 出國共用線路

•O(106 ) mini-seconds

NCU Campus - 台聯大 出國專線 1001[Tue] {www.3com.com=11942, www.cisco.com=844, www.ubuntu.com=1135}1002[Tue] {www.3com.com=12320, www.cisco.com=901, www.ubuntu.com=1153}

TYC Campus - 桃園區網 - TANET 出國專線 1001[Mon] {www.3com.com=1850397, www.cisco.com=1569, www.ubuntu.com=1731}1002[Tue] {www.3com.com=2481171, www.cisco.com=1555, www.ubuntu.com=2347}

7

桃園區網路技術研討會台聯大出國線路效能評估

中央大學電算中心 楊素秋

2007 年 11 月 23 日

8 Susan Yang, Computer Center, National Central University

報告大綱

1. 研究動機2. 主要連外 Trunk 流量的變化3. 國外網站檔案擷取延遲的變化4. 子程式功能 5. 結語

9 Susan Yang, Computer Center, National Central University

1. 研究動機

台聯大出國線路Cost

• 2 million per yearPerformance

• Trunk Traffic Statistics (MRTG 圖 )• Ping (RTT 値 )

– 部分 firewall 不允許 ping traffic• User Sensitive Traffic Statistics

– Delay for fetching png or pdf file» Cisco, hp, 3com, ubuntu*

10 Susan Yang, Computer Center, National Central University

2. 主要連外 Trunk 流量

校園 core router7609 接台聯大出國線路流量http://cygnus.cc.ncu.edu.tw/mrtg/7609/r7609_63

.html

中央大學到桃園區網流量http://cygnus.cc.ncu.edu.tw/mrtg/m160/m160_6

5.html桃園區網到 TANET 骨幹流量

http://mrtg.moe.edu.tw/backbone/ncu_cht.html

11 Susan Yang, Computer Center, National Central University

校園 core router 接台聯大線路流量

12 Susan Yang, Computer Center, National Central University

中央大學到桃園區網流量

13 Susan Yang, Computer Center, National Central University

桃園區網到 TANET 骨幹流量

14 Susan Yang, Computer Center, National Central University

2. 主要連外 Trunk 流量 (cont.)

TANET 出國流量變化http://mrtg.moe.edu.tw/internet/interne

t-pos-stm16.html台聯大出國流量變化 http://mrtg.ntcu.

net/ntcu-6509/211.76.255.1_po8_1.html

15 Susan Yang, Computer Center, National Central University

TANET 出國流量變化

16 Susan Yang, Computer Center, National Central University

台聯大出國流量變化

17 Susan Yang, Computer Center, National Central University

3. 國外網站檔案擷取延遲

效能比較網頁 : http://bunny.tyc.edu.tw/Ncu/browse.jsp

•NCU_Llink Collector– 140.115.11.131

•TYC_Link – 163.25.254.7

18 Susan Yang, Computer Center, National Central University

3. 國外網站檔案擷取延遲 (cont.)

2007-Aug & 2007-Sep8/17~8/31, 9/1~9/30

2007-Oct10/3 (NCTU_DORM 斷線 )10/9 (NCTU_DORM 復線 )10/15 (TWGATE 修正 routing path)10/16 ~ 10/31

19 Susan Yang, Computer Center, National Central University

20 Susan Yang, Computer Center, National Central University

21 Susan Yang, Computer Center, National Central University

22 Susan Yang, Computer Center, National Central University

23 Susan Yang, Computer Center, National Central University

24 Susan Yang, Computer Center, National Central University

4. 子程式功能

delay2.javaget() main()

wget_stat.shcrontabCall delay2 routinely

25 Susan Yang, Computer Center, National Central University

public void get(String theUrl, String filename) throws IOException { theUrl_name = theUrl; try { URL gotoUrl = new URL(theUrl); InputStreamReader isr = new InputStreamReader(gotoUrl.openStream()); BufferedReader in = new BufferedReader(isr); StringBuffer sb = new StringBuffer(); String inputLine; boolean isFirst = true; //grab the contents at the URL while ((inputLine = in.readLine()) != null){ sb.append(inputLine+"\r\n"); } //write it locally createAFile(filename, sb.toString()); } catch (MalformedURLException mue) { mue.printStackTrace(); } catch (IOException ioe) { throw ioe; } }

26 Susan Yang, Computer Center, National Central University

public static void main(String[] args) { Date date=new Date(); SimpleDateFormat day=new SimpleDateFormat("MMdd"); SimpleDateFormat df=new SimpleDateFormat("MMddHH"); // System.out.println(df.format(date)); String day_file=day.format(date); String cur_hour=df.format(date); String filename = "/home/Ncu_Link/" + day_file; try { BufferedWriter out = new BufferedWriter(new FileWriter(filename, true)); out.write("\n Hour " + cur_hour); long elapsedtime = System.currentTimeMillis(); out.write("\n From " + elapsedtime + " msec. || "); delay2 httpGetter = new delay2(); httpGetter.get(args[0], args[1]); out.write("\n To " + elapsedtime + " msec. || "); elapsedtime = System.currentTimeMillis() - elapsedtime; out.write("\n It takes " + elapsedtime + " msec." + theUrl_name + "\n"); out.close(); } catch (Exception ex) { ex.printStackTrace(); } }}

27 Susan Yang, Computer Center, National Central University

#!/bin/csh -fsetenv CLASSPATH '.'set batch_home=/opt/apache-tomcat-6.0.14/webapps/ROOT/Socketset flist=`/bin/ls $batch_home/lib/*.jar`foreach name ($flist) setenv CLASSPATH ${CLASSPATH}:${name}endcd $batch_homejava delay2 http://www.cisco.com/cdc_content_elements/images/homepage/ba_partnerLocato_blue.jpg cisco.jpgjava delay2 http://welcome.hp-ww.com/country/us/en/img/n4_welcome/smb/primary_smb_msg_730.jpg hp.jpgjava delay2 http://www.3com.com/other/pdfs/solutions/en_US/3com_505403-001.pdf 3com.pdfjava delay2 http://www.ubuntu.com/themes/ubuntu07/images/ubuntulogo.png ubuntu.png

28 Susan Yang, Computer Center, National Central University

Date 111900 It takes 922 msec.http://www.cisco.com/cdc_content_elements/images/homepage/ba_partnerLocato_blue.jpg

Date 111900 It takes 1797 msec.http://welcome.hp-ww.com/country/us/en/img/n4_welcome/smb/primary_smb_msg_730.jpg

Date 111900 It takes 19266 msec.http://www.3com.com/other/pdfs/solutions/en_US/3com_505403-001.pdf

Date 111900 It takes 1140 msec.http://www.ubuntu.com/themes/ubuntu07/images/ubuntulogo.png

Date 111904 It takes 1079 msec.http://www.cisco.com/cdc_content_elements/images/homepage/ba_partnerLocato_blue.jpg

Date 111904 It takes 859 msec.http://welcome.hp-ww.com/country/us/en/img/n4_welcome/smb/primary_smb_msg_730.jpg

Date 111904 It takes 12203 msec.http://www.3com.com/other/pdfs/solutions/en_US/3com_505403-001.pdf

Date 111904 It takes 1078 msec.http://www.ubuntu.com/themes/ubuntu07/images/ubuntulogo.png

29 Susan Yang, Computer Center, National Central University

4. 子程式功能 (cont.)

LinkPerf.javaExtract the data recorded per 4 hours per

iodAggregate the mean delay (msec)Output to another file

30 Susan Yang, Computer Center, National Central University

1101[Thu] {welcome.hp-ww.com=774, www.3com.com=13443, www.cisco.com=800, www.ubuntu.com=1115}<br>

1102[Fri] {welcome.hp-ww.com=847, www.3com.com=12825, www.cisco.com=815, www.ubuntu.com=1025}<br>

1103[Sat] {welcome.hp-ww.com=1074, www.3com.com=13578, www.cisco.com=853, www.ubuntu.com=1225}<br>

1104[Sun] {welcome.hp-ww.com=672, www.3com.com=15053, www.cisco.com=821, www.ubuntu.com=1071}<br>

1105[Mon] {welcome.hp-ww.com=824, www.3com.com=13240, www.cisco.com=837, www.ubuntu.com=1065}<br>

31 Susan Yang, Computer Center, National Central University

4. 子程式功能 (cont.)

Browse.jspOffer user to monitoring the aggregate d

ata recordsTimes_01.jsp

Draw the time-series graph according to the aggregate data records

Call jfreechart libraries•jfreechart-1.0.6

32 Susan Yang, Computer Center, National Central University

33 Susan Yang, Computer Center, National Central University

5. 結語

Tyc_Link/Ncu_Link 國外連線效能分析 使用 JAVA /JSP 語言

(1) 進度緩慢 , 卻能初體驗 JAVA• population & resources 的強大 .

(2) 雖然 JAVA,JSP 都 K 過 , 但沒有太多概念 .• ㄧ步ㄧ步驗證使用 Socket, File, regex(

pattern, match, scanner)• 實做小小的功能 , 很有趣 .

34 Susan Yang, Computer Center, National Central University

5. 結語 (cont.)

使用 Jfreechart Time seriese chartBar chartPie chart

能動態地 , 圖型化地呈現量測數據

35

Thank You!

top related