Cisco Itp in Eservglobal In: Ip Overview and Sub-Netting
Cisco Itp in Eservglobal In: Ip Overview and Sub-Netting
29 August 2006
IPOverview|2|2006eServGlobal
Often TCP/IP, as the two most important (and the first) protocols
defined were: Transmission Control Protocol (TCP) and Internet
Protocol (IP)
Four Layer model, rather than the (later) OSI seven layer model
Application (Telnet, FTP, SNMP, SMTP, POP3, HTTP, DNS, RTP, SSH)
Data Link (HDLC, FDDI, SLIP, Frame Relay, PPP, Token Ring, Ethernet,
Wi-Fi, ATM, X.25, PPPoE)
IPOverview|3|2006eServGlobal
IPOverview|4|2006eServGlobal
17
132
TCP, SCTP are reliable, if using UDP, the application layer must
implement the reliability (if it needs or wants it).
A new version with 128 bit address, called IP V6 has been slow
coming, but is required in US Govt machines from 2008
IPOverview|5|2006eServGlobal
IPOverview|6|2006eServGlobal
20, 21
TCP, UDP
22
TCP, UDP
Telnet
23
TCP, UDP
25
TCP, UDP
80
TCP
110
TCP
2905
SCTP, TCP
SCTP, TCP
SCTP, TCP
IPOverview|7|2006eServGlobal
14001
Hubs:
Every packet is constantly being sent out to every port on the hub
Switches:
Routing:
IPOverview|8|2006eServGlobal
Switches:
Routing:
Rewrites the MAC address when it goes from one subnet to another
IPOverview|9|2006eServGlobal
Connection:
. : nsw.bigpond.net.au
. : Dell TrueMobile WLAN Card
. : 00-90-4B-24-32-51
. : Yes
. : Yes
. : 192.10.0.3
. : 255.255.255.0
. : 192.10.0.1
. : 192.10.0.1
. : 192.10.0.1
. : 4 September 2003 00:03:47
. : 7 September 2003 00:03:47
fred%> arp a
Interface: 10.10.0.3 --- 0x2
Internet Address
Physical Address
10.10.0.1
00-30-ab-0c-47-e7
10.10.0.2
00-30-ab-0c-ea-d3
Interface: 10.10.10.4 --- 0x180003
Internet Address
Physical Address
10.10.10.10
00-10-4b-0c-d3-00
IPOverview|10|2006eServGlobal
Type
dynamic
dynamic
Type
dynamic
Time
Destination
Protocol
ARP
ARP
IPOverview|11|2006eServGlobal
Hardware size: 6
Protocol size: 4
Hardware size: 6
IPOverview|12|2006eServGlobal
Protocol size: 4
BGP, OSPF, PNNI, EGP (dynamic) and OSI IS-IS (static) routing.
There are other equivalent systems for other uses (IPMP on Solaris is
a bit different there we have one machine with two interfaces)
IPOverview|13|2006eServGlobal
Defined in RFC 1034 and RFC 1035 (updated from 882, 883)
IPOverview|14|2006eServGlobal
IPOverview|15|2006eServGlobal
Source
Destination
Proto Info
DNS
Standard query A
DNS
Standard query A
User Datagram Protocol, Src Port: 1090 (1090), Dst Port: domain (53)
Domain Name System (query)
Questions: 1
Queries
www.breshire.com: type A, class IN
Name: www.breshire.com
Type: A (Host address)
IPOverview|16|2006eServGlobal
192.168.29.11
IPOverview|17|2006eServGlobal
IPOverview|18|2006eServGlobal
Source
14:42:33.128 10.20.64.2
14:42:33.812 10.20.64.3
Destination
Protocol
224.0.0.2
224.0.0.2
HSRP
HSRP
Info
Hello (state Standby)
Hello (state Active)
IPOverview|19|2006eServGlobal
The more bits for networks, the smaller the LAN can be (total = 32)
They can be re-used over and over at other sites (with NAT)
IPOverview|20|2006eServGlobal
Netmask
Netmask (binary)
% of a /24
/30
255.255.255.252
11111111.11111111.11111111.111111xx
1/64
/29
255.255.255.248
11111111.11111111.11111111.11111xxx
1/32
/28
16
255.255.255.240
11111111.11111111.11111111.1111xxxx
1/16
/27
32
255.255.255.224
11111111.11111111.11111111.111xxxxx
1/8
/26
64
255.255.255.192
11111111.11111111.11111111.11xxxxxx
1/4
/25
128
255.255.255.128
11111111.11111111.11111111.1xxxxxxx
1/2
/24
256
255.255.255.0
11111111.11111111.11111111.xxxxxxxx
/23
512
255.255.254.0
11111111.11111111.1111111x.xxxxxxxx
/22
1024
255.255.252.0
11111111.11111111.111111xx.xxxxxxxx
/21
2048
255.255.248.0
11111111.11111111.11111xxx.xxxxxxxx
/20
4096
255.255.240.0
11111111.11111111.1111xxxx.xxxxxxxx
16
/19
8192
255.255.224.0
11111111.11111111.111xxxxx.xxxxxxxx
32
/18
16384
255.255.192.0
11111111.11111111.11xxxxxx.xxxxxxxx
64
/17
32768
255.255.128.0
11111111.11111111.1xxxxxxx.xxxxxxxx
128
/16
65536
255.255.0.0
11111111.11111111. xxxxxxxx.xxxxxxxx
256
IPOverview|21|2006eServGlobal
11111111
11111111
111 00000
IP Range
Broad
Network #
IP Range
Broad
11.1.2.0/27
.1-.30
.31
11.1.2.32/27
.33-.62
.63
11.1.2.64/27
.65-.94
.95
11.1.2.96/27
.97-.126
.127
11.1.2.128/27
.129-.158
.159
11.1.2.160/27
.161-.190
.191
11.1.2.192/27
.193-.222
.223
11.1.2.224/27
.225-.254
.255
IPOverview|22|2006eServGlobal
11111111.11111111.11111111.10001011
Source address is 192.168.29.11
11000000.10101000.00011101.00001011
Destination address is 192.168.40.123
11000000.10101000.00101000.01111011
= ROUTE!!
11000000.10101000.00011101.00001101
= USE ARP!!
11000000.10101000.00011101.10000010
IPOverview|23|2006eServGlobal
= ROUTE!!
Does NOT change the IP address, but probably the MAC (ARP!)
Source address of packet is 192.168.29.11
Route for 192.168.29.0/25
192.168.200.x
192.168.100.y
192.168.200.1
192.168.100.1
192.168.300.1
192.168.29.11
4
192.168.300.z
192.168.29.1
IPOverview|24|2006eServGlobal
.192 subnet
Address
Purpose
Address
Purpose
.160
Subnet Name
.192
Subnet Name
.161
.193
.162
.194
.163
.195
.164
Low Address
.196
Low Address
26 Total
26 Total
.190
High Address
.222
High Address
.191
Broadcast
.223
Broadcast
IPOverview|25|2006eServGlobal
Thats enough
Surely!!
IPOverview|26|2006eServGlobal