An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only.Download presentation by click this link.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.
Router 通訊協定架構 Host A Host B Application Application Presentation Presentation Session Session Router Function Transport Transport Network Network Network Data Link Data Link Data Link Data Link Physical Physical PHY PHY LAN 2 LAN 1
Routers 的運作 • 讀取收到的 Packet 上的 IP 位址,查詢路由表(Routing Table),以得知應從那 一個 Port 將 Packet 送出。 • Router 必須了解兩個協定的 PHY、Data Link Layers,以便和兩個子網路溝通和進行封包的轉換。 • 依據 Routing Table,Router 會選擇到 Destination 有最短路徑的網路介面,將 Datagram 傳給 Next Hop。
Autonomous System • 自主系統、網路自治區 (Autonomous System、AS) • A group of routers that share routing information between them. • Autonomous System 是自然形成,自己管理自己的一個網路系統。 • 每一個 Autonomous System 都有一個編號:自治號碼。 • TANET:1659、Hinet:3462、Seednet:4780、FETnet:9674、ETWebs:7481 。
Routing Protocols • 各 Autonomous System 自行決定自己的 Routing Paths。 • 兩大類的 Routing Protocols: • EGP(Exterior Gateway Protocol):用於讓 Autonomous Systems 間互相交換 Routing Information 的 Protocol。 • IGP(Interior Gateway Protocol):用於 Autonomous System 內部 Routers 交換路徑的 Protocol。
內部使用 IGP 1 使用 EGP Autonomous System 1 Autonomous System 2 內部使用 IGP 2 Border gateway EGP(1/2) • Exterior Gateway Protocol(外部選徑協定) • 用於讓 Autonomous Systems 間互相交換 Routing Information。
內部使用 IGP 1 使用 EGP Autonomous System 1 Autonomous System 2 內部使用 IGP 2 IGP(1/2) • Interior Gateway Protocol(內部選徑協定) • IGP refers to any algorithm that interior routers use when they exchange network reachability androuting information.
Propagation • 透過一層一層的傳送,更新 Router 資訊。 A 6. 更新 A,B 的 Routing Table 5. C 傳送更新後的 Routing Table 2. 更新 D 的 Routing Table B C D 1. 新增一個 D 的網路介面聯到 Network 1 4. 更新 C 的 Routing Table 3. D 傳送更新後的 Routing Table
NET17 NET42 NET 4 NET 2 NET 1 NET30 NET24 Network Topology (Original) 4 2 3 2 5 1 L 5 1 M 4 Q 3 1 6 2 A A 0 3 B 7 1 4 2 6 2 5 2 8 a b 4 3 4
An Initial Routing Table Destination Distance Route Net 1 0 direct Net 2 0 direct • This is the routing table for a router A. • Each entry contains the IP address of network and an integer distance to the network.
A’s Routing Table at Time t Destination Distance Route Net 1 0 direct Net 2 0 direct Net 4 8 Router L Net 17 5 Router M Net 24 6 Router B Net 30 2 Router Q Net 42 2 Router B
NET21 NET42 NET17 NET 2 NET 1 NET 4 c NET30 NET24 Network Topology (New) 4 2 3 2 5 1 L 5 1 M 4 Q 3 1 6 2 A A 0 3 B 7 1 4 2 6 5 4 2 5 2 Y 8 a Z 3 b 4 3 4
Routing Message from B to A Destination Distance Net 1 2 Net 4 3 Net 17 6 Net 21 4 Net 24 5 Net 30 3 Net 42 3 Add a new router Z. Y is crashed.
Modified Routing Table Destination Distance Route Net 1 0 direct Net 2 0 direct Net 4 8 4 Router L B Net 17 5 Router M Net 24 6 Router B Net 30 2 Router Q Net 42 2 4 Router B Net 21 5 Router B A’s Routing Table at Time t+1 Destination Distance Net 1 2 Net 4 3 a shorter distance Net 17 6 Net 21 4 a new destination Net 24 5 Net 30 3 Net 42 3 Its next hop is B The B’s advertisement at Time t
Link Status Algorithm • 又稱為 Link State、Shortest Path First(SPF)。 • 設定時每一 Router 都要先有一份 Complete Topology Information。 • Router 只送出自己與 Neighbors 間的 LinkStatus給其他 Routers。 • Link is Up:Neighbor 與 Link 都存在。 • Link is Down:Link 中斷。
Tasks of Link Status • Router 定期與 Neighbor 交換訊息,以確認對方 Alive 或 Reachable。 • 每一個 Router 定期送出它自己的 Link Status給所有其他 Router。 • 其他 Router 收到並使用此資訊修改自己的 Map of Internet。並以 Dijkstra Shortest Path Algorithm 重新計算到每個 Destination 的 Shortest Path。
Propertiesof Link Status • 有整個 Network Topology 的資訊 • 大家收到的訊息都相同 • Easy to debug • Guarantee to converge (also fast) • 需要有快速 processor 與大量 memory 以進行計算 • Link Status 只靠每個 router 的 links,與網路大小無關Scaling
Examples of Link Status • OSPF(Open Shortest Path First) • IS-IS(Intermediate System to Intermediate System) • EIGRP(Enhanced Interior Gateway Routing Protocol) • NLSP
Hybrid • 混合Distance Vector 與 Link Status • Examples of Hybrid: • IS-IS(Intermediate System to Intermediate System) • EIGRP(Extended Interior Gateway Routing Protocol) • 收斂快但不需較大的 Memory與Computing 。
BGP Message Headers 32bit • Marker : detect the loss of synchronization : and authenticate incoming message • Length : total length of message • Type : type code of message Marker Length Type
Features of BGP(1/2) • Inter-autonomous system communication • Not pure distance vector, also not pure link state protocol. • Coordination among multiple BGP speakers • Policy support • Propagation of Reachability Information • Next-hop paradigm
Features of BGP(2/2) • Path Information • Incremental Updates • Route Aggregation • Reliable Transport • Support for classless addressing • Authentication
Hello • Original Core Network (56kbps NSFNET)使用的 IGP。目前已走入歷史。 • 屬於 Distance Vector Protocol。 • 以 Delay 做為 Metric。 • 2 Functions of Hello: • It synchronizes the clocks among these routers. • It allows each router to compute the distance of the shortest delay path to destinations. • 使用 Timestamp 求 Round Trip Delay
Instability • Problem of using delay metric is instability. • Delay measurements are not fix values (i.e., it changed because of many conditions.) • Hardware clock drift (漂移), CPU load during measurement, link-level synchronization • Using hold down, threshold, K-out-of-N rules, Hello still has instable problem. • Example: satellite vs. serial lines
Satellite vs. Serial Lines • Satellite: high capacity, large delay • Serial line: low capacity, small delay • Someone sends a lot of data on serial line. • Serial line traffic load and delay :change to use satellite. • Serial line traffic load and delay :change to use serial line. satellite Serial line