Medical compression socks can be used to prevent or treat a variety of conditions, such as varicose veins, deep vein thrombosis (DVT), and lymphedema. compression socks, including knee-high compression socks, ankle-length compression socks, and compression stockings.