{"id":227,"date":"2022-11-28T19:01:19","date_gmt":"2022-11-28T19:01:19","guid":{"rendered":"http:\/\/learnlearn.uk\/ibcs\/?page_id=227"},"modified":"2022-11-28T19:06:25","modified_gmt":"2022-11-28T19:06:25","slug":"ipv4-vs-ipv6-vs-mac-addresses","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/","title":{"rendered":"IP &#038; MAC Addresses"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Public IP<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Public IP Addresses<\/strong><\/p>\n<p>Each LAN connected to the internet usually has a single public IP Address*. This is the address seen by other computers and networks on the Internet and is the address attached to packets sent across the Internet.<\/p>\n<p>There are 2 main types of Public IP Addresses: <strong>Static<\/strong> and <strong>Dynamic<\/strong><\/p>\n<p>* For larger organizations they might have a whole IP range issued to them instead, depending on what kind of network address translation (NAT) they are using.<\/p>\n<p>Publics addresses are usually assigned by your ISP.<\/p>\n\n<\/div><h2 class=\"tabtitle\">Private IP<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Private IP Addresses<\/strong><\/p>\n<p>Computers within a LAN have their own private IP Address, that is different to their Public IP Address. This private IP Adddress is either:<\/p>\n<ul>\n<li>Issued by the Server \/ Router using Dynamic Host Configuration Protocol (DHCP)<\/li>\n<li>Set manually by the computer user themselves.<\/li>\n<\/ul>\n<p>Private IP addresses are usually in the 192.168.x.x range though can also be in the 10.x.x.x and 172.x.x.x<\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">NAT<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Network Address Translation(NAT)<\/strong><\/p>\n<p>When a user sends a packet from a computer to a server over the internet, the NAT server swaps the private IP address for a public IP Address and attaches a PORT ID to the packet. The NAT server keeps track of which computers are assigned to which private IP address, so that when a packet returned to the port, it can swap that public IP address on the packet back to the private ip address and send it through the LAN to the correct computer.<\/p>\n<div class=\"nv-iframe-embed\">\n<div class=\"container-lazyload preview-lazyload container-youtube js-lazyload--not-loaded\"><a href=\"https:\/\/www.youtube.com\/watch?v=QBqPzHEDzvo\" class=\"lazy-load-youtube preview-lazyload preview-youtube\" data-video-title=\"How Network Address Translation Works\" title=\"Play video &quot;How Network Address Translation Works&quot;\">https:\/\/www.youtube.com\/watch?v=QBqPzHEDzvo<\/a><noscript>Video can&#8217;t be loaded because JavaScript is disabled: <a href=\"https:\/\/www.youtube.com\/watch?v=QBqPzHEDzvo\" title=\"How Network Address Translation Works\">How Network Address Translation Works (https:\/\/www.youtube.com\/watch?v=QBqPzHEDzvo)<\/a><\/noscript><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Static vs Dynamic IP<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Static vs Dynamic IP Addresses<\/h3>\n<p><strong>Static Public IP Addresses<\/strong><\/p>\n<p>These are mainly used by:<\/p>\n<ul>\n<li>Businesses with LANs that need to be accessed externally from the internet<\/li>\n<li>Website Hosts<\/li>\n<li>Gamers who want the fastest, most reliable internet service<\/li>\n<\/ul>\n<p>Static IP addresses stay the same, which mean that data is always sent in the most efficient manner. However a static IP address opens your network up to attackers.<\/p>\n<p><strong>Dynamic Public IP addresses<\/strong><\/p>\n<p>Most home internet users are issued with a dynamic public IP address when their router connects to the internet and the IP address lease is renewed every month or so. Each time it is renewed a new IP Address is drawn from the pool.<\/p>\n<p>This sharing of IP addresses allows the internet to continue to function even when there are more devices in the world than their are available IP addresses (4 billion different ip addresses are available in total for IPV4 addresses). It is also potentially harder to hack as a network&#8217;s IP address is constantly changing.<\/p>\n<p>The limited number of addresses available on the internet using IPV4 led to the development of IPV6, though this technology is still in the process of being rolled out&#8230;<\/p>\n<p><strong>Dynamic Private IP Addresses<\/strong><\/p>\n<p>When your computer connects to your home router is it usually issued with a dynamic private IP address in either the\u00a0 192.x.x.x range(most common) or the 10.x.x.x range. The IP address is issued by your home router using <strong>Dynamic Host Configuration Protocol (DHCP)<\/strong>. The lease is normally renewed every 24 hours.<\/p>\n<p><strong>Static Private IP Addresses<\/strong><\/p>\n<p>You can also set a static private IP address for device when you connect to the network. You do this when you set up your network connect. This is useful if you are setting a up a web server or other server and you need the device to have the same IP address at all times for routing and NAT purposes (more about this in future lessons)..<\/p>\n<p>In practice you very rarely if ever set up a static private IP address for a device.<\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">DHCP<\/h2>\n<div class=\"tabcontent\">\n\n<h3 class=\"LC20lb DKV0Md\">Dynamic Host Configuration Protocol<\/h3>\n<div class=\"nv-iframe-embed\">\n<div class=\"container-lazyload preview-lazyload container-youtube js-lazyload--not-loaded\"><a href=\"https:\/\/www.youtube.com\/watch?v=e6-TaH5bkjo\" class=\"lazy-load-youtube preview-lazyload preview-youtube\" data-video-title=\"DHCP Explained - Dynamic Host Configuration Protocol\" title=\"Play video &quot;DHCP Explained - Dynamic Host Configuration Protocol&quot;\">https:\/\/www.youtube.com\/watch?v=e6-TaH5bkjo<\/a><noscript>Video can&#8217;t be loaded because JavaScript is disabled: <a href=\"https:\/\/www.youtube.com\/watch?v=e6-TaH5bkjo\" title=\"DHCP Explained - Dynamic Host Configuration Protocol\">DHCP Explained &#8211; Dynamic Host Configuration Protocol (https:\/\/www.youtube.com\/watch?v=e6-TaH5bkjo)<\/a><\/noscript><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">IPv4<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>IPv4<\/strong><\/p>\n<p>IPv4 is a 32 bit address split into 4 sections<\/p>\n<p>e.g. 255.255.255.255<\/p>\n<p>Range 0 &#8211; 255 (256 Possibilities in each)<\/p>\n<p>Total addresses = 256 x 256 x 256 x 256 = 4.3 Billion.<\/p>\n<p>4.2 Billion Addresses is not enough for the modern world as the world has 7 Billion plus inhabitants and many people have more than one internet connected device.<\/p>\n\n<\/div><h2 class=\"tabtitle\">IPv6<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>IPv6<\/strong><\/p>\n<p>IPv6 is 128 Bit Address,<\/p>\n<p>340,282,366,920,938,463,463,374,607,431,768,211,456 Addresses.<\/p>\n<p>Probably enough for the foreseeable future.<\/p>\n<p><strong>Advantages<\/strong><\/p>\n<ul>\n<li>Future proof &#8211; plenty of unique addresses for each device.<\/li>\n<li>Security built in to the profile<\/li>\n<li>Allows for QOS packet prioritising.<\/li>\n<\/ul>\n<p><strong>Disadvantages<\/strong><\/p>\n<ul>\n<li>A bit more overhead in packet size<\/li>\n<li>Many legacy devices and systems still don&#8217;t fully support IPv6 so we still need IPv4 backup.<\/li>\n<\/ul>\n<h3>Compressing IPv6 Addresses<\/h3>\n<p>IP Version 6 addresses are incredibly long, which makes them difficult humans to read\/write, even when represented using hexadecimal. Fortunately IP Version 6 Addresses can be Shortened (Compressed). Take a look at the video to see how this can be done.<\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1V7IsApSJNxFMSK-mgZzLkHbxReHp57Rp\/view?usp=sharing\">YouTube Blocked? Click here for the Google Drive Version<\/a><\/p>\n<div class=\"nv-iframe-embed\">\n<div class=\"container-lazyload preview-lazyload container-youtube js-lazyload--not-loaded\"><a href=\"https:\/\/www.youtube.com\/watch?v=ltz3Z7AL7Ng\" class=\"lazy-load-youtube preview-lazyload preview-youtube\" data-video-title=\"Compressing (Shortening) IPv6 Addresses\" title=\"Play video &quot;Compressing (Shortening) IPv6 Addresses&quot;\">https:\/\/www.youtube.com\/watch?v=ltz3Z7AL7Ng<\/a><noscript>Video can&#8217;t be loaded because JavaScript is disabled: <a href=\"https:\/\/www.youtube.com\/watch?v=ltz3Z7AL7Ng\" title=\"Compressing (Shortening) IPv6 Addresses\">Compressing (Shortening) IPv6 Addresses (https:\/\/www.youtube.com\/watch?v=ltz3Z7AL7Ng)<\/a><\/noscript><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>Mapping IPv4 addresses to IPv6 Addresses<\/strong><\/p>\n<p>In order to transition from IPv4 to IPv6 old addresses will need to be mapped into IPv6 addresses so that the two can coexist in the new system.<\/p>\n<p>In order to achieve this the first 80 bits are set to 0, followed by 16 bits set to 1. In hexadecimal this would look like:<\/p>\n<p>0:0:0:0:0:ffff\u00a0 (or 0::ffff if it has been compressed)<\/p>\n<p>The remaining 32 bits of an IPv4 address can then be incorporated into the remaining bits.<\/p>\n<p>In hexadecimal each component of the remaining address then fits into 2 Hexdecimal digits each<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Resources<\/h2>\n<div class=\"tabcontent\">\n\n<p><a href=\"https:\/\/learnlearn.uk\/alevelcs\/ip-addressing-crossword\/\">Online IP Addressing Crossword<\/a><\/p>\n<p><a href=\"https:\/\/docs.google.com\/presentation\/d\/1vQCj4QxZ0h8Gh8BlaAvUkt9Ot07yq4ph_oLs7xHXG7A\/edit?usp=sharing\">Shortening IPv6 Addresses Google Slides Document<\/a><\/p>\n<p><a href=\"https:\/\/docs.google.com\/presentation\/d\/1f7Bm_FfYoQ3-lo1U0KjbDOP99h7T2HmP062gNMYuoOw\/edit?usp=sharing\">Mapping IPv4 to IPv6 slideshow<\/a><\/p>\n<p><a href=\"https:\/\/docs.google.com\/document\/d\/180KRSg2n7sLwSjVL9iGFMP4iDRQSQLpFa_q8G4ExHqw\/edit?usp=sharing\">IPv6 Worksheet<\/a><\/p>\n<p><a href=\"https:\/\/docs.google.com\/forms\/d\/e\/1FAIpQLSfnEXWvCMx_-MDhlux5ACBTUzQbAHW1gZnk4x0cXeXLlGiwww\/viewform?usp=sf_link\">Google Forms Quiz<\/a><\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Public IP Addresses Each LAN connected to the internet usually has a single public IP Address*. This is the address seen by other computers and networks on the Internet and is the address attached to packets sent across the Internet. There are 2 main types of Public IP Addresses: Static and Dynamic * For larger&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">IP &#038; MAC Addresses<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":70,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>IP &amp; MAC Addresses - IB Computer Science<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"IP &amp; MAC Addresses - IB Computer Science\" \/>\n<meta property=\"og:description\" content=\"Public IP Addresses Each LAN connected to the internet usually has a single public IP Address*. This is the address seen by other computers and networks on the Internet and is the address attached to packets sent across the Internet. There are 2 main types of Public IP Addresses: Static and Dynamic * For larger&hellip;&nbsp;Read More &raquo;IP &#038; MAC Addresses\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/\" \/>\n<meta property=\"og:site_name\" content=\"IB Computer Science\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-28T19:06:25+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/\",\"name\":\"IP & MAC Addresses - IB Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#website\"},\"datePublished\":\"2022-11-28T19:01:19+00:00\",\"dateModified\":\"2022-11-28T19:06:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"IB Computer Science\",\"item\":\"https:\/\/learnlearn.uk\/ibcs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"IP &#038; MAC Addresses\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#website\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/\",\"name\":\"IB Computer Science\",\"description\":\"- learnlearn..uk\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/ibcs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#organization\",\"name\":\"IB Computer Science\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png\",\"width\":300,\"height\":41,\"caption\":\"IB Computer Science\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"IP & MAC Addresses - IB Computer Science","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/","og_locale":"en_GB","og_type":"article","og_title":"IP & MAC Addresses - IB Computer Science","og_description":"Public IP Addresses Each LAN connected to the internet usually has a single public IP Address*. This is the address seen by other computers and networks on the Internet and is the address attached to packets sent across the Internet. There are 2 main types of Public IP Addresses: Static and Dynamic * For larger&hellip;&nbsp;Read More &raquo;IP &#038; MAC Addresses","og_url":"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/","og_site_name":"IB Computer Science","article_modified_time":"2022-11-28T19:06:25+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/","url":"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/","name":"IP & MAC Addresses - IB Computer Science","isPartOf":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#website"},"datePublished":"2022-11-28T19:01:19+00:00","dateModified":"2022-11-28T19:06:25+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/ibcs\/ipv4-vs-ipv6-vs-mac-addresses\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"IB Computer Science","item":"https:\/\/learnlearn.uk\/ibcs\/"},{"@type":"ListItem","position":2,"name":"IP &#038; MAC Addresses"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/ibcs\/#website","url":"https:\/\/learnlearn.uk\/ibcs\/","name":"IB Computer Science","description":"- learnlearn..uk","publisher":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/ibcs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/ibcs\/#organization","name":"IB Computer Science","url":"https:\/\/learnlearn.uk\/ibcs\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png","contentUrl":"https:\/\/learnlearn.uk\/ibcs\/wp-content\/uploads\/sites\/25\/2022\/09\/LearnLearnLogowhite-300x41.png","width":300,"height":41,"caption":"IB Computer Science"},"image":{"@id":"https:\/\/learnlearn.uk\/ibcs\/#\/schema\/logo\/image\/"}}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/ibcs\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"Public IP Addresses Each LAN connected to the internet usually has a single public IP Address*. This is the address seen by other computers and networks on the Internet and is the address attached to packets sent across the Internet. There are 2 main types of Public IP Addresses: Static and Dynamic * For larger&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/227"}],"collection":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":4,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/227\/revisions"}],"predecessor-version":[{"id":232,"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/pages\/227\/revisions\/232"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/ibcs\/wp-json\/wp\/v2\/media?parent=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}