2.5 Given a scenario, install & configure basic wired/wireless SOHO networks Flashcards
What is a protocol?
Rules for structured data communication among networked hosts
What are protocols often designed for?
Working together as a protocol suite
Most networks have converged on the use of the TCP/IP suite.
Why is the TCP/IP suite divided into layers?
To better understand the function of each protocol
In the TCP/IP, what does each lower protocol do?
Encapsulate data from higher-layer protocols
As data moves down the protocol stack, lower-layer protocols add their own headers before transmitting it
List the 4 layers of the TCP/IP suite
- Application
- Transport
- Internet
- Link (Network Interface)
Purpose of TCP/IP’s link layer?
Putting frames onto the physical network
Which TCP/IP layer does not contain a TCP/IP protocol?
Link (Network interface) layer
What is used at the TCP/IP’s link layer?
Local networking products & media
i.e. Ethernet or Wi-Fi
What TCP/IP layer do WAN interfaces work at?
i.e. DSL & cable modems
Link (Network interface) layer
Where does communication on the TCP/IP’s link layer take place?
Only on a local network segment
Not between different networks
On an Ethernet or Wi-Fi segment, data at the link layer is packed into frames; node interfaces are identified by a MAC address
Purpose of TCP/IP’s Internet layer?
Provide packet addressing & routing within a network of networks
What is an “end system host”?
Device that can communicate on an IP network
i.e. PC, laptop, mobile device, server, etc.
How is data from one IP network sent to another?
By being forwarded by an intermediate system
(A router)
What’s required when IP is used with a physical/data link specification?
Like Ethernet or Wi-Fi
Mechanism to send packets from Internet layer to Link layer to reach destination
How are packets sent from the Internet layer to the Link layer to reach their destination?
Using ARP
Meaning of ARP?
Address Resolution Protocol
What does ARP do?
Allows a host to query which MAC address is associated with an IP address
What kind of delivery does IP provide?
Unreliable & connectionless delivery
A packet may be lost, delivered out of sequence, duplicated, or delayed
Purpose of TCP/IP’s Transport layer?
Manages multiple connections for different application layer protocols
How is the TCP/IP’s Transport layer protocol implemented?
Via TCP or UDP protocol
What kind of packet delivery does TCP provide?
Connection-oriented packet delivery
TCP identifies & recovers lost or out-of-order packets, enhancing IP reliability. This is crucial for TCP/IP application protocols to prevent data errors.
What kind of packet delivery does UDP provide?
Connectionless packet delivery
UDP provides unreliable packet delivery
Which Transport layer protocol is faster?
UDP
Why is UDP faster than TCP?
Doesn’t need to send extra data to establish reliable connections
When is UDP used over TCP?
In time-sensitive applications where packet loss is tolerable
i.e. speech or video. Rather than causing the app to crash, they would just manifest as a glitch in video or a squeak in audio
What does the TCP/IP’s Application layer contain?
Protocols that perform a high-level function
Rather than simply addressing hosts & transporting data
What are Application protocols used for?
Configure & manage networks hosts & to operate services
services like web & email
What does each application protocol use?
TCP or UDP port to connect clients to a server
What are the 2 most important fields in an IP packet?
Source & destination IP address
2 versions of IP?
- IPv4
- IPv6
How long are IPv4 addresses?
32 bits
In its raw form, it appears as 11000000101010000000000000000001. These 32 bits can be divided into 4 groups of 8 bits, known as “octets”. The IP address is rearranged as 11000000 10101000 00000000 00000001, which is easier to read in dotted decimal notation (192.168.0.1).
What is the range of an IPv4 address?
0.0.0.0 to 255.255.255.255
However some addresses are not permitted or are reserved for special use
What 2 pieces of information do IPv4 addresses provide?
- Network ID
- Host ID
What does the Network ID in an IPv4 address identify?
The network to which a device belongs
The network ID is common to all hosts on the same IP network
What does the host ID in an IPv4 address identify?
A host within an IP network
How is the host & network ID in an IPv4 address distinguished?
Via network prefix
What is a network prefix?
A 32-bit value with a contiguous set of 1s
i.e. a prefix with 24 bits means: 11111111 11111111 11111111 00000000
. The prefix can be written in slash notation in the form /24
What is the dotted decimal expression of a network prefix called?
i.e. 255.255.255.0
Subnet mask
Purpose of the network prefix (subnet mask) when paired with an IP address?
To mask the Host ID to reveal the Network ID portion
What does each binary 1
indicate in a subnet mask?
The corresponding bit in the IP address belongs to the Network ID
A subnet mask, like 255.255.255.0
(binary: 11111111.11111111.11111111.00000000
), works with an IP address like 192.168.1.100
(binary: 11000000.10101000.00000001.01100100
). Wherever the subnet mask has a 1, that part of the IP address is for the network, and where it has a 0, it’s for the host. So, in this case, the network ID is 192.168.1.0, and the host ID is 0.0.0.100.
What does this slash notation mean?
192.168.0.0/24
The first 24 bits represent the network ID
The network ID would be 192.168.0
.
The last .0
is reserved as the network address, and .255
is often reserved as the broadcast address. So, for example, 192.168.0.1
to 192.168.0.254
would be assignable host addresses within the 192.168.0.0/24
network
What is slash notation often used for?
i.e. 192.168.0.0/24
To refer to network IDs
i.e. 192.168.0.0/24
refers to an IP network