1/45
Vocabulary practice flashcards covering OSI and TCP/IP models, layer functions, addressing, network protocols, and C socket API functions.
OSI Model
Open Systems Interconnection
Seven layers that computer systems use to communicate over a network.
OSI Seven Layers

Layer 2 Switch
A network device, operating at Layer 2(Data Link), responsible for forwarding data frames between devices within the same LAN
Switch facts
Layer 2 switches forward data only to the device it is intended for, using MAC addresses.
Multilayer switches can also route at Layer 3
Router
A networking device operating at Layer 3 (Network) connects multiple networks and receives, analyze, and forwards data packets between them using IP addresses.
Default Gateway
used when destination host is outside the network; it locates the destination's network and forwards the packet
TCP/IP Model
a layered networking framework about how data is transmitted between devices over a network using standardized protocols
TCP/IP Model Four Layers
Link → Internet → Transport → Application
(LITA)
(or five layers when Physical is separated from Link, PLITA)
Protocol Data Unit (PDU)
The specific unit of information handled by a particular networking layer or protocol.
Packet
The Protocol Data Unit (IP datagram) handled at Layer 3 (Network).
Frame
The Data Link layer (Layer 2) Protocol Data Unit containing a header, payload, and trailer, used in Ethernet to carry MAC addresses and error-detection data.
Media Independence
The characteristic of IP packets allowing them to be encapsulated in different link-layer frames (e.g., Ethernet or Wi-Fi) without modifying IP addressing or delivery.
Synchronous Communication
Data communication that relies on coordinated timing, such as through a shared or recovered clock.
Asynchronous Communication
Communication that operates without a continuously shared clock, often using start/stop bits for framing; in programming, operations that can finish at a later time.
MAC Address
A link-layer hardware identifier for network interfaces on a local network, typically 48 bits in length and represented as six hexadecimal byte pairs.
FF:FF:FF:FF:FF:FF
The Ethernet broadcast destination address received by all network interfaces within the local broadcast domain.
Organizationally Unique Identifier (OUI)
The first three bytes (six hexadecimal digits) of a universally assigned 48-bit MAC address identifying the manufacturer or organization.
Hop-by-Hop MAC Rewriting
The process at routed hops where each router strips the incoming frame and generates a new frame addressed to the next hop MAC, altering destination MAC addresses across hops.
IPv4 Address
A 32-bit numerical network address represented in dotted-decimal format (e.g., 192.0.2.1).
IPv6 Address
A 128-bit hexadecimal network address (e.g., 2001:db8::1) that replaces broadcast communications with multicast.
Transmission Control Protocol (TCP)
A connection-oriented Layer 4 protocol that ensures reliable, ordered byte-stream delivery with retransmissions, flow control, and congestion control via segments.
User Datagram Protocol (UDP)
A connectionless Layer 4 protocol that sends independent datagrams without guarantees of delivery or ordering, operating with lower overhead.
Port Numbers
16-bit transport-layer numbers ranging from 0 to 65535 used to identify application endpoints or services on a host.
ACK and NACK
Control signals where ACK indicates successful data receipt and NACK (or NAK) explicitly reports missing or rejected data in protocols configured for it.
Unicast
A communication method involving one sender transmitting data to a single specific destination.
Multicast
A communication method where a single sender transmits packets to an entire subscribed group of hosts.
Broadcast
A communication method where a single sender transmits data to all devices located within the local broadcast domain.
Ethernet
A family of wired LAN technologies standardized as IEEE 802.3 defining MAC addressing, frame structures, and physical signaling.
Half Duplex
A transmission mode allowing bidirectional communication, but only in one direction at a time.
Full Duplex
A transmission mode that allows simultaneous bidirectional transmission and reception of data.
Internet Protocol (IP)
A connectionless, best-effort Layer 3 protocol responsible for packet addressing and routing across networks without ordering or delivery guarantees.
Socket
An operating system communication endpoint referenced in C by a file descriptor and associated with an IP address and a port number.
Network Address Translation (NAT)
A router technique that rewrites IP addresses (and ports in NAPT/PAT) to allow multiple private hosts to share a public IPv4 address.
Loopback Address
The IPv4 address 127.0.0.1 (within the reserved 127.0.0.0/8 block) where network traffic is routed internally back to the local host machine.
Private IPv4 Address Ranges
Reserved, non-globally routed address ranges: Class A (10.0.0.0 to 10.255.255.255 or /8), Class B (172.16.0.0 to 172.31.255.255 or /12), and Class C (192.168.0.0 to 192.168.255.255 or /16).
Well-Known Ports
System port numbers ranging from 0 to 1023, including SSH (22), DNS (53), HTTP (80), and HTTPS (443).
Network Byte Order
Big-endian format used in network protocols where the most significant byte of a multibyte value is transmitted or stored first.
htons() and htonl()
C conversion functions declared in
ntohs() and ntohl()
C conversion functions declared in
struct sockaddr_in
A C socket address structure in
socket()
A C system call taking domain, type, and protocol parameters that allocates a network communication endpoint and returns its file descriptor, or −1 on error.
bind()
A C system call that binds a socket file descriptor to a local IP address and port number, returning 0 on success or −1 on error.
connect()
A C system call that establishes an active TCP connection to a peer socket address, or assigns a default peer address for UDP without a handshake.
listen()
A C system call that transitions a connection-oriented socket into a passive state ready to queue incoming connection requests up to a specified backlog length.
accept()
A C system call that extracts the first connection request from a passive socket queue and creates a new connected socket descriptor, returning −1 on failure.
send() and recv()
C library functions used to transmit and receive stream or datagram bytes; recv() returning a count of 0 on TCP signals an orderly peer shutdown.