Continuing a media access control security key agreement session after a network device becomes temporarily unavailable
By determining the availability of other devices in the network device and reactivating the MACsec session, the problem of resource waste when the device is interrupted is solved, achieving efficient resource utilization and rapid recovery.
Patent Information
- Application Number
- CN202010399434.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-03-19
- Filing Date
- 2020-05-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-05-12
AI Technical Summary
The existing technology frequently destroys and rebuilds MACsec sessions when network devices are interrupted or come back online, resulting in a waste of computing resources and network resources, and increased delays and delays.
Avoid the frequent destruction and re-establishment of sessions by determining the availability of other devices in the network device, placing it in a suspended state, receiving packets to determine that the session has not ended, and reactivating the session when the device becomes available.
Save computing and network resources, reduce network service recovery delays, and improve device availability and resource utilization.
Smart Images

Figure CN113497822B_ABST
Abstract
Description
Background Art
[0001] Media Access Control Security (MACsec) is a security standard defined by the Institute of Electrical and Electronics Engineers (IEEE) 802.1AE that defines connectionless data confidentiality and integrity for a media access independent protocol. The MACsec standard specifies a set of protocols to meet security requirements for protecting data traversing an Ethernet local area network (LAN). MACsec allows unauthorized LAN connections to be identified and excluded from communications within the network, and defines a security infrastructure to provide data confidentiality, data integrity, and data origin authentication. Summary of the invention
[0002] According to some implementations, a method may include: communicating, by a network device, with other network devices via a media access control security (MACsec) key agreement (MKA) communication link, wherein an MKA session has been established between the network device and the other network devices; determining, by the network device, that the other network devices are unavailable; placing, by the network device and based on determining that the other network devices are unavailable, an MKA state of the network device in a suspended state; receiving, by the network device and after placing the MKA state of the network device in a suspended state, packets from the other network devices via the MKA communication link; determining, by the network device and based on the packets, that the MKA session has not ended; and continuing the MKA session by reactivating the MKA state, by the network device, based on the MKA session not ending.
[0003] According to some implementations, a network device may include one or more memories; and one or more processors, which are used to: communicate with other network devices via a media access control security (MACsec) key agreement (MKA) communication link, wherein an MKA session has been established between the network device and the other network devices; based on communicating with the other network devices, cause information associated with the MKA state of the network device and information associated with the MKA session to be stored in a data structure; determine that the network device will become unavailable at a specific time; based on determining that the network device will become unavailable at the specific time, send an MKA packet to other network devices indicating that the network device will become unavailable; determine that the network device has become available after the specific time; and after determining that the network device has become available, cause the network device to be updated based on the information associated with the MKA state of the network device and the information associated with the MKA session stored in the data structure.
[0004] According to some implementations, a non-transitory computer-readable medium may store one or more instructions. The one or more instructions, when executed by one or more processors of a network device, may cause the one or more processors to: communicate with other network devices via a media access control security (MACsec) key agreement (MKA) communication link, wherein an MKA session has been established between the network device and the other network devices; based on communicating with the other network devices, cause information associated with the MKA state of the network device and information associated with the MKA session to be stored in a data structure, after causing the information associated with the MKA state of the network device and the information associated with the MKA session to be stored in the data structure, determine that the network device has become available after being temporarily unavailable; after determining that the network device has become available, cause the network device to be updated based on the information associated with the MKA state of the network device and the information associated with the MKA session stored in the data structure; after causing the network device to be updated, send MKA packets to the other network devices via the MKA communication link; determine that the MKA session has not ended based on sending the MKA packets to the other network devices via the MKA communication link; and perform at least one action by the network device based on determining that the MKA session has not ended.
[0005] According to a first aspect of the present invention, a method is provided, comprising: a network device communicating with other network devices via a media access control security (MACsec) key agreement (MKA) communication link, wherein an MKA session has been established between the network device and the other network devices; the network device determining that the other network devices are unavailable; the network device placing the MKA state of the network device in a suspended state based on the determination that the other network devices are unavailable; after placing the MKA state of the network device in a suspended state, the network device receiving packets from the other network devices via the MKA communication link; the network device determining, based on the packets, that the MKA session has not ended; and the network device continuing the MKA session by reactivating the MKA state based on the fact that the MKA session has not ended.
[0006] According to an embodiment, determining that the other network device is unavailable includes processing a specific packet received from the other network device to determine that the other network device has become unavailable.
[0007] According to an embodiment, wherein determining that the other network devices are unavailable includes determining that the network device has not received an MKA packet from the other network devices for a length of time.
[0008] According to an embodiment, causing the MKA state of a network device to be placed in a suspended state includes: causing the network device to terminate transmission of MKA packets associated with an MKA session; causing the network device to terminate a timeout timer associated with the MKA session; causing the network device to store information associated with the MKA session in a data structure; and causing the network device to start a recovery timer associated with the MKA session; wherein the recovery timer is configured and / or negotiated between the network device and other network devices.
[0009] According to an embodiment, determining that the MKA session has not ended includes: determining the length of time between placing the MKA state of a network device in a paused state and receiving a packet from another network device via an MKA communication link; determining that the time length does not meet a threshold; identifying a message identifier of the packet; determining that: when the MKA state is placed in a paused state, the message identifier of the packet corresponds to the message identifier of the MKA session; and determining that the MKA session has not ended based on determining that the time length does meet the threshold and that the message identifier of the packet corresponds to the message identifier of the MKA session when the MKA state is placed in a paused state.
[0010] According to an embodiment, continuing the MKA session includes: resuming the MKA session without performing a process for establishing a new MKA session.
[0011] According to an embodiment, continuing the MKA session includes: placing the MKA state of the network device into an active state.
[0012] According to an embodiment, continuing the MKA session includes: causing the MKA state of the network device to be placed in an active state; and causing a key update procedure to be performed for the MKA session.
[0013] According to an embodiment, the further step includes: configuring the network device to avoid terminating the MKA session with other network devices when the other network devices are unavailable.
[0014] According to a second aspect of the present invention, there is provided a network device, comprising: one or more memories; and one or more processors, wherein the one or more processors are configured to:
[0015] Communicate with other network devices via a media access control security (MACsec) key agreement (MKA) communication link, wherein an MKA session has been established between the network device and the other network devices; based on the communication with the other network devices, cause information associated with the MKA state of the network device and information associated with the MKA session to be stored in a data structure; determine that the network device will become unavailable at a specific time; based on the determination that the network device will become unavailable at the specific time, send an MKA packet to the other network devices indicating that the network device will become unavailable; after the specific time, determine that the network device has become available; and after determining that the network device has become available, cause the network device to be updated based on the information associated with the MKA state of the network device and the information associated with the MKA session stored in the data structure.
[0016] According to an embodiment, sending the MKA packet to the other network device causes the other network device to put the MKA state of the other network device into a suspended state.
[0017] According to an embodiment, the one or more processors are further configured to: generate additional MKA packets after causing the network device to be updated; and send the additional MKA packets to other network devices via the MKA communication link.
[0018] According to an embodiment, sending additional MKA packets to other network devices causes the other network devices to place the MKA state of the other network devices into an active state.
[0019] According to an embodiment, one or more processors are further used to: generate additional MKA packets after causing the network device to be updated; send the additional MKA packets to other network devices via the MKA communication link; after sending the additional MKA packets to the other network devices, receive a key update request MKA packet from the other network devices; and based on the key update request MKA packet, enable a key update process to be performed for the MKA session.
[0020] According to an embodiment, the one or more processors are further configured to: generate additional MKA packets after causing the network device to be updated; and send the additional MKA packets to other network devices via the MKA communication link to cause the other network devices to perform a key update process for the MKA session.
[0021] According to a third aspect of the present invention, a non-transitory computer-readable medium storing instructions is provided, the instructions comprising: one or more instructions, which, when executed by one or more processors of a network device, cause the one or more processors to: communicate with other network devices via a media access control security (MACsec) key agreement (MKA) communication link, wherein an MKA session has been established between the network device and the other network devices; based on communicating with the other network devices, cause information associated with the MKA state of the network device and information associated with the MKA session to be stored in a data structure, and after causing the information associated with the MKA state of the network device and information associated with the MKA session to be stored in the data structure, determine that the network device has become available after being temporarily unavailable; after determining that the network device has become available, cause the network device to be updated based on the information associated with the MKA state of the network device and information associated with the MKA session stored in the data structure; after causing the network device to be updated, send MKA packets to other network devices via the MKA communication link; determine that the MKA session has not ended based on sending MKA packets to other network devices via the MKA communication link; and perform at least one action by the network device based on determining that the MKA session has not ended.
[0022] According to an embodiment, wherein the message identifier of the MKA packet corresponds to the message identifier of the MKA session when the network device becomes temporarily unavailable.
[0023] According to an embodiment, the one or more instructions that cause the one or more processors to determine that the MKA session has not ended cause the one or more processors to: determine whether the network device has received one or more packets associated with the MKA session from other network devices via the MKA communication link.
[0024] According to an embodiment, wherein the network device determines that the MKA session has not ended, the one or more instructions causing the one or more processors to perform at least one action cause the one or more processors to: continue the MKA session by reactivating the MKA state.
[0025] According to an embodiment, wherein the network device determines that the MKA session has not ended, wherein the one or more instructions causing the one or more processors to perform at least one action cause the one or more processors to: cause a key update procedure to be performed for the MKA session. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1A-1F is a diagram of one or more example implementations described herein.
[0027] Figure 2 is a diagram of an example environment in which the systems and / or methods described herein may be implemented.
[0028] Figure 3A and Figure 3B yes Figure 2 A diagram of example components of one or more devices.
[0029] Figures 4 to 6 is a flow diagram of one or more example processes for continuing a Media Access Control Security (MACsec) Key Agreement (MKA) session after a network device becomes temporarily unavailable. DETAILED DESCRIPTION
[0030] The following detailed description of example implementations refers to the accompanying drawings.The same reference numbers in different drawings may identify the same or similar elements.
[0031] In some cases, a network device may establish a media access control security (MACsec) key agreement (MKA) session (e.g., a secure session) with other network devices. When one of the network devices is restarted or offline, the MKA session is destroyed. In this case, when the offline network device comes back online, a new MKA session must be established between the network devices. However, continuously destroying and establishing a new MKA session between the network device and other network devices may waste computing resources (e.g., processing resources, memory resources, communication resources, etc.) and / or network resources associated with destroying and establishing the MKA session. Additionally, destroying the MKA session when one of the network devices is offline and establishing a new MKA session when the network device comes back online may waste computing resources and / or network resources associated with the delay in the transmission of traffic between the network devices waiting for the MKA session to be reestablished. In addition, destroying the MKA session when one of the network devices is offline and establishing a new MKA session when the network device comes back online may cause a delay in the overall network service recovery, which may waste computing resources and / or network resources associated with the delay.
[0032] According to some implementations described herein, a network device may continue an MKA session after other network devices become temporarily unavailable (e.g., reactivated, online, failed, etc.). In some implementations, a network device may communicate with other network devices via an MKA communication link to establish an MKA session. The network device may determine that other network devices are unavailable (e.g., reactivated, online, failed, etc.). The network device may place the MKA state of the network device in a paused state. The network device may receive packets from the other network devices via an MKA communication link. The network device may determine that the MKA session has not ended based on the packets. The network device may continue the MKA session with other network devices by reactivating the MKA state based on the MKA session not ending.
[0033] In this way, the network device can save computing resources and / or network resources that would otherwise be used to destroy the MKA session when other network devices become unavailable, and re-establish the MKA session when the other network devices become available again. In addition, the network device can quickly recover the MKA session and save computing resources and / or network resources that would otherwise be used to wait for the transmission of the service when the MKA session is re-established after the other network devices become available again.
[0034] Figure 1A-1F is a diagram of one or more example implementations 100 described herein. Figures 1A to 1F As shown in , network device A and network device B can communicate via a MACsec communication link (eg, an MKA communication link). Figures 1A to 1F As shown in , network device A and network device B may include an MKA stack. The MKA stack of network device A and / or network device B may include an MKA daemon, a kernel, a packet processing component, an interface, and / or a MACsec network interface controller (NIC).
[0035] exist Figures 1A to 1F In the MKA stack of (multiple) example implementations 100, the MKA daemon may include a process or program operating in the background of a network device (e.g., network device A and / or network device B) to exchange MKA communications (e.g., packets) with MKA-supported devices. The kernel may include a program operating to convert packet data between a packet processing component and the MKA daemon. The packet processing component may perform packet switching and / or routing of MKA packet data, such as Extensible Authentication Protocol (EAPoL) packets over a local area network. The interface may act as a software interface between a MACsec NIC and a network device / packet processing component. The MACsec NIC may act as a hardware interface between a network device (e.g., network device A and / or network device B) and a network (e.g., a network of MACsec communication links). In some implementations, the MACsec NIC may be a software interface between a network device and a network.
[0036] In the example implementation(s) 100, data may be exchanged via the MKA session path. Figures 1A to 1F As shown in , the MKA session path may be between the MKA daemons of network device A and network device B. The MKA session path may travel through each element in the MKA stack of network device A and / or network device B (eg, MACsec NIC, interface, packet processing component, and kernel).
[0037] like Figure 1A102, as described in more detail below, an MKA session may be established between network device A and network device B. During the MKA session, MKA packet data (e.g., peer aliveness messages) may be scheduled to be sent periodically (e.g., every 2 seconds or longer) between the MKA daemon of network device A and the MKA daemon of network device B via the MKA session path (e.g., according to a standard).
[0038] As shown with reference numeral 104, network device A and network device B may share an MKA key (e.g., an encryption key, a decryption key, etc.). The MKA key may be verified by network device A and / or network device B to establish an MKA session (e.g., if network device A and / or network device B cannot verify an MKA key received from the other network device, then the MKA session may not be established). The MKA key may be configured by a user associated with network device A and / or network device B. Alternatively, the MKA key may be dynamically generated by network device A, network device B, a device associated with network device A and / or associated with network device B (such as a server device, a cloud computing platform, etc.), etc.
[0039] MKA keys may include a connectivity association key (CAK), a security association key (SAK), a master key, and the like. For example, to establish an MKA session, network device A and / or network device B may use a pre-shared key, such as a connectivity association name (CKN) and a CAK associated with the network devices. The pre-shared key may be configured by a user associated with network device A and / or network device B, and may be stored by network device A and / or by network device B. Network device A may share a pre-shared key associated with network device A with network device B, and network device B may share a pre-shared key associated with network device B with network device A. If the pre-shared keys match (e.g., network device A verifies the pre-shared key received from network device B and / or network device B verifies the pre-shared key received from network device A), then an MKA session may be established.
[0040] In some implementations, after establishing the MKA session, if one of the network devices becomes temporarily unavailable (e.g., temporarily offline, reactivated, failed, etc.), then network device A and network device B can negotiate (e.g., enable and / or configure) whether the MKA session will be restored. In this way, network device A and network device B can enable, disable, configure (etc.) the processes described herein associated with continuing the MKA session after network device A and / or network device B becomes temporarily unavailable. In some implementations, this negotiation can only occur when network device A and network device B first establish the MKA session. In this way, additional security can be provided because network device A and / or network device B may be required to agree to continue the MKA session when network device A and / or network device B becomes available after becoming temporarily unavailable. In this way, unless network device A and / or network device B agree to continue the MKA session when network device A and / or network device B becomes available again, network device A and / or network device B may not store information related to the MKA session when network device A and / or network device B becomes unavailable (as described in more detail below). This may improve the security of network device A and / or network device B and save computing resources and / or network resources that would otherwise be used to store information related to the MKA session.
[0041] like Figure 1A After establishing the MKA session, network device A and network device B may communicate via the MACsec communication link and as further shown in FIG. 106 , network device A and network device B may communicate via the MACsec communication link. For example, network device A may transmit traffic from network device A to network device B (or vice versa) via the MACsec communication link.
[0042] In some implementations, a key (such as a SAK) shared between network device A and network device B may be used to protect traffic transmitted via a MACsec communication link. The SAK may be a randomly generated key. The SAK may be generated by network device A, network device B, and / or a device associated with network device A and / or associated with network device B. The SAK may be generated based on establishing an MKA session between network device A and network device B. Additionally or alternatively, the SAK may be generated periodically so that a new SAK can be shared between network device A and network device B whenever the SAK is generated when the MKA session is active. The SAK may be shared from one network device to other network devices (e.g., from network device A to network device B or from network device B to network device A) and / or received by network device A and / or network device B from a device associated with network device A and / or associated with network device B. For example, the SAK may be shared after an MKA session is established. Network device A and / or network device B may use the SAK to protect all traffic sent via the MACsec communication link.
[0043] In some implementations, traffic transmitted via a MACsec communication link between network device A and network device B may be associated with a message identifier. Message identifiers may be assigned to traffic transmitted via the MACsec communication link to ensure that the traffic is not received out of sequence (e.g., out of order, associated with unrelated traffic, etc.) by a network device (e.g., network device A or network device B). For example, message identifiers may be assigned such that the message identifiers are associated with the most recent previously assigned message identifiers (e.g., such that the message identifiers are assigned in sequence).
[0044] like Figure 1B , and as indicated by reference numeral 108, network device A may store information associated with the MKA state of network device A and / or information associated with the MKA session with network device B. Additionally or alternatively, network device B may store information associated with the MKA state of network device B and / or information associated with the MKA session. Network device A and / or network device B may store the information associated with the MKA state and / or information associated with the MKA session in a persistent storage device (e.g., a storage device that retains data after the network device becomes unavailable). Information associated with the MKA state of one network device may reference information associated with other network devices (e.g., information associated with the MKA state of network device A may reference information associated with network device B and vice versa).
[0045] In this example, it is assumed that the information associated with the MKA state and the information associated with the MKA session are stored by the network device B. The network device A may store the information associated with the MKA state and the information associated with the MKA session of the network device A in a similar manner. For the network device B, the information associated with the MKA state and the information associated with the MKA session may include one or more MKA keys, a control plane MKA state associated with the network device B, one or more message identifiers associated with the MKA session, a MAC address associated with the network device A and / or a MAC address associated with the network device B, a port identifier associated with the MKA session, an identifier associated with the network device A, and the like.
[0046] Network device B may store information associated with the MKA state and information associated with the MKA session periodically (e.g., once every 30 minutes, once every hour, once a day, etc.) Additionally or alternatively, network device B may store information associated with the MKA state and information associated with the MKA session when network device B determines that network device B will become temporarily unavailable (such as by receiving input indicating that network device B is offline or reactivated, by detecting a power loss to network device B, by detecting a fault condition associated with network device B, etc.).
[0047] Network device B may store information associated with the MKA state and information associated with the MKA session in a data structure (e.g., a list, a table, a mapping, etc.) that network device B can access. The data structure may be stored in network device B, in a device associated with network device B, in a cloud computing environment associated with network device B, etc. The data structure may be stored in a persistent storage device. Information associated with the MKA state and information associated with the MKA session may be stored in a data structure having an identifier that identifies the MKA session, so that network device B may access information associated with the MKA state and information associated with the MKA session by searching the data structure for the identifier that identifies the MKA session. For example, network device B may participate in multiple MKA sessions with different network devices. Network device B may store the MKA state and information associated with the MKA session for each of the multiple MKA sessions. Network device B may distinguish between each of the multiple MKA sessions based on an identifier associated with each MKA session. In some implementations, when network device B stores information associated with an MKA state and information associated with an MKA session, network device B may replace and / or delete any previously stored information associated with a different MKA state and / or information associated with a different MKA session in the data structure (e.g., such that the information stored in the data structure is associated with the most recent MKA session established by network device B).
[0048] like Figure 1B , and as further shown by reference numeral 110, network device B may determine that network device B will become temporarily unavailable. For example, network device B may receive an input directing network device B to reactivate and / or go offline, detect a power loss to network device B, determine that network device B is scheduled to reactivate and / or go offline, detect a fault condition associated with network device B, and the like.
[0049] As indicated by reference numeral 112, network device B may send a packet to network device A indicating that network device B will become temporarily unavailable (e.g., the packet may be any packet, such as an MKA packet, a packet associated with network traffic, a packet associated with a final warning message, etc.). The packet may indicate that network device A and network device B have previously negotiated (e.g., enabled and / or configured) to continue the MKA session when network device B becomes available again. In some implementations, when network device B determines that network device B will become temporarily unavailable, network device B may send a power outage warning message to network device A (e.g., a message indicating that power to network device B has been interrupted, is about to be reactivated, is about to be offline, has experienced a particular fault condition, etc.).
[0050] like Figure 1C In the figure and as shown by reference numeral 114, network device B may become unavailable. Network device B may become unavailable by reactivating network device B, by going offline, by interrupting power and starting again, etc. Network device B becoming unavailable may cause the MACsec communication link between network device A and network device B to be interrupted.
[0051] As indicated with reference numeral 116, network device A may determine that the network device is unavailable (e.g., being reactivated, offline, has failed, etc.). Network device A may determine that network device B is unavailable based on a packet received from network device B, based on a power outage warning message received from network device B, based on a MACsec communication link interruption between network device A and network device B, based on not receiving an MKA packet from network device B within a length of time, etc.
[0052] like Figure 1CAs further shown in the figure and by reference numeral 118, network device A can place the MKA state of network device A in a paused state. In this way, the MKA protocol of the MKA session can be suspended between network device A and network device B. For example, one or both of network device A or network device B can suspend the MKA background program or the process of the MKA session (for example, by suspending one or more state machines associated with the MKA background program). In the paused state, the MKA background program of network device A (and / or network device B) may not send MKA packet data associated with the MKA session. Network device A can suspend a timeout timer associated with the MKA session. Additionally or alternatively, network device A (and / or network device B) can suspend or suspend a timeout timer associated with sending an active message of the MKA session to network device B. Accordingly, when the MKA session is in a paused state, the MKA session will not be destroyed because the MKA packet data of the MKA session (which acts as an active message) will not be transmitted and / or the reception will not be monitored.
[0053] Network device A, based on determining that network device B is unavailable and the MKA state of network device A has been placed in a suspended state, can store information associated with the MKA state of network device A and / or information associated with the MKA session. As described above, the information associated with the MKA state of network device A and / or information associated with the MKA session can be similar to (or the same as) the information stored by network device B. Network device A can store the information associated with the MKA state of network device A and / or information associated with the MKA session in a data structure in a manner similar to (or the same as) that described above with respect to network device B.
[0054] Network device A may initiate a resume timer associated with the pause state based on the MKA state of network device A being placed in the pause state. The resume timer may be associated with an amount of time that the MKA state of network device A may remain in the pause state. For example, if the resume timer expires (e.g., if the amount of time associated with the resume time has elapsed), then network device A may destroy the MKA session between network device A and network device B until it ends (such as by deleting information associated with the MKA state of network device A and / or information associated with the MKA session stored by network device A).
[0055] The amount of time associated with the recovery timer may be preconfigured by network device A. Additionally or alternatively, as described above, the amount of time associated with the recovery timer may be negotiated (e.g., enabled and / or configured) by network device A and network device B: configured when the MKA session is continued after network device A and / or network device B becomes available again. The amount of time associated with the recovery timer may be related to the amount of time that network device A and / or network device B needs to become available after becoming unavailable (such as the amount of time to reactivate, the amount of time to recover from a fault condition, the amount of time to resolve an offline condition, etc.). In some implementations, the amount of time associated with the recovery timer may be set (e.g., configured) by a user associated with network device A and / or associated with network device B. In some implementations, the amount of time associated with the recovery timer may be negotiated between network device 1 and network device 2 using a network protocol (e.g., an MKA protocol, etc.).
[0056] like Figure 1D , and as indicated by reference numeral 120, network device B may determine that network device B has become available again (e.g., by completing a reactivation process, by coming online, by recovering from a failure state, etc.). Network device B may determine that network device B has become available based on network device B completing a reactivation process, coming online, recovering from a failure state, etc.
[0057] As indicated by reference numeral 122, network device B, based on determining that network device B has become available, may update network device B based on information associated with the MKA state and information associated with the MKA session stored by network device B. For example, network device B may access a data structure to obtain information associated with the MKA state and information associated with the MKA session. Network device B may restore the MKA state of network device B based on the information associated with the MKA state and information associated with the MKA session stored by network device B. Network device B may restore the MKA state of network device B by obtaining information associated with the MKA state and information associated with the MKA session stored by network device B and storing the information within network device B for operation (e.g., in an MKA daemon, in a packet processing component, etc.). Network device B may restore one or more MKA keys associated with the MKA session. Likewise, network device B may return to the same MKA state as existed before network device B became unavailable.
[0058] like Figure 1D, and as further shown by reference numeral 124, network device B, based on updating network device B and restoring the MKA state, may send a packet to network device A indicating that network device B has become available (e.g., the packet may be any packet, such as an MKA packet, a packet associated with network traffic, etc.). The packet may identify information associated with the MKA state of network device B and / or information associated with the MKA session. For example, the packet may be associated with a message identifier associated with a final message identifier stored by network device B (e.g., network device B may associate the packet with a message identifier that is next in sequence based on the final message identifier stored by network device B). The packet indicating that network device B has become available may identify one or more MKA keys associated with the MKA session.
[0059] like Figure 1E , and as shown by reference numeral 126, network device A may determine that the MKA session has not ended based on receiving a packet indicating that network device B has become available. Network device A may determine that the MKA session has not ended based on a recovery timer. For example, network device A may determine the amount of time between causing the MKA state of network device A to be placed in a paused state and receiving a packet from network device B indicating that network device B has become available. Network device A may determine whether the amount of time between causing the MKA state of network device A to be placed in a paused state and receiving a packet from network device B indicating that network device B has become available satisfies a threshold amount of time. The threshold amount of time may be related to an amount of time associated with a recovery timer. In some implementations, network device A may determine that an amount of time associated with a recovery timer has expired (e.g., the recovery timer may be a count-down timer or a count-up timer such that when the recovery timer (e.g., by counting down from the amount of time or counting up to the amount of time) reaches an amount of time associated with the recovery timer, the recovery timer causes the MKA session to expire).
[0060] Network device A may determine that the MKA session has not ended based on network device A obtaining information associated with the MKA state of network device A and / or information associated with the MKA session stored by network device A. For example, if an amount of time associated with a recovery timer elapses, network device A may delete information associated with the MKA state of network device A and / or information associated with the MKA session stored by network device A. Thus, if network device A is able to obtain information associated with the MKA state of network device A and / or information associated with the MKA session, network device A may determine that the MKA session has not ended.
[0061] Network device A may determine that the MKA session has not ended based on identifying a message identifier associated with a packet indicating that network device B has become available. Network device A may identify the message identifier and determine that the message identifier corresponds to a message identifier of the MKA session when the MKA state of network device A is placed in a paused state. Additionally or alternatively, network device A may identify one or more MKA keys identified in the packet indicating that network device B has become available. When the MKA state of network device A is placed in a paused state, network device A may compare the one or more MKA keys with MKA keys stored by network device A. If the one or more MKA keys match the MKA keys stored by network device A, then network device A may determine that the MKA session has not ended.
[0062] like Figure 1E , and as further shown by reference numeral 128, network device A may cause an MKA session of network device A to be placed in an active state based on determining that the MKA session has not ended. Network device A may cause an MKA protocol associated with the MKA session to resume based on the MKA session of network device A being placed in an active state. When network device B becomes available by reactivating the MKA state associated with network device A, network device A may continue the MKA session. For example, network device A may resume periodically (e.g., every 2 seconds or more) sending MKA packet data (e.g., peer activity messages) between an MKA daemon of network device A and an MKA daemon of network device B via an MKA session path (e.g., according to a standard).
[0063] As indicated by reference numeral 130, network device A and / or network device B may communicate traffic via the MACsec communication link based on the MKA session of network device A being placed in an active state. Network device A and network device B may communicate traffic in a manner similar to that described above with respect to traffic communication before network device B became unavailable.
[0064] like Figure 1E , and as further shown by reference numeral 132, network device A and / or network device B may cause a key update procedure to be performed for the MKA session after the MKA session is placed in an active state. The key update procedure may be requested by network device A and / or network device B. Network device A and / or network device B may identify the key update request in a packaged key update request MKA received from the other network device.
[0065] The key update procedure may cause the MKA keys associated with the MKA session to be changed, replaced, updated, altered, etc. The key update procedure may provide improved security because the MKA keys may have been stored by network device A and / or network device B for a period of time during which network device B was unavailable. Thus, the MKA keys may have been accidentally accessed or misappropriated during the time when network device B was unavailable. Likewise, the key update procedure provides additional security (of providing one or more new MKA keys). Alternatively, network device A and / or network device B may not cause the key update procedure to be performed. In this case, the MKA session may continue using the same MKA keys that were used before the MKA session was placed in a suspended state.
[0066] like Figure 1F , and as indicated by reference numeral 134, network device A may determine that the MKA session has ended based on receiving a packet indicating that network device B has become available. For example, network device A may determine that the MKA session has ended based on: determining that an amount of time between causing the MKA state of network device A to be placed in a paused state and receiving a packet from network device B indicating that network device B has become available does not satisfy a threshold amount of time (e.g., associated with an amount of time associated with a resume timer); determining that the resume timer has expired; determining that network device A cannot access information associated with the MKA state of network device A and / or information associated with the MKA session stored by network device A; determining that a message identifier identified in the packet indicating that network device B has become available while the MKA session was placed in a paused state does not correspond to a message identifier of the MKA session; determining that one or more MKA keys identified in the packet indicating that network device B has become available while the MKA session was placed in a paused state does not match one or more MKA keys of the MKA session while the MKA session was placed in a paused state, and the like.
[0067] Network device A may delete any information related to the MKA session stored by network device A based on network device A determining that the MKA session has ended. Similarly, network device B may delete any information related to the MKA session stored by network device B based on network device B determining that the MKA session has ended (e.g., by network device B independently determining that the MKA session has ended (e.g., by not receiving a response to a packet indicating that network device B has become available, by determining that the MKA session has not been reestablished, etc.), by receiving a message from network device A indicating that the MKA session has ended, etc.). For example, network device A may delete information associated with the MKA state of network device A and / or information associated with the MKA session stored by network device A. Network device B may delete information associated with the MKA state of network device B and / or information associated with the MKA session stored by network device B. Deleting information associated with the MKA state of network device A and / or network device B and / or information associated with the MKA session may improve security by ensuring that sensitive information (such as MKA keys) cannot be accessed after the MKA session has ended.
[0068] As indicated by reference numeral 136, network device A may cause a new MKA session to be established between network device A and network device B based on network device A determining that the MKA session has ended. Similarly, network device B may cause a new MKA session to be established between network device B and network device A based on network device B determining that the MKA session has ended. The new MKA session may be established in a manner similar to (or the same as) described above with respect to initially establishing the MKA session between network device A and network device B. Network device A and network device B may communicate traffic via the new MACsec communication link in a manner similar to (or the same as) described above based on establishing the new MKA session.
[0069] Some implementations described herein may enable network device A and / or network device B to save computing resources and / or network resources that would otherwise be used to destroy the MKA session when the other network device becomes unavailable, and to reestablish the MKA session when the other network device becomes available again. In addition, some implementations described herein may save computing resources and / or network resources that would otherwise be used to wait for the transmission of traffic when the MKA session is reestablished after the other network device becomes available again.
[0070] As indicated above, Figures 1A to 1F are provided only as one or more examples. Other examples may be related to Figures 1A to 1F The examples described are different. Figures 1A to 1FThe number and arrangement of devices shown in the drawings are provided as one or more examples. Figures 1A to 1F There may be additional devices, fewer devices, different devices, or devices arranged in a different manner than those shown in FIG. Figure 1F Two or more of the devices shown in FIG. 1 may be implemented in a single device, or Figures 1A to 1F The single device shown in can be implemented as multiple distributed devices. Additionally or alternatively, Figures 1A to 1F A set of devices (e.g., one or more devices) may perform the operations described by Figures 1A to 1F One or more functions performed by another set of devices.
[0071] Figure 2 2 is a schematic diagram of an example environment 200 in which the systems and / or methods described herein may be implemented. Figure 2 As shown in FIG. 2 , environment 200 may include a set of network devices 210 (shown as network device 210-1 through network device 210-N) and network 220. The devices of environment 200 may be interconnected via wired connections, wireless connections, or a combination of wired and wireless connections.
[0072] The network device 210 includes one or more devices capable of receiving, processing, storing, routing and / or providing traffic (e.g., packets, other information or metadata, etc.) in a manner described herein. For example, the network device 210 may include a router, such as a label switching router (LSR), a label edge router (LER), an ingress router, an egress router, a provider router (e.g., a provider edge router, a provider core router, etc.), a virtual router, etc. Additionally or alternatively, the network device 210 may include a gateway, a switch, a firewall, a hub, a bridge, a reverse proxy, a server (e.g., a proxy server, a cloud server, a data center server, etc.), a load balancer and / or similar devices. In some implementations, the network device 210 may be a physical device implemented in a housing (such as a rack). In some implementations, the network device 210 may be a virtual device implemented by one or more computer devices of a cloud computing environment or a data center. In some implementations, a group of network devices 210 may be a group of data center nodes for routing traffic flows through the network 220.
[0073] The network 220 includes one or more wired and / or wireless networks. For example, the network 220 may include a packet-switched network, a cellular network (e.g., a fifth generation (5G) network, a fourth generation (4G) network (such as a long term evolution (LTE) network), a third generation (3G) network, a code division multiple access (CDMA) network, a public land mobile network (PLMN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), a telephone network (e.g., a public switched telephone network (PSTN)), a private network, an ad hoc network, an intranet, the Internet, a fiber-optic-based network, a cloud computing network, etc. and / or a combination of these or other types of networks.
[0074] Figure 2 The number and arrangement of devices and networks shown in are provided as examples. Figure 2 There may be additional devices and / or networks, fewer devices and / or networks, different devices and / or networks, or devices and / or networks arranged in a different manner than those shown in FIG. Figure 2 Two or more of the devices shown in may be implemented in a single device, or Figure 2 A single device shown in FIG. 200 may be implemented as multiple distributed devices. Additionally or alternatively, a group of devices (eg, one or more devices) of environment 200 may perform one or more functions described as being performed by another group of devices of environment 200.
[0075] Figure 3A 300. Device 300 may correspond to network device 210. In some implementations, network device 210 may include one or more devices 300 and / or one or more components of device 300. Figure 3A As shown in , device 300 may include a bus 305 , a processor 310 , a memory 315 , a storage component 320 , an input component 325 , an output component 330 , and a communication interface 335 .
[0076] The bus 305 includes components that allow communication between multiple components of the device 300. The processor 310 is implemented using hardware, firmware, and / or a combination of hardware and software. The processor 310 takes the form of a central processing unit (CPU), a graphics processing unit (GPU), an accelerated processing unit (APU), a microprocessor, a microcontroller, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or another type of processing component. In some implementations, the processor 310 includes one or more processors that can be programmed to perform functions. The memory 315 includes a random access memory (RAM), a read-only memory (ROM), and / or another type of dynamic or static storage device (e.g., flash memory, magnetic memory, and / or optical memory) that stores information and / or instructions for use by the processor 310.
[0077] The storage component 320 stores information and / or software related to the operation and use of the device 300. For example, the storage component 320 may include a hard disk (e.g., a magnetic disk, an optical disk, and / or a magneto-optical disk), a solid-state drive (SSD), a compact disk (CD), a digital versatile disk (DVD), a floppy disk, a cassette, a magnetic tape, and / or another type of non-transitory computer-readable medium and a corresponding drive.
[0078] Input components 325 include components that allow device 300 to receive information, such as via user input (e.g., a touch screen display, a keyboard, a keypad, a mouse, buttons, switches, and / or a microphone). Additionally or alternatively, input components 325 may include components for determining location (e.g., a global positioning system (GPS) component) and / or sensors (e.g., an accelerometer, a gyroscope, an actuator, another type of location or environmental sensor, etc.). Output components 330 include components that provide output information from device 300 (via, for example, a display, a speaker, a tactile feedback component, an audio or visual indicator, etc.).
[0079] The communication interface 335 includes a transceiver-like component (e.g., a transceiver, a separate receiver, a separate transmitter, etc.) that enables the device 300 to communicate with other devices, such as via a wired connection, a wireless connection, or a combination of a wired connection and a wireless connection. The communication interface 335 can allow the device 300 to receive information from another device and / or provide information to another device. For example, the communication interface 335 can include an Ethernet interface, an optical interface, a coaxial interface, an infrared interface, a radio frequency (RF) interface, a universal serial bus (USB) interface, a Wi-Fi interface, a cellular network interface, etc.
[0080] Device 300 may perform one or more processes described herein. Device 300 may perform these processes based on processor 310 executing software instructions stored by non-transitory computer-readable media (such as memory 315 and / or storage component 320). As used herein, the term "computer-readable medium" refers to a non-transitory memory device. A memory device includes storage space within a single physical storage device or storage space distributed across multiple physical storage devices.
[0081] The software instructions may be read into the memory 315 and / or storage component 320 from another computer-readable medium or from another device via the communication interface 335. The software instructions stored in the memory 315 and / or storage component 320, when executed, may cause the processor 310 to perform one or more processes described herein. Additionally or alternatively, hardware circuitry may be used in place of or in combination with software instructions to perform one or more processes described herein. Thus, the implementations described herein are not limited to any specific combination of hardware circuitry and software.
[0082] Figure 3A The number and arrangement of components shown in the FIG. are provided as examples. Figure 3A Device 300 may include additional components, fewer components, different components, or components arranged in a different manner than the components shown in . Additionally or alternatively, a set of components (e.g., one or more components) of device 300 may perform one or more functions described as being performed by another set of components of device 300.
[0083] Figure 3B 350. Device 350 may correspond to network device 210, etc. In some implementations, network device 210, etc. may include one or more devices 350 and / or one or more components of device 350. Figure 3B As shown in , the device 350 may include one or more input components 355-1 to 355-B (B≥1) (hereinafter collectively referred to as input component 355 and individually referred to as input component 355), a switching component 360, one or more output components 365-1 to 365-C (C≥1) (hereinafter collectively referred to as output component 365 and individually referred to as output component 365) and a controller 370.
[0084] The input component 355 can be one or more attachment points for a physical link and can be one or more entry points for incoming traffic (such as packets). The input component 355 can process incoming traffic, such as by performing data link layer encapsulation or decapsulation. In some implementations, the input component 355 can transmit and / or receive packets. In some implementations, the input component 355 may include an input line card, which includes one or more packet processing components (e.g., in the form of an integrated circuit), such as one or more interface cards (IFCs), packet forwarding components, line card controller components, input ports, processors, memories, and / or input queues. In some implementations, the device 350 may include one or more input components 355.
[0085] The switch component 360 can interconnect the input component 355 with the output component 365. In some implementations, the switch component 360 can be implemented via one or more crossbars, via a bus, and / or with a shared memory. The shared memory can act as a temporary buffer to store packets from the input component 355 before the packets are ultimately scheduled for delivery to the output component 365. In some implementations, the switch component 360 can enable the input component 355, the output component 365, and / or the controller 370 to communicate with each other.
[0086] The output component 365 can store packets and can schedule packets for transmission on an output physical link. The output component 365 can support data link layer encapsulation or decapsulation and / or various advanced protocols. In some implementations, the output component 365 can transmit packets and / or receive packets. In some implementations, the output component 365 may include an output line card, which includes one or more packet processing components (e.g., in the form of an integrated circuit), such as one or more IFCs, packet forwarding components, line card controller components, output ports, processors, memories, and / or output queues. In some implementations, the device 350 may include one or more output components 365. In some implementations, the input component 355 and the output component 365 can be implemented by a set of identical components (e.g., and the input / output component can be a combination of the input component 355 and the output component 365).
[0087] The controller 370 includes a processor, for example, in the form of a CPU, a GPU, an APU, a microprocessor, a microcontroller, a DSP, an FPGA, an ASIC, and / or another type of processor. The processor may be implemented using hardware, firmware, or a combination of hardware and software. In some implementations, the controller 370 may include one or more processors that may be programmed to perform a function.
[0088] In some implementations, the controller 370 may include RAM, ROM, and / or another type of dynamic or static storage device (e.g., flash memory, magnetic memory, and / or optical memory, etc.) that stores information and / or instructions for use by the controller 370.
[0089] In some implementations, the controller 370 can communicate with other devices, networks, and / or systems connected to the device 350 to exchange information about the network topology. The controller 370 can create a routing table based on the network topology information, can create a forwarding table based on the routing table, and can forward the forwarding table to the input component 355 and / or the output component 365. The input component 355 and / or the output component 365 can use the forwarding table to perform a route lookup for incoming and / or outgoing packets.
[0090] The controller 370 may perform one or more processes described herein. The controller 370 may perform these processes in response to executing software instructions stored by a non-transient computer readable medium. A computer readable medium is defined herein as a non-transient memory device. A memory device includes a storage space within a single physical storage device or a storage space distributed across multiple physical storage devices.
[0091] The software instructions may be read into a memory and / or storage component associated with the controller 370 from another computer-readable medium or another device via a communication interface. The software instructions stored in the memory and / or storage component associated with the controller 370, when executed, may cause the controller 370 to perform one or more processes described herein. Additionally or alternatively, hardwired circuitry may be used in place of or in combination with software instructions to perform one or more processes described herein. Thus, the implementations described herein are not limited to any specific combination of hardware circuitry and software.
[0092] Figure 3B The number and arrangement of components shown in the FIG. are provided as examples. Figure 3B Device 350 may include additional components, fewer components, different components, or components arranged in a different manner than the components shown in . Additionally or alternatively, a set of components (e.g., one or more components) of device 350 may perform one or more functions described as being performed by another set of components of device 350.
[0093] Figure 4 is a flow chart of an example process 400 for continuing a media access control security (MACsec) key agreement (MKA) session after a network device becomes temporarily unavailable. In some implementations, Figure 4 One or more process blocks of may be performed by a network device (e.g., network device 210). In some implementations, Figure 4One or more process blocks of may be performed by another device or a group of devices that are separate from or include the network device, such as other network devices 210, devices that communicate with network 220, and the like.
[0094] like Figure 4 As shown in , process 400 may include communicating with other network devices via a media access control security (MACsec) key agreement (MKA) communication link, wherein an MKA session has been established between the network device and the other network devices (block 410). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may communicate with other network devices via a media access control security (MACsec) key agreement (MKA) communication link. In some implementations, an MKA session has been established between the network device and the other network devices.
[0095] like Figure 4 As further shown in FIG. 4 , process 400 may include determining that other network devices are unavailable (block 420). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may determine that other network devices are unavailable.
[0096] like Figure 4 As further shown in FIG. 4 , process 400 may include causing the MKA of the network device to be placed in a paused state based on determining that other network devices are unavailable (block 430). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may cause the MKA state of the network device to be placed in a paused state based on determining that other network devices are unavailable.
[0097] like Figure 4As further shown in FIG. 4 , process 400 may include receiving packets from other network devices via the MKA communication link after causing the MKA state of the network device to be placed in the paused state (block 440). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may receive packets from other network devices via the MKA communication link after causing the MKA state of the network device to be placed in the paused state.
[0098] like Figure 4 As further shown in FIG. 4 , process 400 may include determining based on the packet that the MKA session has not ended (block 450). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may determine based on the packet that the MKA session has not ended.
[0099] like Figure 4 As further shown in FIG. 4 , process 400 may include continuing the MKA session by reactivating the MKA state based on the MKA session not being ended (block 460). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may continue the MKA session by reactivating the MKA state based on the MKA session not being ended.
[0100] Process 400 may include additional implementations, such as any single implementation or any combination of implementations described below and / or in conjunction with one or more other processes described elsewhere herein.
[0101] In a first implementation, determining that the other network device is unavailable includes processing a specific packet received from the other network device to determine that the other network device has become unavailable.
[0102] In a second implementation, either alone or in combination with the first implementation, determining that the other network device is unavailable includes: determining that the network device has not received an MKA packet from the other network device for a period of time.
[0103] In a third implementation, alone or in combination with one or more of the first implementation and the second implementation, placing the MKA state of the network device in a suspended state includes: causing the network device to terminate transmission of MKA packets associated with the MKA session; causing the network device to terminate a timeout timer associated with the MKA session; causing the network device to store information associated with the MKA session in a data structure; and causing the network device to initiate a recovery timer related to the MKA session, wherein the recovery timer is configured or negotiated between the network device and other network devices.
[0104] In a fourth implementation, alone or in combination with one or more of the first to third implementations, determining that the MKA session has not ended includes: determining a length of time between causing the MKA state of the network device to be placed in a paused state and receiving a packet from other network devices via the MKA communication link; determining that the time length does not meet a threshold; identifying a message identifier of the packet; determining that the message identifier of the packet corresponds to a message identifier of the MKA session when the MKA state is placed in the paused state; and determining that the MKA session has not ended based on determining that the time length does meet the threshold and determining that the message identifier of the packet corresponds to a message identifier box of the MKA session when the MKA session is placed in the paused state.
[0105] In a fifth implementation, alone or in combination with one or more of the first to fourth implementations, continuing the MKA session includes resuming the MKA session without performing a process for establishing a new MKA session.
[0106] In a sixth implementation, alone or in combination with one or more of the first to fifth implementations, continuing the MKA session includes: placing the MKA state of the network device into an active state.
[0107] In a seventh implementation, alone or in combination with one or more of the first to sixth implementations, continuing the MKA session includes causing the MKA state of the network device to be placed in an active state and causing a key update procedure to be performed for the MKA session.
[0108] In an eighth implementation, alone or in combination with one or more of the first to seventh implementations, process 400 includes configuring a network device to avoid terminating an MKA session with other network devices when the other network devices are unavailable.
[0109] although Figure 4 An example block diagram of process 400 is shown, but in some implementations, Figure 4 Process 400 may include additional blocks, fewer blocks, different blocks, or blocks arranged in a different manner than the blocks depicted in . Additionally or alternatively, two or more of the blocks of process 400 may be performed in parallel.
[0110] Figure 5 is a flow chart of an example process 500 for continuing a media access control security (MACsec) key agreement (MKA) session after a network device becomes temporarily unavailable. In some implementations, Figure 5 One or more process blocks of may be performed by a network device (e.g., network device 210). In some implementations, Figure 5 One or more process blocks of may be performed by another device or a group of devices that are separate from or include the network device, such as another network device 210, a device in communication with network 220, and the like.
[0111] like Figure 5 As shown in , process 500 may include communicating with another network device via a media access control security (MACsec) key agreement (MKA) communication link, wherein an MKA session has been established between the network device and the other network device (block 510). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may communicate with another network device via a media access control security (MACsec) key agreement (MKA) communication link. In some implementations, an MKA session has been established between the network device and the other network device.
[0112] like Figure 5 As further shown in the process 500, the process 500 may include causing information associated with the MKA state of the network device and information associated with the MKA session to be stored in a data structure based on communicating with other network devices (block 520). For example, as described above, the network device (e.g., using the processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may cause information associated with the MKA state of the network device and information associated with the MKA session to be stored in a data structure based on communicating with other network devices.
[0113] like Figure 5 As further shown in FIG. 5 , process 500 may include determining that the network device will become unavailable at a particular time (block 530). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may determine that the network device will become unavailable at a particular time.
[0114] like Figure 5 As further shown in the process 500, the process 500 may include sending a packet indicating that the network device will become unavailable to other network devices based on determining that the network device will become unavailable at a specific time (block 540). For example, as described above, the network device (e.g., using the processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may send a packet indicating that the network device will become unavailable to other network devices based on determining that the network device will become unavailable at a specific time.
[0115] like Figure 5 As further shown in process 500, process 500 may include determining that the network device has become available after a particular time (block 550). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may determine that the network device has become available after a particular time.
[0116] like Figure 5 As further shown in FIG. 5 , process 500 may include causing the network device to be updated based on information associated with the MKA state of the network device and information associated with the MKA session stored in the data structure after determining that the network device has become available (block 560). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may cause the network device to be updated based on information associated with the MKA state of the network device and information associated with the MKA session stored in the data structure after determining that the network device has become available.
[0117] Process 500 may include additional implementations, such as any single implementation or any combination of implementations described below and / or in conjunction with one or more other processes described elsewhere herein.
[0118] In a first implementation, an MKA packet is sent to other network devices, so that the other network devices put the MKA states of the other network devices into a suspended state.
[0119] In a second implementation, alone or in combination with the first implementation, process 500 includes generating additional MKA packets after causing the network device to be updated; and sending the additional MKA packets to other network devices via the MKA communication link.
[0120] In a third implementation, alone or in combination with one or more of the first and second implementations, additional MKA packets are sent to other network devices to cause the other network devices to place the MKA state of the other network devices in an active state.
[0121] In a fourth implementation, alone or in combination with one or more of the first to third implementations, process 500 includes generating additional MKA packets after causing a network device to be updated; sending the additional MKA packets to other network devices via an MKA communication link; receiving a key update request MKA packet from the other network devices after sending the additional MKA packet to the other network devices; and causing a key update process to be performed for the MKA session based on the key update request MKA packet.
[0122] In a fifth implementation, alone or in combination with one or more of the first to fourth implementations, process 500 includes generating additional MKA packets after causing the network device to be updated; and sending the additional MKA packets to other network devices via the MKA communication link to cause the other network devices to perform a key update process for the MKA session.
[0123] although Figure 5 An example block diagram of process 500 is shown, but in some implementations, Figure 5 Process 500 may include additional blocks, fewer blocks, different blocks, or blocks arranged in a different manner than the blocks depicted in. Additionally or alternatively, two or more of the blocks of process 500 may be performed in parallel.
[0124] Figure 6 is a flow chart of an example process 600 for continuing a media access control security (MACsec) key agreement (MKA) session after a network device becomes temporarily unavailable. In some implementations, Figure 6 One or more process blocks of may be performed by a network device (e.g., network device 210). In some implementations, Figure 6 One or more process blocks of may be performed by another device or a group of devices that are separate from or include the network device, such as another network device 210, a device in communication with network 220, and the like.
[0125] like Figure 6As shown in , process 600 may include communicating with another network device via a media access control security (MACsec) key agreement (MKA) communication link, wherein an MKA session has been established between the network device and the other network device (block 610). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may communicate with another network device via a media access control security (MACsec) key agreement (MKA) communication link. In some implementations, the MKA session has been established between the network device and the other network device.
[0126] like Figure 6 As further shown in FIG. 6 , process 600 may include causing information associated with the MKA state of the network device and information associated with the MKA session to be stored in a data structure based on communicating with other network devices (block 620). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may cause information associated with the MKA state of the network device and information associated with the MKA session to be stored in a data structure based on communicating with other network devices.
[0127] like Figure 6 As further shown in , process 600 may include determining that the network device has become available after being temporarily unavailable after causing information associated with the MKA state of the network device and information associated with the MKA session to be stored in a data structure (block 630). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may determine that the network device has become available after being temporarily unavailable after causing information associated with the MKA state of the network device and information associated with the MKA session to be stored in a data structure.
[0128] like Figure 6As further shown in FIG. 6 , process 600 may include causing the network device to be updated based on information associated with the MKA state of the network device and information associated with the MKA session stored in the data structure after determining that the network device has become available (block 640). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may cause the network device to be updated based on information associated with the MKA state of the network device and information associated with the MKA session stored in the data structure after determining that the network device has become available.
[0129] like Figure 6 As further shown in FIG. 6 , process 600 may include sending an MKA packet to other network devices via an MKA communication link after causing the network device to be updated (block 650). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may send an MKA packet to other network devices via an MKA communication link after causing the network device to be updated.
[0130] like Figure 6 As further shown in FIG. 6 , process 600 may include determining that the MKA session has not ended based on sending MKA packets to other network devices via the MKA communication link (block 660). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may determine that the MKA session has not ended based on sending MKA packets to other network devices via the MKA communication link.
[0131] like Figure 6 As further shown in FIG. 6 , process 600 may include performing at least one action based on determining that the MKA session has not ended (block 670). For example, as described above, the network device (e.g., using processor 310, memory 315, storage component 320, input component 325, output component 330, communication interface 335, input component 355, switch component 360, output component 365, controller 370, etc.) may perform at least one action based on determining that the MKA session has not ended.
[0132] Process 600 may include additional implementations, such as any single implementation or any combination of implementations described below and / or in conjunction with one or more other processes described elsewhere herein.
[0133] In a first implementation, the message identifier of the MKA packet corresponds to the message identifier of the MKA session when the network device becomes temporarily unavailable.
[0134] In a second implementation, either alone or in combination with the first implementation, process 600 includes determining whether the network device has received one or more packets associated with the MKA session from other network devices via the MKA communication link.
[0135] In a third implementation, alone or in combination with one or more of the first and second implementations, the network device determines that the MKA session has not ended, and performing at least one action includes continuing the MKA session by reactivating the MKA state.
[0136] In a fourth implementation, alone or in combination with one or more of the first to third implementations, the network device determines that the MKA session has not ended, and performing at least one action includes causing a key update process to be performed for the MKA session.
[0137] although Figure 6 An example block diagram of process 600 is shown, but in some implementations, Figure 6 Process 600 may include additional blocks, fewer blocks, different blocks, or blocks arranged in a different manner than the blocks depicted in . Additionally or alternatively, two or more of the blocks of process 600 may be performed in parallel.
[0138] The foregoing disclosure provides illustration and description, but is not intended to be exhaustive or to limit the implementation to the precise form disclosed. Modifications and changes may be made in light of the above disclosure and may be acquired from practice of the implementation.
[0139] As used herein, the term "component" is intended to be broadly interpreted as hardware, firmware, and / or a combination of hardware and software.
[0140] As used herein, the term "traffic or content" may include a group of packets. A packet may refer to a communication structure for conveying information, such as a protocol data unit (PDU), a network packet, a datagram, a fragment, a message, a block, a cell, a frame, a subframe, a timeslot, a symbol, a portion of any of the above, and / or another type of formatted or unformatted data capable of being transmitted via a network.
[0141] Some implementations are described herein in conjunction with thresholds. As used herein, satisfying a threshold may refer to a value greater than a threshold, more than a threshold, above a threshold, greater than or equal to a threshold, less than a threshold, less than a threshold, below a threshold, less than or equal to a threshold, equal to a threshold, etc., depending on the context.
[0142] It is apparent that the systems and / or methods described herein may be implemented in various forms of hardware, firmware, or a combination of hardware and software. The actual dedicated control hardware or software code used to implement these systems and / or methods is not a limitation of the implementation. Therefore, the operation and behavior of the systems and / or methods are described herein without reference to specific software code - it should be understood that software and hardware can be designed to implement the systems and / or methods based on the description herein.
[0143] Even though particular combinations of features are recited in the claims and / or disclosed in the specification, these combinations are not intended to limit the disclosure of the various implementations. In fact, many of these features may be combined in ways not specifically recited in the claims and / or disclosed in the specification. Although each dependent claim listed below may be directly dependent on only one claim, the disclosure of the various implementations includes each dependent claim and every other claim in the claim set.
[0144] Likewise, unless otherwise clearly described, the elements, actions or instructions used herein should not be interpreted as critical or essential. In addition, as used herein, the articles "one" and "an" are intended to include one or more projects and can be used interchangeably with "one or more". In addition, as used herein, the article "the" is intended to include one or more projects quoted in conjunction with the article "the", and can be used interchangeably with "one or more". In addition, as used herein, the term "set" is intended to include one or more projects (such as related projects, unrelated projects, combinations of related projects and unrelated projects, etc.), and can be used interchangeably with "one or more". In the case of only intending to represent a project, phrases "only one" or similar language are used. In addition, as used herein, the terms "have (has)", "have (have)", "have (having)" etc. are intended to be open terms. In addition, unless otherwise clearly stated, the phrase "based on" is intended to represent "at least partially based on". Furthermore, as used herein, the term "or" is intended to be inclusive when used in tandem and may be used interchangeably with "and / or" (e.g., when used in conjunction with "either" or "only one of") unless expressly stated otherwise.
Claims
1. A communication method, comprising: A network device communicates with other network devices via a Media Access Control Security (MACsec) Key Agreement (MKA) communication link, wherein an MKA session has been established between the network device and the other network device; The network device determines that the other network device is unavailable; The network device places the MKA state of the network device into a suspended state based on determining that the other network device is unavailable; receiving, by the network device, a packet from the other network device via the MKA communication link after causing the MKA state of the network device to be placed in the paused state; The network device determines, based on the packet, that the MKA session has not ended, wherein determining that the MKA session has not ended includes: a message identifier identifying the packet; determining, based on a final message identifier of the MKA session stored by the other network device, that the message identifier of the packet is next in sequence; and The MKA session is continued by the network device based on the MKA session not being ended by reactivating the MKA state.
2. The method of claim 1 , wherein determining that other network devices are unavailable comprises: Certain packets received from the other network device are processed to determine that the other network device has become unavailable.
3. The method of claim 1 , wherein determining that the other network device is unavailable comprises: It is determined that the network device has not received an MKA packet from the other network device for a length of time.
4. The method of claim 1 , wherein causing the MKA state of the network device to be placed in the paused state comprises: causing the network device to suspend transmission of MKA packets associated with the MKA session; causing the network device to terminate a timeout timer associated with the MKA session; causing the network device to store information associated with the MKA session in a data structure; as well as causing the network device to start a recovery timer associated with the MKA session; The recovery timer is configured and / or negotiated between the network device and the other network devices.
5. The method of claim 1 , wherein determining that the MKA session has not ended comprises: determining a length of time between causing the MKA state of the network device to be placed in the paused state and receiving the packet from the other network device via the MKA communication link; Determining that the time length does not satisfy a threshold; as well as Based on determining that the length of time does satisfy the threshold and the message identifier of the packet corresponds to the message identifier of the MKA session when the MKA state is placed in the paused state, determining that the MKA session has not ended.
6. The method of claim 1 , wherein continuing the MKA session comprises: The MKA session is resumed without performing a process for establishing a new MKA session.
7. The method of claim 1 , wherein continuing the MKA session comprises: The MKA state of the network device is placed into an active state.
8. The method of claim 1 , wherein continuing the MKA session comprises: Placing the MKA state of the network device in an active state; as well as A key update procedure is caused to be performed for the MKA session.
9. The method according to claim 1, further comprising: When the other network device is unavailable, the network device is configured to avoid terminating the MKA session with the other network device.
10. A network device comprising: one or more memories; as well as One or more processors, the one or more processors configured to: Communicate with other network devices via a Media Access Control Security (MACsec) Key Agreement (MKA) communication link, wherein an MKA session has been established between the network device and the other network device; causing information associated with the MKA state of the network device and information associated with the MKA session to be stored in a data structure based on communicating with the other network device; determining that the network device will become unavailable at a specific time; Based on determining that the network device will become unavailable at the specific time, sending an MKA packet to the other network devices indicating that the network device will become unavailable; After the specific time, determining that the network device has become available; upon determining that the network device has become available, causing the network device to be updated based on the information associated with the MKA state of the network device and the information associated with the MKA session stored in the data structure; as well as Send the second MKA packet, Wherein based on the first message identifier of the first MKA packet, the second message identifier of the second MKA packet is next in sequence.
11. The network device of claim 10, wherein sending the MKA packet to the other network device causes the other network device to place the MKA state of the other network device into a suspended state.
12. The network device of claim 10, wherein the one or more processors are further configured to: generating additional MKA packets after causing the network device to be updated; and The additional MKA packets are sent to the other network devices via the MKA communication link.
13. The network device of claim 12, wherein sending the additional MKA packet to the other network device causes the other network device to place the MKA state of the other network device into an active state.
14. The network device of claim 10, wherein the one or more processors are further configured to: generating an additional MKA packet after causing the network device to be updated; sending the additional MKA packet to the other network device via the MKA communication link; After sending the additional MKA packet to the other network device, receiving a key update request MKA packet from the other network device; and Based on the key update request MKA packet, a key update procedure is caused to be performed for the MKA session.
15. The network device of claim 10, wherein the one or more processors are further configured to: generating additional MKA packets after causing the network device to be updated; and The additional MKA packet is sent to the other network device via the MKA communication link to enable the other network device to perform a key update procedure for the MKA session.
16. A non-transitory computer-readable medium storing instructions, the instructions comprising: One or more instructions that, when executed by one or more processors of a network device, cause the one or more processors to: Communicate with other network devices via a Media Access Control Security (MACsec) Key Agreement (MKA) communication link, wherein an MKA session has been established between the network device and the other network device; Based on communicating with the other network device, causing information associated with the MKA state of the network device and information associated with the MKA session to be stored in a data structure, after causing the information associated with the MKA state of the network device and the information associated with the MKA session to be stored in the data structure, determining that the network device has become available after being temporarily unavailable; upon determining that the network device has become available, causing the network device to be updated based on the information associated with the MKA state of the network device and the information associated with the MKA session stored in the data structure; After causing the network device to be updated, sending an MKA packet to the other network device via the MKA communication link; determining that the MKA session has not ended based on sending the MKA packet to the other network device via the MKA communication link; The one or more instructions that cause the one or more processors to determine that the MKA session has not ended cause the one or more processors to: A message identifier identifying the MKA packet; determining, based on a final message identifier of the MKA session stored by the other network device, that the message identifier of the MKA packet is next in sequence; as well as At least one action is performed by the network device based on determining that the MKA session has not ended.
17. The non-transitory computer-readable medium of claim 16, wherein the message identifier of the MKA packet corresponds to a message identifier of the MKA session when the network device becomes temporarily unavailable.
18. The non-transitory computer-readable medium of claim 16, wherein the one or more instructions that cause the one or more processors to determine that the MKA session has not ended cause the one or more processors to: A determination is made as to whether the network device has received one or more packets associated with the MKA session from the other network device via the MKA communication link.
19. The non-transitory computer-readable medium of claim 16, wherein the network device determines that the MKA session has not ended, The one or more instructions that cause the one or more processors to perform the at least one action cause the one or more processors to: The MKA session is continued by reactivating the MKA state.
20. The non-transitory computer-readable medium of claim 16, wherein the network device determines that the MKA session has not ended, wherein the one or more processors are caused to perform the at least one action A key update procedure is caused to be performed for the MKA session.
