This paper investigates contention resolution schemes for optical packet switching networks from an end-to-end perspective, where the combined exploitation of both core routers and edge routers are highlighted. For the optical-core network, we present the architecture of an optical router to achieve contention resolution in wavelength, time, and space domains. Complementing the solution involving only the core router intelligences, we propose performance enhancement schemes at the network edge, including a traffic-shaping function at the ingress edge and a proper dimensioning of the drop port number at the egress edge. Both schemes prove effective in reducing networkwide packet-loss rates. In particular, scalability performance simulations demonstrate that a considerably low packet-loss rate (0.0001% at load 0.6) is achieved in a 16-wavelength network by incorporating the performance enhancement schemes at the edge with the contention resolution schemes in the core. Further, we develop an field-programmable gate-array (FPGA)-based switch controller and integrate it with enabling optical devices to demonstrate the packet-by-packet contention resolution. Proof-of-principle experiments involving the prototype core router achieve an error-free low-latency contention resolution.