Lec 7: Networking Flashcards
What is a network?
-A network can be defined as a group of devices connected for data exchange.
-Each of the devices on the network is a node and each node has at least one unique address.
What is an IP Address?
-IP: Internet Protocol
-It is an Internet Protocol address, which is a numerical label assigned to each device connected to a network that uses the Internet Protocol for communication.
-IP address is decided by its network portion and host portion.
IPv4: How many bytes?
An IPv4 (Internet Protocol version 4) address has 4 bytes (32 bits) separated by periods.
e.g., 192.168.1.10
IPv4 address parts
Network portion: first R bits
Host portion: remaining H bits (32 - R)
Subnet mask: determines the values for R and H
What are the network portion and host portion for this IP address?
IPv4 address “192.168.1.10” with a subnet mask of “255.255.255.0”.
A notation: 192.168.1.10/24
CIDR (Classless Inter-Domain Routing) notation
How many possible IP addresses does this subnet have?
e.g., 130.95.141.192 with a subnet mask of 255.255.255.192
CIDR notation: 130.95.141.192/26
IP address number: 64
how many possible hosts does this subnet have?
130.95.141.192 with a subnet mask of 255.255.255.192
-CIDR notation: 130.95.141.192/26
-Host number: 62 (Network address and broadcast address cannot be assigned to hosts).
-Network address: 130.95.141.192
-Broadcast address: 130.95.141.255
What is a subnet mask?
Subnet mask is used for IP address management.
What is CIDR?
CIDR (Classless Inter-Domain Routing)
-CIDR is a notation to represent IP addresses and their associated subnet masks.
-In CIDR notation, an IP address (e.g., 130.95.141.192/26) is followed by a slash (“/”) and a number. This number represents the bit length of the network portion.
Is B in the same subnet with A? Justify your answer.
A: 172.16.17.30/20
B: 172.16.28.15/20
For A:
IP address: 172.16.17.30: 10101100.00010000.00010001.00011110
Subnet mask: 255.255.240.0: 11111111.11111111.11110000.00000000
Network portion for this subnet can be done via a bitwise AND on the IP address and subnet mask
172.16.17.30: 10101100.00010000.00010001.00011110
255.255.240.0: 11111111.11111111.11110000.00000000
=
172.16.16.0: 10101100.00010000.00010000.00000000
For B:
IP address: 172.16.28.15: 10101100.00010000.00011100.00001111
Subnet mask: 255.255.240.0: 11111111.11111111.11110000.00000000
Network portion for this subnet can be done via a bitwise AND on the IP address and subnet mask
172.16.28.15: 10101100.00010000.00011100.00001111
255.255.240.0: 11111111.11111111.11110000.00000000
=
172.16.16.0: 10101100.00010000.00010000.00000000
Suppose the public IPv4 address has a CIDR notation of 212.114.20.0/24, this specifies the subnet where the IPv4 address resides. How many IPv4 addresses does this subnet have?
“/24” indicates the network portion of 24 bits, leaving 8 (32-24) bits for the host portion of the IP address. Therefore, the total number of IPv4 addresses is: 2^8 = 256 addresses.
If the Internet service provider divides the original /24 subnet using /27, how many small subnets will be created?
When dividing a /24 subnet into multiple /27 subnets, the ISP uses additional (27-24) bits to create small subnets. The number of small subnets created: 2^(27 - 24) = 8.
For each created subnet, how many IPv4 addresses does it have? Justify your answers.
Within each of the small /27 subnets, (32 - 27) bits are available for the host portion. The total number of IPv4 Addresses is: 2^5 = 32.
What is a domain name?
It uses alphanumeric characters and symbols separated by periods to create a hierarchical naming structure. This structure is organized from right to left.
What are the parts of a domain name?
For www.javasoft.com
“com” is the top-level domain (TLD).
“ javasoft” is the second-level domain (SLD).
“www” is a subdomain of “ javasoft.”
What is DNS?
-Domain Name System
-Domain names are also known as mnemonic textual Internet addresses.
-DNS servers are responsible for translating mnemonic textual Internet addresses into the numeric addresses.
What is the difference between a domain name and a URL?
-Domain name: a human-readable hierarchical structure, which consists of alphanumeric characters and symbols separated by periods.
-URL (Uniform Resource Locator): a complete address to locate a specific resource on a given website. It consists of:
–a network protocol,
–a domain name,
–an additional path and/or query parameters.
e.g., https://www.example.com/products/category?id=123&sort=asc
—the protocol is “https”, the domain name is “www.example.com”, the path is “/products/category”,
—the query parameters are “?id=123&sort=asc”
What is a port?
-An IP address identifies a device on the Internet.
-An IP port identifies a specific application protocol running on an Internet device.
-A port is identified by a number, the port number.
-There are some port numbers which are allocated for specific application protocols.
HTTP: 80
HTTPS: 443
SSH: 22
What is a protocol?
A set of rules that govern how data is transmitted over a network.
Examples:
-HTTP (Hypertext Transfer Protocol),
-TCP (Transmission Control Protocol),
-IP (Internet Protocol)
-Each protocol is designed based on a layered model.
–A real-world model : TCP/IP.
–A conceptual model : OSI (Open Systems Interconnection)