ubuntu路由器聯網_路由器及其協議簡介| 聯網

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路由器聯網

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/379545.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/379545.shtml
英文地址,請注明出處:http://en.pswp.cn/news/379545.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

XPath學習:軸(5)——descendant-or-self

XPath 是一門在 XML 文檔中查找信息的語言。XPath 可用來在 XML 文檔中對元素和屬性進行遍歷。 XPath 是 W3C XSLT 標準的主要元素,并且 XQuery 和 XPointer 同時被構建于 XPath 表達之上。 推薦一個挺不錯的網站:http://www.zvon.org/xxl/XPathTutorial…

linux設備驅動開發---平臺設備驅動程序

文章目錄1 平臺驅動程序2 平臺設備2.1 資源和平臺數據1 設備配置---廢棄的舊方法資源平臺數據聲明平臺設備2 設備配置---推薦的新方法3 設備、驅動程序和總線匹配OF風格ACPIID表匹配匹配平臺設備的名字和平臺驅動的名字平臺設備和平臺驅動程序如何匹配4 Platfrom架構驅動程序有…

標題:乘積尾零

標題:乘積尾零 如下的10行數據,每行有10個整數,請你求出它們的乘積的末尾有多少個零? 5650 4542 3554 473 946 4114 3871 9073 90 4329 2758 7949 6113 5659 5245 7432 3051 4434 6704 3594 9937 1173 6866 3397 4759 7557 3070…

Robots.txt指南

Robots.txt指南當搜索引擎訪問一個網站時,它首先會檢查該網站的根域下是否有一個叫做robots.txt的純文本文件。Robots.txt文件用于限定搜索引擎對其 網站的訪問范圍,即告訴搜索引擎網站中哪些文件是允許它進行檢索(下載)的。這就是大家在網絡上常看到的“…

fwrite函數的用法示例_C語言中的fwrite()函數(帶有示例)

fwrite函數的用法示例C中的fwrite()函數 (fwrite() function in C) Prototype: 原型: size_t fwrite(void *buffer, size_t length, size_t count, FILE *filename);Parameters: 參數: void *buffer, size_t length, size_t count, FILE *filenameRetu…

標題:遞增三元組

標題&#xff1a;遞增三元組 給定三個整數數組 A [A1, A2, … AN], B [B1, B2, … BN], C [C1, C2, … CN]&#xff0c; 請你統計有多少個三元組(i, j, k) 滿足&#xff1a; 1 < i, j, k < NAi < Bj < Ck 【輸入格式】 第一行包含一個整數N。 第二行包含N個整…

伙伴算法、slab機制、內存管理函數

文章目錄1 伙伴算法頁框操作alloc_pages()2 slabslab機制要解決的問題使用高速緩存3 內存管理函數kmallockzallocvmallocvzalloc區別參考文章內核使用struct page結構體描述每個物理頁&#xff0c;也叫頁框。內核在很多情況下&#xff0c;需要申請連續的頁框&#xff0c;而且數…

eval 函數 代替函數_eval()函數以及JavaScript中的示例

