Tagged articles
switch
60 articles · Page 1 of 1
The article dissects a network switch to reveal its core ASIC, PHY chips, packet buffer, CAM‑based MAC address table, CPU and management ports, then follows a data frame through learning, table lookup, and forwarding decisions—including unicast, unknown‑unicast flood, broadcast/multicast flood and filtering—while noting advanced features such as static MAC entries and MAC‑migration suppression.
ASICMAC learningnetwork hardware
0 likes · 8 min read

A comprehensive quick‑reference guide that consolidates the most frequently used Cisco IOS commands for switches, routers, and ASA/FTD firewalls—including view hierarchy, VLAN and trunk setup, static and OSPF routing, DHCP, NAT, ACLs, and the top ten troubleshooting show commands—so you can troubleshoot and configure devices without constantly flipping through manuals.
CLICiscofirewall
0 likes · 27 min read

This comprehensive cheat sheet gathers the most frequently used H3C commands for switches, routers, and firewalls—covering view hierarchy, VLAN creation, OSPF, STP, link aggregation, NAT, DHCP, security zones, policies, user management, backup, and step‑by‑step troubleshooting tips.
H3CNATOSPF
0 likes · 37 min read

This guide compiles the most frequently used Huawei VRP commands for switches, routers, and firewalls, explains the view hierarchy, provides parameter details, shortcut keys, and step‑by‑step configuration examples—including VLAN, STP, OSPF, BGP, NAT, HRP, and troubleshooting commands—so engineers can quickly reference and avoid costly misconfigurations.
HuaweiVRPfirewall
0 likes · 27 min read

The article walks through a real‑world refactor of a Java event‑handling system, showing how instanceof pattern matching, switch pattern matching, record patterns, sealed classes and the new JDK 25 syntax features replace verbose if‑else chains and the Visitor pattern, yielding shorter, safer, compile‑time‑checked code.
JDK 25JavaRecords
0 likes · 15 min read

This article explains the fundamental distinctions between routers and switches—including their OSI layers, addressing methods, forwarding mechanisms, broadcast domains, performance, and typical use cases—while providing interview‑focused insights, detailed operation principles, and common follow‑up questions.
InterviewNetworkingOSI model
0 likes · 12 min read

This article walks through the entire H3C device family, covering model selection, initial console setup, VLAN and interface configuration, static and OSPF routing, NAT and VPN deployment, firewall ACLs and security zones, plus a handy troubleshooting command cheat‑sheet for network engineers.
H3CNATOSPF
0 likes · 23 min read

This guide catalogs Huawei's main switch, router, and firewall models, explains how to select the right device based on scale, and provides ready‑to‑copy configuration snippets for initial setup, OSPF routing, NAT, IPSec VPN, firewall policies, and a security hardening checklist.
HuaweiIPSec VPNNAT
0 likes · 18 min read

Java enums replace magic numbers with meaningful, type‑safe constants, improving readability and safety; the guide covers basic definitions, core methods, typical usages like switch statements and iteration, advanced features with fields and constructors, a comparison with static‑final constant classes, and common pitfalls to avoid.
Best PracticesEnumJava
0 likes · 6 min read

This tutorial walks through Java's selection structures—including if, if‑else, if‑else‑if, nested if, and switch—detailing their syntax, execution flow, example code, output results, and key differences, helping beginners write correct and portable conditional logic.
Javacontrol flowif statement
0 likes · 16 min read

The article explains why traditional static final String constants are error‑prone and demonstrates how Java enums—introduced in Java 5—provide stronger type safety, clearer semantics, built‑in methods, and safer switch handling, making them a superior modeling choice for fixed, related values.
DesignEnumJava
0 likes · 8 min read

This comprehensive guide walks operations engineers through the fundamentals, configuration, monitoring, troubleshooting, and automation of switches, routers, and firewalls, providing practical commands, best‑practice scripts, and security hardening steps for reliable network infrastructure.
Configurationfirewallmonitoring
0 likes · 24 min read

The article traces the evolution of network hardware—from early PCs without networking, through cables, NICs, repeaters, hubs, bridges, and switches, to routers, wireless APs, firewalls and traffic‑control devices—explaining each device's role, limitations, and how they solve specific networking problems.
Ethernetaccess pointfirewall
0 likes · 10 min read

