TCP IP Fundamentals
TCP IP Fundamentals
TCP IP Fundamentals
TCP/IP
Introduction
Introduction
• Defined as a suite of network protocols used to transfer data between computers within the network.
• Used as the primary protocol for the Internet (it is the most popular networking protocol in the world).
o TCP:
▪ Defines rules for establishing and maintaining network communication between two
computers. ▪
▪ Works in collaboration with IP to ensure that data is delivered to the correct destination.
▪ Breaks data into smaller packets, send the packets in sequence and then reassembles them
at the destination.
▪ Maintains data integrity.
▪ Establishes an end-to-end connection between the sending and receiving computers before
transmitting data.
▪ Considered to be reliable because it ensures that data is sent by retransmitting lost data.
o IP:
▪ Identifies each computer and network device on a network.
▪ Allows users to differentiate one computer from another computer on the network.
▪ Consists of four blocks of numbers, ranging from 0 to 255, separated with a single dot (note
that each block of numbers represents one octet and the entire IP address is four octets long).
▪ Reads as 172.16.10.20.
▪ Required for network communication.
Advanced Operating Systems – ITE 5210
Subnet Mask
• Looks like an IP address and is written using the same dotted-decimal notation, such as 255.255.255.0.
• Associated with an IP address in order to define what network a computer belongs to.
• Determines the network portion and the host portion in an IP address (note that the network portion
determines the computer’s network and the host portion identifies the computer within the network).
• Public IP Address:
o Leased by Internet service providers at an additional cost on top of their Internet plans.
o Assigned to only one subscriber in the world (but, depending on the size and needs of the
organization, a subscriber may lease more than one public IP address).
• Private IP Address:
o Contains configured network address translation (NAT) protocol to enable internal computers to
connect to the Internet (but is not compatible for Internet communication).
Classes of IP Addresses
• Define the possible number of networks and the number of hosts per network.
• Consist of five classes of IP addresses by default (A, B, C, D and E — note that IP addresses from class
E are reserved for experimental and research purposes).
• Reserve the address range between 127.0.0.0 to 127.255.255.255 for loopback and diagnostic
functions.
Advanced Operating Systems – ITE 5210
IP Address Subnetting
• Defined originally as five address classes with a fixed number of hosts per network by the IANA.
• Using a fixed size of addresses per network often leads to having many unused IP addresses
(implementing subnetting tackles this issue).
• Offers the following advantages when configured (in addition to the efficient use of an IP address):
o Reduces network congestion.
o Avoids traffic collision.
o Improves network performance.
o Increases network security.
Advanced Operating Systems – ITE 5210
Subnetting Calculation
• Calculates an IP address as four octets long or 32 bits (one octet is equal to eight bits).
• Allows users to convert a decimal number to a binary number (each bit can be either zero or one).
• Allows assigned IP addresses to have value ranges from 0 to 255 (00000000 to 11111111 in binary).
• Designates all the bits set to one to represent the network portion and the bits set to zero to represent
the host portion.
• Uses the calculations in the table below to convert an IP address or subnet mask (places ones until
the decimal value is attained and then places zeros in the remaining empty columns). During the
subnet calculation, some bits will be taken from the host portion.
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
Network
IP Configuration Methodology
Advanced Operating Systems – ITE 5210
• Static:
• DHCP Dynamic:
o Describes IP addresses that are assigned to computers automatically from a single server or
device.
o Recommends use for a large network because it is fast and efficient and eliminates typographical
errors.
o Reduces administrative efforts for maintaining network connectivity.
• DHCP Reservation:
o Function as a built-in service that allows computers to auto-configure IP addresses when there
are no static or dynamic IP addresses configured.
o Assign IP addresses on computers, even when they are not exchanging data on the network.
Kindly take snapshots for below commands and notice the results
Ping
• Used to test the connectivity between two hosts.
• Allows users to determine issues with the network connection.
Advanced Operating Systems – ITE 5210
Tracert:
• Used to track the path taken from the source to the destination host.
• Displays the time taken to transmit to the destination.
Route
Advanced Operating Systems – ITE 5210
• Allows users to add and modify the routes in the routing table.
Advanced Operating Systems – ITE 5210
Netstat
• Used to view network connections and statistics.
• Displays routing tables and the number of network interfaces.