eval 函數 代替函數eval()函數 (eval() function) eval() function is a predefined global function in JavaScript and it is used to evaluate (execute) an expression, which is passed to the function as a parameter. It can also evaluate any JavaScript code. eval(…

F# ≥ C#(活動模式 和枚舉)

F#提供了一個叫"活動模式"的有趣功能。它把輸入的數據轉換成其他不同的東西。 一個有趣的使用實例就是代替枚舉。但我編程枚舉的時候&#xff0c;我總不高興去鏈接枚舉項到它的定義。例如&#xff0c;下面的枚舉定義了 數字枚舉&#xff0c; enum Numbers{Odd,Even,}…

關于java的classpath設置

今天晚上實驗室的另一個人在編譯一個java程序&#xff0c;需要用到一個jar文件&#xff0c;所以在命令行編譯的時候需要添加jar的路徑&#xff0c;例如&#xff1a; java -classpath demo.jar hello 但是設置了path之后java就不會搜索當前目錄&#xff0c;也就是所如果hello在當…

C語言uthash的用法

文章目錄1 定義一個哈希表鍵值UT_hash_handle2 哈希操作聲明添加查找刪除獲取哈希表中元素個數迭代排序3 案例鍵的使用官網解釋&#xff1a;https://troydhanson.github.io/uthash/userguide.html 在使用之前&#xff0c;我們必須包含uthash.h的頭文件&#xff0c;你需要將該頭…

Javascript Paste Keyboard Shortcuts Hijack

author : kj021320 team : I.S.T.O 這樣的攻擊手段也算是極其無恥 猥瑣之極! 所以防御措施一定要做好 首先說一下通過Javascript Paste Keyboard Shortcuts Hijack能做什么???能夠讀取你本地機器任何文件! 沒錯!也就是說 你中了任何一個XSS 加上你按了粘貼快捷鍵后,你就有可…

python 生成器表達式_Python中的列表理解與生成器表達式

python 生成器表達式The list is a collection of different types of elements and there are many ways of creating a list in Python. 該列表是不同類型元素的集合&#xff0c;并且有許多方法可以在Python中創建列表。 清單理解 (List Comprehension) List comprehension…

Javaweb---監聽器

1.什么是監聽器 監聽器就是監聽某個對象的狀態變化的組件。 事件源&#xff1a;被監聽的對象 ----- 三個域對象 request session servletContext 監聽器&#xff1a;監聽事件源對象 事件源對象的狀態的變化都會觸發監聽器 ---- 62 注冊監聽器&#xff1a;將監聽器與事件源進行…

Linux中的Ramdisk和Initrd

Ramdisk簡介先簡單介紹一下ramdisk&#xff0c;Ramdisk是虛擬于RAM中的盤(Disk)。對于用戶來說&#xff0c;能把RAM disk和通常的硬盤分區&#xff08;如/dev/hda1&#xff09;同等對待來使用&#xff0c;例如&#xff1a;redice # mkfs.ext2 /dev/ram0mke2fs 1.38 (30-Jun-200…

slab下kmalloc內核函數實現

文章目錄kmalloc的整體實現獲取高速緩存高速緩存獲取index總結https://blog.csdn.net/qq_41683305/article/details/124554490&#xff0c;在這篇文章中&#xff0c;我們介紹了伙伴算法、slab機制和常見的內存管理函數&#xff0c;接下來&#xff0c;我們看看kmalloc內核函數的…

PHP array_merge_recursive()函數與示例

PHP array_merge_recursive()函數 (PHP array_merge_recursive() function) array_merge_recursive() function is used to merge two or more arrays, it returns a new array with merged elements. The only difference between array_merge() and array_merge_recursive() …

標題:三羊獻瑞

標題&#xff1a;觀察下面的加法算式&#xff1a; 其中&#xff0c;相同的漢字代表相同的數字&#xff0c;不同的漢字代表不同的數字。 請你填寫“三羊獻瑞”所代表的4位數字&#xff08;答案唯一&#xff09;&#xff0c;不要填寫任何多余內容。 思路分析&#xff1a; 首先…

hdu 1069

地址&#xff1a;http://acm.hdu.edu.cn/showproblem.php?pid1069 題意&#xff1a;給定若干個木塊長寬高&#xff0c;長寬高可以自己調整&#xff0c;求堆積起來最高的高度。 mark&#xff1a;枚舉所有木塊長寬高可能情況&#xff0c;簡單dp。 代碼&#xff1a; #include <…

簡明 Python 編程規范

簡明 Python 編程規范編碼 所有的 Python 腳本文件都應在文件頭標上 # -*- coding:utf-8 -*- 。設置編輯器&#xff0c;默認保存為 utf-8 格式。注釋 業界普遍認同 Python 的注釋分為兩種的概念&#xff0c;一種是由 # 開頭的“真正的”注釋&#xff0c;另一種是 docstri…