Optical packet switches that scale to thousands of input/output ports might find their application in next-generation datacenters (DCs). They will allow interconnecting the servers of a DC in a flat topology, providing higher bandwidth and lower latency in comparison with currently applied electronic switches. Using a simple analytic model that allows computing end-to-end latency and throughput, we show that optical interconnects that employ a centralized (electronic) controller cannot scale to thousands of ports while providing end-to-end latencies below 1 µs and high throughput. We therefore investigate architectures with highly distributed control. We present astrictly non-blocking wavelength division multiplexing architecture with conte...