Docsity

IP Addressing and Networking: Understanding Packets, Subnets, and DHCP, Study notes of Technology

Toggle sidebar
bg1
!
1!
Basic Networking Concepts and Technologies
Bandwidth
When data is sent over a computer network, it is broken up into small chunks called packets. Each packet contains
source and destination address information. The packet, along with the address information, is called a frame. It also
contains information that describes how to put all of the packets back together again at the destination. The bandwidth
determines the number of packets that can be
transmitted within a fixed period of time.
Bandwidth is measured in bits per second and is
usually denoted by any of the following units of
measure:
• b/s - bits per second
• kb/s - kilobits per second
• Mb/s - megabits per second
• Gb/s - gigabits per second
NOTE: 1 byte is equal to 8 bits, and is abbreviated
with a capital letter B. 1 MB/s is approximately 8
Mb/s.
The figure shows how bandwidth on a network can
be compared to a highway. In the highway example,
the cars and trucks represent the data. The number
of lanes on the highway represents the amount of
cars that could travel on the highway at the same
time. An eight-lane highway can handle four times
the number of cars that a two-lane highway can
hold.
The amount of time it takes data to travel from source to destination is called latency. Like a car traveling across town
that encounters stop lights or detours, data is delayed by network devices and cable length. Network devices add
latency when processing and forwarding data. When surfing the Web or downloading a file, latency does not normally
cause problems. Time critical applications, such as Internet telephone calls, video, and gaming, can be significantly
affected by latency.
Data Transmission
The data that is transmitted over the network can flow using one of three modes: simplex, half-duplex, or full-duplex.
Simplex
Simplex, also called unidirectional, is a single, one-way transmission. An example of simplex transmission is the signal
that is sent from a TV station to your home TV.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download IP Addressing and Networking: Understanding Packets, Subnets, and DHCP and more Study notes Technology in PDF only on Docsity!

Basic Networking Concepts and Technologies

Bandwidth

When data is sent over a computer network, it is broken up into small chunks called packets. Each packet contains source and destination address information. The packet, along with the address information, is called a frame. It also contains information that describes how to put all of the packets back together again at the destination. The bandwidth determines the number of packets that can be transmitted within a fixed period of time. Bandwidth is measured in bits per second and is usually denoted by any of the following units of measure:

  • b/s - bits per second
  • kb/s - kilobits per second
  • Mb/s - megabits per second
  • Gb/s - gigabits per second NOTE: 1 byte is equal to 8 bits, and is abbreviated with a capital letter B. 1 MB/s is approximately 8 Mb/s. The figure shows how bandwidth on a network can be compared to a highway. In the highway example, the cars and trucks represent the data. The number of lanes on the highway represents the amount of cars that could travel on the highway at the same time. An eight-lane highway can handle four times the number of cars that a two-lane highway can hold. The amount of time it takes data to travel from source to destination is called latency. Like a car traveling across town that encounters stop lights or detours, data is delayed by network devices and cable length. Network devices add latency when processing and forwarding data. When surfing the Web or downloading a file, latency does not normally cause problems. Time critical applications, such as Internet telephone calls, video, and gaming, can be significantly affected by latency.

Data Transmission

The data that is transmitted over the network can flow using one of three modes: simplex, half-duplex, or full-duplex. Simplex Simplex, also called unidirectional, is a single, one-way transmission. An example of simplex transmission is the signal that is sent from a TV station to your home TV.

Half-Duplex When data flows in one direction at a time it is known as half-duplex, as shown in the figure. With half-duplex, the channel of communications allows alternating transmission in two directions, but not in both directions simultaneously. Two-way radios, such as police or emergency communications mobile radios, work with half-duplex transmissions. When you press the button on the microphone to transmit, you cannot hear the person on the other end. If people at both ends try to talk at the same time, neither transmission gets through. Full-Duplex When data flows in both directions at the same time it is known as full-duplex, as shown in the figure. Although the data flows in both directions, the bandwidth is measured in only one direction. A network cable with 100 Mb/s in full-duplex mode has a bandwidth of 100 Mb/s. A telephone conversation is an example of full-duplex communication. Both people can talk and be heard at the same time. Full-duplex networking technology increases network performance because data can be sent and received at the same time. Broadband technologies, such as digital subscriber line (DSL) and cable, operate in full-duplex mode. Broadband technology allows multiple signals to travel on the same wire simultaneously. With a DSL connection, for example, users can download data to the computer and talk on the telephone at the same time.

