cs615 aspects of system administration networking i
play

CS615 - Aspects of System Administration Networking I Department of - PowerPoint PPT Presentation

CS615 - Aspects of System Administration Slide 1 CS615 - Aspects of System Administration Networking I Department of Computer Science Stevens Institute of Technology Jan Schaumann jschauma@stevens.edu https://stevens.netmeister.org/615/


  1. CS615 - Aspects of System Administration Slide 1 CS615 - Aspects of System Administration Networking I Department of Computer Science Stevens Institute of Technology Jan Schaumann jschauma@stevens.edu https://stevens.netmeister.org/615/ Networking I February 25, 2019

  2. CS615 - Aspects of System Administration Slide 2 Networking I Networking I February 25, 2019

  3. CS615 - Aspects of System Administration Slide 3 Networking I Networking I February 25, 2019

  4. CS615 - Aspects of System Administration Slide 4 Networking I $ sudo tcpdump -w /tmp/out port 80 & $ curl -s -I http://www.cs.stevens.edu/ >/dev/null $ fg ^C $ sudo tcpdump -r /tmp/out -n -XX -c 1 14:22:49.493234 IP 172.16.1.20.51999 > 155.246.89.84.80: Flags [S], seq 858820044, wi options [mss 1460,nop,wscale 6,nop,nop,TS val 929935740 ecr 0,sackOK,eol], length 0 0x0000: c4b3 01db afe2 8c85 9013 73c1 0800 4510 ..........s...E. 0x0010: 0040 0000 4000 4006 9839 ac10 0114 9bf6 .@..@.@..9...... 0x0020: 5954 cb1f 0050 3330 8dcc 0000 0000 b002 YT...P30........ 0x0030: ffff 1f37 0000 0204 05b4 0103 0306 0101 ...7............ 0x0040: 080a 376d b17c 0000 0000 0402 0000 ..7m.|........ Networking I February 25, 2019

  5. CS615 - Aspects of System Administration Slide 5 Networking I Layer 2: Ethernet information: 0x0000: c4b3 01db afe2 8c85 9013 73c1 0800 4510 ..........s...E. 0x0010: 0040 0000 4000 4006 9839 ac10 0114 9bf6 .@..@.@..9...... 0x0020: 5954 cb1f 0050 3330 8dcc 0000 0000 b002 YT...P30........ 0x0030: ffff 1f37 0000 0204 05b4 0103 0306 0101 ...7............ 0x0040: 080a 376d b17c 0000 0000 0402 0000 ..7m.|........ Destination address: c4:b3:01:db:af:e2 Source address: 8c:85:90:13:73:c1 Type: IP (0800) $ ifconfig en0 | grep ether ether 8c:85:90:13:73:c1 Networking I February 25, 2019

  6. CS615 - Aspects of System Administration Slide 6 Networking I Layer 3: Internet Protocol: 0x0000: c4b3 01db afe2 8c85 9013 73c1 0800 4510 ..........s...E. 0x0010: 0040 0000 4000 4006 9839 ac10 0114 9bf6 .@..@.@..9...... 0x0020: 5954 cb1f 0050 3330 8dcc 0000 0000 b002 YT...P30........ 0x0030: ffff 1f37 0000 0204 05b4 0103 0306 0101 ...7............ 0x0040: 080a 376d b17c 0000 0000 0402 0000 ..7m.|........ Version 4 (0100) + Header Length 20 (0101); 01000101 = 69 dec = 45 DSCP unknown (000100) + Not-ECN (00); 00010000 = 16 dec = 10 Total length 64 = 0040 Identification 0000 Flags: Don’t Fragment (010) + Frag Offset (00000) = 64 dec = 4000 TTL: 64 (40) Networking I February 25, 2019

  7. CS615 - Aspects of System Administration Slide 7 Networking I Layer 3: Internet Protocol: 0x0000: c4b3 01db afe2 8c85 9013 73c1 0800 4510 ..........s...E. 0x0010: 0040 0000 4000 4006 9839 ac10 0114 9bf6 .@..@.@..9...... 0x0020: 5954 cb1f 0050 3330 8dcc 0000 0000 b002 YT...P30........ 0x0030: ffff 1f37 0000 0204 05b4 0103 0306 0101 ...7............ 0x0040: 080a 376d b17c 0000 0000 0402 0000 ..7m.|........ Protocol: TCP (6) 06 Header Checksum: 0x9839 Source Address: 172.16.1.20 (ac10 0114) Destination Address: 155.246.89.84 (9bf6 5954) TCP Stuff: cb1f ... 0000 $ ifconfig en0 | grep "inet " inet 172.16.1.20 netmask 0xffffff00 broadcast 172.16.1.255 $ Networking I February 25, 2019

  8. CS615 - Aspects of System Administration Slide 8 IPv4 Basics 10011011111101100101100101100100 IPv4 addresses are 32-bit numbers. Networking I February 25, 2019

  9. CS615 - Aspects of System Administration Slide 9 IPv4 Basics 10011011 11110110 01011001 01010100 Each IPv4 address consists of four octets. Networking I February 25, 2019

  10. CS615 - Aspects of System Administration Slide 10 IPv4 Basics 10011011 11110110 01011001 01010100 155 . 246 . 89 . 84 9B F6 59 54 Each IPv4 address consists of four octets. Networking I February 25, 2019

  11. CS615 - Aspects of System Administration Slide 11 IPv4 Basics 10011011 11110110 01011001 01010100 IPv4 addresses are divided into a network part and a host part . Hosts on the same network ( broadcast domain ) can talk to each other without the help of a router. Networking I February 25, 2019

  12. CS615 - Aspects of System Administration Slide 12 IPv4 Basics 10011011 11110110 01011001 01010100 There are three different classes of IPv4 networks. Networking I February 25, 2019

  13. CS615 - Aspects of System Administration Slide 13 IPv4 Basics 10011011 11110110 01011001 01010100 There are three different classes of IPv4 networks. Well, five, really. Networking I February 25, 2019

  14. CS615 - Aspects of System Administration Slide 14 IPv4 Basics Networking I February 25, 2019

  15. CS615 - Aspects of System Administration Slide 15 Subnets 10011011 11110110 01011001 01010100 11111111 11111111 00000000 00000000 A netmask splits the IPv4 address into network and host parts. Networking I February 25, 2019

  16. CS615 - Aspects of System Administration Slide 16 Subnets 10011011 11110110 01011001 01010100 11111111 11111111 11111111 00000000 A netmask splits the IPv4 address into network and host parts. Networking I February 25, 2019

  17. CS615 - Aspects of System Administration Slide 17 Subnets $ ipcalc -n 155.246.89.84/16 Address: 155.246.89.84 10011011.11110110. 01011001.01010100 Netmask: 255.255.0.0 = 16 11111111.11111111. 00000000.00000000 Wildcard: 0.0.255.255 00000000.00000000. 11111111.11111111 => Network: 155.246.0.0/16 10011011.11110110. 00000000.00000000 HostMin: 155.246.0.1 10011011.11110110. 00000000.00000001 HostMax: 155.246.255.254 10011011.11110110. 11111111.11111110 Broadcast: 155.246.255.255 10011011.11110110. 11111111.11111111 Hosts/Net: 65534 Class B Try also: sipcalc -a 155.246.89.84/16 Networking I February 25, 2019

  18. CS615 - Aspects of System Administration Slide 18 Subnets $ ipcalc -n 155.246.89.84/24 Address: 155.246.89.84 10011011.11110110.01011001. 01010100 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 155.246.89.0/24 10011011.11110110.01011001. 00000000 HostMin: 155.246.89.1 10011011.11110110.01011001. 00000001 HostMax: 155.246.89.254 10011011.11110110.01011001. 11111110 Broadcast: 155.246.89.255 10011011.11110110.01011001. 11111111 Hosts/Net: 254 Class B Try also: sipcalc -a 155.246.89.84/24 Networking I February 25, 2019

  19. CS615 - Aspects of System Administration Slide 19 CIDR cheat sheet A.B.C.D/N N = bits describing network portion of address M = 32 − N = bits in host portion of address 2 M = number of addresses on this subnet 2 M − 2 = number of possible hosts first address on subnet = network address last address on subnet = broadcast address subnet division need not occur on dotted boundary only for example, you can divide 155.246.89.0/24 into four /26 networks networks starting at .0, .64, .128, .192 Which of the following is not a valid netmask? 255.255.253.0, 255.255.250.0, 255.255.240.0 Networking I February 25, 2019

  20. CS615 - Aspects of System Administration Slide 20 Mommy, where do IP addresses come from? The Internet Assigned Numbers Authority (IANA) oversees global IP address/AS number allocation, root zone management etc. https://www.iana.org/ Networking I February 25, 2019

  21. CS615 - Aspects of System Administration Slide 21 Mommy, where do IP addresses come from? Regional Internet Registries (RIR) manage the allocation and registration of Internet number resources within a region of the world. See also: https://www.xkcd.com/195/ Networking I February 25, 2019

  22. CS615 - Aspects of System Administration Slide 22 Mommy, where do IP addresses come from? RIR s assign blocks of IP addresses to the Local Internet Registries (LIR). LIRs are either ISPs, enterprises using a lot of addresses, or academic institutions. Networking I February 25, 2019

  23. CS615 - Aspects of System Administration Slide 23 IPv4 Subnets: Common CIDRs 10011011 11110110 01011001 01100100 | | |||| | |||||||| /32 Host route | | |||| | |||||| /30 "Glue network" (Point-to-point) | | |||| | ||||| /29 Smallest multi-host network | | |||| | |||| /28 Small LAN | | |||| | ||| /27 Small LAN | | |||| | || /26 Small LAN | | |||| | | /25 Large LAN | | |||| | /24 Large LAN | | |||| /20 Small ISP / Large business | | ||| /19 LIR / ISP / Large business | | || /18 LIR / ISP / Large business | | | /17 LIR / ISP / Large business | | /16 LIR / ISP / Large business | /8 RIR Networking I February 25, 2019

  24. CS615 - Aspects of System Administration Slide 24 IPv4 Exhaustion Networking I February 25, 2019

  25. CS615 - Aspects of System Administration Slide 25 IPv4 Exhaustion IPv4 address space depletion: private IP space (RFC1918): 10.0.0.0/8 , 172.16.0.0/12 , 192.168.0.0/16 class D ( 224.0.0.0/4 ) and E ( 240.0.0.0/4 ) class As (16M addresses each!) initially handed out liberally (ATT, Apple, MIT, Stanford, Xerox, ...) subnetting often inefficient more and more devices added Networking I February 25, 2019

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend