ipv6寻址_什么是IPV4寻址?
ipv6尋址
IPV4尋址簡介 (Introduction to IPV4 Addressing )
Internet protocol version 4 in any network, is a standard protocol for assigning a logical address (IP address) to hosts. You are currently using the same protocol. This protocol is capable of providing a unique address to the devices available in this world, but will not be available after a few years. Therefore its advanced version IPV6 has been introduced, which you can read in the tutorial of IPV6.
任何網絡中的Internet協議版本4是用于為主機分配邏輯地址(IP地址)的標準協議。 您當前正在使用相同的協議。 該協議能夠為這個世界上可用的設備提供唯一的地址,但幾年后將不可用。 因此,已經引入了其高級版本IPV6,您可以在IPV6教程中閱讀。
The IP address in IPV4 is 32 bits. It is represented in 4 blocks of 8 bits. The lower IPV4 address is represented in both binary and decimal form.
IPV4中的IP地址是32位。 它以4個8位的塊表示。 較低的IPV4地址以二進制和十進制形式表示。
Binary: 11000000.10101000.00001010.00000001Decimal: 192.168.10.1These blocks represent networks and hosts. The starting block represents the network and represents the subsequent hosts that how many blocks will represent the network and how many hosts will represent these are defined by classes of IP address. If you want to know more about the format and classes of the IPV4 address, you can read it in the Addressing tutorial.
這些塊代表網絡和主機。 起始塊代表網絡,并代表隨后的主機,這些主機將由IP地址的類別來定義。 如果您想了解有關IPV4地址格式和類別的更多信息,可以在《尋址》教程中閱讀它。
IPV4標頭 (IPV4 Header )
Internet Protocol (IP) works on layer 3 (Network Layer). They break the segments (when using TCP as protocol) or datagram (when using UDP as protocol) sent through layer layer 4 (Transport Layer) in packets. After breaking in packets, IP header is attached with these packets. This provides the necessary information receiver side related to the header packet. This information is represented by different fields in the IP header.
Internet協議(IP)在第3層(網絡層)上工作。 它們破壞通過數據包的第4層(傳輸層)發送的段(使用TCP作為協議時)或數據報(使用UDP作為協議時)。 破壞數據包后,這些數據包將附加IP標頭。 這提供了與報頭分組有關的必要的信息接收方。 此信息由IP標頭中的不同字段表示。
The lower IP header is represented by a diagram. After this all the fields have been explained in detail:
下層IP標頭由圖表表示。 之后,將詳細解釋所有字段:
IPv4標頭圖 (IPv4 Header Diagram)
Version Number:
版本號:
The version number of Internet Protocol is used to define the version number field. Here the IPV4 header is being spoken, so the version will also be 4th.
Internet協議的版本號用于定義版本號字段。 這里說的是IPV4標頭,因此版本也是4號。
Header Length:
標頭長度:
The length of the IP header is defined by this field. The length of the IPV4 header is represented by 32 bit words (with options). If no option is defined in the header then this filed has value of 5 set.
IP頭的長度由該字段定義。 IPV4標頭的長度由32位字(帶選項)表示。 如果標題中未定義任何選項,則該字段的值設置為5。
Types of Service:
服務類型:
This field defines the way by which the router should queue the packets when the packets are waiting to be forwarded. If the priority of a packet is high then this field's value is 1. This packet has 0 value for regular packets.
此字段定義當數據包等待轉發時路由器應將數據包排隊的方式。 如果數據包的優先級高,則此字段的值為1。對于常規數據包,此數據包的值為0。
Total Length:
總長度:
This field shows the total length of the IP data-gram. Define the header length defines the length of the field header and defines the total length of data-gram, including field data and header. This is a 16 bit field.
該字段顯示IP數據報的總長度。 定義標題長度定義字段標題的長度,并定義數據報的總長度,包括字段數據和標題。 這是一個16位字段。
Identification:
身份證明:
This field is the identification of a segment. This is a 16 bit number, which together with the source address uniquely identifies a segment.
該字段是段的標識。 這是一個16位數字,與源地址一起唯一標識一個段。
Flags:
標志:
This field shows whether the router can fragment any segment. This field has 3 bits. The first bit is reserved. If the second bit is set in this field then it means do not fragment and if the field is set to a third bit then it means the segment is fragmented.
此字段顯示路由器是否可以對任何網段進行分段。 該字段具有3位。 第一位保留。 如果在該字段中設置了第二位,則表示不分段;如果該字段設置為第三位,則意味著段已分段。
Fragment Offset:
片段偏移:
If the packet is fragmented, then this field shows the starting 8 packs of the original packet. This field is of 13 bits.
如果數據包是分段的,則此字段顯示原始數據包的前8包。 該字段是13位。
Time to Live:
生存時間:
This field sets a limit. Let the value of this field be 15. If the packet does not reach the destination even after passing from 15 routers, then that packet is discarded. This is an important field from the perspective of authenthenticity. The size of this field is 8 bits.
此字段設置限制。 將該字段的值設為15。如果即使從15個路由器經過后數據包仍未到達目的地,則該數據包將被丟棄。 從真實性的角度來看,這是一個重要的領域。 該字段的大小為8位。
Protocol:
協議:
This field contains the name of the protocol that passed the packet network layer because for de-multiplexing on the receiver side, it should know which protocol to pass the data.
該字段包含通過分組網絡層的協議的名稱,因為為了在接收方進行多路分解,它應該知道要通過哪個協議來傳輸數據。
Header Checksum:
標頭校驗和:
This field is used to check errors. When the packet is sent from source then this field has a value that is calculated by the algorithm through the header. When this packet reaches the receiver side, then the value is calculated by the same algorithm back to the head if the value matches the source side then it is believed that the packet error is free. This field is of 8 bits.
此字段用于檢查錯誤。 從源發送數據包時,此字段具有一個值,該值由算法通過標頭計算。 當該分組到達接收器側時,則如果該值與源側匹配,則通過相同的算法將該值返回頭部,則認為該分組錯誤是免費的。 該字段是8位。
Source IP Address:
源IP地址:
This represents the IP address of the field source. The size of this field is 32 bits.
這表示字段源的IP地址。 該字段的大小為32位。
Destination IP Address:
目的IP地址:
The destination address is represented by this field. The size of this field is 32 bits.
目的地址由該字段表示。 該字段的大小為32位。
Options:
選項:
This field represents some options that some packets can use. Although this field is not used, whenever it is used, the header length exceeds 32 bits.
該字段表示某些數據包可以使用的某些選項。 盡管不使用此字段,但無論何時使用,標題頭長度都超過32位。
Data:
數據:
This field contains the main data that is passed by the transport layer protocols to the IP.
該字段包含傳輸層協議傳遞給IP的主要數據。
IPV4地址類型 (IPV4 Address Types )
Whenever IPV4 packets are sent or received, they are sent / received by one of the three types given address. Let's us learn about them in detail.
每當發送或接收IPV4數據包時,都會通過三種給定地址類型之一發送/接收IPV4數據包。 讓我們詳細了解它們。
Unicast
單播
A unicast address represents a specific host. This type of address represents the specific destination host in the IPV4 packet. This type of address is used for one-to-one communication. For example a host of LAN A will send a packet to a host of LAN B, then it will be called unicast addressing.
單播地址表示特定的主機。 這種類型的地址代表IPV4數據包中的特定目標主機。 此類地址用于一對一通信。 例如,LAN A的主機將向LAN B的主機發送一個數據包,然后將其稱為單播尋址。
Multicast
多播
Multicast addresses are used to send a packet to more than one host. These are used for one-to-many communication. For example, a host can send a packet to an IP address group in another network. These packets are only received by those hosts that are in the multicast group.
組播地址用于將數據包發送到多個主機。 這些用于一對多通信。 例如,主機可以將數據包發送到另一個網絡中的IP地址組。 這些數據包僅由多播組中的那些主機接收。
Broadcast
廣播
Broadcast addresses are used by IPV4 to spread the packet of a single host across the network. This is a one-to-all communication. For example, a host can send a packet to the other available hosts in the LAN.
IPV4使用廣播地址在網絡上傳播單個主機的數據包。 這是一對一的通信。 例如,主機可以將數據包發送到LAN中的其他可用主機。
翻譯自: https://www.includehelp.com/computer-networks/ipv4-addressing.aspx
ipv6尋址
總結
以上是生活随笔為你收集整理的ipv6寻址_什么是IPV4寻址?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: kotlin 查找id_Kotlin程序
- 下一篇: bpl开发模式_BPL的完整形式是什么?