Chapter 31: IP Addressing - IPV4/IPV6 PDF

Summary

This chapter details IP addressing for computer networks, focusing on IPv4 and IPv6. It covers addressing schemes, special address ranges, and networking concepts like sub-networks, private addresses, and network address translation (NAT).

Full Transcript

CHAPTER XXXI ============ 0. An Internet Protocol address (IP address) is essential to each device connected to a [computer network](https://en.wikipedia.org/wiki/Computer_network) that uses the [Internet Protocol](https://en.wikipedia.org/wiki/Internet_Protocol) for communicat...

CHAPTER XXXI ============ 0. An Internet Protocol address (IP address) is essential to each device connected to a [computer network](https://en.wikipedia.org/wiki/Computer_network) that uses the [Internet Protocol](https://en.wikipedia.org/wiki/Internet_Protocol) for communication. It serves both network interface [identification](https://en.wikipedia.org/wiki/Identification_(information)) and location addressing. 1. The IP address space is managed globally by the [Internet Assigned](https://en.wikipedia.org/wiki/Internet_Assigned_Numbers_Authority) [Numbers Authority](https://en.wikipedia.org/wiki/Internet_Assigned_Numbers_Authority) (IANA), and by five [regional Internet registries](https://en.wikipedia.org/wiki/Regional_Internet_registry) (RIRs) responsible in their designated territories for assignment to [local](https://en.wikipedia.org/wiki/Local_Internet_registry) [Internet registries](https://en.wikipedia.org/wiki/Local_Internet_registry), such as [Internet service providers](https://en.wikipedia.org/wiki/Internet_service_providers), and other end users. 2. Two versions of IP addressing are in common use in the Internet today. The original version of the Internet Protocol is Internet Protocol version 4 (IPv4) which majority of users are familiar with. The next version of IP addresses is called IPv6. 3. IPv4 addressing Scheme ====================== 1. An IPv4 address has a size of 32 bits, which limits the address space to around 4.29 billion (2^32^) addresses. Of this number, some addresses are reserved for special purposes such as private networks (\~18 million addresses) and multicast addressing (\~270 million addresses). 2. IPv4 addresses are represented in dot-decimal notation, consisting of four decimal numbers, each ranging from 0 to 255, separated by dots, e.g., *172.16.254.1* 4. Sub-networks ============ 3. IP networks may be divided into sub-networks. For this purpose, an IP address consists of two parts: the *network prefix* in the high-order bits and the remaining bits called the *rest field* or *host identifier* used for host numbering within a network. The subnet mask notation determines how the IP address is divided into network and host parts. 4. Subnet mask is a number that identifies the number of bits used for the network part of the IP address. Subnet mask is also represented as a 32 bit number. If n number of bits represent the network part of the address, its 32 bit representation is n one's followed by (32 - n) zeroes. This may then be represented in dotted decimal notation. 5. Private addresses ================= 5. Computers not connected to the Internet that communicate only with each other via TCP/IP, need not have globally unique IP addresses. Such private networks are widely used and typically connect to the Internet with network address translation (NAT), when needed. 1. Special IP address ranges that are used for special purposes are: Private/ Public IP addresses ============================ 6. Private addressing scheme of Indian Railways ============================================ 3. IPv4 Private addresses allotted by the Railway Board are being used in the Data networks of IR. The private address space chosen for these networks are 10.0.0.0/8. The IP addresses are then further divided as per allotment among various zones and divisions for each of the individual data networks. 4. The 10.0.0.0/8 network address has been further subnetted to 10.X.0.0/16 network by Railway board and allocated to Zonal Railways, divisions , RDSO,PSUs and Training Institutes. 7. Public IP address is required for giving access of any intranet service to the Public through internet ====================================================================================================== 8. Private IPs are free and need not require any permission for using these IP addresses. 9. Private IP addresses within the same local network must be unique and cannot be repeated. 10. Private IP addresses cannot communicate in the public domain and are not able to use Internet services. In this case, the connection to the Internet is possible via NAT (network address translation) features of networking which logically replaces the private IP address with a public one. 11. For availability of Internet facility minimum one public IP address is must for any Intranet network. Through NAT at Intranet gateway level private IP addresses are logically hidden and public IP addresses represent the Intranet traffic like a mediator in public domain. 12. An Internet Service Provider(ISP) is a company that provides Internet access to organizations and home users. 13. ISPs are responsible for making sure you can access the Internet, routing Internet traffic, resolving domain names, and maintaining the network infrastructure that makes Internet access possible. 14. At Present RCIL is the ISP for Indian Railways. 15. All Railnet users are able to access internet service through public IP used at Gateway level of RCIL through NATing. 6. IPv6 addressing Scheme ====================== 16. In IPv6, the address size was increased from 32 bits in IPv4 to 128 bits, thus providing up to 2^128^ (approximately 3.403×10^38^) addresses. This gives virtually unlimited unique addresses for future use. 7. Important features of IPV6 ========================== 17. **Sufficient** address space for the near future**.** 18. **Enhanced security:** IPSec (Internet Protocol Security) is built into IPv6 as part of the protocol. This means that two devices can dynamically create a secure tunnel without user intervention 19. **Header improvements:** the packed header used in IPv6 is simpler than the one used in IPv4. The IPv6 header is not protected by a checksum so routers do not need to calculate a checksum for every packet making transmission efficient. 20. **No need for NAT:** since every device has a globally unique IPv6 address, there is no need for NAT. 21. **Stateless address auto configuration:** IPv6 hosts can automatically configure themselves with an IPv6 address even without a DHCP server. 8. Addressing Scheme ================= 22. The 128 bits of IPV6 is represented as 32 hexadecimal numbers arranged in 8 quartets of 4 hexadecimal digit separated by a colon\":*\"* 5. Not case sensitive for A, B, C, D, E and F 6. Omission of ZEROS 7. Leading zero in any quartet can be omitted. 8. Four successive zeros in a Quartet can be substituted by one zero. 9. Replacing Successive Fields of Zeros with \"::" 10. Multiple quartet with zero can be represented as :: but only once in a address ![](media/image2.png) 9. IPv6 Migration ============== 23. IPv6 and IPv4 are not compatible. Migration from IPv4 to IPv6 will be done in near future. Until IPv6 completely supplants IPv4, which is not likely to happen in the foreseeable future, a number of so-called transition/migration mechanisms are needed so that both coexists and work together. Various 24. There are basically 3 methods for migrating from IPv4 to IPv6 that are prevalent today. 11. Dual Stack Method ================= 1. It allows IPv4 & IPv6 to coexist in the same device & network. 2. In the dual stack method all the devices like PCs, switches, routers, ADSL modems etc. dual stacked i.e. these equipment will use both IPv4 drivers as well as IPv6 drivers. This will allow both IPv4 and IPv6 to coexist and gradual transition from IPv4 to IPv6 can happen. Here, the computer decides whether to use IPv4 or IPv6 based on sets of rules. DNS servers are also used to decide if IPv6 or IPv4 is used. ![](media/image4.jpeg) 12. Tunneling ========= 3. It allows IPv6 hosts to communicate over IPv4 infrastructure.Tunneling encapsulates IPv6 traffic within IPv4 packets.Allows isolated IPv6 end system and routers to communicate without the need to upgrade the IPv4 infrastructure that exists between them. 4. Following tunneling configurations exist: - Router-to-Router - Host-to-Router and Router-to-Host - Host-to-Host ![](media/image7.jpeg) 13. Translation \[SIIT and NAT64\] (Stateless IP/ICMP Translation) ============================================================== 5. In the SIIT and NAT64 method all the devices like PCs, switches, routers, ADSL modems etc. are configured with IPv6 address only, the gateways are configured with SIIT and NAT64 protocol and with DNS- 64, the gateways will connect external IPv4 as well as IPV6 network. 6. This allows communication between IPv4 only and IPv6 only end stations. The job of the translator is to translate IPv6 packets into IPv4 packets by doing address and port translation and vice versa. ![](media/image9.jpeg) 7. This method seems to be the most preferred method to migrate IPv4 to IPv6. -x-x-x- =======

Use Quizgecko on...
Browser
Browser