Terminal, communication method, and program

Through the terminal's key management table and the wireless connection disconnection and reconnection mechanism, the problem of being unable to decrypt broadcast packets is solved, the automatic update of the group key is realized, and the continuity and reliability of communication are ensured.

CN112823491BActive Publication Date: 2024-09-20PANASONIC INTELLECTUAL PROPERTY CORP OF AMERICA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980066743.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-04-25
Filing Date
2019-10-09
Publication Date
2024-09-20
Estimated Expiration
2039-10-09

AI Technical Summary

Technical Problem

The terminal cannot decrypt the broadcast packet received from the access point, causing communication interruption. Existing technologies cannot effectively solve this problem.

Method used

The terminal saves the group key provided by the access point through the key management table, and determines whether it can decrypt the received broadcast packet. If it cannot be decrypted, it generates update information, disconnects and re-establishes the wireless connection to update the group key, and uses the current Some wireless communication processes perform group key updates.

Benefits of technology

In a state where decryption is impossible, the terminal can update the group key so that it can decrypt the broadcast packet sent by the access point again to avoid communication interruption and detect the inability to decrypt early for update processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112823491B_ABST
    Figure CN112823491B_ABST
Patent Text Reader

Abstract

The terminal (10) comprises: a communication unit (11) which performs encrypted communication with an access point in a wireless manner; a processor (12); and a memory (13) which stores at least one program executed by the processor (12) and a key management table for storing a group key used for encrypted communication. The processor (12) obtains the group key from the access point, stores the obtained group key as a first group key in the key management table, receives a broadcast packet encrypted by the access point via the communication unit (11), performs a first determination as to whether the received broadcast packet can be decrypted using the first group key, and generates information indicating that the first group key needs to be updated when it is determined in the first determination that the broadcast packet cannot be decrypted using the first group key.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a terminal, a communication method and a program. Background Art

[0002] A device that enables communication even when updating of a group key (also referred to as GTK (Group Temporal Key)) fails is disclosed (see Patent Document 1).

[0003] Prior art literature

[0004] Patent Document 1: Japanese Patent Application Publication No. 2015-133589 Summary of the invention

[0005] Problems to be solved by the invention

[0006] However, there is a problem that a terminal cannot decrypt a broadcast packet received from an access point using a group key provided by the access point. In addition, the term "broadcast packet" is a broad term that includes both the narrow sense of broadcast and the narrow sense of multicast. In addition, when it is abbreviated as "broadcast", it refers to broadcast in a broad sense.

[0007] Therefore, the present invention provides a terminal or the like which enables a broadcast packet received from an access point to be decrypted when the broadcast packet cannot be decrypted.

[0008] Technical solutions to solve problems

[0009] A technical solution of the present invention relates to a terminal comprising: a communication unit, which performs encrypted communication with an access point in a wireless manner; a processor; and a memory, which stores at least one program executed by the processor and a key management table for storing a group key used for the encrypted communication, wherein the processor obtains the group key used for the encrypted communication from the access point, stores the obtained group key as a first group key in the key management table, receives a broadcast packet encrypted by the access point via the communication unit, performs a first determination as to whether the received broadcast packet can be decrypted using the first group key, and generates information indicating that the first group key needs to be updated when it is determined in the first determination that the broadcast packet cannot be decrypted using the first group key.

[0010] In addition, these general or specific technical solutions can be implemented through systems, methods, integrated circuits, computer programs or computer-readable recording media such as CD-ROMs, or through any combination of systems, methods, integrated circuits, computer programs and recording media.

[0011] Effects of the Invention

[0012] The terminal of the present invention can make the broadcast packet received from the access point capable of being decrypted when the broadcast packet cannot be decrypted. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is a block diagram showing the configuration of a communication system in Comparative Example 1.

[0014] Figure 2 It is an explanatory diagram showing unicast communication and broadcast communication in the communication system of Comparative Example 1.

[0015] Figure 3 1 is a timing chart showing the updating of GTK in the communication system of Comparative Example 1.

[0016] Figure 4 This is a first sequence diagram showing the behavior when the GTK is updated in the communication system of Comparative Example 1.

[0017] Figure 5 This is a second sequence diagram showing the behavior when the GTK is updated in the communication system of Comparative Example 1.

[0018] Figure 6 This is a block diagram showing the configuration of a communication system in Comparative Example 2.

[0019] Figure 7 1 is a sequence diagram showing the distribution GTK in the communication system of Comparative Example 2.

[0020] Figure 8 This is an explanatory diagram showing an example of a key management table of a wireless relay device in Comparative Example 2.

[0021] Fig. 9 This is a sequence diagram showing the behavior when the GTK is updated in the communication system of Comparative Example 2.

[0022] Fig.10 It is a block diagram showing the configuration of a communication system in an embodiment.

[0023] Fig.11 This is a block diagram showing the configuration of a terminal in an embodiment.

[0024] Fig.12 It is an explanatory diagram showing a key management table included in a terminal in the embodiment.

[0025] Fig.13 It is a block diagram showing the structure of an access point in the embodiment.

[0026] Fig.14 This is a flowchart showing a first action of a terminal in an embodiment.

[0027] Fig.15 It is a sequence diagram showing a first operation of the communication system in the embodiment.

[0028] Fig.16 This is a flowchart showing the second action of the terminal in the embodiment.

[0029] Fig.17 It is a sequence diagram showing the second operation of the communication system in the embodiment.

[0030] Fig.18 It is a sequence diagram showing the third operation of the communication system in the embodiment.

[0031] Fig.19 It is a sequence diagram showing the operation of the communication system in Modification 1 of the embodiment.

[0032] Fig. 20 It is a sequence diagram showing the operation of the communication system in the second variant of the implementation method.

[0033] Fig.21 It is a sequence diagram showing a first operation of the communication system in the third variation of the implementation method.

[0034] Fig. 22 It is a sequence diagram showing the second operation of the communication system in the third variation of the implementation method. DETAILED DESCRIPTION

[0035] (Foundation that forms the basis of the present invention)

[0036] The present inventors have found that the following problems may occur in the communication using the group key described in "Background Art". Examples where the problems occur are described as Comparative Examples 1 and 2 in order.

[0037] (Comparative Example 1)

[0038] Figure 1 It is a block diagram showing the configuration of the communication system 9 in Comparative Example 1.

[0039] like Figure 1 As shown, the communication system 9 includes a wireless router 30A and terminals 90A, 90B, and 90C (also referred to as terminal 90A, etc.).

[0040] The wireless router 30A is an access point (AP) or a base station in wireless communication. The wireless communication interface of the wireless router 30A operates as an AP in an infrastructure mode.

[0041] The wireless router 30A establishes wireless connections with the terminal 90A and the like through the wireless communication interface, and transmits and receives (sends / receives) communication packets (also referred to as packets) with the terminal 90A and the like through the established wireless connections. The wireless router 30A forwards packets sent by the terminal 90A and the like to the communication device existing on the network N to the network N, and forwards packets received from the network N to the terminal 90A and the like to the terminal 90A and the like. In addition, the wireless router 30A relays the transmission and reception of packets between the terminals 90A and the like.

[0042] The terminal 90A is a station (STA) or a terminal in wireless communication. The wireless communication interface of the terminal 90A operates as a STA in the infrastructure mode.

[0043] The terminal 90A establishes a wireless connection with the wireless router 30A through the wireless communication interface, and sends and receives packets with the wireless router 30A through the established wireless connection. The terminal 90A communicates with a communication device existing on the network N, or other terminals 90B or 90C connected to the wireless router 30A, via the wireless router 30A. The terminal 90A can be any device as long as it is a communicative device, and can also be a computer, a smart phone, or various devices with communication functions (home appliances, industrial equipment, or office equipment).

[0044] Terminals 90B and 90C respectively have the same functions as terminal 90A, and operate independently of terminal 90A.

[0045] Figure 2 It is an explanatory diagram showing unicast communication and broadcast communication in the communication system 9 of Comparative Example 1.

[0046] like Figure 2 As shown, before the terminal 90A communicates with the wireless router 30A, it first establishes a wireless connection with the wireless router 30A. The establishment of the wireless connection is performed according to the existing authentication, association, and 4-way handshake process. The terminal 90B also establishes a wireless connection with the wireless router 30A in the same manner.

[0047] Through this 4-way handshake, the terminal 90A and the wireless router 30A generate and retain a key PTK (Pairwise Transient Key) for unicast communication between the terminal 90A and the wireless router 30A. In addition, the wireless router 30A generates a group key GTK and provides it to the terminal 90A. The group key GTK is a key for encrypting broadcast packets sent to the terminal 90A, etc.

[0048] In this way, the terminal 90A obtains the PTK and GTK for communication with the wireless router 30A. The terminal 90B also obtains the PTK and GTK in the same way. In addition, the PTK is different for each terminal, and the GTK is common among terminals.

[0049] Next, the encryption key used when the terminal 90A transmits a packet to the terminal 90B is described.

[0050] When the terminal 90A sends a unicast packet to the terminal 90B, the terminal 90A encrypts the unicast packet to be sent with the PTK and sends it to the wireless router 30A. The wireless router 30A decrypts the unicast packet received from the terminal 90A with the PTK used for communication with the terminal 90A. Thereafter, the wireless router 30A encrypts the unicast packet with the PTK used for communication with the terminal 90B and sends it to the terminal 90B. The terminal 90B decrypts the unicast packet received from the wireless router 30A with the PTK.

[0051] When the terminal 90A sends a broadcast packet to the terminal 90B, the terminal 90A encrypts the broadcast packet to be sent with PTK and sends it to the wireless router 30A. The wireless router 30A decrypts the broadcast packet received from the terminal 90A with the PTK used for communication with the terminal 90A. Thereafter, the wireless router 30A encrypts the broadcast packet with GTK and sends it to all terminals connected to the wireless router 30A. The terminal 90B receives the broadcast packet from the wireless router 30A and decrypts it with GTK.

[0052] The term "broadcast" is a broad term that includes both broadcast in a narrow sense (e.g., communication with a destination IP address of "255.255.255.255") and multicast in a narrow sense (e.g., communication with a destination IP address of Class D). When "broadcast" is abbreviated, it refers to broadcast in a broad sense.

[0053] Figure 3 1 is a sequence diagram showing GTK update in the communication system 9 of Comparative Example 1. In order to improve security, etc., GTK is updated over time.

[0054] Assume that wireless router 30A and terminals 90A and 90B initially share GTK (GTK: A). In this state, the broadcast packet sent by terminal 90A is encrypted by wireless router 30A using GTK: A and received by terminal 90B. Terminal 90B decrypts the received broadcast packet using GTK: A.

[0055] Here, the wireless router 30A updates GTK and sets the updated GTK as GTK:B.

[0056] When the wireless router 30A updates the GTK, the wireless router 30A sends GTK:B to the terminals 90A and 90B, respectively. Thus, the wireless router 30A shares GTK:B with the terminals 90A and 90B. In this state, the broadcast packet sent by the terminal 90A is encrypted by the wireless router 30A using GTK:B and received by the terminal 90B. The terminal 90B decrypts the received broadcast packet using GTK:B.

[0057] Thus, when the wireless router 30A updates the GTK, it is necessary to send the updated GTK: B to the terminal. This is because, if the update is not performed, the terminal that retains the pre-update GTK: A unchanged cannot decrypt the broadcast packet encrypted with the updated GTK: B.

[0058] However, in the conventional products, when the wireless router 30A updates the GTK, it is observed that the updated GTK:B is not transmitted to the terminal 90A. This will be described in detail below.

[0059] Figure 4 1 is a first sequence diagram showing the behavior when the GTK is updated in the communication system 9 of the first comparative example.

[0060] Figure 4 The following situation is shown: when the wireless router 30A has established a wireless connection with the terminal 90A, the wireless router 30A newly establishes a wireless connection with the terminal 90B based on WPS (Wi-Fi (registered trademark) Protected Setup). In this case, it is observed that the wireless router 30A updates the GTK and does not send the updated GTK:B to the terminal 90A.

[0061] For example, the terminal 90A uses a broadcast packet to search for a communicable device. At this time, the terminal 90A sends a device search request packet through broadcasting, and the terminal 90B receives the device search request packet encrypted with GTK:B.

[0062] The terminal 90B that has received the device search request packet is ready to send a reply (response) packet by unicast. Therefore, before replying the device search reply packet, the terminal 90B first sends an ARP request by broadcasting in order to resolve the MAC address of the terminal 90A. In this way, the terminal 90A receives the ARP request packet encrypted by the wireless router 30A using GTK:B. However, the terminal 90A cannot decrypt the ARP request packet because it does not have GTK:B.

[0063] As a result, the terminal 90A cannot return an ARP response packet as a response to the ARP request packet. In addition, the terminal 90B cannot return a response to the device search because no ARP response packet is returned from the terminal 90A. Thus, communication between the terminals 90A and 90B cannot be performed.

[0064] Figure 5 This is a second sequence diagram showing the behavior when the GTK is updated in the communication system 9 of the first comparative example.

[0065] Figure 5 The following situation is shown: in a state where the terminal 90B knows the existence of the terminal 90A by sending and receiving device search requests and responses with the terminal 90A via the wireless router 30A, the terminal 90B disconnects the wireless connection, and then reestablishes the wireless connection after a while. For example, when there is a wireless router 30A at home, the user takes the smart phone, that is, the terminal 90B, out, and then after a while, the user returns home, the above situation occurs. In addition, the time from the disconnection of the wireless connection by the terminal 90B to the establishment of a new wireless connection depends on the installation specifications of the wireless router 30A, for example, about 12 minutes to 30 minutes or more, more specifically, more than 12 minutes. In this case, it is observed that the wireless router 30A updates the GTK and does not send the updated GTK:B to the terminal 90A.

[0066] For example, terminal 90B uses a broadcast packet to search for a communicable device. At this time, terminal 90B sends a device search request packet through broadcasting, and terminal 90A receives the device search request packet encrypted with GTK: B. However, terminal 90A cannot decrypt the device search request packet because it does not have GTK: B.

[0067] As a result, the terminal 90A cannot return a response packet as a response to the device search request, and thus, communication between the terminals 90A and 90B cannot be performed.

[0068] (Comparative Example 2)

[0069] Figure 6 It is a block diagram showing the configuration of a communication system 9A in Comparative Example 2.

[0070] like Figure 6 As shown, the communication system 9A includes a wireless router 30A, a wireless repeater 30B, and terminals 90D, 90E, 90F, 90G, and 90H (also referred to as terminals 90D to 90H).

[0071] and Figure 1Similarly, the wireless router 30A in the wireless communication is an access point (AP) or a base station in the wireless communication. The wireless router 30A is connected to the wireless repeater 30B and the terminals 90D and 90E through the wireless communication interface.

[0072] The wireless relay machine 30B acts as an access point (AP) or base station in wireless communication for the terminals 90F, 90G, and 90H (also referred to as the terminal 90F, etc.), and acts as a station (STA) or terminal in wireless communication for the wireless router 30A. The wireless communication interface of the wireless relay machine 30B connected to the terminal 90F, etc. operates as an AP in the infrastructure mode, and the wireless communication interface connected to the wireless router 30A operates as a STA in the infrastructure mode.

[0073] The wireless relay machine 30B establishes wireless connections with the terminal 90F and the like through the wireless communication interface, and transmits and receives communication packets (also referred to as packets) with the terminal 90F and the like through the established wireless connections. In addition, when the wireless relay machine 30B establishes wireless connections with the terminal 90F and the like, it respectively acts as a proxy for the terminal 90F and the like to establish wireless connections with the wireless router 30A. Using this wireless connection, the terminal 90F and the like can communicate with the terminal 90D and 90E via the wireless router 30A, or communicate with a communication device existing on the network N.

[0074] and Figure 1 Similarly to the terminal 90A in FIG. 9A , the terminals 90D to 90H are stations (STA) or terminals in wireless communication.

[0075] The terminals 90D and 90E establish a wireless connection with the wireless router 30A via a wireless communication interface, and transmit and receive packets with the wireless router 30A via the established wireless connection.

[0076] The terminal 90F and the like establish a wireless connection with the wireless relay device 30B via a wireless communication interface, and transmit and receive packets with the wireless relay device 30B via the established wireless connection.

[0077] Figure 7 1 is a sequence diagram showing the distribution GTK in the communication system 9A of the second comparative example.

[0078] like Figure 7 As shown, when the wireless relay machine 30B establishes a wireless connection with the terminal 90F, it generates a MAC address of the proxy terminal 90F (also referred to as a "relay MAC address"), and uses the generated relay MAC address to establish a wireless connection with the wireless router 30A. When the wireless relay machine 30B establishes a wireless connection, it obtains GTK:X from the wireless router 30A. In addition, the wireless relay machine 30B adds the information of the terminal 90F to the key management table.

