Network+ Guide To Networks 5 Edition: In-Depth TCP/IP Networking
Network+ Guide To Networks 5 Edition: In-Depth TCP/IP Networking
Network+ Guide To Networks 5 Edition: In-Depth TCP/IP Networking
Objectives
Understand methods of network design unique to TCP/IP networks, including subnetting, CIDR, and address translation Explain the differences between public and private TCP/IP 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
TCP/IP fundamentals
IP: routable protocol
Interfaces requires unique IP address Node may use multiple IP addresses
Network classes: A, B, C, D, E
Class D, E addresses reserved Nodes network class provides information about segment network node belongs to
Subnetting
Separates network
Multiple logically defined segments (subnets)
Geographic locations, departmental boundaries, technology types
Subnet traffic separated from other subnet traffic Reasons to separate traffic
Enhance security Improve performance Simplify troubleshooting
First, simplest IPv4 addressing type Adheres to network class distinctions Recognizes Class A, B, C addresses
Host information
Last 24 bits in Class A address Last 16 bits in Class B address Last 8 bits in Class C address
A B
11111111 00000000 00000000 00000000 255 0 0 0 11111111 11111111 00000000 00000000 255 255 0 0
8 16
/8 /16
24
/24
Network class
Associated with subnet mask
ANDing
Combining bits
Bit value of 1 AND another bit value of 1 results in 1 Bit value of 0 AND any other bit results in 0
ANDing logic
1: true, 0: false
ANDing example
Addresss fourth octet
Any combination of 1s and 0s Results in network ID fourth octet of 0s
Reserved Addresses
Cannot be assigned to node network interface; used as subnet masks Network ID
Bits available for host information set to 0 Classful IPv4 addressing network ID ends with 0 octet Subnetting allows network ID with other decimal values in last octet(s)
Broadcast address
Octet(s) representing host information equal all 1s Decimal notation: 255 (for class C)
11111111 11111111 11111111 10000000 255 255 255 128 11111111 11111111 11111111 11000000 255 255 255 192 11111111 11111111 11111111 11100000 255 255 255 224 11111111 11111111 11111111 11110000 255 255 255 240
254 62 30 14
6
2
/29
/30
Example
Class C network
Network ID: 199.34.89.0 Want to divide into six subnets
Table 10-5 Subnet information for six subnets in an example IPv4 Class C network
LAN subnetting
LANs devices interpret device subnetting information External routers
Need network portion of device IP address
Example: subdividing Class C network into six subnets of 30 addressable hosts each Supernet
Subnet created by moving subnet boundary left
CIDR (contd.)
CIDR (contd.)
CIDR notation (or slash notation)
Shorthand denoting subnet boundary position Form
Network ID followed by forward slash ( / ), followed by number of bits used for network portion of the address Like 147.144.51.0/24
Internet Gateways
Gateway
A device that connects two networks or subnets
Default gateway
Sends LAN traffic to other subnets, such as the Internet Usually a router
Network nodes
Have one default gateway address
Assigned manually or automatically (DHCP)
Address Translation
Public network
Any user may access
Little or no restrictions
Private network
Access restricted
Clients, machines with proper credentials
Hiding IP addresses
Provides more flexibility in assigning addresses
Internet server responds with datagrams destination address including same port number
Mail servers
Communicate with other mail servers Deliver messages, send, receive, store messages
Mail clients
Send messages to; retrieve messages from mail servers
Advantages
Minimizes server resources
Mail deleted from server after retrieval Disadvantage for mobile users
IMAP (contd.)
Features
Users can retrieve all or portion of mail message Users can review messages and delete them
While messages remain on server
Users can create sophisticated methods of organizing messages on server Users can share mailbox in central location
IMAP (contd.)
Disadvantages
Requires more storage space, processing resources than POP servers Network managers must watch user allocations closely If the IMAP4 server fails, users cannot access mail
Utilities
Help track down most TCP/IP-related problems Help discover information about node, network
Ipconfig
Command-line utility providing network adapter information
IP address, subnet mask, default gateway
IPCONFIG | MORE
Useful in Vista and Windows 7 Because they have a lot of extra virtual network adapters
Renewing a IP Address
IPCONFIG /RELEASE
Ends the current IP address lease
IPCONFIG /RENEW
Asks DHCP for a new IP address
These commands are often required when moving from one LAN to another
Ifconfig
Utility used on UNIX and Linux systems
Modify TCP/IP network interface settings, release and renew DHCP-assigned addresses, check TCP/IP setting status Runs at UNIX, Linux system starts
Establishes computer TCP/IP configuration
Netstat
Displays TCP/IP statistics, component details, host connections Used without switches
Displays active TCP/IP connections on machine
Nbtstat
NetBIOS
Used on Windows LANs Protocol runs in Session and Transport layers Associates NetBIOS names with workstations Not routable
Can be made routable by encapsulation
Nbtstat utility
Provides information about NetBIOS statistics Resolves NetBIOS names to IP addresses
Limited use as TCP/IP diagnostic utility
Nslookup
Query DNS database from any network computer
Find the device host name by specifying its IP address
Nslookup
Dig
Domain information groper Similar to nslookup
Query DNS database Find specific IP address host name
Useful for diagnosing DNS problems Dig utility provides more detailed information than nslookup Flexible: two dozen switches Included with UNIX, Linux operating systems Windows system: must obtain third party code
Dig Example
Dig for Windows is at link Ch 10a
Whois
Query DNS registration database
Obtain domain information
Windows system
Requires additional utilities
Traceroute
Windows-based systems: tracert Linux systems: tracepath ICMP ECHO requests
Trace path from one networked node to another Identifying all intermediate hops between two nodes
Traceroute (contd.)
Simplest form
mtr ip_address or mtr host_name
Run continuously Stop with Ctrl+C or add limiting option to command
Route
Route utility
Allows viewing of hosts routing table
Windows-based system
Type route print and press Enter
Cisco-brand router
Type show ip route and press Enter
Route (contd.)
Route (contd.)
Route (contd.)
Route command
Add, delete, modify routes
Windows system
Type route ? and press Enter