This article explores how extracting hot‑path conditions from a switch statement into separate if checks can leverage CPU branch prediction to dramatically improve Java backend throughput, backed by benchmarks, bytecode analysis, and a discussion of instruction pipelines and sorted‑array effects.
BranchPredictionDubboIfElse
0 likes · 15 min read

This tutorial explains C++ conditional control structures—including if, if-else, else-if, switch, and the ternary ?: operator—detailing their syntax, usage, and providing clear code examples that demonstrate how to implement each construct for decision-making in programs.
C++conditional statementsif-else
0 likes · 5 min read

This article explains Go's flow‑control constructs—including conditional statements, loops, switch branches, and special statements like break, continue, and goto—provides syntax details, highlights key characteristics, and offers multiple code examples to help developers write clear and efficient Go code.
Flow ControlGofor loop
0 likes · 9 min read


ITPUBMay 19, 2025 · Fundamentals
The article examines why many programmers favor if...else over switch statements, outlining switch's intended clarity, its limitations such as lack of range support and fall‑through pitfalls, performance considerations across languages, and scenarios where each construct shines.
Coding Best PracticesJavacontrol flow
0 likes · 8 min read

Modern JavaScript offers more elegant alternatives to traditional if‑else and switch statements, such as using object literals for simple mappings and the ES6 Map structure for complex or dynamic key‑value logic, resulting in shorter, less error‑prone, and more maintainable code.
JavaScriptcode optimizationmap
0 likes · 4 min read

Learn how modern JavaScript lets you replace verbose if‑else and switch statements with concise object literal mappings and the powerful ES6 Map structure, improving readability, reducing errors, and simplifying maintenance for both simple and complex branching logic.
JavaScriptmapobject literal
0 likes · 4 min read

This article explores an unconventional Go switch‑true pattern used for checking systemd service status, compares it with equivalent if‑else logic, examines the generated assembly, and discusses when this style is advantageous for handling multiple string‑prefix conditions.
Backendcode-generationperformance
0 likes · 10 min read

This article provides a comprehensive, beginner‑friendly overview of common home networking hardware—including routers, switches, optical modems, and Wi‑Fi—explaining their roles, internal structures, network‑layer functions, routing tables, and wireless standards such as IEEE 802.11.
OSI modelmodemnetwork fundamentals
0 likes · 20 min read

Using JMH, this article benchmarks Java switch statements, comparing the traditional int‑based switch (via String hashCode) against the newer String‑based switch, showing that the int version runs roughly twice as fast while warning about hashCode collisions.
hashCodeperformanceswitch
0 likes · 6 min read

This guide walks you through the essential concepts of home networking, explaining the roles and inner workings of routers, switches, optical modems, IP addressing, and Wi‑Fi standards, while clarifying common misconceptions and showing how these devices interconnect to deliver reliable internet access.
WiFimodemnetwork fundamentals
0 likes · 18 min read

This article explains the unconventional Go switch without an expression, shows how it works like ‘switch true’, compares it with equivalent if‑else logic, examines the generated assembly, and discusses when this compact pattern is useful for prefix‑based checks.
Gocode generationcontrol flow
0 likes · 11 min read

This guide details the most common fiber optic connectors, switch ports, router interfaces, and serial cables, explaining their types, physical characteristics, typical use cases, and how to choose the right module or cable for reliable network maintenance.
CABLEConfigurationConnector
0 likes · 9 min read

This guide explores Go's versatile switch statement, covering basic syntax, initializer and value parts, literal true switches, short assignments, multiple case values, fallthrough behavior, default placement nuances, and type switches, all illustrated with clear code examples.
GoTutorialgolang
0 likes · 9 min read

This article introduces Java 21’s newly finalized switch pattern matching and record patterns, explains their evolution from earlier JDK releases, and provides side‑by‑side code examples that show how these features dramatically reduce boilerplate and improve readability in Java applications.
JavaJava 21Record Patterns
0 likes · 6 min read

This article provides a comprehensive analysis of the worldwide and China switch markets from 2022 to 2027, detailing market size, growth rates, product speed trends, data‑center demand, and the competitive dynamics among leading vendors such as Huawei, H3C, Ruijie and Cisco.
AIindustry trendsnetwork equipment
0 likes · 18 min read

The article explains why Java's switch statement cannot handle long values, detailing how enum, String, and primitive types are internally converted to int via compiler‑generated tables and hashCode logic, and includes decompiled examples illustrating this behavior.
EnumJDKJava
0 likes · 8 min read