[0079] In addition, when the wireless relay 30B establishes a wireless connection with the terminal 90G while the wireless connection with the terminal 90F is established, it additionally generates a relay MAC address of the proxy terminal 90G, and uses the generated relay MAC address to additionally establish a wireless connection with the wireless router 30A. When the wireless connection is established, the wireless relay 30B obtains GTK:X from the wireless router 30A. In addition, the wireless relay 30B adds the information of the terminal 90G to the key management table.

[0080] At this time, the wireless router 30A is in a state where the wireless repeater 30B, the terminal 90F, and the terminal 90G are connected thereto as terminals.

[0081] Here, the wireless router 30A updates GTK to GTK:Y, and sends GTK:Y to the wireless relay device 30B, the terminal 90F, and the terminal 90G, which are the three terminals.

[0082] Figure 8 1 is an explanatory diagram showing an example of a key management table held by the wireless relay device 30B in Comparative Example 2. Figure 8 (a) is in Figure 7 The wireless router 30A updates the key management table before GTK, Figure 8 (b) is the updated key management table mentioned above.

[0083] like Figure 8 As shown in (a), the key management table includes the SSID (Service Set Identifier) ​​of the router, encryption information on the router side, the relay MAC address of the terminal, key information on the router side, the SSID of the relay, encryption information on the terminal side, the MAC address of the terminal and key information on the terminal side.

[0084] The SSID of the router is the SSID of the wireless router 30A to which the wireless repeater 30B is connected. In other words, the SSID of the router is the SSID used for communication between the wireless repeater 30B and the wireless router 30A.

[0085] The encryption information on the router side is information that specifies the encryption method used for communication between the wireless repeater 30B and the wireless router 30A.

[0086] The relay MAC address of the terminal is a MAC address used when the wireless repeater 30B communicates with the wireless router 30A as a proxy of the terminal.

[0087] The key information on the router side is GTK used for communication between the wireless repeater 30B and the wireless router 30A.

[0088] The SSID of the relay device is the SSID of the wireless relay device 30B. In other words, the SSID of the relay device is the SSID used for communication between the wireless relay device 30B and the terminal 90F and the like.

[0089] The encryption information on the terminal side is information that specifies the encryption method used for communication between the wireless relay device 30B and the terminal 90F or the like.

[0090] The MAC address of the terminal is the MAC address of the terminal 90F or the like connected to the wireless repeater 30B.

[0091] The key information on the terminal side is GTK used for communication between the wireless relay device 30B and the terminal 90F and the like.

[0092] For example, Figure 8 The first entry (#1) shown in (a) is an entry for terminal 90F. For terminal 90F, it is shown that the GTK on the router side of wireless relay 30B is GTK:X, and the GTK on the terminal 90F side is GTK:A. In addition, the second entry (#2) is an entry for terminal 90G. For terminal 90G, it is also shown that the GTK on the router side of wireless relay 30B is GTK:X, and the GTK on the terminal 90G side is GTK:A.

[0093] When the wireless relay device 30B updates the GTK from GTK:X to GTK:Y, the key management table becomes Figure 8 Specifically, the key information on the router side of entries #1 and #2 is changed to GTK:Y.

[0094] Fig. 9 It is a sequence diagram showing the behavior when the GTK is updated in the communication system 9A of the second comparative example.

[0095] This situation is a situation where the wireless relay 30B has established wireless connections with the terminals 90F, 90G, and 90H, the terminal 90H disconnects the wireless connection, and then reestablishes the wireless connection after a while. In this case, it is observed that the wireless relay 30B updates the GTK but does not send the updated GTK:B to the terminals 90F and 90G.

[0096] The time from when the terminal 90H disconnects the wireless connection to when a new wireless connection is established depends on the installation specifications of the wireless repeater 30B, and is, for example, about 12 minutes to 30 minutes or more, more specifically, 12 minutes or more.

[0097] For example, the terminal 90F searches for a communicable device using a broadcast packet. Before the GTK is updated, the terminals 90F and 90G and the wireless relay device 30B have GTK:A, so the terminals 90F and 90G can communicate using broadcast, for example, and can perform information processing in a mutually cooperative state.

[0098] However, after the wireless relay 30B updates GTK, the broadcast sent by the terminal 90F is encrypted by the wireless relay 30B using GTK:B and received by the terminal 90G. Since the terminal 90G does not have GTK:B, it cannot decrypt the broadcast packet. The same phenomenon occurs for the broadcast sent by the terminal 90G.

[0099] As a result, communication using broadcast packets becomes impossible between the terminals 90F and 90G, and information processing in a cooperative state between the terminals 90F and 90G also becomes impossible.

[0100] As described above, there is a problem that if the wireless router 30A or the wireless repeater 30B updates the GTK and does not send the updated GTK:B to the terminal, communication between the terminals using broadcast packets becomes impossible.

[0101] In order to solve this problem, a technical solution of the present invention involves a terminal comprising: a communication unit, which performs encrypted communication with an access point in a wireless manner; a processor; and a memory, which stores at least one program executed by the processor and a key management table for storing a group key used for the encrypted communication, wherein the processor obtains the group key used for the encrypted communication from the access point, stores the obtained group key as a first group key in the key management table, receives a broadcast packet encrypted by the access point via the communication unit, performs a first determination as to whether the received broadcast packet can be decrypted using the first group key, and generates information indicating that the first group key needs to be updated when it is determined in the first determination that the broadcast packet cannot be decrypted using the first group key.

[0102] According to the above technical solution, when the terminal cannot decrypt the broadcast packet received from the access point with the first group key, the terminal can perform the process for updating the group key based on the generated information. The above situation that the broadcast packet cannot be decrypted with the first group key occurs when the access point takes an action to update the group key and does not send the updated group key to the terminal. When the access point takes the above action, the terminal can obtain the updated group key by performing the process for updating the group key, so that the broadcast packet sent by the access point can be decrypted. In this way, when the terminal cannot decrypt the broadcast packet received from the access point, the terminal can be decrypted.

[0103] For example, the processor may further establish a new wireless connection with the access point via the communication unit within a predetermined time after disconnecting the wireless connection with the access point based on the generated information, and save the group key used for encrypted communication in the new wireless connection obtained through the establishment process as a second group key in the key management table, thereby updating the first group key to the second group key.

[0104] According to the above technical solution, when the terminal determines that the group key needs to be updated, the terminal updates the group key by disconnecting the wireless connection and establishing a new wireless connection. As a result, the group key can be updated by using the existing wireless communication process without performing a dedicated process for updating the group key. As a result, when the terminal cannot decrypt the broadcast packet received from the access point, it can be placed in a state where the decryption can be performed by performing a process using the existing wireless communication process.

[0105] For example, the processor may repeatedly receive the broadcast packet encrypted by the access point, and perform the first determination on each of the repeatedly received broadcast packets.

[0106] According to the above technical solution, the terminal monitors whether the state of being able to decrypt the broadcast packet received from the access point is maintained, and when the state of being unable to decrypt the broadcast packet is changed, this situation can be detected at an early stage, and the group key update process is performed. Therefore, when the terminal cannot decrypt the broadcast packet received from the access point, this situation can be detected at an earlier time point, and the state of being able to decrypt can be changed.

[0107] For example, the processor may perform a decryption process for decrypting the received broadcast packet using the first group of keys in the first judgment, and perform a second judgment to determine whether the decrypted packet obtained by the decryption process is a broadcast packet of a predetermined first category; when it is determined in the second judgment that the decrypted packet is a broadcast packet of the first category, it is determined that the broadcast packet can be decrypted using the first group of keys.

[0108] According to the above technical solution, the terminal predetermines and retains the category of the next broadcast packet to be received, and determines whether the received broadcast packet can be decrypted based on the consistency between the category of the packet obtained by decryption and the predetermined category. As a result, the terminal can more easily become capable of decrypting the broadcast packet received from the access point.

[0109] For example, the processor may, before receiving the broadcast packet, send a DHCP T2 request packet with a broadcast flag of True to a DHCP (Dynamic Host Configuration Protocol) server via the communication unit, and the received broadcast packet is a DHCP ACK packet received from the DHCP server as a response to the sent T2 request packet. In the second judgment, it is determined whether the decrypted packet obtained by the decryption processing is a DHCP ACK packet that is a broadcast packet of a predetermined category.

[0110] According to the above technical solution, the terminal uses the DHCP protocol message to make the access point send a broadcast packet. Specifically, the DHCP server uses the existing DHCP protocol mechanism that sends a DHCPACK packet by broadcasting when receiving a DHCP T2 request packet with a broadcast flag of True, so that the access point sends a broadcast packet. As a result, the terminal can use the existing DHCP protocol to more easily put itself in a state where it can decrypt the broadcast packet received from the access point.

[0111] For example, the processor may repeatedly send the DHCP T2 request packet to repeatedly receive the DHCPACK packet.

[0112] According to the above technical solution, the terminal can make the access point repeatedly send DHCP ACK packets, and as a result, can repeatedly receive DHCP ACK packets as broadcast packets from the access point. Therefore, it is possible to monitor whether the state of being able to decrypt the broadcast packets received from the access point is maintained, and to make the state of being able to decrypt when the decryption is not possible. Therefore, the terminal can use the existing DHCP protocol to make the state of being able to decrypt the broadcast packets received from the access point earlier.

[0113] For example, the processor may determine, in the second determination, whether the decrypted packet obtained by the decryption process is a broadcast packet of a predetermined type that is transmitted by another terminal that wirelessly communicates with the access point and is forwarded by the access point.

[0114] According to the above technical solution, the terminal uses the broadcast packets sent by other terminals connected to the access point to make the access point send broadcast packets. Thus, the terminal can use other terminals to more easily enable the terminal to decrypt the broadcast packets received from the access point.

[0115] For example, the processor may further generate information indicating that the first set of keys needs to be updated when the broadcast packet is not received within a predetermined period in which the broadcast packet should be received.

[0116] According to the above technical solution, the terminal also performs processing for updating the group key when the broadcast packet that should be received is not received within a predetermined period. According to the installation specifications of the communication unit, when the received broadcast packet cannot be normally decrypted using the retained group key, it may be treated as if the broadcast packet has not been received. In this case, the processor can know that the broadcast packet cannot be decrypted from the fact that the broadcast packet is not received within the predetermined period when the broadcast packet should be received. As a result, the terminal can be put into a state where the broadcast packet received from the access point can be decrypted regardless of the installation specifications of the communication unit.

[0117] For example, when the broadcast packet is not received within the predetermined period, the processor may further determine whether the sending source device is in a communicative state by attempting to establish communication between the sending source device of the broadcast packet and the communication unit, and only when it is determined that the sending source device is in a communicative state, generate the information indicating that the first group of keys needs to be updated.

[0118] According to the above technical solution, when the terminal knows that it cannot decrypt the broadcast packet because it has not received the broadcast packet within the predetermined period of time when the broadcast packet should be received, there is a possibility that the source device of the broadcast packet has stopped working. In this case, the terminal should not update the group key. Therefore, the terminal can update the group key more appropriately by trying to communicate with the source device and updating the group key only when it knows that the source device can communicate, that is, it has not stopped working. In this way, it is possible to avoid updating the group key when there is no need to update the group key, while making it possible to decrypt the broadcast packet received from the access point.

[0119] In addition, a technical solution of the present invention relates to a communication method executed by a terminal, the terminal comprising: a communication unit that performs encrypted communication with an access point in a wireless manner; a processor; and a memory that stores at least one program executed by the processor and a key management table for storing a group key used for the encrypted communication. In the communication method, the processor obtains the group key used for the encrypted communication from the access point, stores the obtained group key as a first group key in the key management table, receives a broadcast packet encrypted by the access point via the communication unit, performs a first determination on whether the received broadcast packet can be decrypted using the first group key, and generates information indicating that the first group key needs to be updated when it is determined in the first determination that the broadcast packet cannot be decrypted using the first group key.

[0120] Based on this, the same effect as the above-mentioned terminal is achieved.

[0121] Furthermore, a program according to one aspect of the present invention is a program for causing a computer to execute the above-mentioned communication method.

[0122] Based on this, the same effect as the above-mentioned terminal is achieved.

[0123] In addition, these general or specific technical solutions can be implemented through systems, methods, integrated circuits, computer programs or computer-readable recording media such as CD-ROMs, or through any combination of systems, methods, integrated circuits, computer programs and recording media.

[0124] Hereinafter, the embodiments will be described in detail with reference to the drawings.

[0125] In addition, the embodiments described below all represent general or specific examples. The numerical values, shapes, materials, constituent elements, configuration positions of constituent elements, connection forms, steps, and the order of steps shown in the following embodiments are examples and are not intended to limit the present invention. In addition, among the constituent elements in the following embodiments, the constituent elements that are not recorded in the independent claims representing the highest concept are described as arbitrary constituent elements.

[0126] (Implementation Method)

[0127] In the present embodiment, a description is given of a terminal or the like that enables decryption when a broadcast packet received from an access point cannot be decrypted.

[0128] Fig.10 It is a block diagram showing the configuration of the communication system 1 in this embodiment.

[0129] like Fig.10 As shown, the communication system 1 in this embodiment includes an access point 30 and terminals 10A, 10B, and 10C.

[0130] The access point 30 is an access point (AP) or a base station in wireless communication. Specifically, the access point 30 is a general wireless router or a wireless repeater.

[0131] The access point 30 establishes wireless connections with the terminals 10A and the like through the wireless communication interface, and transmits and receives packets with the terminals 10A and the like through the established wireless connections. The access point 30 forwards packets sent by the terminals 10A and the like to the communication devices existing on the network N to the network N, and forwards packets received from the network N to the terminals 10A and the like to the terminals 10A and the like. In addition, the access point 30 relays the transmission and reception of packets between the terminals 10A and the like. The access point 30 is a concept including a wireless router 30A and a wireless repeater 30B.

[0132] Next, the configurations of the terminal 10A, etc. and the access point 30 will be described in sequence.

[0133] The terminal 10A is a station (STA) or a terminal in wireless communication.

[0134] The terminal 10A establishes a wireless connection with the access point 30 through a wireless communication interface, and sends and receives packets with the access point 30 through the established wireless connection. The terminal 10A may be any device as long as it is a communicative device, and may also be a computer, a smart phone, or various devices with communication functions (home appliances, industrial equipment, or office equipment).

[0135] The terminals 10B and 10C each have the same function as the terminal 10A, and operate independently of the terminal 10A.

[0136] Fig.11 It is a block diagram showing the configuration of the terminal 10 in this embodiment. Fig.12 It is an explanatory diagram showing a key management table included in the terminal 10 in the present embodiment.

[0137] like Fig.11 As shown in FIG. 1 , the terminal 10 includes a communication unit 11, a processor 12, and a memory 13. In addition, the terminal 10 is equivalent to Fig.10 Each of the terminals 10A, 10B and 10C.

[0138] The communication unit 11 is an interface device for wireless communication. The communication unit 11 performs encrypted communication with the access point 30 in a wireless manner. The communication standard of the wireless communication performed by the communication unit 11 is, for example, a wireless LAN (local area network) of the IEEE802.11 series (IEEE802.11a, b, g, n, etc.), but is not limited thereto. The communication unit 11 operates as an STA in the infrastructure mode. The communication unit 11 receives a broadcast packet encrypted by the access point 30 using GTK from the access point 30.

[0139] The memory 13 is a storage device used as a work area when the processor 12 executes the program 27. In addition, the program 27 and information required for executing the program 27, such as the key management table 28, are stored in the memory 13. The key management table 28 is a table for storing a group key used for encrypted communication performed by the terminal 10 (see Fig.12 ).

[0140] like Fig.12 As shown, the key management table 28 manages the SSID of the access point, the encryption information, the MAC address of the access point, and the key information in association with each other.

[0141] The "SSID of the access point" is the SSID of the access point 30 to which the terminal 10 establishes a wireless connection. Fig.12In the example, it is represented as "SSID2".

[0142] The "encryption information" is information that specifies the encryption method used for communication between the terminal 10 and the access point 30. Fig.12 As an example, it is represented as "WPA2-PSK-AES".

[0143] The "MAC address of the access point" is the MAC address of the access point 30 to which the terminal 10 establishes a wireless connection. Fig.12 As an example, it is represented as "33:45:20:65:A9:AA".

[0144] The "key information" is a group key used for communication between the terminal 10 and the access point 30. Fig.12 As an example, it is represented as "GTK:A".

[0145] The processor 12 is a processing device that implements the functions of the determination unit 21, the control unit 23, and the update unit 24 by executing the program 27 using the memory 13. In addition, the processor 12 controls general applications executed by the terminal 10. The above functions implemented by the processor 12 are described below.

[0146] The determination unit 21 receives the encrypted broadcast packet of the access point 30 via the communication unit 11, and determines whether the received broadcast packet can be decrypted using the first set of keys. The above determination performed by the determination unit 21 is also referred to as a first determination. When the determination unit 21 repeatedly receives the above broadcast packet, it performs the first determination on each of the repeatedly received broadcast packets.

[0147] More specifically, the determination unit 21 includes a decryption unit 22, and before receiving the above-mentioned broadcast packet, the category of the broadcast packet to be received next is predetermined. This category is also referred to as the first category. Furthermore, the determination unit 21 performs a decryption process for decrypting the received broadcast packet using the first set of keys by the decryption unit 22. Then, the determination unit 21 determines whether the decrypted packet obtained by the decryption process is a broadcast packet of the first category. This determination is also referred to as a second determination. Furthermore, when the determination unit 21 determines in the second determination that the decrypted packet is a broadcast packet of the first category, it determines that the broadcast packet can be decrypted using the first set of keys.

[0148] When the determination unit 21 determines in the first determination that the broadcast packet cannot be decrypted using the first group key, the control unit 23 generates information indicating that the first group key needs to be updated. For example, the control unit 23 generates information to cause the update unit 24 to execute the update of the group key. Specifically, the control unit 23 generates control information to cause the update unit 24 to execute the process of disconnecting and reconnecting the wireless connection with the access point and the process of storing the new group key.

[0149] The updating unit 24 obtains a group key for encrypted communication from the access point 30, and stores the obtained group key in the key management table 28 as a first group key. In addition, the updating unit 24 performs a process of updating the group key stored in the key management table 28 based on the information generated by the control unit 23. As a process of updating the group key, the updating unit 24 performs a process of establishing a new wireless connection with the access point 30 via the communication unit 11 within a predetermined time after disconnecting the wireless connection with the access point 30. Furthermore, the updating unit 24 stores the group key used for encrypted communication in the new wireless connection obtained by the establishment process in the key management table 28 as a second group key, thereby updating the first group key to the second group key.

[0150] Here, the predetermined time depends on the installation specification of the access point 30, and is, for example, about 12 minutes to 30 minutes or less, more specifically, 12 minutes or less. In this way, it is possible to avoid the access point 30 updating the GTK when establishing a new wireless connection and not sending the updated GTK to the terminal, that is, the behavior shown in Comparative Examples 1 and 2.

[0151] In addition, the IEEE802.11 series of wireless LAN standards do not define a dedicated procedure or process for obtaining a group key. Therefore, the terminal 10 obtains the group key by utilizing the process of disconnecting a wireless connection and establishing a new wireless connection as described above. This has the advantage that the terminal 10 can obtain the group key without modifying the IEEE802.11 series of wireless LAN standards.

[0152] In addition, as the process of updating the group key, a message prompting the user to perform an operation for disconnecting and connecting the wireless connection may be displayed on the screen or output by voice. This has the advantage of preventing the terminal 10 from disconnecting the wireless connection contrary to the user's intention.

[0153] Here, an example of a first type of broadcast packet is a DHCP ACK packet. In this case, the control unit 23 sends a DHCP T2 request packet to the DHCP server, i.e., the access point 30, via the communication unit 11 before receiving the broadcast packet, and the broadcast flag in the packet is set to True (also referred to as a DHCP T2 request packet). Then, as a response to the sent T2 request packet, the determination unit 21 receives a broadcast packet, i.e., a DHCP ACK packet, from the access point 30. In the second determination, the determination unit 21 determines whether the decrypted packet obtained by the decryption process is a DHCP ACK packet that is a broadcast packet of a predetermined type. In addition, in this case, the control unit 23 may also repeatedly receive the DHCP ACK packet by repeatedly sending the DHCP T2 request packet. In this case, the determination unit 21 performs a second determination on each of the repeatedly received DHCP ACK packets. The repeated sending is, for example, at intervals of about 1 minute to 5 minutes. In this way, the determination unit 21 can always monitor whether the group key used by the access point 30 for encryption has been updated, and if it has been updated, it will be known after 1 minute to 5 minutes.

[0154] In addition, the destination of the DHCP T2 request packet is the DHCP server. When the access point 30 is equipped with the DHCP server 34, the destination of the DHCP T2 request packet coincides with the access point 30.

[0155] Furthermore, even when the access point 30 does not have a DHCP server function and there is a DHCP server device different from the access point 30 , the above description also holds true because the DHCP ACK packet is forwarded from the access point 30 to the terminal 10 .

[0156] Another example of a broadcast packet of a predetermined type is a broadcast packet of a predetermined type transmitted by another terminal that wirelessly communicates with the access point 30 and is forwarded by the access point 30. In this case, the determination unit 21 determines whether the decrypted packet obtained by the decryption process is a broadcast packet of the predetermined type transmitted by the other terminal.

[0157] In addition, the control unit 23 may further generate information indicating that the first set of keys needs to be updated when no broadcast packet is received within a predetermined period in which the broadcast packet should be received. In addition, the predetermined period may be set to within a few seconds to a few minutes after the DHCP T2 request is sent, for example, when a DHCP packet is used as described above.

[0158] In this case, the determination unit 21 may further determine whether the source device of the broadcast packet is in a communicable state by attempting to communicate with the communication unit 11. Furthermore, the determination unit 21 may generate information indicating that the first set of keys needs to be updated only when it is determined that the source device is in a communicable state.

[0159] If it is determined that the first set of keys needs to be updated only on the condition that no broadcast packet is received within the predetermined period, information indicating that the first set of keys needs to be updated is generated not only when the access point 30 updates the GTK, but also when the transmission source device stops operating. Therefore, if the determination unit 21 attempts to communicate with the communication unit 11 and the transmission source device and generates the above information only when it is found that the transmission source device is communicable, that is, it is not stopped, there is an advantage that it is possible to avoid generating information indicating that the first set of keys need to be updated even though the GTK is not updated.

[0160] The communication unit 11 can attempt to communicate with the above-mentioned source device by, for example, using a ping command, that is, sending a ping request (Echo request) and receiving a ping response (Echo reply) (in other words, a round trip of ICMP packets).

[0161] In addition, the destination of the ping request is the source device. When a DHCP ACK packet is used as the first type of broadcast packet, the destination of the ping request is the DHCP server. When the access point 30 has a DHCP server 34, the destination of the ping request packet is the same as the access point 30.

[0162] Furthermore, the attempt to communicate with the transmission source device may be performed not only when the broadcast packet is not received within a predetermined period, but also at all times.

[0163] Fig.13 : is a block diagram showing the configuration of the access point 30 in this embodiment.

[0164] like Fig.13 As shown, the access point 30 includes a communication unit 31, an encryption unit 32, and a key management table 33. The access point 30 may further include a DHCP server 34.

[0165] The communication unit 31 is an interface device for wireless communication. The communication unit 31 performs encrypted communication with the terminal 10 in a wireless manner. The communication standard of the wireless communication performed by the communication unit 31 is, for example, a wireless LAN of the IEEE802.11 series, but is not limited thereto. The communication unit 31 operates as an AP in the infrastructure mode. The communication unit 31 receives the broadcast packet encrypted by the encryption unit 32.

[0166] The encryption unit 32 encrypts the broadcast packet that the access point 30 should send to the terminal 10. When the encryption unit 32 obtains the broadcast packet that the access point 30 should send to the terminal 10, it obtains the group key stored in the key management table 33 and encrypts the broadcast packet using the obtained group key.

[0167] The key management table 33 is a table storing a group key for encrypting broadcast packets. The group key is updated at a predetermined timing based on the processing performed by the access point 30. It is assumed that when the group key is updated, the access point 30 notifies the terminal wirelessly connected to the access point 30. However, depending on the installation of the access point 30, there may be a case where the terminal is not notified when the group key is updated.

[0168] The DHCP server 34 functions as a server of the DHCP protocol for assigning an IP address to the terminal 10 wirelessly connected to the access point 30. The DHCP server 34 transmits a DHCP ACK packet as a broadcast packet in a series of processes for assigning an IP address to the terminal 10. For example, the DHCP ACK packet is transmitted when a DHCP T2 request packet is received.

[0169] The following describes the operation (work) of the terminal 10 and the communication system constructed as above. The following describes the first operation which is the minimum required to solve the problem involved in this embodiment, the second operation which more specifically represents the first operation, and the third operation in the case where both the wireless router and the wireless repeater are present.

[0170] (1) First Action

[0171] Fig.14 This is a flow chart showing the communication process of the terminal 10 in this embodiment.

[0172] In step S1, the communication unit 11 establishes a wireless connection with the access point 30. At this time, the communication unit 11 obtains the GTK (equivalent to the first set of keys) from the access point 30.

[0173] In step S2 , the control unit 23 receives a broadcast packet transmitted from the access point 30 .

[0174] In step S3, the determination unit 21 performs decryption processing on the broadcast packet received in step S2 by the decryption unit 22 to determine whether decryption is possible. If it is determined to be decryptable (step S3: Yes), the process returns to step S2 to continue processing. Otherwise (step S3: No), the process proceeds to step S4.

[0175] In step S4 , the updating unit 24 disconnects the wireless connection with the access point 30 .

[0176] In step S5, after the wireless connection is disconnected in step S4, the update unit 24 performs a process of establishing a new wireless connection with the access point 30 within a predetermined time. At this time, a new GTK (equivalent to the second set of keys) used in the new wireless connection is obtained.

[0177] In step S6, the update unit 24 updates the key management table 28 by storing the GTK acquired in step S5 in the key management table 28. After completing step S6, the process proceeds to step S2.

[0178] Fig.15 2 is a sequence diagram showing the communication in the communication system 1 according to the present embodiment. Fig.15 The operation of the communication system 1 is explained with reference to a timing diagram.

[0179] exist Fig.15 In the process, the terminal 10 acquires GTK:A (equivalent to the first set key) by establishing a wireless connection between the access point 30 and the terminal 10 (step S1). Thus, the terminal 10 holds GTK:A as a set key.

[0180] Thereafter, the access point 30 repeatedly transmits broadcast packets encrypted with GTK: A. When the terminal 10 receives the repeatedly transmitted broadcast packets, it decrypts the received broadcast packets each time and determines that the received broadcast packets can be decrypted with GTK: A (step S3: Yes).

[0181] Then, it is assumed that the access point 30 updates the GTK and does not transmit the updated GTK to the terminal 10. Then, the access point 30 holds the group key GTK:B and transmits a broadcast packet encrypted with GTK:B to the terminal 10.

[0182] The terminal 10 receiving the broadcast packet sent by the access point 30 after updating the group key decrypts the received broadcast packet using GTK:A, but determines that the decrypted packet obtained by the decryption process is not the intended broadcast packet and is therefore unable to be decrypted (step S3: No).

[0183] Thereafter, after disconnecting the wireless connection (step S4), the terminal 10 establishes a wireless connection to obtain GTK:B (equivalent to the second group key), thereby updating the group key (step S6).

[0184] After the group key is updated, the terminal 10 can decrypt the broadcast packet encrypted by the access point 30 using GTK:B and transmitted using GTK:B (step S3: Yes).

[0185] (2) Second Action

[0186] In the second operation, the operation will be described in the case where the broadcast packet in the first operation is a DHCP ACK packet and communication is attempted based on ping. In addition, part of the functions of the control unit 23 and the determination unit 21 here correspond to a general DHCP client application.

[0187] Fig.16 This is a flow chart showing the communication process of the terminal 10 in this embodiment.

[0188] In step S101 , the communication unit 11 establishes a wireless connection with the access point 30 . At this time, the communication unit 11 obtains a GTK (equivalent to a first set of keys) from the access point 30 .

[0189] In step S102 , the control unit 23 transmits a DHCP T2 request packet to the access point 30 via the communication unit 11 .

[0190] In step S103, the control unit 23 determines whether a broadcast packet transmitted from the access point 30 as a response to the DHCP T2 request packet transmitted in step S102 is received. It is assumed that the broadcast packet is a DHCP ACK packet transmitted by the DHCP server in response to the DHCP T2 request packet transmitted in step S102. If it is determined that the above-mentioned broadcast packet is received (step S103: Yes), the process proceeds to step S104. Otherwise (step S103: No), the process proceeds to step S105.

[0191] In step S104, the determination unit 21 performs decryption processing on the broadcast packet received in step S103 by the decryption unit 22 to determine whether the DHCP ACK packet can be decrypted. If it is determined that the decryption is possible (step S104: Yes), the process returns to step S102 to continue processing. Otherwise (step S104: No), the process proceeds to step S105. In addition, the above determination is performed by determining in the application of the DHCP client whether the DHCP ACK packet sent by the DHCP server is received within a predetermined time for the DHCP T2 request packet sent in step S102.

[0192] In step S105 , the determination unit 21 transmits a ping request (Echo request) to the access point 30 .

[0193] In step S106, the determination unit 21 determines whether a ping response is received from the access point 30. The ping response to be received may be sent from the access point 30 as a reply to the ping request sent in step S105. If a ping response is received (step S106: Yes), the process proceeds to step S107. Otherwise (step S106: No), the process returns to step S102 to continue the process.

[0194] In step S107 , the updating unit 24 disconnects the wireless connection with the access point 30 .

[0195] In step S108, after the wireless connection is disconnected in step S107, the update unit 24 performs a process of establishing a new wireless connection with the access point 30 within a predetermined time. At this time, a new GTK (equivalent to the second set of keys) used in the new wireless connection is obtained.

[0196] In step S109, the update unit 24 updates the key management table 28 by storing the GTK acquired in step S108 in the key management table 28. After completing step S109, the process proceeds to step S102.

[0197] Fig.17 2 is a sequence diagram showing the communication in the communication system 1 according to the present embodiment. Fig.17 The operation of the communication system 1 is explained with reference to a timing diagram.

[0198] exist Fig.17 In the process, the terminal 10 acquires GTK:A (equivalent to the first set key) by establishing a wireless connection between the access point 30 and the terminal 10 (step S101). Thus, the terminal 10 holds GTK:A as a set key.

[0199] After that, when the terminal 10 repeatedly sends DHCP T2 request packets to the access point 30 (step S102), the access point 30 repeatedly sends DHCP ACK packets encrypted with GTK: A. When the terminal 10 receives the repeatedly sent DHCP ACK packets, it performs decryption processing on the received DHCP ACK packets each time it receives them, and determines that they can be decrypted with GTK: A (step S104: Yes).

[0200] Then, it is assumed that the access point 30 updates the GTK and does not transmit the updated GTK to the terminal 10. Then, the access point 30 holds the group key GTK:B and transmits the DHCP ACK packet encrypted with GTK:B to the terminal 10.

[0201] The terminal 10 that has received the DHCP ACK packet sent by the access point 30 after updating the group key performs decryption processing on the received DHCP ACK packet using GTK:A, but since the DHCP ACK packet is not obtained by the decryption processing, it is determined that decryption is impossible (step S104: No).

[0202] Next, the terminal 10 sends a ping request and receives a ping response as a response, thereby finding out that the access point 30 is in a communicable state (step S106 : Yes).

[0203] Thereafter, after disconnecting the wireless connection (step S107), the terminal 10 establishes a wireless connection to obtain GTK:B (equivalent to the second group key), thereby updating the group key (steps S108 and S109).

[0204] After the group key is updated, the terminal 10 can receive the DHCP ACK packet encrypted by GTK:B and sent by the access point 30, and can decrypt it by GTK:B.

[0205] (3) The third action

[0206] Fig.18 2 is a sequence diagram showing the third operation of the communication system in this embodiment. Fig.18 The operation of the communication system 2 including the wireless router 30A as the access point 30, the wireless repeater 30B as the access point 30, and the terminal 10 will be described. Here, the DHCP server 34 is provided in the wireless router 30A, but not in the wireless repeater 30B.

[0207] In such Fig.18 When there are two devices operating as access points 30, the destination of the DHCP T2 request sent by the terminal 10 is the wireless router 30A having the DHCP server 34. Similarly, the destination of the ping request sent by the terminal 10 is also the wireless router 30A having the DHCP server 34.

[0208] In other respects, Fig.17 The actions shown are the same, so detailed description is omitted.

[0209] (Variant 1)

[0210] In this modification, a case will be described where the broadcast packet received by the terminal is a broadcast packet transmitted by another terminal connected to the wireless repeater.

[0211] Fig.19 It is a timing chart showing the operation of the communication system in this modification. Fig.19 The timing diagram shown in FIG. 1 shows the first operation (see FIG. Fig.15 ) in which the broadcast packet received by the terminal 10 is a broadcast packet sent by other terminals connected to the access point 30 and forwarded by the access point 30.

[0212] In this case, the "predetermined type of broadcast packet" used in the second determination by the determination unit 21 is a predetermined type of broadcast packet transmitted by another terminal 10B that is in wireless communication with the access point 30 and forwarded by the access point 30. In addition, the predetermined period during which the broadcast packet should be received can be set to be within a few seconds to a few minutes from the time when the other terminal 10B transmits the broadcast packet. The time when the other terminal 10B transmits the broadcast packet can be obtained by sharing information with other terminals 10B, or by calculating the period and timing based on the reception time of the broadcast packet actually regularly transmitted by the other terminal 10B.

[0213] like Fig.19 As shown, the terminal 10A receives a broadcast packet encrypted by the access point 30 using GTK: A. The broadcast packet is a packet sent by another terminal 10B connected to the access point 30.

[0214] When the terminal 10A receives a broadcast packet, it determines whether a decrypted packet obtained as a result of decrypting the received broadcast packet is a broadcast packet transmitted by the terminal 10B.

[0215] The other aspects are the same as those in the embodiment, and thus description thereof will be omitted.

[0216] (Variant 2)

[0217] Fig. 20 It is a timing chart showing the operation of the communication system in this modification.

[0218] In this variation, the following case is described: when a terminal 10 having two communication units with different communication standards sends a broadcast packet through one of the communication units, and the sent broadcast packet is forwarded by an access point and received by the other communication unit, the broadcast packet received by the other communication unit is used.

[0219] Fig. 20 The timing diagram shown in FIG. 1 shows the first operation (see FIG. Fig.15 ) in which the broadcast packet received by the terminal 10 is a broadcast packet sent by another communication unit of the terminal 10 and forwarded by the access point 30.

[0220] In this case, the “broadcast packet of a predetermined type” used in the second determination by the determination unit 21 is a broadcast packet of a predetermined type that is transmitted by another communication unit included in the terminal 10 and forwarded by the access point 30 .

[0221] like Fig. 20 As shown, the terminal 10 includes two communication units 11A and 11B.

[0222] The communication unit 11B receives the encrypted broadcast packet from the access point 30. The broadcast packet is the packet sent by the communication unit 11A. In this case, the terminal 10 holds the content of the broadcast packet sent by the communication unit 11A, and determines whether the decrypted packet obtained as a result of decrypting the broadcast packet received by the communication unit 11B is the broadcast packet sent by the communication unit 11A.

[0223] The other aspects are the same as those in the embodiment, and thus description thereof will be omitted.

[0224] (Variant 3)

[0225] Fig.21 as well as Fig. 22 It is a timing chart showing the operation of the communication system in this modification.

[0226] In this modification, the case where the access point 30 is a wireless router 30A having a function of repeatedly sending broadcast packets is described. As an example, the ssdp:alive packet periodically sent by the wireless router 30A through multicast when the IGD (Internet Gateway Device) function of UPnP (Universal Plug and Play) is installed can be used.

[0227] Fig.21 It is a sequence diagram showing the first operation of the communication system in this variation. Fig.21 The timing diagram shown in FIG. 1 shows the first operation (see FIG. Fig.15 ), the broadcast packet received by the terminal 10 is a multicast packet periodically sent by the wireless router 30A, that is, an ssdp:alive packet. In addition, Fig.21 The case where the terminal 10 is connected to the wireless router 30A without passing through the wireless repeater is shown.

[0228] In this case, the "predetermined type of broadcast packet" used in the second determination by the determination unit 21 is the ssdp:alive packet sent by the wireless router 30A. In addition, the predetermined period during which the broadcast packet should be received can be set to be within a few seconds to a few minutes from the time predetermined as the time when the wireless router 30A sends the ssdp:alive packet. The time when the wireless router 30A sends the ssdp:alive packet can be obtained by calculating the cycle and timing based on the reception time of the ssdp:alive packet actually sent regularly by the wireless router 30A.

[0229] like Fig.21As shown, the terminal 10 receives the ssdp:alive packet, which is a multicast packet encrypted by the wireless router 30A using GTK: A. In this case, the terminal 10 determines whether the decrypted packet obtained as a result of decrypting the received ssdp:alive packet is the ssdp:alive packet.

[0230] The other aspects are the same as those in the embodiment, and thus description thereof will be omitted.

[0231] Fig. 22 It is a sequence diagram showing the second operation of the communication system in this modification. Fig. 22 The timing diagram shown in FIG. 1 shows the first operation (see FIG. Fig.15 ), the broadcast packet received by the terminal 10 is a multicast packet sent by the wireless router 30A and forwarded by the wireless repeater 30B, that is, an ssdp:alive packet. Fig. 22 In the example, the terminal 10 is connected to the wireless router 30A via the wireless repeater 30B.

[0232] like Fig. 22 As shown, the terminal 10 receives the ssdp:alive packet which is a broadcast packet encrypted by the wireless repeater 30B using GTK: A after being transmitted by the wireless router 30A. In this case, the terminal 10 determines whether the decrypted packet obtained as a result of decrypting the received ssdp:alive packet is an ssdp:alive packet.

[0233] In addition, Fig. 22 2 shows a case where the GTK of the wireless repeater 30B is updated. However, when the GTK of the wireless router 30A is updated, the operation of the terminal 10 is similar.

[0234] The other aspects are the same as those in the embodiment, and thus description thereof will be omitted.

[0235] As described above, the terminal of this embodiment can perform a process for updating the group key based on the generated information when the broadcast packet (in other words, the broadcast packet in a broad sense) received from the access point cannot be decrypted using the first group key. The above situation where the broadcast packet cannot be decrypted using the first group key occurs when the access point takes an action to update the group key and does not send the updated group key to the terminal. When the access point takes the above action, the terminal can obtain the updated group key by performing the process for updating the group key, so that it can decrypt the broadcast packet sent by the access point. In this way, the terminal can be in a state where it can decrypt the broadcast packet received from the access point when it cannot decrypt it.

[0236] In addition, when the terminal determines that the group key needs to be updated, the terminal updates the group key by disconnecting the wireless connection and establishing a new wireless connection. As a result, the group key can be updated by using the existing wireless communication process without performing a dedicated process for updating the group key. As a result, when the terminal cannot decrypt a broadcast packet received from an access point, it can be enabled to decrypt the packet by performing a process using the existing wireless communication process.

[0237] In addition, the terminal monitors whether the state in which the broadcast packet received from the access point can be decrypted is maintained, and if the state in which the broadcast packet cannot be decrypted is changed, the terminal can detect this at an early stage and perform the group key update process. Thus, if the broadcast packet received from the access point cannot be decrypted, the terminal can detect this at an earlier time point and make the state in which the decryption can be performed.

[0238] In addition, the terminal predetermines and retains the category of the next broadcast packet to be received, and determines whether the received broadcast packet can be decrypted based on the consistency between the category of the packet obtained by decryption and the predetermined category. As a result, the terminal can more easily become capable of decrypting the broadcast packet received from the access point.

[0239] In addition, the terminal uses the DHCP protocol message to make the access point send a broadcast packet. Specifically, the DHCP server uses the existing DHCP protocol mechanism that sends a DHCP ACK packet by broadcasting when receiving a DHCP T2 request packet with a broadcast flag set to True, so that the access point sends a broadcast packet. As a result, the terminal can more easily use the existing DHCP protocol to decrypt the broadcast packet received from the access point.

[0240] In addition, the terminal can make the access point repeatedly send DHCP ACK packets, and as a result, can repeatedly receive DHCP ACK packets as broadcast packets from the access point. In this way, it is possible to monitor whether the state of being able to decrypt the broadcast packets received from the access point is maintained, and to make the state of being able to decrypt when the decryption is not possible. In this way, the terminal can make the state of being able to decrypt the broadcast packets received from the access point earlier by using the existing DHCP protocol.

[0241] In addition, the terminal uses the transmission of broadcast packets by other terminals connected to the access point to cause the access point to transmit broadcast packets. Thus, the terminal can more easily use other terminals to be in a state where it can decrypt broadcast packets received from the access point.

[0242] In addition, the terminal also performs processing for updating the group key when the broadcast packet that should be received is not received within a predetermined period. According to the installation specifications of the communication unit, when the received broadcast packet cannot be normally decrypted using the retained group key, it may be treated as if the broadcast packet has not been received. In this case, the processor can know that the broadcast packet cannot be decrypted from the fact that the broadcast packet is not received within the predetermined period when the broadcast packet should be received. As a result, the terminal can be put into a state where the broadcast packet received from the access point can be decrypted regardless of the installation specifications of the communication unit.

[0243] In addition, when the terminal knows that the broadcast packet cannot be decrypted because the broadcast packet is not received within the predetermined period when the terminal should receive the broadcast packet, there is a possibility that the source device of the broadcast packet has stopped working. In this case, the terminal should not update the group key. Therefore, the terminal can update the group key more appropriately by trying to communicate with the above-mentioned source device and updating the group key only when it knows that the above-mentioned source device can communicate, that is, it has not stopped working. In this way, it is possible to avoid updating the group key when it is not necessary to update the group key, and at the same time make it possible to decrypt the broadcast packet received from the access point.

[0244] In addition, in the above-mentioned embodiments, each component may be formed by dedicated hardware or implemented by executing a software program suitable for each component. Each component may also be implemented by a program execution unit such as a CPU or a processor reading and executing a software program recorded on a recording medium such as a hard disk or a semiconductor memory. Here, the software for the terminal etc. implementing the above-mentioned embodiments is the following program.

[0245] That is, the program is a program for causing a computer to execute a communication method, wherein the communication method is a communication method executed by a terminal, wherein the terminal comprises: a communication unit that performs encrypted communication with an access point in a wireless manner; a processor; and a memory that stores at least one program executed by the processor and a key management table for storing a group key used for the encrypted communication. In the communication method, the processor obtains a group key used for the encrypted communication from the access point, stores the obtained group key as a first group key in the key management table, receives a broadcast packet encrypted by the access point via the communication unit, performs a first determination as to whether the received broadcast packet can be decrypted using the first group key, and generates information indicating that the first group key needs to be updated when it is determined in the first determination that the broadcast packet cannot be decrypted using the first group key.

[0246] The above is based on the implementation mode, and the terminal etc. involved in one or more technical solutions are described, but the present invention is not limited to the implementation mode. As long as it does not deviate from the purpose of the present invention, the implementation mode obtained by various modifications that can be thought of by those skilled in the art and the mode constructed by combining the constituent elements in different implementation modes can also be included in the scope of one or more technical solutions.

[0247] Industrial Applicability

[0248] The present invention can be used in a smartphone, a personal computer, a home appliance, an industrial device, an office device, or the like as a terminal connected to an access point for wireless communication.

[0249] Description of symbols

[0250] 1, 2, 9, 9A communication system; 10, 10A, 10B, 10C, 90A, 90B, 90C, 90D, 90E, 90F, 90G, 90H terminal; 11, 11A, 11B, 31 communication unit; 12 processor; 13 memory; 21 determination unit; 22 decryption unit; 23 control unit; 24 update unit; 27 program; 28, 33 key management table; 30 access point; 30A wireless router; 30B wireless repeater; 32 encryption unit; 34 DHCP server; N network.

Claims

1. A terminal comprising: A communication unit that performs encrypted wireless communication with the access point; Processor; and a memory storing at least one program executed by the processor and a key management table for storing a group key used for the encrypted communication, the processor, obtaining a group key for the encrypted communication from the access point, storing the obtained group key as a first group key in the key management table, receiving, via the communication unit, a broadcast packet encrypted by the access point, making a first determination as to whether the received broadcast packet can be decrypted using the first set of keys, When it is determined in the first determination that the broadcast packet cannot be decrypted using the first set of keys, information indicating that the first set of keys needs to be updated is generated, disconnecting the wireless connection with the access point in response to the generation of the information; After disconnecting the wireless connection with the access point, within a predetermined time, a new wireless connection establishment process is performed with the access point via the communication unit, The group key used for encrypted communication in the new wireless connection acquired through the establishment process is stored in the key management table as a second group key, thereby updating the first group key to the second group key.

2. A terminal comprising: A communication unit that performs encrypted wireless communication with the access point; Processor; and a memory storing at least one program executed by the processor and a key management table for storing a group key used for the encrypted communication, the processor, obtaining a group key for the encrypted communication from the access point, storing the obtained group key as a first group key in the key management table, receiving, via the communication unit, a broadcast packet encrypted by the access point, making a first determination as to whether the received broadcast packet can be decrypted using the first set of keys, When it is determined in the first determination that the broadcast packet cannot be decrypted using the first set of keys, information indicating that the first set of keys needs to be updated is generated, The processor, in the first determination, performing a decryption process for decrypting the received broadcast packet using the first group of keys, making a second determination as to whether the decrypted packet obtained by the decryption process is a broadcast packet of a predetermined first category, When it is determined in the second determination that the decrypted packet is a broadcast packet of the first category, it is determined that the broadcast packet can be decrypted using the first group key, the processor, Before receiving the broadcast packet, a DHCP T2 request packet with a broadcast flag set to true is sent to a DHCP server via the communication unit, wherein the DHCP is a dynamic host configuration protocol. The received broadcast packet is a DHCP ACK packet received from the DHCP server as a response to the sent DHCP T2 request packet, In the second determination, it is determined whether the decrypted packet obtained by the decryption process is a DHCP ACK packet which is a broadcast packet of a predetermined type.

3. The terminal according to claim 1 or 2, the processor, repeatedly receiving the encrypted broadcast packet from the access point, The first determination is performed on each of the repeatedly received broadcast packets.

4. The terminal according to claim 2, The processor repeatedly receives the DHCP ACK packet by repeatedly sending the DHCP T2 request packet.

5. The terminal according to claim 2, The processor determines, in the second determination, whether the decrypted packet obtained by the decryption process is a broadcast packet of a predetermined type that is transmitted by another terminal that wirelessly communicates with the access point and is forwarded by the access point.

6. The terminal according to claim 2, The processor further generates information indicating that the first set of keys needs to be updated when the broadcast packet is not received within a predetermined period during which the broadcast packet should be received.

7. The terminal according to claim 6, the processor, When the broadcast packet is not received within the predetermined period, further determining whether the source device is in a communicable state by attempting to communicate with the communication unit, The information indicating that the first set of keys needs to be updated is generated only when it is determined that the transmission source device is in a communicable state.

8. A communication method is a communication method executed by a terminal, The terminal has: A communication unit that performs encrypted wireless communication with the access point; Processor; and a memory storing at least one program executed by the processor and a key management table for storing a group key used for the encrypted communication, In the communication method, by a processor, obtaining a group key for the encrypted communication from the access point, storing the obtained group key as a first group key in the key management table, receiving, via the communication unit, a broadcast packet encrypted by the access point, making a first determination as to whether the received broadcast packet can be decrypted using the first set of keys, When it is determined in the first determination that the broadcast packet cannot be decrypted using the first set of keys, information indicating that the first set of keys needs to be updated is generated, disconnecting the wireless connection with the access point in response to the generation of the information; After disconnecting the wireless connection with the access point, within a predetermined time, a new wireless connection establishment process is performed with the access point via the communication unit, The group key used for encrypted communication in the new wireless connection acquired through the establishment process is stored in the key management table as a second group key, thereby updating the first group key to the second group key.

9. A communication method is a communication method performed by a terminal, The terminal has: A communication unit that performs encrypted wireless communication with the access point; Processor; and a memory storing at least one program executed by the processor and a key management table for storing a group key used for the encrypted communication, In the communication method, by a processor, obtaining a group key for the encrypted communication from the access point, storing the obtained group key as a first group key in the key management table, receiving, via the communication unit, a broadcast packet encrypted by the access point, making a first determination as to whether the received broadcast packet can be decrypted using the first set of keys, When it is determined in the first determination that the broadcast packet cannot be decrypted using the first set of keys, information indicating that the first set of keys needs to be updated is generated, The processor, in the first determination, performing a decryption process for decrypting the received broadcast packet using the first group of keys, making a second determination as to whether the decrypted packet obtained by the decryption process is a broadcast packet of a predetermined first category, When it is determined in the second determination that the decrypted packet is a broadcast packet of the first category, it is determined that the broadcast packet can be decrypted using the first group key, the processor, Before receiving the broadcast packet, a DHCP T2 request packet with a broadcast flag set to true is sent to a DHCP server via the communication unit, wherein the DHCP is a dynamic host configuration protocol. The received broadcast packet is a DHCP ACK packet received from the DHCP server as a response to the sent DHCP T2 request packet, In the second determination, it is determined whether the decrypted packet obtained by the decryption process is a DHCP ACK packet which is a broadcast packet of a predetermined type. 10 . A recording medium storing a program for causing a computer to execute the communication method according to claim 8 or 9 when the program is executed by a processor.

11. A computer program product comprising a computer program, wherein when the computer program is executed by a processor, the computer program causes the computer to execute the communication method according to claim 8 or 9.