Content delivery network – Cloudflare

相信不少人都聽過CDN這個服務,前兩天把幾個網頁都啟動了這個功能,服務是由Cloudflare提供的。
CDN是用”Anycast”技術,即不同地區的伺服器但用同一組IP,在WAN的層面中找最短的路徑,從而達致反應和速度提升的效果。CDN伺服器會把固定的網頁內容做cache,然後replicate到各地的CDN伺服器。

比如當新加坡的用戶訪問本網時,因為新加坡有Cloudflare的CDN server,所以路由就會自動訪問最近的CDN server取得本網內容。

我分別用了公司位於新加坡,澳洲及香港的網絡做測試,結果如下:
CDN

實驗證明,使用各地的機器到本網的延遲值都低於10ms,Cloudflare的CDN server還遍佈全球各大洲份。Cloudflare不但可以隱藏自己伺服器的IP,而且還有DDOS protection的功能!可見作用十分大,各位可以值得一試。

Implement MRTG bandwidth monitor on Server 2012 @wallaceho.com

Previously I got the same installation on Linux system, it is much more easy to install on Linux than Windows as there is already some packages which has already configure and installed the prerequisites software. Somehow in Windows environment, there is no SNMP service started default and some of the configuration was not done automatically.

First we need to install the PERL run-time first as the MRTG needs to be run on PERL script. For Example ActivePerl 5.8.8 from ActiveState http://www.activestate.com/store/activeperl/download/

After that we have to download the latest MRTG program source from http://oss.oetiker.ch/mrtg/pub

Run the command “perl mrtg” to check whether the perl run-time installed properly.

Install SNMP service on the Windows 2012 server

Configure the SNMP security (Set value to READ ONLY) and community name

Generate the config file by command  “perl cfgmaker [email protected] –global “WorkDir: D:\Wallace” –output mrtg.cfg” *The 127.0.0.1 should be the SNMP device IP and the WorkDir is which the config file path that you wanna generate to.

After that, a config file should be generated.

Finally, run the command “perl mrtg mrtg.cfg” to run the mrtg program to generate those HTML and graphic files.

You may need to setup a schedule job to run the command in every 5 minutes interval.

Implement IPv6 on Server 2003 @wallaceho.com

In Windows Server 2003 environment, there is no IPv6 feature installed, so that it need to install manually.

Simply click on the network protocol page on the network card proprieties, install the IPv6 feature.

After that, if your ISP support IPv6, you can get a IPv6 public address.

Add record type “AAAA” with the IP on the host record on your name server and try to ping the address see if it is success.

From IIS6, it support IPv6 connection, so that just simply setup the IIS configuration and start the server.

You can get on the page now 🙂 If you can get on my page and get your IPv6 IP, that’s mean your network support IPv6 feature.


ipv6 ready