This guide walks through three practical scenarios for VLAN isolation: using port isolation to separate users within the same VLAN, employing MUX VLAN to achieve selective inter‑VLAN communication and isolation, and applying ACL‑based flow policies to block specific VLANs or individual users while preserving overall connectivity.
ACLFlow PolicyMUX VLAN
0 likes · 8 min read

This article explains the main components of PCIe architecture—including Root Complex (RC), switches, and PCIe‑to‑PCI bridges—how they are implemented in different processor systems such as x86 and PowerPC, and the mechanisms for QoS, port arbitration, and extended configuration space.
EndpointPCIePort Arbitration
0 likes · 26 min read

This article demonstrates how Java 17’s enhanced switch statement with pattern matching replaces cumbersome instanceof‑based if‑else chains, providing concise type‑checking and casting for Map values such as String, Integer, and Double, while noting its preview status.
InstanceofJDK 17Java
0 likes · 5 min read

This article shows how to replace verbose if‑else chains with classic switch statements and then demonstrates Java 14's enhanced switch expression using arrow syntax, eliminating the need for break statements and making the code more concise and readable.
conditionaljava14programming
0 likes · 4 min read

This article explains how computers communicate over networks by introducing MAC addresses, the role of hubs and switches, the function of routers, IP addressing, subnet masks, ARP, and routing tables, illustrating the process of data transmission across different network layers.
ARPIPMAC address
0 likes · 19 min read

This article explains the concepts and inner workings of network hubs, switches, and routers, covering their roles across OSI layers, the differences between them, and how devices communicate using MAC and IP addresses, with practical examples and diagrams.
OSI modelhubrouter
0 likes · 22 min read

This article explains the evolution from simple hubs to intelligent switches and routers, covering the OSI layers, LAN setup, MAC and IP addressing, ARP, crossover cabling, and the internal structures that enable reliable data transmission in modern networks.
LANhubnetwork fundamentals
0 likes · 23 min read

This guide details eight common network problems—from switches that won’t communicate after power‑up to IP address conflicts—explaining their symptoms, root causes, and step‑by‑step solutions for reliable LAN performance.
PortFastSTPbroadcast storm
0 likes · 12 min read

This article systematically outlines the functions, OSI layer positions, and key differences of common networking hardware—including repeaters, hubs, bridges, switches, routers, and gateways—providing clear explanations and visual illustrations to help readers understand how each device processes signals and facilitates data communication within modern intelligent building networks.
OSI modelnetwork devicesrouter
0 likes · 12 min read

This article walks through the evolution and functions of home networking hardware—starting with the basic hub, moving to switches that use MAC tables, and culminating with routers that connect multiple networks—helping readers choose the right devices for their home setup.
home networkhubnetwork fundamentals
0 likes · 6 min read

This article explains why Java's switch statement only supports byte, short, int, char, enum, String and their wrapper types, detailing how each type is internally converted to int, why long is excluded, and what happens with null values.
EnumJavaString
0 likes · 8 min read

This article explains the structure and purpose of MAC addresses, details Ethernet II frame fields, describes how switches learn and forward frames, and explores VLAN tagging, configuration methods, and practical lab setups for Access, Trunk, and Hybrid ports.
EthernetLayer2MAC address
0 likes · 17 min read

This guide walks you through essential Huawei switch commands, covering user and view modes, VLAN creation, port link types, batch operations, initial login procedures, service activation, link aggregation, DHCP setup, and flow‑control configuration, all illustrated with step‑by‑step screenshots.
HuaweiOperationsVLAN
0 likes · 9 min read

This article explains how computers use MAC and IP addresses, subnet masks, ARP, hubs, switches, and routers to communicate across physical, data‑link, and network layers, illustrating the learning process with step‑by‑step examples and tables of address mappings.
ARPIP addressMAC address
0 likes · 19 min read

These eight network troubleshooting cases cover issues such as a newly powered switch failing to forward traffic, a 5‑port switch using only four ports, persistent COL‑light collisions, gigabit upgrade instability, slow link speeds from broadcast storms, Windows file‑sharing permission problems, hub‑router connectivity failures, and IP address conflicts, each with analysis and practical solutions.
PortFastSTPWindows sharing
0 likes · 14 min read

This article explains the definitions and interactions of Trunk, Hybrid, and Access ports, the concepts of VLAN tagging, untagging, and PVID, and demonstrates their behavior on Huawei switches through detailed configuration examples and traffic flow analysis.
HuaweiNetworkingPVID
0 likes · 6 min read

