Escolar Documentos
Profissional Documentos
Cultura Documentos
Objectives
Understand methods of network design unique to TCP/IP networks, including subnetting, CIDR, NAT and ICS Explain the differences between public and private networks Describe protocols used between mail clients and mail servers, including SMTP, POP3, and IMAP4 Employ multiple TCP/IP utilities for network discovery and troubleshooting
Subnetting
Separates network into multiple, logically defined segments (subnets) Each subnets traffic separated from every other subnets traffic
Enhances security
Subnetworks must be connected via routers or other Layer 3 devices
Improves performance
Data is selectively retransmitted
Simplifies troubleshooting
Classful Addressing
Adheres to network class distinctions
Only Class A, B, and C addresses are recognized Network ID limited to first 8 bits in Class A, first 16 bits in Class B, and first 24 bits in Class C
Fixed network ID size ultimately limits number of hosts a network can include
Subnet Masks
Subnetting depends on subnet masks to identify how a network is subdivided Indicates where network information is located in an IP address 1 bits indicate corresponding bits in IP address contain network information 0 bits indicate corresponding bits in IP address contain host information To calculate hosts network ID given IP address and subnet mask, perform ANDing
Reserved Addresses
Certain types of IP addresses reserved for special functions
In network IDs, bits for host information set to 0 In broadcast addresses, octet(s) representing host information set to all 1s (255 in decimal notation)
Subnetting Techniques
Subnetting breaks rules of classful addressing
Some bits that in classful addressing would represent host information changed to represent network information Reduce number of usable host addresses per subnet
Calculating Subnets
Formula for determining how to modify a default subnet mask: 2n-2=Y n = number of bits in subnet mask that must be switched from 0 to 1 Y = number of subnets that result Extended network prefix: Additional bits used for subnet information plus existing network ID Class A, B, and C networks can all be subnetted External routers pay attention to only the network portion of devices IP addresses
Subnet Mask
Every device on TCP/IP-based network identified by subnet mask
32-bit number that, when combined with devices IP address, informs rest of network about segment or network to which a device is attached
Subnetting: subdividing single class of networks into multiple, smaller logical networks or segments
Assigning IP Addresses
Nodes on a network must have unique IP addresses Static IP address: manually assigned
Can easily result in duplication of addresses
DHCP (continued)
Computer can only communicate with other nodes using addresses in APIPA range
DNS (continued)
DNS (continued)
Internet Gateways
Combination of software and hardware enabling two different network segments to exchange data Every device on a TCP/IP-based network has a default gateway First interprets outbound requests to other subnets Interprets inbound requests from other subnets Each node on network has one default gateway May be network interface on a router Must maintain routing tables as well Core gateways make up the Internet backbone
NAT (continued)
Nearly all TCP/IP utilities can be accessed from command prompt on any type of server or client running TCP/IP
Syntax may differ depending on OS Options may differ according to OS
Netstat
Displays TCP/IP statistics and details about TCP/IP components and connections on a host
Port on which a particular TCP/IP service is running Network connections currently established Number of packets handled by network interface since activation Number of data errors
Netstat (continued)
Common Netstat switches: -a lists all available TCP and UDP connections -e displays details about all packets that have been sent -n lists currently connected hosts according to their ports and IP addresses (in numerical form) -p allows you to specify what type of protocol statistics to list -r provides list of routing table information -s provides statistics about each packet transmitted by a host, separated according to protocol type
Nbtstat
Given NetBIOS name, get IP address Common nbtstat switches: -a displays a machines name table given its NetBIOS name -A displays a machines name table given its IP address -r lists statistics about names that have been resolved to IP addresses by broadcast and by WINS -s displays a list of all the current NetBIOS sessions for a machine
Nslookup
Query DNS database from any network computer and find host name of a device by specifying its IP address, or vice versa
Provides hosts IP address, primary DNS server name, and address holding record for this name Many options (switches)
Whois
Query DNS registration database and obtain information about a domain Who is domain registered to? Technical person responsible for domain? Hosting entity? DNS Server addresses? Must install software to use on Windows systems Web-based alternatives exist e.g., www.arin.net
Traceroute (Tracert)
Uses ICMP to trace path from one node to another Identifies all intermediate hops Useful for determining router or subnet connectivity problems Transmits series of UDP datagrams to specified destination Increases TTL as path is discovered Traceroute may stop before completing Device problem on path Device does not accept ICMP transmissions Often indicates firewall
Traceroute (continued)
Common switches:
-d instructs traceroute not to resolve IP addresses to host names -h specifies maximum number of hops packets should take when attempting to reach a host
Default is 30
Ipconfig
TCP/IP administration utility for use with Windows NT, 2000, XP, and Server 2003 OSs Provides information about network adapters IP address, subnet mask, and default gateway Commonly used switches: /? displays list of available switches /all displays complete TCP/IP configuration information for each network interface on device /release releases DHCP-assigned addresses for all network interfaces /renew renews DHCP-assigned addresses for all network interfaces