Exchange method and system for establishing a secure connection between devices

The present invention provides a switching system and method for establishing a secure connection between devices, the establishment of the secure connection system comprises a device to the switching device SW2 transmits a packet switching activation key negotiation and exchange key negotiation response packet to the switching, receiving the transmitted switching device SW2 switching the switching device SW1 and the key negotiation request packet switching device key agreement exchange SW1 receives a packet transmission and switching activation key negotiation response packet to the switch and the switching device SW1 key negotiation request transmitted packet switching device SW2; present invention by establishing a shared key for switching between any two exchange apparatus, there is provided a security policy for the secure transmission of data exchange between devices, to ensure the confidentiality of the data transfer process between the data link layer switching device; and reduce exchange calculation load device to reduce packet delivery delay from sender to recipient, improve network transmission efficiency.