Packet model. Initializing sockets.