CH1: Introduction
-
Data Communication
- Exchange of data between two devices via some form of transmission medium
-
Kinds of data communication
-
Simplex(單工)
- Only one of the two stations on a link can transmit(只有一方接收,另一方傳送)
-
Half-duplex(半雙工)
- Each station can both transmit and receive, but not at the same time(兩方都可以進行傳送,只是不可"同時"進行傳送或接收)
-
Full-duplex(全雙工)
- Both stations can transmit and receive simultaneously(兩方可同時進行傳送、接收)
-
-
Physical network
-
Interconnection of a set of devices capable of communication(連接不同裝置,使其彼此間可以互相溝通)
-
Type of connection
-
Point-to-Point
- Provide a dedicated link between two devices(在兩裝置間,直接用一條線連接)
- ex. ISDN(直接電纜連線)
-
Multi-Point
- More than two specific devices share a single link(提供一條線,多部裝置共用)
- ex. Ethernet(乙太網路)
-
傳送的手法、媒介可以不同,但Message的protocol、format必須保持一樣
-
-
Topology
-
Mesh Topology(網狀拓樸)
-
Every node has a dedicated point-to-point link to each other(每一節點都有自己專用的點對點連線)
-
Require N*(N-1)/2 links to onnect N devices
-
Strong Robustness(強堅固性、生存性高)
- If one line fails, only that line is affected, and all other links remain active(1條link不通,可走其他路徑)
- 路徑的各種組合,可以讓整體傳輸量上升
- 若link有閒置,可同時走不同link到相同的終點,進而提升傳輸量
- 可以直接溝通、低延遲
- Required more cable and line costs(需要多條cable,造成花費過高)
-
-
Star Topology(星狀拓樸)
-
Every node has a dedicated point-to-point link to the networking device(有一中心化節點替其他節點傳送)
-
Ease of adding/removing nodes and managing network(容易修正)
-
Highly depend on switch hub(生存性不佳,ex. 中心節點fail)
-
-
Bus Topology(匯流排拓樸)
-
Every node share the same limk to stitch to the networking device
-
Easy to install and re-configure
-
Diffiuult to isolate a fault, a fault or break in the bus cable stops all the transmission(低生存性,沒有備援線路可以傳輸)
-
-
Ring Topology(環狀拓樸)
-
Nodes are connected as a ring(has two directions for reaching the target node)
-
Singnal flows in one direction until reach destination
-
Need N cable links to connect N devices
-
Easy to install and re-configure
-
Difficult to isolate a fault(但優於Bus Topology)
-
困難點: 確認傳送路徑(方向),生存性優於Bus Topology,當1條link出錯,可走另一邊
-
Looping issue
- 假設有一不確定目的地的無義訊息進入,則會在ring結構中不斷移動,形成風暴(stormy) -> 占用band-width
-
-
Hybrid Topology(混合式拓樸)
-
-
Physical Network Transmission
-
Parallel Transmission(並行傳輸)
- ex. one 8 bits signal are sent together by 8 different lines
- 同時改變多條線電位 -> 產生不同訊號,有可能造成訊息傳送不穩或漏
-
Serial Transmission(序列傳輸)
-
ex. one 8 bits signal are sent one after another(follow order) by only one line
-
只有一條線,依序傳送各個bit的訊號給receiver
-
同樣以8條線以序列傳輸,可得到比較好的效率
-
Two types for Serial Transmission
-
Asynchronous Serial Transmission
- ex. telephone communication
- Data is sent one character at a time
- start bit + data + parity bit + 1, 1.5 or 2 stop bits(不像同步傳輸有精確的控管)
- Synchronization is reestablised for each other(同步與非同步間的差異在於是否在訊號中加上’‘註解’)
-
Synchronous Serial Transmission
- ex. Token Ring, SONET, Ethernet-common used in computer network
- Data is sent as a “block” of uninterrupted chars, using “frame” to encapsulate payload data(比非同步在外面多了一層信封)
- More cost-efficiency
- Frame裡面可以放細部資訊(可檢查是否漏包),每一段序號可套用"檢查碼"
-
-
-
-
-
Network Criteria
- Latency
- Elapse time between an inquiry(詢問) and a response
- Throughput
- number of bits per second - bps, Kbps,…
Reliability
-
Mean Time Between Failures(MTBF,平均故障時間)
-
Mean Time To Recovery(MTTR,平均復原時間)
-
Security(維護資料"正確性")
- Cyclic Redundancy Check(CRC, 循環冗餘校驗)
- Error Correction/ Correcting Code(ECC,錯誤修正碼,不用重傳,可在傳輸過程修正,缺點是資料肥大)
- Latency
-
Network Type(僅列出常用)
-
Local Area Network (LAN,區域網路)
-
Wireless Local Area Network (WLAN, 無線區域網路)
-
Storage Area Network (SAN, 儲存區域網路)
-
Wide Area Network (WAN, 廣域網路)
-
LAN與WAN的分界視參照物而定
-
OSI Model
- OSI has seven layers
- 7.Application Layer
- Human-computer interaction layer, where application can access the network services
- 處理應用程式,進而提供使用者網路應用服務
- ex. DHCP、FTP、HTTP、POP3
- 6.Presentation Layer
- Ensures that data is in a usable format and is where data encryption occures
- 透過應用層收到資料後,透過展示層可轉換表達方式
- ex. JPEG,MIDI
- 5.Session Layer
- Maintain connection and is responsible for controlling ports and sessions
- 這個層級負責建立網路連線,等到資料傳輸結束時,再將連線中斷
- ex. NetBIOS names
- 4.Transport Layer
- Transmits data using transmission protocal
- 傳輸層主要負責電腦整體的資料傳輸及控制
- ex. TCP, UDP
- 3.Network Layer
- Decides which physcial path the data will take
- 網路層定義網路路由及定址功能,讓資料能夠在網路間傳遞
- ex. IP, 路由器(Router)及Layer 3交換器(Switch)
- 2.Data Link Layer
- Defines the format of data on the network
- 主要是在網路之間建立邏輯連結,並且在傳輸過程中處理流量控制及錯誤偵測,讓資料傳送與接收更穩定。資料連結層將實體層的數位訊號封裝成一組符合邏輯傳輸資料,這組訊號稱為資料訊框(Data Frame)。訊框內包含媒體存取控制(Media Access Control,MAC)位址->讓對方主機辨認資料來源。
- ex. 網路卡、網路交換器(Switch)
- 1.Physical Layer
- Transmits the raw bit stream over the medium
- 定義網路裝置之間的位元資料傳輸,也就是在電線或其他物理線材上,傳遞0與1電子訊號,形成網路
- ex. 網路線、網路卡與集線器(Hub)
- 7.Application Layer
Basic Notions of Networking Component
- Repeater(訊號放大/延伸器)
- Hub(集線器)
- 以廣播方式傳遞封包,A電腦透過Hub傳封包給B時,其他連在Hub上電腦也會收到封包,但只有B會把封包接起來,其餘則會丟掉
- 半雙工(Half-duplex)
- Bridage(橋接器)
- 可不接電,單純結合網路線使其變長
- Converter(轉換器)
- Gateway(通訊閘)
- Network Interface Card (NIC, 網路卡)/Network Adapter(網路配接器)
- Switch Hub/Switch(交換器)
- Switch並不一直廣播,Switch會記錄封包中的MAC位址所以當電腦A傳送資料給電腦B時,其他電腦並不會也收到資料,而且這個時候別的電腦也可以同時互相傳送資料。
- 全雙工
- Router(路由器)
- 子網路送封包到另一子網路(ex.中央->台大)
- Transceiver(收發器/光電轉換器)
- 光訊號->電訊號
- Fiber-optic Cable(光纖線/光纖跳線)
- Unshielded/Shielded Twisted Pair Cable (UTP/STP Cable, 無遮蔽/有遮蔽雙絞線)
- 有遮蔽->接頭有特殊設計
Common Networking Component
-
Hub - broadcasting everything to other ports
-
Switch Hub (Switch) - be capable of learning ->有記憶功能(透過MAC位置)
- By function
- Unmanaged Switch(無網管交換器)
- Managed Switch(網管型交換器) -> 有管理介面控制
- By expandability
- Fixed Switch(固定式交換器)
- Stackable Switch(堆疊式交換器) -> 可串多台
- Chassis Switch(機箱式交換器)/Modular Switch(模組式交換器)
- Others
- Power over Ethernet(PoE,乙太供電交換器) -> 一條網路線同時供電和傳送封包
- Power Line Communication (PLC, 電力線通信橋接器,又稱電力線網路) -> 讓電源線可以傳送封包(具網路線功能),缺點:無法通過保險絲,故僅能用在內部
- Bypass Switch (旁路交換器) -> 可以偵測網路系統狀態
- By function
-
Router(路由器)
- By type
- Wired Router (路由器)
- Wireless Router (無線路由器)
- By location
- Core/Spine Router(核心路由器)
- Edge/Leaf Router(邊緣路由器)
- Software/Virtual Router(軟體/虛擬路由器)
- By performance
- Small Office Home Office Router(SOHO Router, 小型辦公室家用型路由器,俗稱IP分享器)
- Telecommunication-level Router(電信等級路由器)
- By type
Networking Cable
- With auto MDI/MDIX function in Gigabit Ethernet, it is not necessary to use Crossover Cable (跳線/跳接線) for device to device connection
- 現在的交換器技術讓使用者或網路管理員不必太在意直連線和交叉線,因為交換器擁有端口自動翻轉(線序自適應)特性,即 Auto MDI/MDIX 特性。
Ageing issue of UTP/STP
- Slow speed
- Degraded (full-duplex -> half-duplex)
- Link Status Flapping (error -> disable)
- Cyclic Redundancy Check Error (循環冗餘校驗錯誤)
- Packet Loss (掉包)
- Re-transmission
- No signal
Fiber-optic Cable(光纖線/光纖跳線)
-
Type
- Signal Mode (SM, 單模光纖) -> 長距離、單一波長、成本高
- Multi Mode (MM, 多模光纖) -> 短距離、多種波長、成本低
-
Connector (僅列出常見)
- Subscriber Connector / Square Connector / Standard Connector (SC)
- Lucent Connector / Little Connector / Local Connector (LC)
Ageing issue of Fiber-optic Cable
- Connector Problem
- Increasing CRC value
- Packet Loss
- In-completed transmission (ex. ok for small packet, failed on large one)
- Broken (ex.斷芯)
- Outdoor fiber
- Indoor fiber
- Skin damaged
Transceiver(收發器,光電轉換器)
- GigaBit Interface Converter (GBIC)
- Small Form-factor Pluggable transceiver (SFP)
- Enhanced Small Form-factor Pluggable transceiver (SFP+)
- XENAPK
- XFP
- X2…