TCP Connection State Machine Diagram
State diagram of the TCP connection lifecycle, showing how a socket moves through states such as LISTEN, SYN_SENT, ESTABLISHED, FIN_WAIT, CLOSE_WAIT, and TIME_WAIT during setup and teardown.
Diagram examples
Every diagram here was generated from a plain-language description. Open any one to see its structure live.
State diagram of the TCP connection lifecycle, showing how a socket moves through states such as LISTEN, SYN_SENT, ESTABLISHED, FIN_WAIT, CLOSE_WAIT, and TIME_WAIT during setup and teardown.
State machine for an elevator, showing transitions between idle, door operations, moving up or down, and emergency stop states from start to end.
State machine diagram for a vending machine, showing transitions from idle to accepting coins, item selection, dispensing, and returning change, plus start, end, and out-of-service states.
Activity diagram of a student course registration workflow: logging into the portal, checking enrollment eligibility, searching the catalog, validating prerequisites and seat availability, handling waitlists and schedule conflicts, then finalizing the schedule and tuition.
Activity diagram of an online shopping flow, from browsing products and adding items to the cart through checkout, payment validation, order fulfillment, delivery, and possible returns. It includes decision points for stock, login, payment failure, and customer satisfaction.
Activity diagram of an ATM session, from card insertion and PIN verification to withdrawals, balance checks, deposits, receipts, and card ejection. It also shows invalid card handling, failed PIN attempts, and card retention after too many errors.
Sequence diagram for a library book borrowing workflow, showing interactions between the member, librarian, library system, book catalog, and member database during a loan request.
Sequence diagram of an online shopping flow where a customer uses a web storefront to place an order, triggering inventory checks, payment processing, and order confirmation by email.
Sequence diagram of an ATM cash withdrawal, showing how the customer, ATM, bank server, account database, and cash dispenser interact to authenticate the user, verify funds, and dispense cash.
Class diagram of a banking system showing core entities such as bank, customer, account, transaction, loan, card, and employee. It includes account specializations for savings and current accounts, plus a loan officer role.
Class diagram for an online shopping system showing users, customers, and administrators alongside products, categories, carts, orders, payments, shipments, and reviews. It also models cart and order line items plus credit card and PayPal payment types.
Class diagram of an ATM system showing the ATM’s relationships with hardware components, customer cards, bank accounts, and transaction types such as withdrawal, deposit, balance inquiry, and transfer.
Class diagram of a hospital management system showing people and roles (patient, staff, doctor, nurse), clinical records and prescriptions, appointments, wards and beds, and billing. It outlines the main entities used to manage care and hospital operations.
Entity-relationship diagram of a banking system showing customers, branches, accounts, transactions, loans, cards, employees, and the AccountHolder join table for shared account ownership.
Entity-relationship diagram for a school management system showing students, teachers, classes, subjects, exams, attendance, fees, and exam results, with a join table linking teachers to subjects.
ER diagram of an inventory management system showing suppliers, products, warehouses, stock levels, purchase orders and line items, and stock movements. It maps how inventory is ordered, stored, and tracked across locations.
Entity-relationship diagram for an online shopping system showing customers, addresses, products, categories, carts, orders, payments, reviews, and line items, with relationships between shopping, checkout, and order records.
Entity-relationship diagram for a library management system, showing members, books, authors, categories, loans, reservations, and librarians. It includes a junction table for the many-to-many relationship between books and authors.
Flowchart of a for loop: initialize i = 0, test whether i < n, run the loop body, increment i, and repeat until the condition fails, then continue after the loop to end.
Flowchart showing how dinosaurs split into Saurischia and Ornithischia, then into major groups like Theropoda, Sauropodomorpha, Thyreophora, Ornithopoda, and Marginocephalia, with sub-branches such as Ceratopsia and Ankylosauria.
CI/CD Pipeline Flowchart — flowchart with 20 nodes and 23 connections.
CI/CD Pipeline Flowchart — flowchart with 20 nodes and 22 connections.
CI/CD Pipeline — flowchart with 16 nodes and 17 connections.
Employee onboarding — bpmn diagram with 11 nodes and 11 connections.