TCP IP Addressing


Published on

  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

TCP IP Addressing

  1. 1. TCP/IP Addressing Presentation by:- Ritul Sonania 2005H124416 BITS Pilani 02 March 2007
  2. 2. Contents <ul><li>TCP/IP Introduction </li></ul><ul><li>TCP/IP Addressing </li></ul><ul><li>Classful Addressing </li></ul><ul><ul><li>Classes </li></ul></ul><ul><ul><li>Masking </li></ul></ul><ul><ul><li>Subnetting </li></ul></ul><ul><li>Classless Addressing </li></ul><ul><ul><li>CIDR </li></ul></ul><ul><ul><li>Variable length subnet masking </li></ul></ul><ul><ul><li>Supernetting </li></ul></ul>
  3. 3. Introduction <ul><li>TCP/IP is Transmission Control Protocol/Internetworking Protocol </li></ul><ul><li>Developed and founded by ARPA (Advanced Research Project Agency) </li></ul><ul><li>In the early 70’s ARPANET was using it </li></ul><ul><li>Now it is the backbone of the internetwork named these days as the INTERNET. </li></ul>
  4. 4. Introduction Contd.. <ul><li>It is older than OSI model. </li></ul><ul><li>It mainly has 5 layers of service. </li></ul><ul><li>TCP/IP defines two protocols TCP & UDP in the Transport layer. </li></ul><ul><li>IP in the network layer. </li></ul><ul><li>There is no specific protocol defined for physical layer. </li></ul>
  5. 5. TCP/IP Addressing <ul><li>Three different levels of addresses are used in an internet using the TCP/IP protocols: physical (link) address, logical (IP) address , and port address . </li></ul>
  6. 6. <ul><li>Physical addresses are given by NIC’s (Network Interface Cards) attached to the computer. </li></ul><ul><li>They are represented in 12 Hex digits. </li></ul>07:01:02:01:2C:4B A 6-byte (12 hexadecimal digits) physical address.
  7. 7. j,k are port addresses A,P are logical addresses
  8. 8. TCP/IP Addr. Contd… <ul><li>A port address is 16-bit address represented as one decimal number as shown below. </li></ul>753 A 16-bit port address represented as one single number.
  9. 9. TCP/IP Addr. Contd… <ul><li>Each Internet address consists of a 4 byte (32 bit) address. </li></ul><ul><li>Each IP address is unique. </li></ul><ul><li>Six versions – IPv4, IPv5… </li></ul><ul><li>It defines three fields :- </li></ul><ul><ul><li>Class Type </li></ul></ul><ul><ul><li>Net id </li></ul></ul><ul><ul><li>Host id </li></ul></ul>
  10. 10. IP Address Example.. <ul><ul><li>Dotted-Decimal Notation </li></ul></ul><ul><ul><ul><li> ( </li></ul></ul></ul><ul><ul><ul><li> ( </li></ul></ul></ul>
  11. 11. Classes <ul><li>There are five classes – A,B,C,D,E </li></ul><ul><li>Class A – </li></ul><ul><li>Class B – </li></ul><ul><li>Class C - </li></ul><ul><li>Class D - </li></ul><ul><li>Class E - </li></ul>
  12. 12. MASKING It helps in knowing which portion of given IP address identifies network and which identifies host. Default mask for : A -> B -> C ->
  13. 13. Masking contd.. <ul><li>Example : </li></ul><ul><li>Determine Net and Host ID of the IP address </li></ul><ul><li>Step 1 : Find Class, Default mask </li></ul><ul><li>Step2 : write both in binary </li></ul><ul><li>00001100 .00010100.00001001.00000001 </li></ul><ul><li>11111111 .00000000.00000000.00000000 </li></ul><ul><li>NET ID: 12 , HOST ID 20.9.1 </li></ul>
  14. 14. Problem in classic addressing <ul><li>Class A networks (/8) 8-bit network prefix </li></ul><ul><ul><li>Prefix: </li></ul></ul><ul><ul><li>Hosts: ~ </li></ul></ul><ul><ul><li>16,777,216 hosts (Too big?) </li></ul></ul><ul><li>Class B networks (/16) 16-bit network prefix </li></ul><ul><ul><li>Prefix: </li></ul></ul><ul><ul><li>Hosts: ~ </li></ul></ul><ul><li>Class C networks (/24) 24-bit network prefix </li></ul><ul><ul><li>Prefix: </li></ul></ul><ul><ul><li>Hosts: ~ </li></ul></ul><ul><ul><li>Only 255 hosts (Too small?) </li></ul></ul>
  15. 15. SUBNETTING <ul><li>It allows creating multiple logical networks that exist within a single Class A,B or C network. </li></ul><ul><li>If this is not done only one network will be allowed on one address(unrealistic). </li></ul><ul><li>After doing this every sub-network will be having its own unique ID. </li></ul>
  16. 16. SUBNETTING Contd. <ul><li>For subnetting a network , increase the net id to corresponding bits. </li></ul><ul><li>Example </li></ul><ul><li>Default mask : </li></ul><ul><li>Subnet mask : </li></ul><ul><li>11001100.00001100.00001000.00000000 </li></ul><ul><li>11111111.11111111.11111111. 111 00000 </li></ul><ul><li>With these 3 bits possible subnets-> 8 </li></ul><ul><li>Left 5 bits are now used for hosts. So possible hosts under each subnet is 32. </li></ul>
  17. 17. SUBNETTTING Contd. <ul><li> (x.x.x.224) range 1 to 30. </li></ul><ul><li> range 33 to 62 </li></ul><ul><li>. </li></ul><ul><li>. </li></ul><ul><li>. </li></ul><ul><li> range 225 to 254 </li></ul>
  18. 18. Classless Inter-Domain Routing (CIDR) <ul><li>Introduced in 1993 </li></ul><ul><li>It replaced the previous generation of IP address syntax. </li></ul><ul><li>CIDR is principally a bitwise, prefix-based standard for the interpretation of IP addresses. It facilitates routing by allowing blocks of addresses to be grouped together into single routing table entries. These groups, commonly called CIDR blocks , share an initial sequence of bits in the binary representation of their IP addresses. </li></ul><ul><li>It uses Variable length subnet mask (VLSM). </li></ul><ul><li>A subnet mask encodes the same information as a prefix length, but predates the advent of CIDR. </li></ul><ul><li>One more property that CIDR has is that it allows super-netting . </li></ul>
  19. 19. Format of CIDR n denotes the prefix. Example :- Find the first address in the block if one of the addresses is . Ans: . (CIDR Form)
  20. 20. Supernetting
  21. 21. Why CIDR is popular ? <ul><li>It allows with only block addressing full routing table to saved on the routers. </li></ul><ul><li>The routers today that are available to handle the full routing table are: </li></ul><ul><ul><li>cisco 7000 w/ 64Mb </li></ul></ul><ul><ul><li>cisco 4500 w/ 32Mb </li></ul></ul><ul><ul><li>IBM ENSS and CNSS w/ 64Mb </li></ul></ul><ul><ul><li>BayNetworks models AN/ASN/BLN/BCN w/ 32Mb </li></ul></ul>
  22. 23. <ul><li>Thanks </li></ul>