IP Addressing

Transmission Control Protocol/Internet Protocol (TCP/IP) defines the rules computers must follow to communicate with each other over the Internet. TCP is the primary Internet protocol for the reliable delivery of data. IP provides an addressing structure that is responsible for delivering data from the source computer to the destination computer. An IP address is a number that is used to identify a device on the network. Each device on a network must have a unique IP address to communicate with other network devices. As noted earlier, a host is a device that sends or receives information on the network. Network devices are devices that move data across the network.

The logical 32-bit IPv address is hierarchical and is composed of two parts. The first part identifies the network, and the second part identifies a host on that network. Both parts are required. For example, if a host has the IPv4 address 192.168.18.57, the first three octets, 192.168.18, identify the network portion of the address, and the last octet, 57 identifies the host. This is known as hierarchical addressing, because routers only need to communicate with networks and not individual hosts. A router is a networking device that forwards data packets across networks toward their destinations. IPv4 addresses are divided into the following classes:

  • Class A - 10.0.0.0 to 10.255.255.
  • Class B - 172.16.0.0 to 172.31.255.
  • Class C - 192.168.0.0 to 192.168.255. IPv4 Subnet Mask The subnet mask indicates the network portion of an IPv4 address. Like the IPv4 address, the subnet mask is a dotted- decimal number. Usually all hosts within a LAN use the same subnet mask. The figure shows the default subnet masks for usable IPv4 addresses that are mapped to the first three classes of IPv4 addresses:
  • 255.0.0.0 - Class A, which indicates that the first octet of the IPv4 address is the network portion
  • 255.255.0.0 - Class B, which indicates that the first two octets of the IPv4 address is the network portion
  • 255.255.255.0 - Class C, which indicates that the first three octets of the IPv4 address is the network portion If an organization owns one Class B network but needs to provide IPv4 addresses for four LANs, the organization must subdivide the Class B address into four smaller parts. Subnetting is a logical division of a network. It provides a way to divide a network, and the subnet mask specifies how it is subdivided. An experienced network administrator typically performs subnetting. After the subnetting scheme has been created, the proper IPv4 addresses and subnet masks can be configured on the hosts in the four LANs. These skills are taught in the Cisco Networking Academy courses related to Cisco Certified Network Associate (CCNA) level networking skills.

IPv

Working with 128-bit numbers is difficult, so the IPv6 address notation represents the 128 bits as 32 hexadecimal values. The 32 hexadecimal values are further subdivided into eight fields of four hexadecimal values, using colons as delimiters. Each field of four hexadecimal values is called a block. The IPv6 address has a three-part hierarchy, as shown. The global prefix, also called a site prefix, is the first three blocks of the address and is assigned to an organization by an Internet names registry. The subnet ID includes the fourth block of the address, and the interface ID includes the last four blocks of the address. The network administrator controls both the subnet and interface ID. As an example, if a host has an IPv6 address 3ffe:6a88:85a3:08d3:1319:8a2e:0370:7344, the global prefix address is 3ffe:6a88:85a3, the subnet ID address is 08d3, and the interface ID address is 1319:8a2e:0370:7344. An IPv6 address can be abbreviated with the following rules:

  • Omit leading zeroes in a 16-bit value.
  • Replace one group of consecutive zeroes by a double colon. Figure 2 is an example of how these rules are applied.

Start > Control Panel > Network Connections > right-click Local Area Connection > Properties > TCP/IP > Properties > Use the following IP address > Use the following DNS server addresses > OK > OK

DHCP Addressing

