2017/09/02

OSI Model 開放式系統互聯通訊參考模型

OSI - Open System Interconnection
Open System Interconnection reference model 開放式系統互聯通訊參考模型 (Wikipedia/維基百科)

Layer 7 - Application 應用層

Layer 6 - Presentation 表達層/展示層

Layer 5 - Session 會議層/交談層

Layer 4 - Transport 傳輸層
Example: TCP (Transmission Control Protocol). Connection-oriented links for conveying segments of data.
Example: UDP (User Datagram Protocol). Connectionless transmission model. For Multimedia traffic.

Layer 3 - Network 網路層 Example: IP (Internet Protocol). Data transported as packets.

Layer 2 - Data Link 資料鏈結層
Logical Link Control (LLC) sublayer
Media Access Control (MAC) sublayer - e.g. CSMA/CD (802.3), CSMA/CA (802.11)

Layer 1 - Physical 實體層

References:

Communication Systems (4th Edition) by Simon Haykin, Wiley 2001, p11-12.
What is the difference between TCP and IP protocols?
Transmission Control Protocol(Wikipedia)
User Datagram Protocol(Wikipedia)
OSI七層簡介

2017/08/23

Tensor 張量

Array of numbers that may have
- scalar 純量
- vector 向量
- matrix 矩陣
- more dimensions.

Refernces

Lecture slides for Chapter 2 of Deep Learning, Ian Goodfellow
張量 (Tensor) - 金門大學陳鍾誠的網站

2017/08/19

Data Center Locations - Google, Akamai, CloudFlare, Amazon CloudFront

Below data are recorded on August 19, 2017

Google - https://www.google.com/about/datacenters/inside/locations/index.html

  • USA x 7
  • Asia x 2 (Taiwan, Singapore)
  • Europe x 4

      Taiwan 台灣 - Chunghua County 彰化縣

Akamai - https://www.akamai.com/us/en/locations.jsp

      Taiwan 台灣 - Taipei 台北市

CloudFlare - https://www.cloudflare.com/network/

  • 116 data centers

      Taiwan 台灣 - Taipei 台北(亞洲第28個/全球第77個data center)

Amazon CloudFront Edge InfraStructure - https://aws.amazon.com/cloudfront/details/


  • 22 edge locations / 11 regional edge caches


      Taiwan 台灣 - Taipei 台北

2017/07/31

Rectifiers 整流器

rectifiers 整流器

half-wave rectifiers 半波整流器
full-wave rectifiers 全波整流器

diode rectifier 二極體整流器

2017/07/24

Matlab: Play Demo Sounds

It is very easy to play some demo sounds with Matlab commands using the sound function.

To play a female speaker saying 'Matlab' type:

>> load mtlb
>> sound(mtlb,Fs)

Note that the workspace contains mtlb and Fs, so sound(mtlb,Fs) is called.

You may clear the workspace with the the clear command:

>> clear

To play a snippet of Handel's Hallelujah Chorus, type:

>> load handel
>> sound(y,Fs)

There are also other sounds you may load:

load chirp
load gong
load laughter
load train

References:

Formant Estimation with LPC Coefficients
Record and Play Audio
Sound + FFT

2017/06/13

Vectors 向量

dot product / scalar product / inner product / projection product 點積/內積/純量積 a·b
A·B = |A| |B| cos(θ)
AB = |A| cos(θ)

For vectors a = (a1, a2, ..., an) and b = (b1, b2, ..., bn) ,

a·b = a1b1 + a2b2 + ... + anbn

For example, vectors a = (1, 2, 3) and b = (0, 4, 5),

a·b = 1×0 + 2×4 + 3×5 = 23

Matlab code:

>> a = [1 2 3];
>> b = [0 4 5];
>> dot(a,b)

ans =

    23

cross product/vector product 點積/向量積 a×b

參考資料

內積與外積