Mr C Johnston ICT Teacher

Slides:



Advertisements
Similar presentations
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Advertisements

19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
Addressing the Network IPv4
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
Network Layer: Logical Addressing. 4-1 IPv4 ADDRESSES An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device.
Introduction to TCP/IP TCP / IP –including 2 protocols Protocol : = a set of rules that govern the communication between different devices Protocol : =
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5.
IP Address 1. 2 Network layer r Network layer protocols in every host, router r Router examines IP address field in all IP datagrams passing through it.
IP Address 1. 2 Network layer r Network layer protocols in every host, router r Router examines IP address field in all IP datagrams passing through it.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
Copyright 2003 CCNA 1 Chapter 7 TCP/IP Protocol Suite and IP Addressing By Your Name.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 19 Network Layer Logical Addressing © 2012 by McGraw-Hill Education. This is proprietary material.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Layering and the TCP/IP protocol Suite  The TCP/IP Protocol only contains 5 Layers in its networking Model  The Layers Are 1.Physical -> 1 in OSI 2.Network.
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
1 26-Aug-15 S Ward Abingdon and Witney College CCNA Exploration Semester 1 Addressing the network IPv4 CCNA Exploration Semester 1 Chapter 6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
DHCP: Dynamic Host Configuration Protocol
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Addressing Networking for Home and Small Businesses – Chapter 5.
NetworkProtocols. Objectives Identify characteristics of TCP/IP, IPX/SPX, NetBIOS, and AppleTalk Understand position of network protocols in OSI Model.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
Lectu re 1 Recap: “Operational” view of Internet r Internet: “network of networks” m Requires sending, receiving of messages r protocols control sending,
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Chapter 5 IPv4 Address.
IP addresses IPv4 and IPv6. IP addresses (IP=Internet Protocol) Each computer connected to the Internet must have a unique IP address.
Internet Architecture. 2 INTRODUCTION INTERNET developed by a community of researchers centered around the Defense Advanced Research Projects Agency (DARPA)
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
Mr C Johnston ICT Teacher G055 - Lecture 10 Network Protocols.
Chapter 5. An IP address is simply a series of binary bits (ones and zeros). How many binary bits are used? 32.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the network IPv4 CCNA Exploration Semester 1 – Chapter 6.
Network Layer IP Address.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IP Addresses: Classful Addressing
Instructor Materials Chapter 4: Network Addressing
OSI Model IP address.
Lecture 3 By Miss Irum Matloob.
Dr. Richard Spillman Fall 2006
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Networking for Home and Small Businesses – Chapter 5
The OSI Model and the TCP/IP Protocol Suite
Computer Communication and Networking
PART IV Network Layer.
IP Addresses: Classful Addressing
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet.
ADDRESSING Before you can send a message, you must know the destination address. It is extremely important to understand that each computer has several.
Networking for Home and Small Businesses – Chapter 5
The OSI Model and the TCP/IP Protocol Suite
Topic 5: Communication and the Internet
Chapter 19 Network Layer: Logical Addressing
Chapter 14 User Datagram Protocol (UDP)
Design Unit 26 Design a small or home office network
IPV4 Address & subnet masks
Network Layer: Logical Addressing
IPv4 Addresses A Quick Guide.
Wide Area Networks and Internet CT1403
Data Communications and Networking
Protocols 1 Key Revision Points.
The OSI Model and the TCP/IP Protocol Suite
IPv4 Addressing By, Ishivinder Singh( ) Sharan Patil ( )
Network Addressing.
Computer Networks Protocols
Layering and the TCP/IP protocol Suite
Presentation transcript:

Mr C Johnston ICT Teacher www.computechedu.co.uk G055 - Lecture 11 Internet Protocol - In Depth!! Mr C Johnston ICT Teacher www.computechedu.co.uk

Session Objectives Know the contents of an IP header Know different types of IP address and their use Be able to convert between a numerical IP address and a binary IP address Be able to convert between a binary IP address and a numerical IP address Understand the concept of IP addressing within a network and submasking

IP Addressing Each computer or device connected to the internet needs a unique address to ensure its receives the data requested, When a host joins the internet its given an IP address – at home this will be provided by your internet service provider, Routers in the internet learn where a particular IP address is and the best route to get traffic to it, When using TCP/IP a special IP header is added to each data packet to assist routers in routing network traffic, There are two types of IP address used – IPv4 and IPv6.

IP Header Flags - these indicate if a datagram must not be divided up (fragmented) by TCP or if this is last datagram in the sequence making up a message. Offset - the position in the sequence of datagrams making up the whole message. Time To Live - the number of routers that a datagram can pass through before it is considered lost. This number is decreased by each router. If it reaches 0, the message is destroyed and will be considered to be lost. Protocol - IP works with TCP and with other protocols such as User Datagram Protocol (UOP) used on LANs using Network File System (NFS) . checksum - an error-checking value, calculated to allow each device to check that the datagram has not become corrupted on its journey. Each device will recalculate the checksum as fields such as Time To Live change.

