snippet demonstrating packet reconstruction