2007年11月27日 星期二

PHPGD

Def:
PHP script用來畫圖用的一個library.
(問:Library 和API到底在定義上和實際上有什麼不同?那天吃飯在討論,但是沒搞懂。)

Reference:
---------------
PHP:Image

中文指引
PHPGD.com

2007年11月26日 星期一

[Weekly Report]2007.11.17-2007.11.23

1.Reading Tasks:
1-1."Carrier Grade Voice over IP," p222-230
1-2.SIP.edu cookbook:From the beginning to User Agents section
But some parts of that still confuse me, like how to set the routing rules for SIP.edu mechanism.

2.Prepare for midterm of VoIP measurement.
3.Homework of Web Technology:
Study the search robot(a related paper or a search tool)
---
4.and fight against the cold virus....

2007年11月23日 星期五

OpenNMS on M$ Windows note

install instruction:link

tintin評:好裝

2007年11月22日 星期四

Web Teconology HW4-web robot study

Web Technology HW4

Web Robot Study


Paper Reading:

Monika R. Henzinger(Google Inc.),

“Hyperlink Analysis for the Web”,IEEE Internet Computing

本篇是由Goole網路公司的一位員工所撰寫的surey 型論文。主要提出一種搜尋引擎可使用的演算法。

Kleinberg’s Hyperlink-induced Topic Search(HITS) Algorithm

如何去定義一個連結(或稱網頁)與你所鍵入搜尋列的相關度?又如何定位一個連結的屬性為何?以本身使用搜尋引擎的經驗來說,在yahoo奇摩搜尋時,搜尋結果排序在前面的較為可能是其它搜尋引擎的此關鍵字相關頁面,而Google在排序搜尋結果時,會把較為人常用的網頁排在前頭。雖然不知道這兩大搜尋引擎排序的遊戲規則為何,但是對照這次作業所讀的論文,好像兩者有一定的相關。在論文中提出,有兩大類的連結類型。一類是Authority Links,一類是Hub LinksAuthority Links指的是此連結(也就是論文中所示之node節點)有許多的indegree nodes,且這些indegree nodes因著重要性不同會有不同權重;Hub Links則是outdegree nodes 很多,像Hub集線器般將很多網頁集合起來。這兩類型的連結在茫茫網海中都可以算是優質網頁,也是各大搜尋引擎會優先列出的搜尋結果。

The Key Power of HyperLink Analysis

這樣的分類突顯了網際網路上的資訊檢索與傳統的資料庫或資料收集系統的差異。在網際網路中,一個網頁是否有價值,不只和它本身的內容有關,更具判斷力的準則在於:它與其它網頁(尤其是那些具有指標性的網頁)的相關度如何?母以子(子連結)貴也好,子以母貴也好,想要成為一個好的網站就是要朝這兩個方向努力:成為一個收集某領域的資訊中繼站,或者,內容棒到讓權威性網站不得不為你多設一個超連結,讓你成為它們的延伸閱讀。

2007年11月18日 星期日

[Weekly Report]2007.11.10-2007.11.16

1.Reading Tasks:
1-1."Carrier Grade Voice over IP," p215-222
And I also review chapter 1~2 to prepare for themidterm of the class, VoIP Measurement

1-2. RFC3261 section 22
In order to learn the authentication of SIP, I study section 22. In the OpenSER configuration file, it has the implementation codes for the specification authentication. I am glad to find it. (It seems that I can "trace code"?!)

2.Implementation Tasks:
2-1. Learn how to update the MySQL table which is storing the mapping between username and phone number.

