ubuntu路由器聯網
路由器簡介 (Introduction to Router)
Routers are network layer devices. Data on the network layer is known as packets. Routers work to forward packets from one network to another. Routers also maintain the address table.
路由器是網絡層設備。 網絡層上的數據稱為數據包。 路由器負責將數據包從一個網絡轉發到另一個網絡。 路由器還維護地址表。
One thing you should always keep in mind is that the Router does not send a packet to the destination host but rather to the destination network.
您應始終牢記的一件事是,路由器不會將數據包發送到目標主機,而是發送到目標網絡。
For example, a host is sending data to another host that is in another network. Router's only situation in this is that it receives data from a network and sends it to another network. After this, the responsibility of switching the data to the host is to switch.
例如,一臺主機正在將數據發送到另一個網絡中的另一個主機。 路由器唯一的情況是它從網絡接收數據并將其發送到另一個網絡。 此后,將數據切換到主機的責任就是切換。
As we told you earlier, routers routing tables maintain. In a simple routing table, the IP address of the final destination network of a packet is the IP address of the next network, and the routing is maintained.
如前所述,路由器路由表得以維護。 在一個簡單的路由表中,數據包的最終目標網絡的IP地址是下一個網絡的IP地址,并且路由被維護。
Final destination network is the network in which destination host is sent for which data has been sent. Next network is a network that is between the source network and the destination network. Such networks are also called next hop. And the routing metrics are used to find the shortest path to the final network.
最終目標網絡是在其中發送了數據的目標主機的網絡。 下一個網絡是源網絡和目標網絡之間的網絡。 這樣的網絡也稱為下一跳。 路由度量用于查找通往最終網絡的最短路徑。
路由器的工作 (Working of Routers)
The router is a Hardware Networking Device. It is used in the network. Whenever there is a data that travels from one network to another in the form of a Packet then the Router receives the Packet data and forwards the Destination Device after analyzing any hidden information in the Data Packet. This Networking Device is used to add different Networks via Wire or Wirelessly in Upsa. However, it is also used at home, which we call the Wireless Router with which you access the Internet.
路由器是硬件網絡設備。 在網絡中使用。 每當有數據以數據包的形式從一個網絡傳播到另一個網絡時,路由器都會在分析數據數據包中的任何隱藏信息之后接收數據包數據并轉發目標設備。 此網絡設備用于在Upsa中通過有線或無線方式添加不同的網絡。 但是,它也可以在家庭中使用,我們稱之為無線路由器,您可以使用該路由器訪問Internet。
As you would know, Computer network follows the OSI Model. The router works on the Network Layer from the 7 Layer of the OSI Model. This device is made from Hardware and Software. It has an Operating System, CPU, Memory Storage and some I / O Ports. This Operating System is not like Windows or MAC. Routing Algorithm and Routing Table are stored in Storage Memory.
如您所知,計算機網絡遵循OSI模型。 路由器從OSI模型的7層在網絡層上工作。 該設備由硬件和軟件制成。 它具有操作系統,CPU,內存存儲和一些I / O端口。 該操作系統不同于Windows或MAC。 路由算法和路由表存儲在存儲存儲器中。
It is found through the Routing Algorithm and Routing Table that the input packet has been received. To send that packet to which network or to the corner device which analyses it.
通過路由算法和路由表可以發現已收到輸入數據包。 將數據包發送到哪個網絡或分析它的角落設備。
For example, let's consider a courier boy as a router. Courier boy receives the courier from the courier office. After this, he notes the address and name on Parcel. After which he decides which place and where to give Parcel. After that, he sends the Parcel to the receiver's address. Now let’s understand this example through routers’ perspective.
例如,讓我們考慮一個快遞男孩作為路由器。 快遞員男孩從快遞員辦公室接收快遞員。 此后,他在包裹上注明了地址和名字。 之后,他決定在哪個地方寄包裹。 之后,他將包裹發送到收件人的地址。 現在讓我們通過路由器的角度來理解這個例子。
According to the above example, "Parcel" is your data packet. Like the courier, boy finds the address. Similarly, Router also selects the Shortest Path to detect the Receiver Address of Packets by the Routing Table after which it is sent. As there is a list of an address near the courier boy, there is also a description in the Routing Table.
根據以上示例,“包裹”是您的數據包。 像快遞員一樣,男孩找到了地址。 類似地,路由器還選擇最短路徑以通過路由表檢測數據包的接收方地址,然后發送該最短路徑。 由于快遞員附近有一個地址列表,因此路由表中也有描述。
路由器使用的協議 (Protocols used with Routers)
Routers use 2 types of protocols to forward data to a network:
路由器使用兩種類型的協議將數據轉發到網絡:
Routed protocols
路由協議
Every device in such protocols is given an IP address manually. Only then devices know each other's location. An example of this type of protocol is the IP (Internet Protocol). Data is sent through such protocols.
此類協議中的每個設備都會手動獲得一個IP地址。 只有這樣,設備才能知道彼此的位置。 此類協議的一個示例是IP(Internet協議)。 數據通過此類協議發送。
Routing protocols
路由協議
Such protocols are used between routers. With the help of these, routers update their routing tables. When a router receives information from a new network, it updates it in its routing table and this information updates with other routers automatically with the help of routing protocols. In the example of routing protocols, the main name is EIGRP, RIP, and OSPF.
這些協議在路由器之間使用。 借助這些,路由器可以更新其路由表。 當路由器從新網絡接收信息時,它將在其路由表中對其進行更新,并且該信息將在路由協議的幫助下與其他路由器自動更新。 在路由協議示例中,主要名稱為EIGRP,RIP和OSPF。
翻譯自: https://www.includehelp.com/computer-networks/routers-and-its-protocols.aspx
ubuntu路由器聯網