If more than a few computers are a part of the LAN, manually configuring IP addresses for every host on the network can be time consuming and prone to errors. A Dynamic Host Configuration Protocol (DHCP) server automatically assigns IP addresses, which simplifies the addressing process. Automatically configuring TCP/IP also reduces the possibility of assigning duplicate or invalid IP addresses. The DHCP server maintains a list of IP addresses to assign and manages the process so that every device on the network receives a unique IP address. When the DHCP server receives a request from a host, the server selects IP address information from a set of predefined addresses that are stored in a database. When the IP address information is selected, the DHCP server offers these values to the requesting host on the network. If the host accepts the offer, the DHCP server assigns the IP address for a specific period of time. This is called leasing. When the lease expires, the DHCP server can use this address for another computer that joins the network. A device, however, can renew its lease to retain the IP address. Before a computer on the network can take advantage of the DHCP services, the computer must be able to identify the server on the local network. A computer can be configured to accept an IP address from a DHCP server by selecting the Obtain an IP address automatically option in the NIC configuration window, as shown in Figure 1. When a computer is set to obtain an IP address automatically, all other IP addressing configuration boxes are not available. The DHCP settings are configured the same for a wired or wireless NIC. A computer continually requests an IP address at 5-minute intervals from a DHCP server. If your computer cannot communicate with the DHCP server to obtain an IP address, the Windows OS automatically assigns a link-local IP. If your computer is assigned a link-local IP address, which is in the range of 169.254.0.0 to 169.254.255.255, your computer can only communicate with computers connected to the same network within this IP address range. A DHCP server automatically assigns the following IP address configuration information to a host:

  • IP address
  • Subnet mask
  • Default gateway
  • Optional values, such as a DNS server address, as shown in Figure 2

In Windows 7, use the following path: Start > Control Panel > Network and Sharing Center > Change adapter setting > right-click Local Area Connection > Properties > TCP/IPv4 > Properties > select radio button **Obtain an IP address automatically > OK

OK** In Windows Vista, use the following path: Start > Control Panel > Network and Sharing Center > Manage network connections > right-click Local Area Connection > Properties TCP/IPv4 > Properties > select radio button Obtain an IP address automatically > OK > OK In Windows XP, use the following path: Start > Control Panel > Network Connections > right-click Local Area Connection > Properties > TCP/IP > Properties > select radio button Obtain an IP address automatically > OK > OK Configuring Alternate IP Settings Setting up an alternate IP configuration in Windows simplifies moving between a network that requires using DHCP and a network that uses static IP settings. If a computer cannot communicate with the DHCP server on the network, Windows uses the alternate IP configuration assigned to the NIC. The alternate IP configuration also replaces the Automatic IP Addressing (APIPA) address that is assigned by Windows when a DHCP server cannot be contacted. To create the alternate IP configuration, as shown in Figure 3, click the Alternate Configuration tab located in the NIC Properties window. To access a DNS server, a computer uses the IP address

configured in the DNS settings of the NIC in the computer. DNS resolves or maps host names and URLs to IP addresses. All Windows computers contain a DNS cache that stores host names that have recently been resolved. The cache is the first place that the DNS client looks for host name resolution. Because it is a location in memory, the cache retrieves resolved IP addresses more quickly than using a DNS server and does not create network traffic.

ICMP

Internet Control Message Protocol (ICMP) is used by devices on a network to send control and error messages to computers and servers. There are several different uses for ICMP, such as announcing network errors, announcing network congestion, and troubleshooting. Ping is commonly used to test connections between computers. Ping is a simple but highly useful command-line utility used to determine whether a specific IP address is accessible. To see a list of options that you can use with the ping command, type C:> ping /? in the Command Prompt window.

These are the main functions of protocols:

  • Identifying and handling errors
  • Compressing the data
  • Deciding how data is to be divided and packaged
  • Addressing data packets
  • Deciding how to announce the sending and receiving of data packets Devices and computers connected to the Internet use a protocol suite called TCP/IP to communicate with each other. The information is transmitted most often via two protocols, TCP and UDP, as shown in the figure. In the design of a network, you must determine the protocols that are going to be used. Some protocols are proprietary and only work on specific equipment, while other protocols are open standard and work on a variety of equipment.

TCP and UDP Protocols and Ports

When the TCP/IP protocol stack is enabled, other protocols can communicate on specific ports. For example, HTTP uses port 80 by default. A port is a numeric identifier used to keep track of specific conversations. Every message that a host sends contains both a source and destination port. Network software applications use these protocols and ports to perform functions over the Internet or over a network. Some network software applications include services to host a web page, send email, and transfer files. These services may be provided by a single server or by several servers. Clients use well-known ports for each service so that the client requests can be identified by using a specific destination port.

To understand how networks and the Internet work, you must be familiar with commonly used protocols and associated ports. Some uses of these protocols are to connect to a remote network device, convert a website URL to an IP address, and transfer data files. You will encounter other protocols as your experience in IT grows, but they are not used as often as the common protocols described here. The figure summarizes some of the more common network and Internet protocols, and the port number used by these protocols. The more you understand about each of these protocols, the more you will understand how networks and the Internet work.