防火牆及通訊協定

同步教室系統,可以用在視訊會議、遠距教學、線上直播...等,與LMS學習系統整合,更可以提供學校、企業等特定用途。

而且它是獨立完整的視訊系統產品,相對免費的服務(eg. ZOOM );可以獨立在組織內、在自有伺服器上架設,而不用在公有雲上冒險,擔心有資安疑慮。

同步教室整合了我們幾個核心引擎協同合作而成;包含:

本文將對自行架設(Host)的通訊協定及防火牆設定說明。

FireWall 與通訊協定

架設同步系統, 需要在防火牆開通特定的 TCP/UDP port, 除了 HTTP用的 80, 443, 1935(FMS), 7443(sSIP); UDP 的部份則是 16384~32768FMS(1935) , 整理一下伺服器, 需要請網管開放對外port:

TCP ports 80, 443, 1935, and 7443

UDP ports in the range 16384 - 32768

以下對系統使用的 TCP/UDP port 說明

SIP(7443)

非 SIP規定, 同步系統本身作為內部 Proxy 用(所以在未來有可能會變動)。

FreeSwitch/HTML5 RTP streams (UDP: 16384~32768)

主要是RTP 使用, 雖然RTP標準沒有強制規定,但為了系統相容性採用 168384/32768(以下說明)。

RTP(Realtime Transport Protocol) can carry any data with real-time characteristics, such as interactive audio and video. RTP in general is described in RFC 3550. This range is not registered.Although there are no standards assigned, RTP is generally configured to use ports 16384-32768.

RTP主要是用於Internet上針對多媒體資料流的一種傳輸層協議。RTP協議詳細說明了在網際網路上傳遞音訊和視訊的標準資料包格式。  詳細的 RTP 在 IETF RFC 3550/3551內;

RTP

RTP-實時傳輸協議(Real-time Transport Protocol), 是針對在網際網路上進行媒體數據流傳輸而提出的,它的目的是提供時間訊息和實現串流同步;RTP/RTCP是實際傳輸資料的協議 RTP傳輸音訊/視訊資料,如果是PLAY,Server傳送到Client端,如果是RECORD,可以由Client傳送到Server。

整個RTP由兩個密切相關的協議組成:RTP資料協議和 RTP控制協議(即RTCP) 

RTCP

RTCP包括Sender Report和Receiver Report,用來進行音訊/視訊的同步以及其他用途,是一種控制協議。

以下是關於 RTP 使用 UDP Port 的相關資訊:

**see Are there specific ports assigned to RTP?(http://www.cs.columbia.edu/~hgs/rtp/faq.html#ports)

**https://tools.ietf.org/html/rfc6295 

RTP/RCTP

RTP can carry any data with real-time characteristics, such as interactive audio and video. 

The Real-time Transport Protocol is a network protocol used to deliver streaming audio and video media over the internet, thereby enabling the Voice Over Internet Protocol (VoIP).

Realtime Transport Protocol. RTP in general is described in RFC 3550. This range is not registered.

Although there are no standards assigned, RTP is generally configured to use ports 16384-32767.

see Are there specific ports assigned to RTP?(http://www.cs.columbia.edu/~hgs/rtp/faq.html#ports)


https://tools.ietf.org/html/rfc6295 RTP Payload Format for MIDI in Page 103

https://tools.ietf.org/html/rfc6295#appendix-D  在附錄D也有提到相同的

midi-field         = four-octet

                       ;

                       ; Large range accommodates Chapter M

                       ; RPN (0-16383), NRPN (16384-32767)

                       ; parameters, and Chapter X octet sizes.

midi-field代碼