Network & Protocols
  • Introduction
  • Chapter1: protocol for industrial
    • 1.1.modbus
  • Chapter2: Protocol for IOT
    • 2.1.MQTT
      • 2.1.1.Introduction: What is MQTT?
      • 2.1.2.Install mosquitto on Windows 7
      • 2.1.3.Install M2Mqtt by Nuget, Example code
  • Chapter3: Protocol for network
    • 3.1.網路模型與協定
    • 3.2.HTTP
      • 3.2.1.Basic concept
      • 3.2.2.Session & Cookie
    • 3.3.TCP/IP
    • 3.4.UDP
    • 3.5.子網路(subnet)
    • 3.6.子網路間的通訊
    • 3.7.路由
  • Chapter4: Protocol for Wireless network
    • 4.1.BLE, IBeacon
  • Chapter5: Cellular and Wifi
    • 5.1.Cellular module
      • 5.1.1.AT Command
      • 5.1.2.各家常用模組
        • 5.1.2.1.Cinterion
          • 5.1.2.1.1.PLS8-E
          • 5.1.2.1.2.PLS8-X
          • 5.1.2.1.3.PLS8-US
        • 5.1.2.2.Sierra
          • 5.1.2.2.1.MC-7354
        • 5.1.2.3.Telit
          • 5.1.2.3.1.LE910-EUG
          • 5.1.2.3.2.LE910-NAG
      • 5.1.3.用儀器測試Throughput
    • 5.2.MBIM for Windows
    • 5.3.Wireshark
      • 5.3.1.Capture filter
      • 5.3.2.Cli command
      • 5.3.3.Monitor mode
      • 5.3.4.Work with ssh
    • 5.4.LTE
      • 5.4.1.Introduction
      • 5.4.2.Types of networks
      • 5.4.3.Elements of access and core networks
      • 5.4.4.What's LTE different?
      • 5.4.5.LTE訊息傳輸
      • 5.4.6.3GPP (Generation Partnership Project)
      • 5.4.7.FDD, TDD, Half Duplex FDD
      • 5.4.8.Beared Types
Powered by GitBook
On this page

Was this helpful?

  1. Chapter3: Protocol for network

3.7.路由

Previous3.6.子網路間的通訊NextChapter4: Protocol for Wireless network

Last updated 5 years ago

Was this helpful?

  • 路由協定 (routing protocol)

    • 負責替網路設備尋找最佳路徑已讓資訊順利到達目的地, 為網路層(network layer)所負責的工作

  • 路由表(routing table)

    • 靜態路由(static routing): 人工將所有網路的相關資訊加入網路設備的路由

    • 動態路由(dynamic routing): 藉由網路設備間彼此路由表資訊的交換

    • 路由表基本的五個屬性:

      • 1.網路目的地(network destination): 封包的目的地

      • 2.網路遮罩(network mask): 計算目的位址的網路位址

      • 3.閘道(gateway): 記錄封包透過哪個閘道到目的位址

      • 4.介面(interface): 記錄封包透過哪個介面到目的位址

      • 5.計量(metric): 數值越小, 表示該路徑(route)到目的網路越近或越佳

  • mac查看路由表:

    • netstat -nr

    • netstat -i

    • traceroute

  • 最長路由規則 (The Longest Match Routing Path):

    • 當路由表中有多個項目符合條件, 但僅能選擇一個符合性最高的路徑

      將目的地與netmask做AND運算後得出的目的位址, 挑選符合長度最長的路徑

  • 轉送封包的過程:

    • 1.利用封包中的目的位址與本結點的路由表進行計算與比對, 找出所有符合目的網路的路由項目

    • 2.所有符合目的網路的路由項目中, 依據"最長路由規則", 選出符合的唯一一個項目

    • 3.轉送