An IP address is an address in computer networks , which – like the Internet – on the Internet protocol IP) based (. You will be assigned devices that are network connected and makes the devices so addressed and so accessible. The IP address can be individual or a group of receivers called a ( multicast , broadcast ). Conversely, a computer multiple IP addresses assigned to it.
The IP address is used, data from the sender to the intended recipient to be able to transport her. Similar to the mailing address on an envelope are data packets provided with an IP address, uniquely identifies the recipient. Because of this address, the “Post”, the router decide the packet should be transported in the direction which. Unlike postal addresses IP addresses are not tied to a specific location.
The best known of today’s common notation IPv4 addresses consist of four numbers, the values ​​of 0-255 and can take from one point to be separated with, for example, 127.0.0.1 . Technically, the address is a 32-digit ( IPv4 ) or 128-digit ( IPv6 ) binary number .
Fundamentals
To communicate between two technical equipment to build one, each of the devices must be able to, the other device to send data. For this data to arrive at the correct remote site, it must be clearly identified (addressed) are. This is done in IP networks with an IP address. Thus, for example, a Web server via a web browser directly addressed by its IP address. The browser asks for this domain name , like “www.example.com”, IP address from any name server , and then speaks directly to the Web server’s IP address “198.51.100.42″ in As.
IP address in IP packets
Each IP packet starts with an information area for the transport through the IP layer , the IP header. This header contains two fields, in which the IP addresses of both the sender and the recipient to be entered before the data packet is sent. The mediation is done on layer 3 in the OSI model , the network layer .
Structure
IPv4
Since the introduction of version 4 of the Internet Protocol used mainly IPv4 addresses consist of 32- bits , ie, 4 octets (bytes) . This 2 are 32 , that is 4,294,967,296 addresses displayed. In dotted decimal notation , the 4 octets than four points separated by decimal integers in the range 0-255 in written,
- Example
130.94.122.195 .
IPv6 – new version with a larger address space
Due to the rapidly growing demand for IP addresses is likely that the usable address space of IPv4 will be exhausted sooner or later. Mainly for this reason, IPv6 developed. It uses 128 bits to store addresses so that there are 2 128 = 256 16 (= 340,282,366,920,938,463,463,374,607,431,768,211,456 ≈ 3.4 × 10 38 ) addresses displayed. This number is sufficient for every square millimeter of the surface at least 665.570.793.348.866.944 (= 6.65 × 10 17 ) [1] provide IP addresses.
Since the decimal ddd.ddd.ddd.ddd.ddd.ddd.ddd.ddd.ddd.ddd.ddd.ddd.ddd.ddd.ddd.ddd and difficult to handle would be confusing, to set IPv6 addresses in hexadecimal dar. To further simplify this presentation, two address octets are combined and the groups represented by separate colon. XXXX: XXXX: XXXX: XXXX: XXXX: XXXX: XXXX: XXXX .
- Example
2001:0 db8: 85a3: 08d3: 1319:8 a2e: 0370:7344
Network part and device part
Each IPv4 address is a subnet mask , any IPv6 addresses by specifying the prefix length , in a network and a device component (“host part”) separately. The network mask, ie the prefix, it indicates the address bits are divided on what must be. The network mask of the masked or the prefix length specified bits (network part) in all hosts (computers) of a subnetwork identical. The information whether a device is in the same subnet (ie the same network part of IP address), is a host of needs in order routing to make decisions (see next section).
- Example
- (Classless) IPv4 Address
130.94.122.195/27
Decimal Binary calculation 10,000,010 01,011,110 01,111,010 130 094 122 195 IP address 11,000,011 ip-address
network mask 255.255.255.224 11111111 11111111 11111111 111 00 000 AND netmask
Netzwerkadr. 130 094 122 192 10,000,010 01,011,110 01,111,010 110 00000 = network part
10,000,010 01,011,110 01,111,010 130 094 122 195 IP address 11,000,011 ip-address
network mask 255.255.255.224 11111111 11111111 11111111 111 00 000
00000000 00000000 00000000 000 11 111 AND ( NOT netmask ) Equipment Part 3 00000000 00000000 00000000 000 00 011 = Receptacle
With a netmask of 27 bits set by a network address is 130.94.122.192 . There remain 5 bits and thus 2 5 = 32 addresses for the device component. Of these, nor ever will be an address for the network itself and the broadcast is required, 30 addresses for devices that are available.
Routing
If a device to send a IP packet, the network address parts of the source IP address and destination IP compared. If they match, the destination host is located in the same network and the packet is sent to the recipient directly. In the case of Ethernet networks is the ARP (Address Resolution Protocol) to find the hardware address. The ARP works on the second layer of the OSI model and is establish the connection to the first layer.
If the network part but not identical, so a routing table the IP address of a router (next hop) is searched and sent the packet to this router. This has one or more interfaces in contact with other networks and routes the packet using the same method more – he consulted his part his own routing table and sends the packet to the appropriate next router or to the target. Until the terminal can package many networks and routers go through that. Running through a router is also hop (jump) called the routing method next hop routing .
A router has for each interface its own IP address and subnet mask that belongs to the respective network. Each IP packet is routed separately. The source and destination address in the IP header are set by the station and remain unchanged during the entire journey.
Special IP addresses
Special IPv4 addresses to RFC 3330 :
| CIDR address block |
Address range |
Description |
RFC |
| 0.0.0.0 / 8 |
0.0.0.0 to 0.255.255.255 |
current network (as a source address is valid) |
RFC 3232 (replaced RFC 1700 ) |
| 10.0.0.0 / 8 |
10.0.0.0 to 10.255.255.255 |
Network for private use |
RFC 1918 |
| 127.0.0.0 / 8 (1) |
127.0.0.0 to 127 255 255 255 |
Localnet |
RFC 3330 |
| 169.254.0.0/16 |
169.254.0.0 to 169 254 255 255 |
Zeroconf |
RFC 3927 |
| 172.16.0.0/12 |
172.16.0.0 to 172.31.255.255 |
Network for private use |
RFC 1918 |
| 192.0.0.0/24 |
192.0.0.0 to 192.0.0.255 |
reserved, but provided for the award |
|
| 192.0.2.0/24 |
192.0.2.0 to 192.0.2.255 |
Documentation and sample code ( TEST-NET-1 ) |
RFC 5737 (replaced RFC 3330 ) |
| 192.88.99.0/24 |
192.88.99.0 to 192.88.99.255 |
6to4 – Anycast -Weiterleitungspräfix |
RFC 3068 |
| 192.168.0.0/16 |
192.168.0.0 to 192.168.255.255 |
Network for private use |
RFC 1918 |
| 198.18.0.0/15 |
198.18.0.0 to 198.19.255.255 |
Network benchmark tests |
RFC 2544 |
| 198.51.100.0/24 |
198.51.100.0 to 198.51.100.255 |
Documentation and sample code ( TEST-NET-2 ) |
RFC 5737 |
| 203.0.113.0/24 |
203.0.113.0 to 203.0.113.255 |
Documentation and sample code ( TEST-NET-3 ) |
RFC 5737 |
| 224.0.0.0 / 4 |
224.0.0.0 to 239.255.255.255 |
Multicasts (former Class D network ) |
RFC 3171 |
| 240.0.0.0 / 4 |
240.0.0.0 to 255.255.255.255 |
Reserved (former Class E network) |
RFC 3232 (replaced RFC 1700 ) |
| 255 255 255 255 2) |
255.255.255.255 |
Broadcast |
|
After fulfilling this list 622 199 809 of around 4.3 billion IPv4 addresses, or 14.5% of all possible IPv4 addresses a particular purpose.
- The network 127.0.0.0 / 8 refers to the local machine ( loopback address ). That power is often the area address 127.0.0.1 with the hostname localhost responsive. Addresses from this range are used to communicate a client with a server process on the same computer. With command line commands such as ssh localhost or ftp 127.0.0.1 , the local server computer to be addressed one on their functioning in order to test such.
- The special address 255.255.255.255, the highest device address in the network also be used as a broadcast address next. This network parameters is sending broadcasts without knowledge of other possible. This is for protocols such as BOOTP and DHCP important.
Thus there are three IP address types:
- Unicast : Send to an individual on the Internet (normal addressing).
- Broadcast : send to all devices on the same network ( subnet ). This is in IPv6 Multicast replaced.
- Multicast : Send some products on the same network (or devices in the multicast backbone network ).
No longer reserved IP addresses
With the RFC 5735 addresses were about 50 million IP-enabled. The reservation of the following address ranges has been lifted and released for distribution.
| CIDR address block |
Address range |
Number |
Description |
RFC |
| 14.0.0.0 / 8 |
14.0.0.0 to 14,255,255,255 |
16.777.216 |
Public data network |
RFC 3232 (replaced RFC 1700 ) |
| 24.0.0.0 / 8 |
24.0.0.0 to 24,255,255,255 |
16.777.216 |
Cable Television Networks |
|
| 39.0.0.0 / 8 |
39.0.0.0 to 39,255,255,255 |
16.777.216 |
In January 2011, the APNIC allocated |
RFC 1797 |
| 128.0.0.0/16 |
128.0.0.0 to 128.0.255.255 |
65.536 |
reserved, but provided for the award |
|
| 191.255.0.0/16 |
191.255.0.0 to 191.255.255.255 |
65.536 |
reserved, but provided for the award |
RFC 1918 |
| 223.255.255.0/24 |
223.255.255.0 to 223 255 255 255 |
256 |
reserved, but provided for the award |
RFC 3330 |
DNA – translation of computer names to IP addresses
On the globally available domain name system (DNS) names to IP addresses can (and vice versa) are resolved. The name www.example.com is for example the IPv4 address 208.77.188.166 , the name www.ipv6.uni-muenster.de the IPv6 address 2001:638:500:101:2 e0: 81ff: ​​fe24: 37c6 .
Assignment of IP addresses and network areas
IANA – Internet Assigned Numbers Authority
The assignment of IP networks in the Internet is used by the IANA regulated. In the early years of the Internet networks were IPv4 addresses, or in large blocks from the IANA to organizations, companies or universities awarded directly. For example, the area was the 13.0.0.0 / 8 and therefore 16,777,216 addresses of Xerox Corporation allocated. Merck & Co. received from the IANA also an area of 16,777,216 addresses ( 54.0.0.0 / 8 ), as well as IBM ( 9.0. 0.0 / 8 ). The only German company which has a / 8 range has been allocated, the debis AG ( 53.0.0.0 / 8 ). Today, the IANA allocates blocks to regional registries.
RIR – Regional Internet Registry
Since February 2005 there are five regional registries, the Regional Internet Registries ) are called RIR (:
- AfriNIC (African Network Information Centre) – responsible for Africa
- APNIC (Asia Pacific Network Information Centre) – responsible for the region Asia-Pacific
- ARIN (American Registry for Internet Numbers) – North America
- LACNIC (Regional Latin American and Caribbean IP Address Registry) – Latin America and Caribbean
- RIPE NCC (Réseaux IP Européens Network Coordination Centre) – Europe , Middle East , Central Asia .
LIR – Local Internet Registry
The Local Internet Registries (LIR) said local authorities give the award to them from the RIRs allocated addresses to their customers. The object of the LIR usually meet Internet Service Provider . LIR customers can either retail or other (sub) providers are.
The addresses of customers can be either permanently assigned to the ( static IP address, fixed IP address ), and Internet connection are dynamically allocated structure for the ( dynamic IP address, dynamic IP address ). Permanently assigned addresses are used primarily with dedicated lines used, or if server address should be operated on the IP.
Which customers or any Local Internet Registry IP address or a network has been assigned, can be on the Whois databases of the RIRs to determine.
Private networks
In private, local networks ( LAN ) allows one IP addresses are assigned. But should the IPv4 addresses from the for RFC 1918 called private networks are used (for example, 192.168.1.1, 192.168.1.2, ... ). These addresses are not assigned by the IANA and the Internet continue to not routed. In order to still allow an internet connection to be in a router using Network Address Translation that LAN internal addresses public, valid in the Internet IPv4 addresses translated to. For packages to arrive addressed to the public address, public address is in turn translated back into private address.
Net classes
Originally, IPv4 addresses have been in network classes A to C with different network masks divided by. Classes D and E were designed for specific tasks. Due to recent increases in routing tables, routing was 1993, the classless CIDR ( Classless Inter-Domain Routing ) is introduced. So that it does not matter which network an IPv4 address class belongs.
Device configuration
Manual configuration
For administrators there are programs to display the IP address and configure. unixoid operating systems use this command, the ifconfig for Linux, ip available, DOS or Windows use, depending on the version, type ipconfig or winipcfg .
- Examples
- The network interface eth0 is assigned the IPv4 address 192.168.0.254 in a / 27 subnet.
- Unix (FreeBSD, Mac OS X): ifconfig eth0 192.168.0.254/27
- Linux : ip addr add 192.168.0.254/27 brd + dev eth0
- Linux (old): ifconfig eth0 192.168.0.254 broadcast 192.168.0.255 netmask 255 255 255 224
The part “broadcast 192.168.0.255″ or “brd +” are optional. (“Brd +” stands for the automatic calculation of the broadcast address, it can also be given a specific address. Ifconfig calculates the broadcast address in newer versions automatically, eg from FreeBSD 4.x).
Automatic configuration
Through protocols such as BOOTP or DHCP IP addresses when booting the computer by a corresponding server assigned. On the server administrator to a range of IP addresses defined, from which other computers can see an address at startup. This address is to the computer lease . Computers that may need fixed addresses, the Ethernet network via its MAC address to identify and obtain a permanent address.
The advantage here is the central management of the addresses. If after installing the operating system provides for the automatic configuration, no further settings for network access will be made ​​longer. Mobile devices such as laptops can share addresses, if not all devices are connected to the network simultaneously. In addition, they can not change the configuration as needed in different networks sample company, customer networks, home networks) are integrated to the (.
For IPv6, there is also the possibility of auto configuration , the server does not need.
Dynamic addressing
If a host connection with a new network a new IP address is assigned to each, it is called dynamic addressing . In the LAN area, the dynamic addressing via DHCP widespread. In the Internet sector is dynamic addressing mainly by Internet Service Providers (ISP) used the Internet access via dial-up lines to offer. They use dynamic addressing via PPP or PPPoE .
Advantage of dynamic addressing, is that far fewer than one IP address per customer needs is the average, there are never any customers online simultaneously. A ratio of 1:10 to 1:20 is common. The RIPE NCC requires its LIRs evidence of the use of their assigned IP addresses. A fixed allocation of addresses is accepted only in justified cases, for example for the operation of servers, or for accounting purposes.
With DSL connection of customer to use the official provider usually also dynamically assigned IPs. Due to the common practice that the DSL router provider associated with the remains always (24 hours a day, possibly with forced separation and automatic reconnection), usually is the corresponding router always assign the same IP (see DynDNS ).
Static addressing
Static addressing is basically used in applications where dynamic addressing is not technically possible or not meaningful. Thus obtained in LANs, for example, gateways , servers and network printers usually fixed IP addresses. In the Internet access area is for static addressing in particular router on dedicated lines used. Also for Machine-to-machine communications, especially in mobile communications ( GPRS ) are increasingly static addressing. Static addresses are usually configured manually, but also has automatic addressing (see above) are assigned.
Enter multiple addresses on a network card
Usually, each network interface (eg network card) of a host to an IPv4 address assigned exactly. In some cases (see below) however, it is necessary to interface more IPv4 addresses to assign one. This is known as IP aliasing means. A number of IPv4 addresses on one NIC others used in to several of the same services it to operate in parallel in order from different subnets reachable to make host one or a service logically be separated from the host so that he – with its IPv4 address and transparent Hardware can be moved – to another client for the.
- Example (FreeBSD)
- The network interface fxp0 get the IPv4 address of 192.168.2.254 with a / 26 subnet as an alias
ifconfig fxp0 alias 192.168.2.254 netmask 255 255 255 192
On Linux, just the same command as above
ip addr add 192.168.2.254/24 dev eth0
used to add more addresses.
For IPv6, the binding of multiple addresses to a network interface the rule, for example, a link-local operators to find a global address and dynamically assigned prefixes in addition to fixed or IPv6 addresses on the same host multiple Internet providers to have available. Furthermore, the above reasons apply as for IPv4.
Different networks on one physical network
On a physical network (eg Ethernet), different networks (with different network address part) is placed and used simultaneously. This will be used, inter alia, if later, the network should be split up or if previously separate networks are combined.