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.
任何網(wǎng)絡(luò)中的Internet協(xié)議版本4是用于為主機(jī)分配邏輯地址(IP地址)的標(biāo)準(zhǔn)協(xié)議。 您當(dāng)前正在使用相同的協(xié)議。 該協(xié)議能夠?yàn)檫@個世界上可用的設(shè)備提供唯一的地址,但幾年后將不可用。 因此,已經(jīng)引入了其高級版本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地址以二進(jìn)制和十進(jìn)制形式表示。
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.
這些塊代表網(wǎng)絡(luò)和主機(jī)。 起始塊代表網(wǎng)絡(luò),并代表隨后的主機(jī),這些主機(jī)將由IP地址的類別來定義。 如果您想了解有關(guān)IPV4地址格式和類別的更多信息,可以在《尋址》教程中閱讀它。
IPV4標(biāo)頭 (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協(xié)議(IP)在第3層(網(wǎng)絡(luò)層)上工作。 它們破壞通過數(shù)據(jù)包的第4層(傳輸層)發(fā)送的段(使用TCP作為協(xié)議時)或數(shù)據(jù)報(使用UDP作為協(xié)議時)。 破壞數(shù)據(jù)包后,這些數(shù)據(jù)包將附加IP標(biāo)頭。 這提供了與報頭分組有關(guān)的必要的信息接收方。 此信息由IP標(biāo)頭中的不同字段表示。
The lower IP header is represented by a diagram. After this all the fields have been explained in detail:
下層IP標(biāo)頭由圖表表示。 之后,將詳細(xì)解釋所有字段:
IPv4標(biāo)頭圖 (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協(xié)議的版本號用于定義版本號字段。 這里說的是IPV4標(biāo)頭,因此版本也是4號。
Header Length:
標(biāo)頭長度:
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標(biāo)頭的長度由32位字(帶選項(xiàng))表示。 如果標(biāo)題中未定義任何選項(xiàng),則該字段的值設(shè)置為5。
Types of Service:
服務(wù)類型:
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.
此字段定義當(dāng)數(shù)據(jù)包等待轉(zhuǎn)發(fā)時路由器應(yīng)將數(shù)據(jù)包排隊的方式。 如果數(shù)據(jù)包的優(yōu)先級高,則此字段的值為1。對于常規(guī)數(shù)據(jù)包,此數(shù)據(jù)包的值為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數(shù)據(jù)報的總長度。 定義標(biāo)題長度定義字段標(biāo)題的長度,并定義數(shù)據(jù)報的總長度,包括字段數(shù)據(jù)和標(biāo)題。 這是一個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.
該字段是段的標(biāo)識。 這是一個16位數(shù)字,與源地址一起唯一標(biāo)識一個段。
Flags:
標(biāo)志:
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.
此字段顯示路由器是否可以對任何網(wǎng)段進(jìn)行分段。 該字段具有3位。 第一位保留。 如果在該字段中設(shè)置了第二位,則表示不分段;如果該字段設(shè)置為第三位,則意味著段已分段。
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.
如果數(shù)據(jù)包是分段的,則此字段顯示原始數(shù)據(jù)包的前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.
此字段設(shè)置限制。 將該字段的值設(shè)為15。如果即使從15個路由器經(jīng)過后數(shù)據(jù)包仍未到達(dá)目的地,則該數(shù)據(jù)包將被丟棄。 從真實(shí)性的角度來看,這是一個重要的領(lǐng)域。 該字段的大小為8位。
Protocol:
協(xié)議:
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.
該字段包含通過分組網(wǎng)絡(luò)層的協(xié)議的名稱,因?yàn)闉榱嗽诮邮辗竭M(jìn)行多路分解,它應(yīng)該知道要通過哪個協(xié)議來傳輸數(shù)據(jù)。
Header Checksum:
標(biāo)頭校驗(yàn)和:
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.
此字段用于檢查錯誤。 從源發(fā)送數(shù)據(jù)包時,此字段具有一個值,該值由算法通過標(biāo)頭計算。 當(dāng)該分組到達(dá)接收器側(cè)時,則如果該值與源側(cè)匹配,則通過相同的算法將該值返回頭部,則認(rèn)為該分組錯誤是免費(fèi)的。 該字段是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:
選項(xiàng):
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.
該字段表示某些數(shù)據(jù)包可以使用的某些選項(xiàng)。 盡管不使用此字段,但無論何時使用,標(biāo)題頭長度都超過32位。
Data:
數(shù)據(jù):
This field contains the main data that is passed by the transport layer protocols to the IP.
該字段包含傳輸層協(xié)議傳遞給IP的主要數(shù)據(jù)。
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.
每當(dāng)發(fā)送或接收IPV4數(shù)據(jù)包時,都會通過三種給定地址類型之一發(fā)送/接收IPV4數(shù)據(jù)包。 讓我們詳細(xì)了解它們。
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.
單播地址表示特定的主機(jī)。 這種類型的地址代表IPV4數(shù)據(jù)包中的特定目標(biāo)主機(jī)。 此類地址用于一對一通信。 例如,LAN A的主機(jī)將向LAN B的主機(jī)發(fā)送一個數(shù)據(jù)包,然后將其稱為單播尋址。
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.
組播地址用于將數(shù)據(jù)包發(fā)送到多個主機(jī)。 這些用于一對多通信。 例如,主機(jī)可以將數(shù)據(jù)包發(fā)送到另一個網(wǎng)絡(luò)中的IP地址組。 這些數(shù)據(jù)包僅由多播組中的那些主機(jī)接收。
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使用廣播地址在網(wǎng)絡(luò)上傳播單個主機(jī)的數(shù)據(jù)包。 這是一對一的通信。 例如,主機(jī)可以將數(shù)據(jù)包發(fā)送到LAN中的其他可用主機(jī)。
翻譯自: https://www.includehelp.com/computer-networks/ipv4-addressing.aspx
ipv6尋址
總結(jié)
以上是生活随笔為你收集整理的ipv6寻址_什么是IPV4寻址?的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: kotlin 查找id_Kotlin程序
- 下一篇: bpl开发模式_BPL的完整形式是什么?