Sowmya-Shenoy
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Difference Between IPv4 and IPv6 (IPv4 vs IPv6) ## Introduction **Internet Protocol(IP)** is a unique identifier that recognizes each networking device uniquely on the Internet. For each device on a network, an IP address will be allocated and it is used for communication. An IP address is partitioned into two parts: network address and host address. Two types of IP addresses are: 1. IPv4 2. IPv6 ## What is IPv4? IPv4(Internet Protocol version 4) is the standard connectionless protocol for packet-switched networks used to connect our devices to the internet. The device is assigned with a unique numerical 32-bit IP address like 99.48.223.227, on connecting over the internet. ![](https://i.imgur.com/plaviwf.png) An IPv4 address format is x . x . x . x , where x is an octet and it must be a decimal value within the range 0 to 255. Each octet is separated by a period(.). An address of IPv4 must have 3 periods and 4 octets. ## Features of IPv4: - IPv4 is a connectionless internet protocol mainly used in packet-switched layer networks like Ethernet. - It works based on the best-effort delivery model where there is no guaranteed delivery and no proper sequencing or duplicate delivery avoidance is guaranteed. - By providing unique identification for each device, it helps to establish a logical connection between network devices. - There are multiple ways to configure IPv4 with all types of devices, which includes manual and automatic configurations depending on the type of network. - IPv4 has a 32-bit IP address written in 4 numbers separated by period(.) which is unique for each networking device. - It has a group of numbers separated by dots, which is called Octet (Example: 66.94.29.13). Each number in an octet is within the 0 to 255 range. This address can produce 4,294,967,296 unique addresses. Octet can have either 1 or 0 bit. If the bit is 1, then it will count the number represented by it. If the bit is 0, then it will not count the number represented by it. ## What is IPv6? IPv6 is the next generation of Internet Protocol(IP) intended to replace IPv4, it works similar to IPv4 i.e., it helps the computers to uniquely identify other computers or devices on the Internet. Every mobile phone, computer, IoT sensor, home automation component, and each device connected to the internet must have a numerical IP address for communicating with other devices. IPv4 was becoming exhaustive of address supply because of its worldwide usage from a proliferation of multiple connected devices. ![](https://i.imgur.com/BuLNT0x.png) A normal IPv6 address format is y : y : y : y : y : y : y : y where y is a segment and it can be any hexadecimal value within the range 0 to FFFF. Each segment is separated by a colon(:). A normal IPv6 address must have 7 colons and 8 segments. ## Features of IPv6: - IPv6 supports auto-configuration mode (stateful and stateless) of its host devices. - Large address space will be provided by IPv6, which enables allocating devices with unique IP addresses across the world. - After complete implementation of IPv6, every host can reach other hosts directly over the Internet, with few limitations such as organization policies, Firewall, etc. - IPv6’s header is simplified in comparison with the IPv4 header. It has moved all unnecessary data and options to the end of the IPv6 header. - IPv6 is a 128-bit hexadecimal IP address written using 8 sets of 16 bits each. These 8 sets of binary numbers are separated by a colon(:). Here, each hexadecimal character is constituted by a group of 4 bits. So, it requires the conversion of 4 bits into a hexadecimal number at a time. ## IPv4 vs IPv6 The following table provides the major differences between IPv4 and IPv6: | Basis for differences | IPv4 | IPv6 | | -------- | -------- | -------- | | **Definition** | IPv4(Internet Protocol version 4) is the standard connectionless protocol for packet-switched networks used to connect our devices to the internet. | IPv6 is the next generation of Internet Protocol(IP) intended to replace IPv4, it works similar to IPv4 i.e., it helps the computers to uniquely identify other computers or devices on the Internet. | | **Addressing method** | IPv4 is a numeric IP address, which has binary bit groups separated by a dot (.) | IPv6 is an alphanumeric IP address, which has binary bit groups(might include hexadecimal values) separated by a colon (:) | | **Security** | IPv4 is not designed by keeping security in the mind, security depends on applications | IPv6 protocol is having IPSec(Internet Protocol Security) with a proper key infrastructure | | **Checksum fields** | Checksum fields are present in packet header | Checksum fields does not exist in packet header | | **IP address size** | IPv4 is having 32-bit IP address length | IPv6 is having 128-bit IP address length | | **Header fields count**| Header fields count is 12 | Header fields count is 8 | | **Header field length** | Header field length is 20 | Header field length is 40 | | **Number of classes** | IPv4 allows 5 classes of IP Addresses i.e., Class A to E | IPv6 permits the storage of unlimited IP Addresses | | **Packet fragmentation** | Fragmentation means dividing a packets into smaller ones that will be reassembled later. It is performed by sending and forwarding routes | It is done by the sender | | **VLSM(Variable Length Subnet Mask) support** | It is supported by IPv4 | VLSM is not supported by IPv6 | | **Network Configuration** | Network configuration will be done through DHCP or manually. IPv4 had multiple overlays to control growth on the internet, which needs high maintenance efforts | IPv6 will support auto-configuration capabilities | | **Address Mask** | Address mask is used for the designated network from host portion | Address mask is not used in IPv6 | | **SNMP(Simple Network Management Protocol)** | SNMP is a system management related protocol that supports IPv4| It does not support IPv6 | | **Packet header** | Packet header does not helps to recognize packet flow for QoS(Quality of Service) handling | Packet header consists of Flow Label field that describes packet flow for QoS handling | | **Data packet size** | 576 bytes of size is required for a IPv4 packet, fragmentation is optional | 1208 bytes of size is required for a IPv6 packet, without fragmentation | | **Address configuration** | Done in a manual way or via DHCP | Stateless address auto-configuration is done using Internet Control Message Protocol version 6(ICMPv6) or DHCPv6 | | **Dynamic Host Configuration Server(DHCS)** | Clients have to approach DHCS when they want a network connection | Clients are provided with permanent addresses so that approaching a server for the network connection is not necessary | | **Optional fields** | IPv4 is having optional fields | IPv6 does not have any optional fields, but Extension headers are present | | **IPSec(Internet Protocol Security)** | IPSec regarding network security is optional | IPSec network security is compulsory | | **Address mapping** | For mapping with MAC address, IPv4 uses Address Resolution Protocol(ARP) | For mapping with MAC address, IPv6 uses Neighbour Discovery Protocol(NDP) | | **Compatibility with mobile devices** | IPv4 is not suitable for mobile networks as it uses the dot-decimal notation for address representation | IPv6 is highly suited for mobile networks as it uses hexadecimal and colon-separated notation for address representation | | **Best feature** | Use of NAT(Network address translation) devices which permits single NAT address to mask multiple non-routable addresses, which in turn makes end-to-end integrity possible | Because of huge address Space, IPv6 permits direct addressing | | **Address space** | It is capable of generating 4.29×10^9 address space | It can generate 3.4×10^38 address space | | **Encryption and Authentication of data** | This facility is not provided in IPv4 | IPv6 provides encryption and authentication facility | | **Example** | 12.244.232.164 | 2001:0ab8:0000:0000:0000:df00:0032:7859 | ### FAQ's #### 1. Which is faster IPv4 or IPv6? In general, there’s no much difference between speeds of IPv4 vs IPv6. But, you can find some evidence that proves IPv6 is slightly faster in some situations. One of the cause for why IPv6 might be faster is that it won't waste time on NAT(Network Address Translation). However, IPv6 has larger packet headers, so it might potentially be slower for few cases. #### 2. Why do we still use IPv4 instead of IPv6? IPv4 is still functioning adequately in various networks, because development in protocol enhancements has extended the IPv4 usability. The commonly used extension is NAT (Network Address Translation). #### 3. Does IPv6 completely replace IPv4? IPv6 is the Internet Protocol's latest version that will eventually replace IPv4 addressing, the version that is most commonly used on the Internet nowadays. It is a strongly established protocol that is having usage and deployment growth, mainly in mobile phone markets. So, it is must to replace IPv4 with IPv6 as we are running out of IPv4 addresses and IPv6 is considered as the solution. #### 4. Does enabling IPv6 speed up internet? According to theory, IPv6 is expected to be a little faster as it is not necessary to waste the cycles on NAT translations. But IPv6 has larger packets, which might make it slower for few use cases. So we can say that most of your network will work fine and faster with IPv6 enabled while a few older software may not work up to expectations. #### 5. Can IPv6 communicate with IPv4? They cannot communicate directly as they are two separate protocols, with incompatible packet headers and addressing. IPv6 applications that run on a dual-stack are allowed to use the IPv4 protocol. IPv6 applications will make use of an IPv4-mapped IPv6 address. The client is able to communicate with IPv4–only servers. It is also possible to communicate with IPv6 servers that run on either IPv6–only host or a dual host. #### 6. Can IPv6 cause problems? If you disable IPv6, it may cause problems. If your router and internet connection have previously migrated to IPv6, then you will not be permitted to use it properly when IPv6 is disabled. IPv6 is a must to replace IPv4 as we are running out of IPv4 addresses and IPv6 is considered as the solution. #### 7. Will IPv6 ever become standard? IPv6 is already considered a standard and is intended to replace IPv4. IPv6 is more secure, more efficient, and more mobile-friendly compared to IPv4. #### 8. Will IPv6 be exhausted? No, because there exists 340 trillion, trillion, trillion number of IPv6 addresses, which will be enough to support trillions of internet devices for the future. #### 9. Will IPv4 address depletion implies services to get switched off? No, both IPv4 and IPv6 will be running in parallel till there is no more necessity to do so. #### 10. What will happen when the IPv4 is over? IPv6 has been deployed on the Internet successfully and is being commonly used. It will permit continuous network growth, and there will be no problems when IPv4 is over. ### Conclusion The study on IPv4 and IPv6 networks showed that the IPv6 performs better than the IPv4 with mere difference, but still it has not shown 100% accurate performance over IPv4. IPv6 deployment is a necessity, it still needs a gradual change despite many advantages that come with the new version. IPv4 and IPv6 will hold a stable position for a long time, hence the necessity for methods of communication between the old and new variants will arise. The Dual-Stacking or Tunneling method may be used to get rid of subsequent problems in the internet networks because the related issues address spaces in the numbering system of the Internet Protocol version 4 (IPv4). This article will help you to understand the difference between IPv4 and IPv6. ### References - https://ukdiss.com/examples/ipv4-and-ipv6-differences.php - https://www.youtube.com/watch?v=ThdO9beHhpA - https://www.youtube.com/watch?v=8npT9AALbrI

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully