# US 2012/0257755 A1 · Method and system for establishing secure connection between stations

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0257755 A1
- Document ID: US20120257755A1
- Status: Published application
- Kind: A1
- Application number: 13/516,257
- Filed: 2010-05-21
- Published: 2012-10-11
- Earliest claimed: 2009-12-21
- Assignees: China Iwncomm Co., Ltd.
- Inventors: Li Ge; Jun Cao; Manxia Tie; Qin Li; Xiaolong Lai
- Web page: https://patentgrep.com/patent/US20120257755A1

## CPC

- H04L 9/083: {involving central third party, e.g. key distribution center [KDC] or trusted third party [TTP]}
- H04L 63/061: {for key exchange, e.g. in peer-to-peer networks (cryptographic mechanisms or cryptographic arrangements for key agreement H04L9/0838)}
- Y04S 40/20: Information technology specific aspects, e.g. CAD, simulation, modelling, system security
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- Y04S: SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS

## Abstract

A method and system for establishing a secure connection between stations are disclosed. The method includes that: 1) a switch device receives an inter-station key request packet sent by a first user terminal; 2) the switch device generates an inter-station key, constructs an inter-station key announcement packet and sends it to a second user terminal; 3) the switch device receives an inter-station key announcement response packet sent by the second user terminal; 4) the switch device constructs an inter-station key announcement response packet and sends it to the first user terminal; 5) the switch device receives an inter-station key announcement response packet sent by the first user terminal. The switch device establishes an inter-station key for the two stations which are connected to the switch device directly, by which the embodiments of the present invention ensure the confidentiality and integrality of user data between the stations.

## Claims

### Claim 1

A method for establishing a security connection between stations, comprising
1) receiving, by a switch device, an inter-station key request packet sent by a first station;
2) generating, by the switch device, an inter-station key, constructing an inter- station key announcement packet, and sending the inter-station key announcement packet to a second station;
3) receiving, by the switch device, an inter-station key announcement response packet sent by the second station;
4) constructing, by the switch device, an inter-station key announcement packet and sending the inter-station key announcement packet to the first station; and
5) receiving, by the switch device, an inter-station key announcement response packet sent by the first station.

### Claim 2 (depends on 1)

The method for establishing a security connection between stations according to claim 1, further comprising
checking at first, by the first station, whether there is the inter-station key saved locally and shared with the second station, if the first station and the second station are direct-connected stations of the switch device, when the first station communicates secretly with the second station; in the case that there is the inter-station key saved locally and shared with the second station, encrypting, by the first station, a data packet by using the inter-station key; in the case that there is not the inter-station key saved locally and shared with the second station, constructing the inter-station key request packet and sending the inter-station key request packet to the switch device by the first station, wherein the inter-station key request packet comprises a key announcement identifier KN1 field of the first station and a message identification code MIC1 field.

### Claim 3 (depends on 2)

The method for establishing a security connection between stations according to claim 2, wherein
the value of the key announcement identifier KN1 field of the first station is an integral number and the initial value of that is a fixed value, and the value of the KN1 field is increased by 1 or a fixed value for use every time the inter-station key request is performed; and
the value of the message identification code MIC1 field is a hash value obtained by the first station performing hash function calculation on the fields in the inter-station key request packet other than the message identification code MIC1 field by using a protocol data key PDK1 in a unicast key shared with the switch device.

### Claim 4 (depends on 3)

The method for establishing a security connection between stations according to claim 3, wherein the generating, by the switch device, an inter-station key, constructing an inter-station key announcement packet and sending the inter-station key announcement packet to a second station comprises:
checking, by the switch device, the key announcement identifier KN1 field of the first station;
verifying whether the message identification code MIC1 field in the inter-station key request packet is correct by using the protocol data key PDK1 in the unicast key shared with the first station, if the key announcement identifier KN1 field of the first station increases monotonically;
generating a random number as the inter-station key STAkey1-2 between the first station and the second station, constructing the inter-station key announcement packet, and sending the inter-station key announcement packet to the second station, if the message identification code MIC1 field is correct; wherein the inter-station key announcement packet comprises a key announcement identifier KN2 field of the second station STA2, a key-encrypted data E2 field and a message identification code MIC2 field.

