Layered operation in the context of routers and firewalls refers to their ability to operate at different layers of the Open Systems Interconnection (OSI) model. Each layer of the OSI model has specific functions and roles that enable the management and security of network traffic.