codes for computer network experiment