This article explains the basic networking devices and concepts—including hubs, switches, routers, gateways, routing, static vs. dynamic routing, routing tables, and the differences between bridging and routing—illustrated with diagrams and step‑by‑step examples to clarify how data moves across networks.
NetworkingRoutingbridge
0 likes · 8 min read

This article provides a comprehensive overview of network switches, covering their basic concepts, classifications, performance indicators, interface and link methods, virtual LANs, multilayer switching, and product introductions, while also including promotional information for related technical e‑books.
IT infrastructureVLANmultilayer switching
0 likes · 2 min read

This article provides a comprehensive overview of network switches, covering their definition, core functions, port and distance expansion, classification by manageability and OSI layer, various management methods (Web, CLI, SNMP), key features such as VLAN, ACL, routing, and practical deployment scenarios.
ACLNetworkingRouting
0 likes · 10 min read

This article benchmarks Java's switch statement against equivalent if‑else chains using JMH, explains the underlying bytecode differences, shows how tableswitch and lookupswitch are generated, and demonstrates that switch can be up to 3.7 times faster as the number of branches grows.
JMHJavabytecode
0 likes · 16 min read

The latest Java Development Handbook introduces 21 new coding rules, revises over a hundred guidelines, and adds clearer examples on lock handling, switch‑null checks, floating‑point comparisons, collection conversions, and guard statements, while inviting developers to download the free PDF and join a live discussion.
Code ExamplesConcurrencyJava
0 likes · 9 min read

This article presents five Java code snippets—covering floating‑point comparison, wrapper equality, switch handling of null, BigDecimal construction, and lock usage—and challenges readers to identify the correct outcomes, exposing common misconceptions and best‑practice solutions.
ConcurrencyInterview questionsbigdecimal
0 likes · 4 min read

This article shares a seasoned developer’s top ten obsessive Java programming techniques—ranging from placing string literals first to avoid NullPointerExceptions, never trusting early JDK APIs, treating -1 cautiously, enforcing final modifiers, and rigorously structuring switch statements—to help you write safer, more maintainable code.
Best PracticesFinalNullPointerException
0 likes · 9 min read


ITPUBJul 3, 2017 · Fundamentals
This article explains what a finite state machine (FSM) is, where it is commonly used, and walks through three C implementations—plain if/else, switch‑case, and a function‑pointer table—highlighting their advantages, drawbacks, and providing complete code examples.
C++Finite State MachineFunction Pointer
0 likes · 8 min read

This article demonstrates how to implement common WeChat Mini Program form controls—including picker, multi-select checkbox, slider, switch, and form submission—by presenting their code structures, event handling, and sample WXML/JS snippets, enabling developers to quickly integrate these interactive components into their apps.
FormSliderWeChat Mini-Program
0 likes · 3 min read

After reading 'High-Performance JavaScript', I tested the speed of a switch statement versus a lookup table over 50,000 iterations, finding the switch slightly faster contrary to the book’s claim, and reflecting on the practical benefits of lookup tables such as clearer code and easier maintenance.
JavaScriptLookup Tablecode optimization
0 likes · 3 min read

This guide details the steps to export a configuration file from a Quidway switch using TFTP and to identify the IP address assigned to a specific MAC address on an S5700 switch by querying the ARP table.
ConfigurationTFTPmac-address
0 likes · 2 min read

This guide provides detailed commands to configure a switch for user access VLANs, set up a firewall as both a layer‑3 and layer‑2 device with VLAN interfaces, DHCP/DNS, security zones, static routing, and NAT to enable internal users to reach external networks.
DHCPNATRouting
0 likes · 8 min read

This guide explains how to configure strict ARP learning, fixed‑mac entry fixation, source‑IP based ARP miss and packet rate limits, interface ARP entry limits, and how to verify these settings on a Quidway switch using the appropriate CLI commands.
ARPQuidwaySecurity
0 likes · 4 min read

This guide explains how to create a permanent port group on a Huawei aggregation switch, add ten access‑switch interfaces to it, set the ports as trunk, allow VLAN20 traffic, and verify the configuration using display commands.
HuaweiPort GroupVLAN20
0 likes · 2 min read

The article explains how to identify the MAC address and switch port of a device causing an IP conflict on a Huawei S5700 by disconnecting the server, ping testing, telneting to the switch, and executing a specific ARP display command.
ARPHuaweiip-conflict
0 likes · 2 min read
