This comprehensive guide walks you through the TCP/IP protocol suite, covering the four-layer model, data link, network, transport, and application layers, and explains key protocols such as IP, ARP, ICMP, TCP, UDP, DNS, as well as connection management, flow control, and congestion control techniques.
This article explains the fundamentals of network protocols, the OSI seven‑layer model, TCP three‑handshake and four‑teardown processes, differences between TCP and UDP, socket long‑connections, custom protocol design, and how to implement a reusable socket connection pool in Node.js.
This article explains the OSI seven‑layer model and the simplified four‑layer TCP/IP model, describes the TCP/IP protocol suite, details how data is encapsulated and transmitted, compares TCP and UDP, and walks through TCP’s three‑way handshake, four‑way termination, and related security considerations.
This article explains how TCP/IP functions as a collection of standard components—such as DNS, IP, ARP, TCP, UDP, and TLS—using a step‑by‑step example of a browser accessing zhihu.com, and clarifies each protocol's role, interactions, and quirks.
This article explains UDP packet structure, why UDP lacks a send buffer, how fragmentation and buffer overflows cause packet loss, and presents practical solutions—including socket buffer tuning, delayed sending, retransmission strategies, redundancy, and RUDP—to achieve reliable communication over an inherently unreliable protocol.
This comprehensive guide explains the TCP/IP model’s four layers, key protocols such as IP, ARP, ICMP, DNS, and the differences between TCP and UDP, and details connection setup, termination, flow and congestion control mechanisms like slow start, fast retransmit, and fast recovery.
This article provides a comprehensive, step‑by‑step explanation of TCP and related transport‑layer concepts, covering the OSI model, physical to application layers, socket and port mechanics, TCP header fields, reliable transmission techniques, flow and congestion control, connection setup/teardown, and a brief comparison with UDP.
This article explains how TCP and UDP operate at the transport layer, compares their reliability and speed, details the TCP three‑way handshake and four‑way termination processes, and outlines how each protocol handles data segmentation, ordering, and loss.
While UDP is often assumed to be faster than TCP, this article explains socket basics, the reliability mechanisms of TCP, scenarios where UDP can be slower, and how application-layer solutions like KCP or QUIC add reliability, helping readers understand when each protocol truly excels.
This article provides a comprehensive overview of TCP, UDP, and HTTP protocols, explaining their definitions, layered roles, connection establishment and termination processes, segment structures, and key differences in reliability and performance for network communication.
This article explains the fundamentals of HTTP, how browsers build and send requests, the structure of request and response messages, and the performance improvements introduced by HTTP 2.0 and the QUIC protocol built on UDP.
This comprehensive guide explains the TCP/IP protocol suite, detailing each of its four layers, key protocols such as IP, TCP, UDP, ICMP, ARP, and DNS, and illustrates essential mechanisms like encapsulation, three‑way handshake, flow control, congestion control, and tools like ping and traceroute.
This article provides a comprehensive overview of TCP and UDP, explaining their roles in the transport layer, key differences, the three‑way handshake and four‑way termination processes, data transmission mechanisms, and typical use‑case scenarios for each protocol.
This article explains the OSI seven‑layer model and the simplified four‑layer TCP/IP model, describes how data is encapsulated with headers at each layer, compares TCP and UDP characteristics, and details the TCP three‑way handshake, four‑way termination, and related security considerations.
This article provides a concise overview of TCP and UDP, explaining their roles in the transport layer, key differences such as connection orientation and reliability, the three‑way handshake and four‑way termination processes of TCP, and the characteristics and use cases of UDP.
This article provides a comprehensive overview of TCP and UDP, explaining their roles in the transport layer, key differences in reliability and speed, the three‑way handshake and four‑way termination processes of TCP, and how data transmission is handled by both protocols.
This article explains the fundamental differences between TCP and UDP, covering their purposes, reliability, speed, handshake mechanisms, data transmission processes, and termination procedures, and includes visual diagrams to illustrate each concept in.
This article provides a concise overview of TCP and UDP protocols, explaining their purposes, core differences, the TCP three‑way handshake and four‑way termination processes, data transmission mechanisms, and typical use‑case scenarios for each protocol.
This article explains why TCP and UDP can share the same port number, how multiple TCP processes handle binding, client port reuse, TIME_WAIT implications, and practical solutions like SO_REUSEADDR and tcp_tw_reuse to avoid address‑in‑use errors.
This article provides a comprehensive overview of TCP and UDP, explaining their roles in the transport layer, key differences, the three‑way handshake, data transmission mechanisms, four‑way termination, and the characteristics of UDP, illustrated with diagrams for clarity.
This article explains how QUIC implements reliable transmission on top of UDP by using monotonic packet numbers, stream IDs and offsets, independent flow‑control windows, and integrated TLS, thereby eliminating TCP’s retransmission ambiguity, head‑of‑line blocking, and improving congestion control and connection migration.
This article provides a comprehensive overview of TCP and UDP, explaining their roles in the transport layer, key differences such as connection orientation and reliability, the three‑way handshake and four‑way termination processes of TCP, and the typical use cases and limitations of each protocol.
The article explains how TCP, the long‑standing transport for HTTP/1.x and HTTP/2, suffers from head‑of‑line blocking and handshake latency, why protocol ossification hinders upgrades, and how HTTP/3’s QUIC built on UDP overcomes these issues while introducing its own deployment challenges.
This article explains the essential concepts of TCP and UDP, covering the OSI layers, physical and data‑link networking, IP addressing, transport‑layer mechanisms such as sliding windows, congestion control, reliable transmission, connection establishment and termination, and compares the strengths and weaknesses of TCP versus UDP.
This comprehensive guide walks through the fundamentals of computer networking, detailing the OSI layers, the inner workings of TCP and UDP, reliable transmission techniques such as stop‑and‑wait, sliding windows, congestion control, connection setup and teardown, as well as security concerns, performance trade‑offs, and practical use‑case scenarios.
This article uses a conversational story to explain what it means to listen on a network port, covering TCP vs UDP, binding to specific IPs, reuse‑port options, IPv4 and IPv6 differences, and demonstrates the concepts with multiple Python socket code snippets.
This comprehensive guide explains how two machines behind NAT and stateful firewalls can establish direct UDP communication without relays, covering concepts such as SNAT, STUN, ICE, port‑mapping protocols, carrier‑grade NAT, IPv6, and fallback relay strategies like TURN and DERP.
This article explains the complete lifecycle of socket communication—from creation within the TCP/IP stack, through connection establishment, data transmission with TCP and UDP, to graceful termination—detailing control information, packet sizing, ACK mechanisms, sliding windows, and practical inspection using netstat.
Secure Reliable Transport (SRT) is an open‑source, UDP‑based protocol that overcomes TCP’s latency and jitter issues in long‑distance live streaming by using ARQ retransmission, FEC, and AES/TLS encryption, enabling high‑quality, low‑delay video delivery even in poor network conditions.
The article examines the limitations of TCP and HTTP/2, explains how Google's UDP‑based QUIC protocol addresses issues such as head‑of‑line blocking, connection migration, and RTT estimation, and compares performance in both good and poor network conditions, highlighting its multiplexing, flow‑control, and security advantages.
This article explains the purpose, output format, and frequently used options of the cross‑platform netstat command, illustrating how to list active TCP/UDP connections, UNIX domain sockets, and various statistics, and notes modern replacements such as ss and ip.
This article introduces Python's socket module, explains core concepts such as IP, ports, and protocols, demonstrates essential socket functions, and provides complete client‑server code for a simple full‑duplex TCP chat application, enabling readers to quickly start network programming in Python.
This article analyzes the challenges of massive log storage and retrieval, calculates the bandwidth and hardware costs of traditional pipelines, and presents a streamlined architecture that uses in‑memory buffering, UDP transport, compression, and ClickHouse to achieve petabyte‑scale throughput while cutting storage costs by over 75%.
This article traces the evolution of HTTP from its early TCP‑based origins through HTTP/1.0, 1.1, SPDY, HTTP/2, and finally to HTTP/3, explaining how QUIC over UDP addresses latency, head‑of‑line blocking, and security challenges of previous versions.
The article analyzes the high cost and scalability challenges of traditional log collection pipelines and proposes a streamlined architecture that uses in‑memory buffering, UDP transport, aggressive compression, and ClickHouse storage to achieve massive throughput while drastically reducing hardware and operational expenses.
This article traces the evolution of HTTP from its earliest version through HTTP/2, explains the limitations of each iteration, and demonstrates how QUIC's UDP‑based design, 0‑RTT connections, connection migration, and flexible congestion control overcome those issues to become the next‑generation web transport protocol.
Since 2015, Ant Group’s Alipay client and gateway teams have been deploying QUIC, the next‑generation transport for HTTP/3, across mobile payment and overseas acceleration scenarios, detailing background, design choices, deployment frameworks, key technologies like connection migration, 0‑RTT, lossless upgrades, and related patents.
This article provides a comprehensive overview of computer networking fundamentals, covering OSI and TCP/IP layer models, the functions of each layer, detailed comparisons between TCP and UDP, the three‑way handshake, four‑way termination, SYN‑flood attacks, congestion control, and practical mitigation techniques.
This comprehensive guide covers network layer protocols like IP and its address classes, transport layer details of TCP and UDP, socket programming basics, the full compilation and linking process, and the creation and usage of shared libraries and DLLs across Linux and Windows.
The article describes how a Go‑based high‑throughput service was tuned from 80k to over 200k QPS by enlarging the GC heap, reusing UDP connections with sync.Pool, reducing system‑call overhead, and applying several lightweight logging and discovery optimizations.
This article provides a clear, step‑by‑step explanation of network layering, covering the purpose and function of each layer—from the physical medium up to the application protocols—while illustrating concepts with diagrams and practical examples.
This article traces the development of the HTTP protocol from its earliest 0.9 version through HTTP/1.1, HTTP/2, and finally HTTP/3 built on QUIC, highlighting how each iteration improved speed, efficiency, and mitigated head‑of‑line blocking while introducing new challenges.
This article explains the Simple Network Management Protocol (SNMP), covering its three versions, system architecture—including NMS, agents, managed objects, and MIB—along with query, set, trap, and inform operations, message formats, security levels, and default UDP ports used for network management.
This article reviews Google’s pioneering SPDY protocol, its key features and impact on HTTP/2, then explores the disruptive QUIC protocol built on UDP, detailing its connection setup, Diffie‑Hellman encryption, multiplexing, connection migration, and other enhancements that boost web performance.
This article explains why real‑time audio/video communication prefers UDP over TCP, compares TCP and UDP characteristics, introduces the RTP and RTCP application‑layer protocols that enable reliable media transport, and provides a quick Wireshark guide for capturing and analyzing RTP/RTCP packets.
This article describes how to implement a low‑overhead SQL audit feature for the Cobar database middleware by modifying its code, using an agent with Kafka, choosing UDP for inter‑process communication, and designing a custom ring‑buffer to achieve near‑baseline throughput with only minimal performance loss.
QUIC, a UDP‑based transport protocol that merges TCP reliability, UDP speed, and TLS security, underpins HTTP/3 by eliminating TCP’s three‑way handshake and head‑of‑line blocking, offering connection migration, 0‑RTT latency, customizable congestion control, fully encrypted packets, and is already being deployed in services such as Tencent Cloud CDN.
This article provides a detailed, step‑by‑step walkthrough of the Linux kernel’s packet‑receiving path, covering NIC DMA, hardware and soft interrupts, ksoftirqd threads, NAPI polling, protocol‑stack registration, IP/UDP processing, and the final recvfrom system call that delivers data to user space.
This article reviews the pioneering SPDY protocol that inspired HTTP/2, then delves into Google's disruptive QUIC protocol—explaining its UDP foundation, Diffie‑Hellman encryption, connection migration, and advanced features that overcome TCP limitations, while comparing their roles in modern web communication.
This article explains socket fundamentals and walks through creating a simple UDP‑based chatroom in Python, covering basic socket creation, common methods, a straightforward server‑client example, and an enhanced multi‑user implementation with full source code and execution details.
This article reviews the evolution of web communication protocols, detailing SPDY's pioneering features that influenced HTTP/2 and exploring QUIC's disruptive UDP‑based design, security mechanisms, multiplexing, connection migration, and other enhancements that reshape modern internet performance.
This article explains the role of the transport layer in the OSI model, compares TCP and UDP protocols, describes socket types and their APIs, clarifies port number usage, and details multiplexing, demultiplexing, and UDP packet structure with checksum calculation.
This article uses everyday analogies to compare UDP and TCP, outlines their core characteristics, typical use cases, and describes how to add TCP-like reliability features to UDP such as connection establishment, ordering, loss recovery, flow control, and congestion control.
This article provides a comprehensive introduction to the transport layer of computer networks, explaining the roles of TCP and UDP, socket APIs, port numbers, multiplexing, packet structures, connection management, three‑way handshake, four‑way termination, and congestion‑control mechanisms.
This article provides a comprehensive overview of the transport layer in the TCP/IP model, explaining the roles of TCP and UDP protocols, socket APIs, port numbers, multiplexing, and how data is encapsulated and transmitted between end systems.
This article systematically explains the TCP/IP protocol suite, covering the four-layer model, data link, network, transport, and application aspects, and dives into key protocols such as IP, ARP, ICMP, DNS, as well as TCP connection management, flow control, and congestion control mechanisms.
This article provides a detailed introduction to the TCP/IP model, explaining each layer—from the physical and data link layers up to the application layer—along with key protocols such as IP, ARP, ICMP, TCP, UDP, DNS, and the mechanisms of connection establishment, termination, flow control, and congestion control.
This guide explains how to use the versatile netcat (nc) command for checking occupied ports, scanning port ranges, testing TCP/UDP connections, retrieving HTTP headers, transferring files, and measuring network throughput, complete with practical examples and useful options.
This article provides a comprehensive, illustrated explanation of how Linux receives network packets—from hardware DMA and interrupt handling through soft‑interrupt processing, NAPI polling, protocol stack registration, and finally delivery to user‑space via recvfrom—detailing each kernel component and relevant source code.
This article explains why Kubernetes requires an overlay network, describes Docker’s virtual bridge limitations, introduces Flannel’s architecture and its three data‑forwarding modes—UDP, VXLAN, and host‑gw—detailing their mechanisms, performance trade‑offs, and how the StarRing TCOS platform leverages these modes for different cluster sizes and network topologies.
This guide explains the Linux packet‑receive path, shows how to verify UDP loss with tools like ethtool, ifconfig, and netstat, and provides step‑by‑step methods to identify NIC, driver, kernel, firewall, buffer‑size, and application causes while offering concrete commands to adjust ring buffers, sysctl parameters, and socket settings.
This article demonstrates how Swoole 4’s new coroutine kernel enables fully synchronous‑style PHP code to perform asynchronous I/O, file operations, database queries, and TCP/UDP networking within a single process, showcasing massive performance gains through practical code examples.
This guide explains the Linux packet‑receiving process, shows how to identify where UDP drops occur, and provides practical commands and kernel tuning tips to troubleshoot network‑card, driver, system, and application‑level packet loss.
This article explains why a single recursive DNS query to a root server returns only 13 IP addresses by examining DNS packet structure, MTU constraints, UDP/TCP transport limits, and the 512‑byte size restriction that governs DNS responses.
This guide explains how to use Netcat—a lightweight, versatile TCP/UDP utility installed on most Linux distributions—for port scanning, connectivity checks, UDP sessions, file transfers, bandwidth measurement, and even creating simple backdoors, while highlighting differences between GNU and OpenBSD versions.
This article explains the TCP/IP protocol suite, its layered architecture, the purpose of layering, the functions of each layer, differences between TCP and UDP, and the detailed processes of TCP's three‑way handshake and four‑way termination.
This article explains the fundamentals of TCP/IP networking, including the protocol layering model, the TCP three‑way handshake and four‑way termination, differences between TCP and UDP, and how HTTP operates as a short‑lived, stateless protocol built on top of TCP.
This article demystifies the OSI networking model by explaining each layer—from the physical hardware connections up to the application protocols—covering concepts such as MAC addresses, IP addressing, subnet masks, TCP/UDP ports, and how data is encapsulated and decapsulated across networks.
This article walks through the OSI network model layers—physical, data link, network, transport, and application—explaining hardware components, MAC and IP addressing, subnet masks, TCP/UDP protocols, ports, and how data is encapsulated and decapsulated across each layer.
This article introduces the OSI model, IP and UDP protocols, explains the structure of IP and UDP packet headers, demonstrates how to create a simple UDP server and client in Python, and shows how to capture and analyze the traffic with Wireshark.
This tutorial explains how to install Wireshark, create a virtual network interface for an iPhone, obtain the device UDID, start the virtual interface, and capture TCP/UDP traffic between the iPhone and IoT hardware, including the use of capture and display filters.
Upcoming IETF discussions aim to replace the long‑standing TCP‑based HTTP with a new UDP‑based protocol, QUIC, rebranded as HTTP/3, offering lower latency and improved security, while distinguishing Google’s gQUIC from the IETF’s iQUIC and gaining industry support.
Learn step-by-step how to verify UDP packet loss on Linux, interpret driver and kernel statistics, adjust ring buffers and socket buffers, and use tools like ethtool, netstat, dropwatch, and perf to pinpoint and resolve network drops caused by hardware, configuration, or system load.
This comprehensive guide walks you through the core concepts of computer networking, including the OSI and TCP/IP models, detailed explanations of TCP and UDP protocols, HTTP fundamentals, socket programming, IP addressing, ICMP, ping operations, and the differences between routers, switches, cookies, sessions, and tokens.
This article details a competition‑level solution that implements a high‑throughput HTTP server using a custom multi‑threaded epoll model, UDP‑based protocol conversion, sparse indexing, and optimized write‑read schemes to achieve top performance on limited‑resource hardware.
This article explores the advantages, architectural layout, network planning, and practical technologies for global server games, emphasizing microservice-based modular design, automated deployment, frame‑synchronization over UDP, centralized versus distributed deployment models, and considerations of latency, data consistency, and blockchain integration.
This article demystifies socket communication by illustrating the end‑to‑end process of TCP/UDP message exchange, detailing how client and server serialize objects, interact with kernel read/write buffers, handle blocking, acknowledgments, packet headers, and flow control, and why understanding these low‑level mechanisms is crucial for reliable network programming.
This article compiles 35 Linux operations interview questions—including multiple‑choice, coding, and essay topics—along with detailed answers covering VLANs, system calls, IP addressing, TCP/UDP, process handling, data structures, and networking fundamentals to help candidates prepare effectively.
This article explains how to use netcat (nc) on Linux for TCP/UDP communication, covering command syntax, port scanning, banner grabbing, chat servers, file transfers, directory compression, encrypted streams, cloning devices, remote shells, and advanced piping techniques, all with concrete command examples.
This article provides a comprehensive guide to Java network programming, covering TCP/IP basics, socket concepts, InetAddress and URL APIs, detailed TCP and UDP client‑server implementations, multithreaded server handling, and practical code examples for building robust network applications.
Sun Xun, the technical director of Tencent's King of Glory, details the game's backend architecture, from the evolution of its server design and proxy routing to the shift from TCP to UDP and frame‑synchronization, highlighting challenges, optimizations, and lessons learned in scaling a massive mobile MOBA.
This guide explains how to use a packet capture tool to monitor the QQ process, filter UDP traffic, and retrieve a friend’s IP address, including step‑by‑step instructions, screenshots, and tips for distinguishing public and private IP ranges.
This article explains the differences between MQTT and CoAP, two lightweight IoT communication protocols, and provides guidance on when to use each based on network conditions, architecture compatibility, and deployment scenarios.
This article provides a comprehensive overview of the 65,535 possible TCP/UDP ports, highlighting frequently used ports, their associated services, typical vulnerabilities, and how attackers may exploit them, helping readers quickly reference and secure network configurations.
This article explains the fundamentals of Java socket programming, covering what sockets are, the three essential components for establishing a connection, sample server and client code, connection monitoring techniques, multithreaded handling of multiple clients, and UDP communication with practical considerations.
This article details the design and implementation of a Go‑based backend for a ride‑hailing app, covering real‑time vehicle tracking, route planning with OSRM, bandwidth‑saving UDP + ProtoBuf communication, in‑memory storage, R‑tree indexing, and the full API workflow.
This article describes how a ride‑hailing service built a memory‑based backend that animates cars on a map, covering challenges of sparse GPS updates, route planning with OSRM, protocol selection (UDP), data serialization (Protobuf), storage architecture, geospatial indexing with R‑tree, and the final API design.
This article details the architecture, encoding choices, network‑level optimizations, transmission model, measurement methods, and practical pitfalls involved in building a 1080p real‑time video streaming solution that consistently keeps end‑to‑end latency below 500 ms for interactive online education.
This article provides a comprehensive overview of HTTP, TCP, UDP, and socket communication, explaining protocol layers, request/response structures, key headers, and the differences between GET and POST methods for web development.
This article explains the structure and fields of IP packets, including version, header length, TOS, total length, ID, flags, fragment offset, TTL, protocol, checksum, source and destination addresses, as well as the formats and key functions of TCP and UDP headers, highlighting their differences.
This guide introduces Python’s socket module, explains socket families and types, details essential server and client functions, walks through step‑by‑step TCP connection creation, and provides complete server and client code examples for practical network programming.
This article outlines Baidu Maps' mobile network optimization strategies, covering the overall architecture, common wireless issues such as DNS failures and hijacking, and practical solutions like HTTP‑DNS, custom TCP/UDP HTTP, data compression, unified domain entry, and deployment tactics that significantly improve user search latency and engagement.
With broadband speeds soaring, UDP’s simplicity and low latency now outperform TCP in web browsing, streaming, gaming, and IoT, as real‑world tests from Akamai and Google show dramatically lower packet loss, faster connections, and reduced buffering, signaling a shift toward UDP‑centric networking.
This article explains the fundamentals of TCP/IP and UDP protocols, clarifies where sockets fit in the network stack, describes their role as a façade layer, and provides a complete MFC‑based client‑server example with full source code for initializing, binding, listening, connecting, sending, and receiving data.