A system authenticating mutual communication lines between activating and activated communication terminal devices which are connected to an IP network through the communication lines with unique identification numbers and uniquely connected to each other by a three-way handshake based on the identification numbers, wherein
- the system comprises:
- an activating-side authentication unit arranged between the activating communication terminal device and the activating communication line so as to authenticate the activated communication line;
- and
- an activated-side authentication unit arranged between the activated communication terminal device and the activated communication line so as to authenticate the activating communication line, wherein
- the activating-side authentication unit has
- an activating-side line input/output section connected to the activating communication line so as to communicate with the activating communication line,
- an activating-side terminal input/output section connected to the activating communication terminal device so as to communicate with the activating communication terminal device,
- an activating-side sequence control section controlling a three-way handshake sequence between the activating and activated communication lines and authenticating the activated communication line,
- an activating-side packet relay section arranged at a bus which connects the activating-side line input/output section and the activating-side terminal input/output section, and connected to the activating-side sequence control section so as to relay packets other than packets of a three-way handshake sent and received between the activating and activated communication lines on the one hand and have an exchange of the packets of the three-way handshake with the activating-side sequence control section on the other hand, and
- an activating-side packet storage section storing the data of the packets of the three-way handshake sent and received between the activating-side packet relay section and the activating-side sequence control section, wherein
- the activated-side authentication unit has
- an activated-side line input/output section connected to the activated communication line so as to communicate with the activated communication line,
- an activated-side terminal input/output section connected to the activated communication terminal device so as to communicate with the activated communication terminal device,
- an activated-side sequence control section controlling a three-way handshake sequence between the activating and activated communication lines and authenticating the activating communication line,
- an activated-side packet relay section arranged at a bus which connects the activated-side line input/output section and the activated-side terminal input/output section, and connected to the activated-side sequence control section so as to relay packets other than packets of a three-way handshake sent and received between the activating and activated communication lines on the one hand and have an exchange of the packets of the three-way handshake with the activated-side sequence control section on the other hand, and
- an activated-side packet storage section storing the data of the packets of the three-way handshake sent and received between the activated-side packet relay section and the activated-side sequence control section, wherein
- (i) when a SYN packet of a first three-way handshake addressed to the activated communication terminal device is generated by the activating communication terminal device, relayed through the activating-side authentication unit, outputted to the activating communication line, reached the activated communication line and received by the activated-side authentication unit, the SYN packet is relayed through the activated-side authentication unit and received by the activated communication terminal device,
- (ii) a SYN+ACK packet of the first three-way handshake as a response to the SYN packet is generated by the activated communication terminal device, relayed through the activated-side authentication unit, outputted to the activated communication line, reached the activating communication line and stored in the activating-side authentication unit,
- (iii) when an ACK packet of the first three-way handshake as a response to the SYN+ACK packet is generated by the activating-side authentication unit instead of the activating communication terminal device, reached the activated communication line, received by the activated-side authentication unit and thereby a connection by the first three-way handshake is established between the activating and activated communication lines, the connection is disconnected without data communication between the activating and activated communication terminal devices,
- (iv) a SYN packet of a second three-way handshake is sent from the activated-side authentication unit to the activating communication line within a predetermined time after the disconnection,
- (v) when the SYN packet is reached the activating communication line and received by the activating-side authentication unit, and the activating-side authentication unit determines that an identification number indicated by the SYN packet corresponds to the identification number of the communication line by which the activating communication line has been activated at the connection by the first three-way handshake and the reception of the SYN packet is done within the predetermined time after the disconnection, the activating-side authentication unit authorizes the activated communication line as true and sends a SYN+ACK packet of the second three-way handshake as a response to the SYN packet to the communication line from which the SYN packet has been sent,
- (vi) when the SYN+ACK packet is reached the activated communication line and received by the activated-side authentication unit, the activated-side authentication unit authorizes the activating communication line as true and sends an ACK packet of the second three-way handshake as a response to the SYN+ACK packet to the communication line from which the SYN+ACK packet has been sent,
- (vii) when the ACK packet is received by the activating-side authentication unit, the SYN+ACK packet of the first three-way handshake stored in the activating-side authentication unit is sent to the activating communication terminal device,
- (viii) an ACK packet of the first three-way handshake as a response to the SYN+ACK packet addressed to the activated communication terminal device is generated by the activating communication terminal device, and
- (ix) the ACK packet as a response to the SYN+ACK packet of the first three-way handshake is sent from the activated-side authentication unit to the activated communication terminal device, so that a connection is established again between the activating and activated communication lines so as to perform the data communication between the activating and activated communication terminal devices.