2006/03/25

Homework 03/24/2006

7.
網路購物 例如 消費者可透過瀏覽器上的下拉式選單 選擇自己所欲購買的周邊產品和數量
選擇完畢後再按下瀏覽器上的確定按鈕 然後透過stdin 及 stdout動作 使用者即可獲得所欲購買產品的數量、單價和總價

留言板 會員註冊 當因使用者輸入的資料不同有所變動 如填地址 選擇台南縣 便會跳出有關台南縣的鄉鎮市給使用者選擇

這是靜態網頁難以做到的

8.因為輸出到使用者瀏覽器上的文件 並不是事先存在www伺服主機上的文件

而是因使用者選擇要瀏覽的項目及需求 最後會產生不同的內容在使用者地網頁上

所以網頁內容是活的 並非固定的 稱作dynamic HTML (DHTML)


9.因為所有需要處理的完成之後 輸出將會被轉成HTML格式的文件 傳回使用者瀏覽器上



http://www.flickr.com/ Flickr裡面很多都用了AJAX的技術

http://projects.backbase.com/RUI/shop.html

http://www.zagodesign.com/




2006/03/03

Homework 3-3-2006

1.

Network Address Translation簡稱NAT
NAT可轉換區域網路中的IP位址 因此只有一個位址會送出網際網路 真實IP位址不會暴露於網際網路之上
在防火牆之後上網的所有電腦外表看起來像是使用同一組IP一樣


作者猜測至少有兩種可能性 在login時 決定Nat 和 firewall的information
We believe that Skype client uses its
version of STUN [5] protocol to determine the type of NAT or
firewall it is behind.
(第十頁 右邊結論)


ordinary host 可以使用來傳遞聲音訊息
而任何一個有足夠頻寬 CPU記憶體的node 有機會成supernode
skype客戶端無法避免自己成危supernode
supernode

ordinary host進入Skype login server後 連上superode

each Skype client is always connected to a SuperNode (any Skype client can become a SuperNode, the SuperNode is acting as a hub). SuperNodes are always on routable open IP addresses. When a call is set up the established TCP connection with the SuperNode is used to signal that a call is coming. Dependent on the firewall status of the client the data stream is set up either as UDP (if firewall allows) or in worse case as outgoing TCP which is almost always allowed. If both clients are only allowed to do outgoing TCP calls are routed through another peer."

In other words you get to know there is a call for you and you make the outgoing connection to a known supernode to meet the call. Neat.



2.

Scalability 當系統規模改變時 能持續發揮效能 提供服務

如果當使用者越多 系統的performance會隨之調整 使得系統能

維持一定的效能 否則容易造成當機和暫時停擺的現象

每500個node會形成一個supernode 並逐漸增加


參考資料:An Analysis of the Skype Peer-to-Peer Internet Telephony Protocol
How does Skype get through Firewalls and NAT Routers?

Lab Tongwen 同文堂


Cookie

Lab Clean Language




我把其中一個關鍵字設定成 F irefox 所以打入F irefox 通通變成***












Cookie

Lab Accessibility by GreaseMonkey







Cookie

Lab Greasemonkey


Cookie

2006/03/02

Homework 2-24-2006 Lab Skype

姓名:莊曜陽 9226347
頻寬:2M/256K
配備:AMD Athlon(tm) 64 Processor 3000+ 1.81 GHz, 1.00GB 的 RAM

姓名:陳昱佑 9226346
頻寬:1M/512K
配備:AMD Athlon(tm) XP 2500+ 1.84GHz, 512MB 的 RAM

莊 曜陽 - 結論:通話連線品質十分穩定,相較於 MSN 語音的 lag,Skype 幾乎沒有任何延遲現象,且聲音更來的真實。曾經在電子科技講座課聽到,Skyp 會佔掉很大的頻寬,所以來演講者的那間公司全面禁止使用 Skype,不過測試時我把 BT 一併打開,對兩個程式似乎都沒有任何影響。

陳昱佑 - 結論:我們有跟 MSN 的語音功能一起比較過,Skype 的很穩定,一點 lag 的感覺都沒有,而且連上去後 立即可以撥通,而 MSN 的話,有點小 lag,沒有及時的感覺,連上去後也無法立即撥通。