In order to solve the problem of the communication between different systems on the network, we put forward the model of the network connection. Aiming at the default value in network connection model that cannot be directly obtained by the HTML parser from the web page, this paper presents a solution based on ontology reasoning, which includes analyzing the web page with ontology, building ontology model for the page, defining rules in KAON2 ontology reasoning machine, and reasoning out the default value of network connection model. Experiments take an online judge system as an example. The results show that the method has high recognition rate and greatly improves the automation degree of the network connection model.