Analysis, modeling and design of flash-based solid-state drives