2-2.The SIP server can do the authentication work, but the users on the server cannot call others. The users can register and get the other one call him. I also catch the packets between the call flow. When the registered user calls out, no packet comes from the user agent.
(And I also tried two scenarios: using private IP and public IP. When I use public IP, I even can't register on the the SIP server with IP:163.22.20.154. The gnome package for VoIP,Ekiga said, "There is other program listening the port. You cannot make a SIP call.")
The set-up of SIP server seems so easy for others and it is so difficult for me. Why?(Work hours:over 16 hours this week...not including my co-worker's:wenjen)
==============================================
Aaron Solomon using FreeBSD 6.2
寄給 Hsiao-Ting
顯示詳細資料
11月27日
Dear Hsiao-Ting:

I am puzzled by what you wrote in your report: "When I use public IP, I
even can't register on the the SIP server with IP:163.22.20.154."
Because you did not specify the UA you were using, I was unable to check
that for you.

Please try to write down the problem which you encountered, so that we
can discuss how to solve it.

The key to solve a complicated problem is always "Divide and Conquer".
Try to isolate the problem. Try to find out whether the problem is on
the server or on the client. After you divide the problem into many
small pieces, you will find it easier to handle in the smaller scale.

With best regards,
Solomon
Nov. 27

2007年11月13日 星期二

OpenSER Note

1.修改/etc/default/openser
第一行改成yes

2.啟動
sudo /etc/ini.d/openser start

(啟動認證模組)
3.建立SQL table
shell script 檔放在/usr/sbin/openser_mysql.sh
/usr/sbin/openser_mysql.sh create
建立資料庫(表)

4.將openser.cfg檔案中下列行去掉註解
loadmodule "mysql.so"
loadmodule "auth.so"
loadmodule "atuh_db.so"
modparam("usrloc","db_mode",0)
modparam("auth_db","calculate_hal",yes)
modparam("auth_db","password_column","password")

5.將/etc/openser/openserctlrc中的HAS_SERWEB="yes"這行去掉註解註記,才能增加三個以上的subscriber.

6.openser在mysql中會建立使用者openser,若密碼鍵入openserro則為唯讀使用者,openserrw為可讀寫的使用者。

7.可看/var/log/openser.log來debug
(tail -F openser.log可即時更新log檔)

About User Agent:
  • X-lite:在Linux底下的X-lite常常在設定SIP server資訊時,發生記憶體區段錯誤,而且開啟時很慢。如果以console介面用指令開啟會比較穩一點。
    • 看了好幾篇X-lite Forum,發現作者對Linux版本開發並不積極,所以bugs很多應該…不意外。
  • Ekiga:只要換了Public IP就不能在163.22.20.154 SIP server註冊。
    • 要改監聽port
      • →gconf-editor(組態編輯器)→apps
      • →ekiga
      • →protocols
      • →sip
      • →listen_port
      • →改成非5060的值(range在5060~5100之間即可,我設成5070)
      • (11/27)改了也不行
    • (X-lite會自動找可用的監聽port)
  • Twinkle蠻好用的(Twinkle0.9)
    • System setting->listening port要改(e.g.5061)
  • CISCO 7960上記得Authentication name也要設置才可註冊。




Related Links:
官網安裝notes

2007年11月9日 星期五

[Weekly Report]2007.11.3-2007.11.9

1.Reading Tasks:
1-1."Carrier Grade Voice over IP," p209-215
1-2. RFC3261 section 13
1-3. Paper Study:
SIP.edu white paper
http://www.internet2.edu/sip.edu/docs/sip.edu-whitepaper1.pdf
It seems a interesting project. I want to say "SIP me "in the near future.
2.
2-1.The SIP Fluoroscope system works in the "ms11.voip.edu.tw"!!!

2-2.Establish a SIP server on my computers in the dormitory and lab. But there is something wrong with load authentication modules.(Everyone can make a call through my proxy server,so obviously the authentication failed.)

3.VoIP Homework
VoIP HW2-如何確保RTP header 中SSRC欄位的獨一性?
<http://hsiao-ting.blogspot.com/2007/10/voip-hw2-rtp-header-ssrc.html>
----
老師:請問我該學的是用PHP language畫像MRTG那種流量圖,還是動態的call-flow圖呢?最近在逛AJAX和PHP的網站,所以想先問一下哪些是我可以在survey時多看兩眼的主題。
=====================================
Aaron Solomon using FreeBSD 6.2
寄給 Hsiao-Ting, changyu, wenjen
顯示詳細資料
11月12日
On Thu, Nov 08, 2007 at 03:10:42PM +0800, Hsiao-Ting Wang wrote:
> 1.Reading Tasks:
> 1-1."Carrier Grade Voice over IP," p209-215
> 1-2. RFC3261 section 13
> 1-3. Paper Study:
> SIP.edu white paper
> http://www.internet2.edu/sip.edu/docs/sip.edu-whitepaper1.pdf
> It seems a interesting project. I want to say "SIP me "in the near future.

Check with Chang-Yu to understand which MySQL table is storing the
mapping between username and phone number, and learn how to update the
table in the future.

> 2.
> 2-1.The SIP Fluoroscope system works in the "ms11.voip.edu.tw"!!!

How about the one on "iPBX.ipv6.club.tw"?

> 2-2.Establish a SIP server on my computers in the dormitory and lab. But there is something wrong with load authentication modules.(Everyone can make a call through my proxy server,so obviously the authentication failed.)

Check with Wen-Jen to learn how to set up the authentication module
successfully.

> 3.VoIP Homework
> VoIP HW2-如何確保RTP header 中SSRC欄位的獨一性?
> <http://hsiao-ting.blogspot.com/2007/10/voip-hw2-rtp-header-ssrc.html>
> ----
> 老師:請問我該學的是用PHP language畫像MRTG那種流量圖,還是動態的call-flow圖呢?最近在逛AJAX和PHP的網站,所以想先問一下哪些是我可以在survey時多看兩眼的主題。

Try to learn "PHP GD" (http://www.php.net/gd) first, and then try to
install a MRTG on your own server. After that, we can discuss what
further tools you need to learn.

With best regards,
Solomon
Nov. 12

2007年11月6日 星期二

AJAX note

SAJAX
XAJAX

Ajaxian


To myself:
Need to practice coding skills about AJAX and become an Ajaxian. It is my task.

2007年11月5日 星期一

SIP Fluoroscope(SIP透視鏡)安裝程序

實作環境:
FreeBSD 5.4-RELEASE

前置作業:
架好SIP server(e.g.SER or OPENSER)並啟動服務
→在MySQL建立資料庫並資料表,以存放封包表頭內容(有table.sql檔案可匯入)
→在init.php中設定資料庫名稱及將登錄資訊設置妥當
  • $DB_HOST = 'localhost';
  • $DB_USER = 'martensite';
  • $DB_PASSWORD = '';
  • $DB_NAME = 'test';
→改各個檔案的路徑
(2007.11.6淩晨註:我稍稍改了檔案,結果不用改路徑就能用了。所以之前在耍笨。:D~不過,還是留著好了,因為此時此日程度很差的我可是研究了很久呢…還有,學長將檔案分成兩個不同的資料夾放的原因為何?是有特別用意或只是懶得改…不解!)
(11.6早上:我錯了!一定要放兩個資料夾,但現在還沒時間改…)
  • query.php
    • require_once("/home/martensite/www/sipmagnifier/init.php");
  • detail.php
    • require_once('/home/martensite/www/sipmagnifier/init.php');
  • dissector_lite.php
    • require_once('/home/martensite/www/sipmagnifier/init.php');
  • makepcap.php
    • require_once('/home/martensite/www/sipmagnifier/init.php');
  • mailpcap.php
    • $header .= "From: \"SIP Fluoroscope\"<martensite@ms11.voip.edu.tw>\n";//設定信件來源
啟動:
refer to this.

下載點:
完整檔案下載
(.zip檔,密碼請來信索取)

如安裝成功,成果如下列網站:
SIP Fluoroscope System
(請按Enable Live Update可得到即時封包訊息)

Todo List:
把路徑改回來
研究如何在開機時自動啟動此系統(in FreeBSD and Linux)

待學習

1.加強程式能力(PHP.C語言)
2.Linux OS的熟悉度
3.分散式系統相關研究(切勿閉門造車)
4.語文能力
5.表達能力(口語、寫作)
----
Detail
1.php畫圖(流程圖?call flow.動態→那PHPit就不行了...)
-phpGD
2.同時存取多個資料庫並作交叉比對

2007年11月4日 星期日

[Weekly Report]2007.10.27-2007.11.2

1.Reading Tasks:
1-1."Carrier Grade Voice over IP," p196-209
1-2.RFC3261 section 12~13.2(Finally,I choose to skip some parts which are too detailed)

2.After discussing with sepp,I got something clear that I misunderstood before. Rewrite a easy implementation flow chart for myself to check. This week, the SIP Fluoroscope system can catch SIP header
in the database of my own, but the web-oriented user interface with AJAX technology doesn't work. I believe that something I ignored led to the failure.

3.Web Technology Homework:
3-1.Web Teconology HW3- paper study about HTTP protocol performance enhancement
Study Paper:
Network Performance Effects of HTTP/1.1, CSS1, and PNG
<http://hsiao-ting.blogspot.com/2007/10/web-teconology-hw3-paper-study-about.html>

2007年11月1日 星期四

SIPp note

在Debian/Linux下安裝SIPp


前置作業:

On Linux/Debian systems (or any system where dpkg is installed), you can get all pre-requisites for SIPp by doing:

apt-get install gcc-c++
apt-get install ncurses-devel
apt-get install openssl-devel
apt-get install libssl-dev
apt-get install libnet1-dev
apt-get install libpcap0.8-dev
-----

2008/4/14
當初就寫了note,結果到上禮拜才真的安裝好。
不懂那時候在寫什麼意思的?