A device-to-device, D2D, communication module, which is set in a first terminal device, and the D2D communication module comprises: a routing support unit, configured to generate an identification, ID, of the D2D communication module, discover a neighbor D2D communication module, establish a link with the neighbor D2D communication module, and maintain routing information between the D2D communication module and the neighbor D2D communication module, wherein the neighbor D2D communication module is set in a second terminal device; and a point-to-point communication unit, configured to communicate with the neighbor D2D communication module according to the ID of the D2D communication module and the routing information between the D2D communication module and the neighbor D2D communication module; wherein the point-to-point communication unit is specifically configured to obtain first network data provided by the first terminal device, and transmit the first network data to the neighbor D2D communication module according to the ID of the D2D communication module and the routing information between the D2D communication module and the neighbor D2D communication module; wherein the routing support unit is further configured to obtain an ID of the neighbor D2D communication module and a port number of an air interface via discovery mechanism, the point-to-point communication unit is specifically configured to obtain the first network data provided by a first application program on the first terminal device, allocate a first port to the first application program, notify the neighbor D2D communication module that the first application program on the first terminal device transmits data in a connection-oriented communication mode, establish a connection from the ID of the D2D communication module and the first port to the ID of the neighbor D2D communication module and a second port allocated to a second application program by the neighbor D2D communication module, package the first network data to obtain a data packet according to the ID of the D2D communication module, a port number of the first port, the ID of the neighbor D2D communication module, and a port number of the second port allocated to the second application program by the neighbor D2D communication module, and transmit the data packet to the neighbor D2D communication module via the connection, wherein the second application program is an application program which is on the second terminal device and communicates with the first application program. a routing support unit, configured to generate an identification, ID, of the D2D communication module, discover a neighbor D2D communication module, establish a link with the neighbor D2D communication module, and maintain routing information between the D2D communication module and the neighbor D2D communication module, wherein the neighbor D2D communication module is set in a second terminal device; and a point-to-point communication unit, configured to communicate with the neighbor D2D communication module according to the ID of the D2D communication module and the routing information between the D2D communication module and the neighbor D2D communication module; wherein the point-to-point communication unit is specifically configured to obtain first network data provided by the first terminal device, and transmit the first network data to the neighbor D2D communication module according to the ID of the D2D communication module and the routing information between the D2D communication module and the neighbor D2D communication module; wherein the routing support unit is further configured to obtain an ID of the neighbor D2D communication module and a port number of an air interface via discovery mechanism, the point-to-point communication unit is specifically configured to obtain the first network data provided by a first application program on the first terminal device, allocate a first port to the first application program, notify the neighbor D2D communication module that the first application program on the first terminal device transmits data in a connection-oriented communication mode, establish a connection from the ID of the D2D communication module and the first port to the ID of the neighbor D2D communication module and a second port allocated to a second application program by the neighbor D2D communication module, package the first network data to obtain a data packet according to the ID of the D2D communication module, a port number of the first port, the ID of the neighbor D2D communication module, and a port number of the second port allocated to the second application program by the neighbor D2D communication module, and transmit the data packet to the neighbor D2D communication module via the connection, wherein the second application program is an application program which is on the second terminal device and communicates with the first application program.