An object of one embodiment of the present invention is to provide a highly reliable semiconductor device by giving stable electric characteristics to a transistor including an oxide semiconductor film. In a connecting piece for connection of an external device a self-closing valve is arranged. The communication IP packets are intercepted in such a way that the terminals are unaware of the interception.