tested basic windowing. should test with packetloss simulation.