### Claim 5 (depends on 4)

The method for establishing a security connection between stations according to claim 4, wherein
the value of the key announcement identifier KN2 field of the second station is an integral number and the initial value of that is a fixed value, and the value of the KN2 field is increased by 1 or a fixed value for use every time the inter-station key announcement is performed;
the key-encrypted data E2 field is the data obtained by the switch device encrypting the inter-station key STAkey1-2 with a protocol data key PDK2 in a unicast key shared with the second station; and
the value of the message identification code MIC2 field is a hash value obtained by the switch device performing hash function calculation on the fields in the inter-station key announcement packet other than the message identification code MIC2 field by using the protocol data key PDK2 in the unicast key shared with the second station.

### Claim 6 (depends on 5)

The method for establishing a security connection between stations according to claim 5, further comprising
checking, by the second station, the key announcement identifier KN2 field of the second station, after receiving the inter-station key announcement packet sent by the switch station;
verifying whether the message identification code MIC2 field is correct by using the protocol data key PDK2 in the unicast key shared with the switch device, if the key announcement identifier KN2 field of the second station increases monotonically;
decrypting the key-encrypted data E2 field by using the protocol data key PDK2 in the unicast key shared with the switch device, to obtain the inter-station key STAkey1-2 between the first station and the second station, if the message identification code MIC2 field is correct; and
saving the value of this key announcement identifier KN2 field of the second station, constructing the inter-station key announcement response packet and sending the inter-station key announcement response packet to the switch device, wherein the inter-station key announcement response packet comprises a key announcement identifier KN2 field of the second station and a message identification code MIC3 field.

### Claim 7 (depends on 6)

The method for establishing a security connection between stations according to claim 6, wherein
the value of the key announcement identifier KN2 field of the second station in the inter-station key announcement response packet is equal to that of the key announcement identifier KN2 field of the second station in the inter-station key announcement packet received by the second station; and
the value of the message identification code MIC3 field is a hash value obtained by the second station performing hash function calculation on the fields in the switch key announcement response packet other than the message identification code MIC3 field by using the protocol data key PDK2 in the unicast key shared with the switch device.

### Claim 8 (depends on 7)

The method for establishing a security connection between stations according to claim 7, wherein the constructing, by the switch device, an inter-station key announcement packet and sending the inter-station key announcement packet to the first station, comprises
comparing, by the switch device, to determine whether the value of the key announcement identifier KN2 field of the second station in the inter-station key announcement response packet is consistent with the value of the key announcement identifier KN2 field of the second station in the inter-station key announcement packet sent to the second station previously, after receiving the inter-station key announcement response packet sent by the second station;
verifying whether the message identification code MIC3 field is correct by using the protocol data key PDK2 in the unicast key shared with the second station, if the value of the key announcement identifier KN2 field of the second station in the inter-station key announcement response packet is consistent with the value of the key announcement identifier KN2 field of the second station in the inter-station key announcement packet sent to the second station previously; saving the value of the key announcement identifier KN2 field, in the case that the message identification code MIC3 field is correct; and
constructing an inter-station key announcement packet according to the inter- station key STAkey1-2 that is announced to the second station previously, and sending the inter-station key announcement packet to the first station, wherein the inter-station key announcement packet comprises a key announcement identifier KN1 field of the first station, a key-encrypted data E1 field and a message identification code MIC4 field.

### Claim 9 (depends on 8)

The method for establishing a security connection between stations according to claim 8, wherein
the value of the key announcement identifier KN1 field of the first station in the inter-station key announcement packet is equal to that of the key announcement identifier KN1 field of the first station in the received inter-station key request packet sent by the first station previously;
the key-encrypted data E1 field is the data obtained by the switch device encrypting the inter-station key STAkey1-2 with the protocol data key PDK1 in the unicast key shared with the first station; and
the value of the message identification code MIC4 field is a hash value obtained by the switch device performing hash function calculation on the fields in the inter-station key announcement packet other than the message identification code MIC4 field by using the protocol data key PDK1 in the unicast key shared with the first station.

