中央大学对外连线状况.ppt

上传人:本田雅阁 文档编号:2706824 上传时间:2019-05-06 格式:PPT 页数:35 大小:1.60MB
返回 下载 相关 举报
中央大学对外连线状况.ppt_第1页
第1页 / 共35页
中央大学对外连线状况.ppt_第2页
第2页 / 共35页
中央大学对外连线状况.ppt_第3页
第3页 / 共35页
中央大学对外连线状况.ppt_第4页
第4页 / 共35页
中央大学对外连线状况.ppt_第5页
第5页 / 共35页
点击查看更多>>
资源描述

《中央大学对外连线状况.ppt》由会员分享,可在线阅读,更多相关《中央大学对外连线状况.ppt(35页珍藏版)》请在三一文库上搜索。

1、1,中央大學對外連線狀況,Nov 2007,2,中央大學對外連線,目的 建設足夠的網路頻寬 提升中央大學連接國內/國外網路效能 能與國內學術網路快速連線 能與國內商業網路快速連線 能與國外學術團體快速連線 能與國外商業網路快速連線 包括 IEEE 論文查詢,論文資料庫連線,3,中央大學對外連線(cont.),目前對外連線概況 TANET 連線 連接國內大專院校,高中職,國中小學. 連接國外線路 (2.5 G bps, 呈嚴重壅塞) TWAREN連線 連接國內大專院校,研究單位 共用國外 Ineternet 2 連線 (學術單位) 台聯大互連與國外線路 中央,交通,清華,陽明4 校互連網路 國外

2、專線 (1.6G bps, 提供良好研究資料下載與交流) Hinet 互連 快速連接國內商業網路,4,5,中央大學對外連線(cont.),6,中央大學對外連線(cont.),國外連線延遲 中央大學 台聯大出國 O(104 ) mini-seconds 桃園區網 TANET出國共用線路 O(106 ) mini-seconds,NCU Campus - 台聯大 出國專線 1001Tue =11942, =844, =1135 1002Tue =12320, =901, =1153 TYC Campus - 桃園區網 - TANET 出國專線 1001Mon =1850397, =1569, =1

3、731 1002Tue =2481171, =1555, =2347,7,桃園區網路技術研討會 台聯大出國線路效能評估,中央大學電算中心 楊素秋 2007年 11月 23日,8,報告大綱,1.研究動機 2.主要連外 Trunk 流量的變化 3.國外網站檔案擷取延遲的變化 4.子程式功能 5.結語,9,1.研究動機,台聯大出國線路 Cost 2 million per year Performance Trunk Traffic Statistics (MRTG圖) Ping (RTT値) 部分 firewall 不允許 ping traffic User Sensitive Traffic S

4、tatistics Delay for fetching png or pdf file Cisco, hp, 3com, ubuntu*,10,2. 主要連外 Trunk 流量,校園core router7609接台聯大出國線路流量 http:/cygnus.cc.ncu.edu.tw/mrtg/7609/r7609_63.html 中央大學到桃園區網流量 http:/cygnus.cc.ncu.edu.tw/mrtg/m160/m160_65.html 桃園區網到TANET骨幹流量 http:/mrtg.moe.edu.tw/backbone/ncu_cht.html,11,校園core

5、router接台聯大線路流量,12,中央大學到桃園區網流量,13,桃園區網到TANET骨幹流量,14,2. 主要連外 Trunk 流量(cont.),TANET出國流量變化 http:/mrtg.moe.edu.tw/internet/internet-pos-stm16.html 台聯大出國流量變化http:/ http:/bunny.tyc.edu.tw/Ncu/browse.jsp NCU_Llink Collector 140.115.11.131 TYC_Link 163.25.254.7,18,3.國外網站檔案擷取延遲(cont.),2007-Aug & 2007-Sep 8/17

6、8/31, 9/19/30 2007-Oct 10/3 (NCTU_DORM斷線) 10/9 (NCTU_DORM復線) 10/15 (TWGATE 修正routing path) 10/16 10/31,19,20,21,22,23,24,4. 子程式功能,delay2.java get() main() wget_stat.sh crontab Call delay2 routinely,25,public void get(String theUrl, String filename) throws IOException theUrl_name = theUrl; try URL go

7、toUrl = 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(

8、inputLine+“rn“); /write it locally createAFile(filename, sb.toString(); catch (MalformedURLException mue) mue.printStackTrace(); catch (IOException ioe) throw ioe; ,26,public static void main(String args) Date date=new Date(); SimpleDateFormat day=new SimpleDateFormat(“MMdd“); SimpleDateFormat df=ne

9、w 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 ela

10、psedtime = System.currentTimeMillis(); out.write(“n From “ + elapsedtime + “ msec. | “); delay2 httpGetter = new delay2(); httpGetter.get(args0, args1); out.write(“n To “ + elapsedtime + “ msec. | “); elapsedtime = System.currentTimeMillis() - elapsedtime; out.write(“n It takes “ + elapsedtime + “ m

11、sec.“ + theUrl_name + “n“); out.close(); catch (Exception ex) ex.printStackTrace(); ,27,#!/bin/csh -f setenv CLASSPATH . set batch_home=/opt/apache-tomcat-6.0.14/webapps/ROOT/Socket set flist=/bin/ls $batch_home/lib/*.jar foreach name ($flist) setenv CLASSPATH $CLASSPATH:$name end cd $batch_home jav

12、a delay2 http:/ ba_partnerLocato_blue.jpg cisco.jpg java delay2 http:/welcome.hp- primary_smb_msg_730.jpg hp.jpg java delay2 http:/ -001.pdf 3com.pdf java delay2 http:/ g ubuntu.png,28,Date 111900 It takes 922 msec.http:/ partnerLocato_blue.jpg Date 111900 It takes 1797 msec.http:/welcome.hp- imary_

13、smb_msg_730.jpg Date 111900 It takes 19266 msec.http:/ 001.pdf Date 111900 It takes 1140 msec.http:/ Date 111904 It takes 1079 msec.http:/ _partnerLocato_blue.jpg Date 111904 It takes 859 msec.http:/welcome.hp- mary_smb_msg_730.jpg Date 111904 It takes 12203 msec.http:/ Date 111904 It takes 1078 mse

14、c.http:/ 子程式功能 (cont.),LinkPerf.java Extract the data recorded per 4 hours period Aggregate the mean delay (msec) Output to another file,30,1101Thu welcome.hp-=774, =13443, =800, =1115 1102Fri welcome.hp-=847, =12825, =815, =1025 1103Sat welcome.hp-=1074, =13578, =853, =1225 1104Sun welcome.hp-=672,

15、 =15053, =821, =1071 1105Mon welcome.hp-=824, =13240, =837, =1065,31,4. 子程式功能 (cont.),Browse.jsp Offer user to monitoring the aggregate data records Times_01.jsp Draw the time-series graph according to the aggregate data records Call jfreechart libraries jfreechart-1.0.6,32,33,5.結語,Tyc_Link/Ncu_Link國外連線效能分析 使用 JAVA /JSP 語言 (1)進度緩慢,卻能初體驗JAVA population & resources的強大. (2)雖然JAVA,JSP都K 過,但沒有太多概念. 步步驗證使用 Socket, File, regex( pattern, match, scanner) 實做小小的功能,很有趣.,34,5.結語(cont.),使用 Jfreechart Time seriese chart Bar chart Pie chart 能動態地, 圖型化地呈現量測數據,35,Thank You!,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 其他


经营许可证编号:宁ICP备18001539号-1