IP Addresses IPv4 has four sets of 8 binary bits which are normally displayed in decimal separated by a dot e.g. 82.25.60.58 IPv6 has 8 sets of hexadecimal numbers between 0 and FFFF (equivalent to 16 binary bits) which are normally displayed as their HEX value separated by a colon e.g. 1050:0000:0000:0000:0005:0600:300c:326b In theory there are 2^128 addresses available with IPv6 (340,282,366,920,938,463,463,374,607,431,768,211,456) compared with only 2^32 available IPv4 addresses (4,294,967,296) IPv6 is needed because we are running out of IPv4 addresses quickly although there is worry about the slow uptake of the new standard http://www.bbc.co.uk/news/technology-11736394

DHCP Diagram Host / Client DHCP Server 1. DHCP Discover Packet 2. DHCP Offer Packet 3. DHCP Request Packet 2. DHCP Ack Packet Host / Client Discover packet is broadcast to find the server, When a discover packet is received the DHCP server sends an offer which includes an IP address, When an offer is received the host / client then has to request to rent it, If the IP address is still free when the server receives a request it will reply with an acknowledgment confirming the host can use it.

DHCP in Action

NAT Diagram

NAT In Action

IP Addresses – The Boss?? If each host on the internet needs a unique address then who is in charge of ensuring this happens?? Addresses are assigned by regional registrars who will each have a pool of addresses to assign – they keep a database of who is assigned what to ensure there are no duplications, You may be assigned a range of address (for example an ISP) to distribute within your network, As IP addresses are distributed regionally, you can tell the origin of internet traffic – lets trace my IP…

IP Address Classes IP addresses are split into 5 different classes of network, Different classes use a different number of bits to identify them therefore they are capable of supporting a different number of hosts. Range Format Use A 1-128 8 bit network address 24 bit host address (123.xxx.xxx.xxx) Only 128 large networks can use this class each having 2^24 (16777216) addresses available to assign to hosts / clients. B 128-191 16 bit network address 16 bit host address (145.89.xxx.xxx) About 16,000 medium sized networks each having 2^16 (65536) addresses available to assign to hosts / clients. C 192-223 24 bit network address 8 bit host address (220.34.234.xx) About 2 million Small networks each having 2^8 (256) addresses available to assign to hosts (clients) D 224 - 254 32 bit host address (224.xxx.xxx.xxx) Individual hosts not on networks and there are about 268 million available addresses E 255 255.xxx.xxx.xxx Experimental addresses

Subnet Masks Routers use masks so they only look at the required part of an IP address, On the internet a router only needs to look at the network address part of an IP address whilst a router inside a LAN only needs to look at the host part, Subnet masks can be used to mask out the bits of the IP address which is not required: A typical subnet mask on an internal Class C network would be 255.255.255.0 – setting the first 3 parts to 255 will tell the router to ignore the network address part, What would be a typical mask for class A and class B networks? You can also use masks to spilt networks into different segments – by activating the first bit of the fourth byte - if a network had 2 segments then the subnet mask would be 255.255.255.128 For more segments you activate the 2 bit and add this to the first and so on. 4 segments – 255.255.255.192 Once the mask is added its possible to tell which segment the host is in and route traffic to the correct segment.

Binary IP Addresses Most IP addresses are given in a decimal format however the computers need them in binary format, For the exam you need to be able to convert a decimal IP to binary and vica-versa, Converting a binary IP address to decimal is straight – just take each set of 8 bits and place them into the table below – where there is a 1 add the corresponding decimal numbers together. e.g. 10101011.11100110.01101101.11011110 Use a table to calculate the rest of the IP address 128 64 32 16 8 4 2 1 128 + 32 + 8 + 2 + 1 = 171

Decimal to binary requires a little more thought – and some trial and error! Using the same table we work from left to right placing a 1 in each box and adding it to the running total… if the value we are trying to find is exceeded we replace the 1 with a 0 and move to the next column. Convert 185 to binary 128 64 32 16 8 4 2 1 128 < 185 therefore 1 ok 128 64 32 16 8 4 2 1 128 + 64 = 192 > 185 therefore 0 128 64 32 16 8 4 2 1 128 + 32 = 160 < 185 therefore 1 ok 128 64 32 16 8 4 2 1 160 + 16 = 176 < 185 therefore 1 ok 128 64 32 16 8 4 2 1 176 + 8 = 184 < 185 therefore 1 ok 128 64 32 16 8 4 2 1 184 + 4 = 188 > 185 therefore 0 128 64 32 16 8 4 2 1 184 + 2 = 186 > 185 therefore 0 128 64 32 16 8 4 2 1 184 + 1 = 185 = 185 therefore 1 ok 185 in binary is 10111001

Topic Exercise Complete the following reading: A2 Text Book Pages pg34-39 (start @ TCP/IP heading) Read the BBC notes on IPv6 just in case they question on it – doubt it but you never know.. Download and complete this topics exercise and past exam paper questions – complete for next lesson.