### Claim 10 (depends on 9)

The method for establishing a security connection between stations according to claim 9, further comprising
comparing, by the first station, to determine whether the value of the key announcement identifier KN1 field of the first station in the inter-station key announcement packet is consistent with that of the key announcement identifier KN1 field of the first station in the inter-station key request packet sent previously, after receiving the inter-station key announcement packet sent by the switch station;
verifying whether the message identification code MIC4 field is correct by using the protocol data key PDK1 in the unicast key shared with the switch device, if the value of the key announcement identifier KN1 field of the first station in the inter-station key announcement packet is consistent with that of the key announcement identifier KN1 field of the first station in the inter-station key request packet sent previously;
decrypting the key-encrypted data E1 field by using the protocol data key PDK1 in the unicast key shared with the switch device, to obtain the inter-station key STAkey1-2 between the second station and the first station, if the message identification code MIC4 field is correct; and
saving the value of the key announcement identifier KN1 field of the first station, constructing the inter-station key announcement response packet and sending the inter-station key announcement response packet to the switch device, wherein the inter-station key announcement response packet comprises the key announcement identifier KN1 field of the first station and a message identification code MIC5 field.

### Claim 11 (depends on 10)

The method for establishing a security connection between stations according to claim 10, wherein
the value of the key announcement identifier KN1 field of the first station in the inter-station key announcement response packet is equal to that of the key announcement identifier KN1 field of the first station in the inter-station key announcement packet received by the first station; and
the value of the message identification code MIC5 field is a hash value obtained by the first station performing hash function calculation on the fields in the inter-station key announcement response packet other than the message identification code MIC5 field by using the protocol data key PDK1 in the unicast key shared with the switch device.

### Claim 12 (depends on 11)

The method for establishing a security connection between stations according to claim 11, further comprising
comparing, by the switch device, to determine whether the value of the key announcement identifier KN1 field of the first station in the inter-station key announcement response packet is consistent with that of the key announcement identifier KN1 field of the first station in the inter-station key announcement packet that is sent to the first station previously, after receiving the inter-station key announcement response packet sent by the first station;
verifying whether the message identification code MIC5 field is correct by using the protocol data key PDK1 in the unicast key shared with the first station, if the value of the key announcement identifier KN1 field of the first station in the inter-station key announcement response packet is consistent with that of the key announcement identifier KN1 field of the first station in the inter-station key announcement packet that is sent to the first station previously; and
saving the value of this key announcement identifier KN1 field, if the message identification code MIC5 field is correct.

### Claim 13 (depends on 1)

The method for establishing a security connection between stations according to claim 1, further comprising
constructing an inter-station key request packet and sending the inter-station key request packet to the switch device, so as to request to update or withdraw the inter-station key STAkey1-2 between the first station and the second station, by the first station, when the first station needs to update or withdraw the inter-station key between the first station and the second station; or
constructing an inter-station key request packet and sending the inter-station key request packet to the switch device, so as to request to update or withdraw the inter-station key STAkey1-2 between the first station and the second station, by the second station, when the second station needs to update or withdraw the inter-station key between the first station and the second station.

### Claim 14

A system for establishing a security connection between stations, wherein the system for establishing security connection between direct-connected stations of a switch device comprises
a first station adapted for sending an inter-station key request packet and an inter-station key announcement response packet to a switch device, receiving an inter-station key announcement packet from the switch device and communicating secretly with a second station;
the switch device adapted for receiving the inter-station key request packet, sending an inter-station key announcement packet to the second station, receiving an inter-station key announcement response packet sent by the second station, sending the inter-station key announcement packet to the first station, and receiving the inter-station key announcement response packet sent by the first station; and
the second station adapted for receiving the inter-station key announcement packet sent by the switch device, sending the inter-station key announcement response packet to the switch device and communicating secretly with the first station.
