1/48
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

Delivering Messages
send locally to a device on the same subnetwork (switch)
or
send remotely (router)
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 OSI layer or protocol.
PDU Units of Information
Physical Layer → bits
Data Link Layer → frames
Network Layer → packets
Transport Layer → TCP segment
or
→ UDP datagram
Session Layer → data
Presentation Layer → data
Application Layer → data
Packet
The PDU handled at Layer 3 (Network).
Frame
The PDU handled at Layer 2 (Data Link)
contains a header, payload, and trailer —— used in Ethernet to carry MAC addresses and error-detection data.
TCP segment or UDP datagram
The PDU handled at Layer 4 (Transport)
Media Independence (IP packets)
IP is media independent because it operates at Layer 3 (network layer) and doesn't care about the physical medium carrying the bits
— it simply hands packets to the lower layers (Data Link and Physical) to transmit, and its header format stays the same whether the packet travels over copper, fiber, or wireless.
Synchronous Communication
data communication that uses coordinated timing, such as a shared or recovered clock
Asynchronous Communication
data communication that operates without a continuously shared clock, instead uses start/stop bits for framing
In programming, asynchronous also describes operations that can complete later
MAC Address
a link-layer address identifying a network interface on a local network
Ethernet normally uses 48 bits, written as six hexadecimal byte pairs
FF:FF:FF:FF:FF:FF
used for the Ethernet broadcast destination:
Frames that are destined with MAC address FF-FF-FF-FF-FF-FF will reach every computer belonging to that LAN segment
Organizationally Unique Identifier (OUI)
The First 6 digits (say 00:40:96) of the MAC Address identify
the manufacturer, called the OUI (Organizational Unique Identifier)
Hop-by-Hop MAC Rewriting
each router strips the incoming frame and creates a new frame addressed to the next hop MAC
Ordinary switches generally preserve the source and destination MAC addresses.
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)
it uses multicast instead of broadcast
Transmission Control Protocol (TCP)
A connection-oriented Layer 4 (Transport) protocol provides reliable and ordered byte-stream delivery
does retransmissions, flow control, and congestion control via segments
User Datagram Protocol (UDP)
A connectionless Layer 4 (Transport) protocol that sends independent datagrams without guarantees of delivery or ordering
operating with lower overhead…speed over reliability
Port Numbers
16 bit transport-layer numbers ranging from 0 to 65535 used to identify application endpoints or services on a host
Layer 4 (Transport): IP address + Port + Protocol
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.