Topology automatic discovery and hardware fast convergence mechanism when CXLMesh cluster nodes are online or offline
By employing bidirectional adjacency records and ordered channel resource dependencies in CXL-related Mesh clusters, the problem of route misuse caused by topology changes was solved, achieving fast and reliable route convergence and service recovery, and avoiding unnecessary interruptions.
Patent Information
- Application Number
- CN202611563189.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-10
- Publication Date
- 2026-11-24
AI Technical Summary
In CXL-related Mesh clusters, after a topology change, existing technologies can easily lead to the mixing of old and new routes, resulting in service interruptions and errors. Furthermore, a complete network shutdown can affect unrelated services.
Candidate topologies are established through bidirectional adjacency records to form ordered channel resource dependencies. Dependencies are registered and counted before packet admission to form a joint dependency graph of old and new routes. A loop-free candidate configuration is selected and activated after the freeze confirmation is complete, ensuring that service recovery only occurs after the consistent candidate route is installed.
It reduces errors caused by network-wide outages and premature local handovers, improves the accuracy of routing configuration and the reliability of service recovery, and reduces the impact on unrelated services.
Smart Images

Figure CN123164012A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to control circuit technology for interconnecting composable computing clusters, specifically to hardware discovery, affected route location, and phased convergence mechanism for changes in nodes and connections in CXL-related Mesh clusters. Background Technology
[0002] US Patent 9170971B2 discloses cluster fabric discovery and routing information maintenance, and US Patent 7929428B2 discloses switch dynamic rerouting after fault link detection. Neighbor discovery and post-fault route updates are already publicly available; partial updates also require checking the shared resource dependencies between candidate paths and keep-alive paths.
[0003] If a node is identified as online solely based on the valid signal of the local link, residual information from remote resets or unidirectional connection anomalies may create non-existent topology edges. After a topology change, the time it takes for each switching node to complete the new table write varies, and local switching may lead to the mixing of old and new routes; to avoid this mixing, pausing the entire network each time will affect services unrelated to the change.
[0004] This invention provides a hardware-executed adjacency confirmation, dependency location, and installation activation mechanism for the control plane, without automatically equating link online status with the availability of new memory resources or the completion of existing transactions. Summary of the Invention
[0005] This prevents one-way or expired adjacency information from entering the active topology and ensures that affected services are only restored after a consistent candidate route is installed, reducing errors caused by network-wide outages and premature local handovers.
[0006] This includes: establishing candidate topologies through bidirectional adjacency records, representing service routes as ordered channel resource dependencies; registering potential dependencies and incrementing their corresponding counts before packet admission; latching, for each dependency location, the crossing flag where a packet cannot revert to that location and the release flag where the previous resource was actually released, and clearing the registration and decrementing the count only when the two flags match the same packet, route generation, dependency location, and resource allocation instance during normal forwarding; forming a joint dependency graph of old and new routes when the topology changes, selecting a set of old dependencies to make the joint graph acyclic after removing the set of old dependencies; freezing all generation entries of the selected old dependencies, and forming a cutoff confirmation after the freeze confirmation is complete and the selected counts are all zero; activating the candidate after the candidate configuration installation, adjacency verification, and cutoff confirmation are all satisfied, and old packets that have exited the selected dependencies continue to be completed according to the old configuration, and the old configuration is recycled after all references are exited.
[0007] Adjacent ports form bidirectional adjacency records that bind the identities, ports, and startup generations of both ends. The topology control circuit only establishes candidate edges when the records correspond to each other and the stability condition is met. The control circuit quickly forms the affected set based on the inverted index of edge-to-route dependencies, closes faulty ports, and freezes related ingress injections.
[0008] The candidate topology generates new configurations for affected routes. After the participating nodes are installed, they send back confirmations of the binding snapshot number and the start generation. The control circuit verifies that the dependent adjacencies have not changed again and issues an activation token, which the entry point uses to restore the corresponding set. Routes outside the final affected set maintain their original configurations, and old transactions are either cleared according to their original configurations or explicitly marked as failed.
[0009] Bidirectional adjacency records can filter out single-end reports and remnants from old startup generations, preventing erroneous edges from triggering route configuration. Path dependency inverted indexes reduce the need to search all paths sequentially, separating the freezing of affected ingresses from the continued operation of unrelated ingresses.
[0010] Separating installation confirmation from final activation prevents "routing table already written on local machine" from directly triggering service recovery. If adjacency changes again after candidate nodes are formed, the old preparation confirmation becomes invalid, preventing the use of outdated configurations during topology fluctuations. Fast convergence is achieved by reducing unnecessary pauses and redundant software involvement; the specific timeframe depends on node size and control channel status. Attached Figure Description
[0011] Figure 1 This is a hardware structure diagram of the discovery, dependency localization, and activation gating of the present invention.
[0012] Figure 2 This is a timing diagram for the bidirectional adjacency confirmation and configuration activation of the present invention.
[0013] Figure 3 This is a partial freeze and recovery diagram of the affected route set according to the present invention.
[0014] Figure 4 This invention extends the set of fault paths to a shared resource dependency closure graph.
[0015] Figure 5 This is a diagram illustrating the relationship between the dual-event-dependent exit and cutoff confirmation of the present invention.
[0016] Figure label: 1. Port adjacency detector; 2. Topology controller; 3. Adjacency state RAM; 4. Edge change FIFO; 5. Path dependency inverted index RAM; 6. Routing calculator; 7. Ready confirmation table; 8. Ingress gate. Detailed Implementation
[0017] Figure 1The diagram illustrates a port adjacency detector 1, a topology controller 2, an adjacency state RAM 3, an edge change FIFO 4, a path dependency inverted index RAM 5, a routing calculator 6, a readiness acknowledgment table 7, and an ingress gate 8. Topology controller 2 is a single authorized control entity that can be implemented within the management FPGA or switching chip control logic. Software sets the policy and authorization scope; routine discovery, inverted index lookup, configuration distribution, and acknowledgment bitmap processing are handled by hardware.
[0018] This implementation does not rely on multiple controllers unconditionally electing a master. If redundant controllers are deployed, the old control is first isolated by a trusted management mechanism, and the new controller is assigned a new control generation; unisolated controllers cannot simultaneously issue valid activation tokens. When a controller is unreachable, the affected set remains closed or downgraded, and cross-partition access is not restored based on the assumption that a local partition has completed global preparation.
[0019] Each port maintains its own node identity (a), port (p), node startup generation (ba), current probe sequence number (sa), and challenge value (na). After sending HELLO(a,p,ba,sa,na), the peer (b) on port (q) replies with its own identity, startup generation (bb), challenge value (nb), and sends back the complete (a,p,ba,sa,na) sequence. The local end verifies this and then sends back nb. Both ends report the completed bidirectional correspondence records to the topology controller.
[0020] The topology controller marks a physical edge as CONFIRMED only when the (a, p, ba, b, q, bb) records at both ends are completely inverses, and the challenge value and probe round match. If a port has completed local training but the other end cannot return a challenge, it remains in the LINK_UP unconfirmed state. The challenge response is used to prove this bidirectional adjacency observation and does not automatically replace authentication of malicious nodes; when anti-forgery is required, control messages are authenticated by the configured authentication key or a protected management channel.
[0021] The node startup generation is updated after the node is reset and old messages are isolated. Old generations (HELLO or ready to acknowledge) cannot be concatenated with new generation nodes. If the device lacks a persistent startup counter, a new generation that does not conflict with valid old sessions can be assigned by the trusted manager upon access; it must not unconditionally start from zero on every reset and immediately accept old messages still in the network.
[0022] Newly added edges are added to the available candidate set only after passing a configurable number of consecutive acknowledgments or a stabilization time threshold, thus filtering out link jitter. The opposite strategy is employed for edge failures: upon detecting a link failure, the local end immediately sets a port failure mask to prevent new headers from being sent to that port, and only then submits the deletion event to the controller. Whether the peer end reports in a timely manner does not affect the local end's decision to stop sending to the failed link.
[0023] Edge change records C=(edge_id, old_boot, new_boot, type, obs_seq) are entered into edge change FIFO4. edge_id contains the identities of the two endpoints and ports; type distinguishes between additions, deletions, and generational replacements; obs_seq is assigned observation sequence numbers by the controller according to the receiving order. When the queue overflows, the corresponding configuration activation is stopped and a complete adjacency snapshot is re-collected. Residual edges are not allowed to continue to be used after deletion events are lost.
[0024] The path dependency inverted RAM5 stores the inverse index of the set of edges actually used by each active path. The routing record `rid` is determined by the ingress group, destination group, and traffic class; a bitmap or compressed list of `rid` references each `edge_id`. Path and dependency indexes are generated simultaneously during configuration generation and take effect in the same configuration generation; new paths cannot be configured with old indexes.
[0025] When one edge changes, the set merge circuit reads the corresponding inverted index to form an initial affected set A, and then determines the final affected set based on resource dependency closures. When multiple edges change, their union is calculated and duplicates are removed. When an endpoint goes offline, all routing records pointing to that endpoint are added; new nodes generate new destination records, but paths that are still valid and do not require optimization do not need to be recalculated to pursue shorter paths. The control strategy can choose to expand A, but cannot shrink it to the point of omitting paths that truly depend on the faulty edge.
[0026] Figure 2 This illustrates the topology formation and configuration phase. First, the HOLD flag is set for the entry point corresponding to A, stopping the injection of new transactions; existing transactions that have already been admitted are still processed according to their old generation. Routing records unrelated to changes retain their original admission status. HOLD is for route injection control and does not mean that the underlying memory resources have been deregistered; the resource manager is separately responsible for memory ownership and data usage lifecycle.
[0027] The routing calculator 6 calculates affected paths from candidate adjacency snapshots. An implementable breadth-first search using equal-weighted edges is employed: the adjacency RAM stores a list of nodes to valid edges, the queue RAM stores nodes to be expanded, and the distance RAM and predecessor RAM store visited information. Expansion proceeds layer by layer from the target or specified root, with a fixed selection order determined by port number for nodes of the same distance. The number of nodes V and the number of edges E are limited by a configured upper limit, and resource insufficiency is reported instead of a truncated graph when queue capacity is insufficient.
[0028] After path generation, the channel dependency rules of the data network used should also be verified. For example, a valid tree can be selected and verified uplink and downlink rules can be used, or a deadlock-free route compiler supported by the platform can be used; the shortest distance decrease alone cannot automatically prove that there is no deadlock among multiple types of protocol resources. The new configuration must include the virtual channel and ingress authorization information required by the platform. This mechanism does not replace the underlying forwarding correctness verification with path discovery.
[0029] The candidate configuration is denoted as K=(snapshot,route_gen,A,participants,entries). `snapshot` is the candidate neighbor snapshot number, `route_gen` is the route generation, and `participants` is a list of nodes that must successfully install this configuration and their startup generations. The controller writes the relevant entries to the standby storage area of each node. After checking the table length, destination range, port-corresponding neighbors, and local resources, the node returns PREPARED(snapshot,route_gen,node,boot).
[0030] Prepare a bitmap using participants in Table 7. Only acknowledgments that are in the list and match the bootloader will be set; duplicate acknowledgments will not be counted repeatedly; acknowledgments not in the list will be ignored and recorded. Receiving a configuration command does not mean the installation is complete. Only after all entries and verification information are written will the valid bit in the standby storage area be set and PREPARED will be allowed.
[0031] Before issuing an ACTIVATE, the controller re-checks whether the edges that the candidate depends on still have matching bidirectional records, and whether there are any unprocessed related change events since the snapshot was created. If there are related deletions, generational changes, or resource rejections, the candidate becomes invalid, and all old prepared bits are no longer used for the new snapshot. For irrelevant changes that do not affect any path of the candidate, the candidate can be retained, and a separate task can be created for the irrelevant changes.
[0032] When channel dependencies between old and candidate configurations may form waiting loops, the required virtual channels and buffers are separated according to configuration generations, or the affected range is cleared of the old generation before the new generation is activated. Configuration gating also checks this resource condition, and cannot allow unrestricted mixing of configurations simply because they are individually reachable.
[0033] The `ACTIVATE(snapshot, route_gen, A, controller_gen)` method delivers data to the inbound gate controller 8 via the protected control path. The inbound gate requires that the local installation status, affected set identifier, and controller generation all match before releasing `HOLD`. The data packet carries the route generation or is associated with the complete configuration through an equivalent inbound context. The order in which control messages are received cannot be used as proof that older data packets have left the network.
[0034] The old configuration is retained for in-transit transactions. Old transactions that do not encounter a faulty port are allowed to complete naturally; old transactions that hit an actual faulty edge are returned as unreachable or with unknown execution results by the transport layer. The completion of route convergence only proves that new traffic has a usable path, and cannot be used to rewrite the successful results of old transactions. The old table storage area can only be reused after all entries of the old generation have stopped being injected and all related in-transit references have exited.
[0035] The planned node shutdown process includes several phases: DRAIN_REQUEST, HOLD, old transaction cleanup confirmation, resource service termination, and final removal of adjacencies. Unplanned node resets or power failures may render some transaction execution results unrecoverable. In such cases, the states of "not failed" and "result unknown" are retained respectively, and the upper layer decides on the recovery. Old atomic operations should not be automatically resent as if they were never executed simply because a new generation has been detected.
[0036] The control network employs a separate out-of-band management bus, or maintains virtual control channels and buffers isolated from data traffic on physical ports. When an in-band control path fails, a physically reachable control path can be used for re-convergence; partitions unreachable from the controller do not participate in activation requiring full readiness. It cannot be assumed that data routes awaiting updates are already capable of delivering their own activation messages.
[0037] For example, ABCD constitutes the active path, and the Mesh has a backup physical edge BD. After C is reset, B and D first close the egress points connecting to C; the inverted index locates all routing records using BC or CD. The controller establishes candidate paths via BD in a snapshot where BD is still valid after bidirectional confirmation, and confirms B, D, and necessary ingress points after installation. Late PREPAREDs issued by the old boot of C cannot be added to this snapshot; other services that do not pass through C at all maintain their original configuration.
[0038] Snapshots and routing generations use sufficiently wide counters, but all old control messages and old configuration references are still required to be cleared or isolated before the counters wrap around. Path dependency index error detection, adjacency record ECC errors, or inconsistent preparation bitmaps all keep the activation gate closed and output diagnostic events, and the above admission checks must not be bypassed.
[0039] This mechanism can detect scenarios such as inserting a one-way HELLO, duplicate confirmations, old boot messages, re-disconnection after installation, and loss of the partition controller. The necessary invariants are: each candidate edge has a bidirectional record for this round; activated routes only use the port identities confirmed in this snapshot; activation is not allowed if any necessary confirmation is missing; incomplete old transactions will not automatically gain a success status due to activation by the new configuration.
[0040] Inverted indexes can be organized in two ways: dense bitmaps and sparse lists. Taking a maximum of 1024 business route records as an example, a dense inverted index entry for one edge occupies 128 bytes; changes are handled by reading machine words and merging them bitwise. When the number of routes is large and single-edge references are sparse, a sorted list of `rid` is stored, and a deduplicated bitmap is used to form a candidate set. When index capacity is insufficient, a rollback to a full scan is allowed; actual path dependencies must not be omitted.
[0041] The topology controller's execution state is COLLECT, FREEZE, COMPUTE, INSTALL, RECHECK, ACTIVATE, or ABORT. COMPUTE latches the snapshot; INSTALL only accepts ready bits matching the snapshot; RECHECK simultaneously checks if the changed FIFO contains related unprocessed records; ACTIVATE issues a token but does not immediately release the old storage area; ABORT retains the freeze and the reason for the anomaly and revokes candidate valid bits. External software can read the status of each stage and the list of unprepared nodes.
[0042] The bitmap RAM is prepared using a node list index instead of the device-reported array offset. Upon receiving a PREPARED, the position of (node, boot) in the list is first checked, and then that position is set. The same node cannot appear repeatedly in the list. The required_count is generated based on the number of bits after deduplication. All preparations are made by bitmap equality judgment, rather than directly using an acknowledgment counter that can be incremented multiple times by repeated messages.
[0043] The path configuration and its dependent inverted index are first established in the pending version. Only after ACTIVATE is the dependency version referenced by the newly injected route switched. Old routes in transit are still supported for diagnosis by the old version index. If the path is found to contain unconfirmed or changed edges after the new configuration is generated, RECHECK will refuse activation and retain the edge_id that caused the rejection so that the corresponding adjacency can be re-collected.
[0044] To ensure unaffected routes continue to serve, version storage can be configured with active and candidate slots based on route record groups; invariant entries are stored in read-only shared storage, and multiple configuration slots are accessed via reference pointers. Switching between affected sets only updates the corresponding record group pointers, without requiring a single global storage area covering all services. The empty counts of old slots are merged according to their actual reference range, and new related updates are paused when there are insufficient candidate slots; shared invariant entries remain unchanged until all references are zeroed.
[0045] the following Figure 4 A conservative implementation is adopted, which involves completely draining all affected routes; Figure 5 Further utilize the pre-maintained future dependency register to shorten the segments that must wait. The two implementations are activated according to their respective confirmation conditions, without mixing empty proofs.
[0046] A path that avoids fault edges does not necessarily mean it will remain operational when any candidate configuration is active. New and old paths may share the same virtual channel and buffer pool, causing their acyclic wait relationships to merge into a loop. Therefore... Figure 4 After path-dependent location, resource dependency closure calculation is added, and only routes outside the closure are included as the final unaffected set.
[0047] Each service route stores not only the edges used but also a list of resource-dependent edges. Resource identities include the exchange node, physical port, virtual channel, and actual credit or buffer pool identity. If a packet holding resource u can request resource v, then the directed edge from u to v is registered, and protocol dependencies such as request to response are also included in the model. Virtual channels that only differ in name but share the same capacity pool are not treated as independent resources. A configuration upper limit is set for the number of resources and dependent edges; the hardware uses adjacency RAM and a bounded traversal stack to perform a depth-first search.
[0048] Starting from the initial set, strongly connected components are calculated in the joint dependency graph of candidate routes and old routes to be retained. Components with multiple vertices or self-loops indicate the presence of loop risks. Different channels and buffers are allocated to versions that can be practically isolated, and the graph is rebuilt. If isolation is not possible, the retained routes involved in the looped components are added to the frozen set, and new injections are stopped along with the initial set, old references are cleared, and then candidates are regenerated. The set can only be increased, up to a maximum of all routes. Activation is rejected if a candidate itself still has loops or insufficient capacity; freezing the entire network does not replace valid new configurations.
[0049] For example, a reserved path has a resource dependency from u to v, while a candidate path forms from v to u; the two cannot share the same set of resources and run simultaneously. If there are no independent generational resources, the controller will also include the reserved path in the set, waiting for its old references to be zeroed before activating the candidate. Paths without dependencies on u and v continue to be served. After the set is expanded, the set identifier and participation list are regenerated; the preparation bits originally used for smaller sets cannot be directly reused.
[0050] The final adjacency check only confirms that the installation conditions under the snapshot observed by the controller are met; it does not guarantee that the link will not be broken again. Each port continues to independently execute the immediate fault mask, and the ingress only accepts activation tokens that match the local installation set and control generation; new faults after activation initiate a new round of change processing. This local shutdown works in conjunction with global configuration verification to avoid misinterpreting propagating control messages as guarantees of continuous physical reachability.
[0051] Figure 5A more refined implementation than full route dumping is provided, suitable for configurations where paths are determined at admission and their length has a hardware limit. Each route stores a dependency sequence e0 to em, where ei represents the relationship between a packet requesting resource v while still holding resource u, including resource dependencies from protocol request to response; different nominal channels sharing the same capacity pool are merged into the same resource. If the set of possible subsequent dependencies for an adaptive path cannot be determined, the aforementioned full freeze and dumping method is used.
[0052] The controller maintains a future dependency register during normal operation, rather than inferring it from idle channels after a fault is detected. Before message injection, the controller increments the count for each possible dependency along the selected path and saves the exit bitmap in the message record. Injection is only allowed after all counts and registers are committed. The message irreversibly skips the dependency location and the actual release of the previous resource to generate events, which are then fed into the dependency exit flag RAM via the reserved control channel. The controller merges and deduplicates these events according to the following dual-event rules, clears the bitmap once, and decrements the count once.
[0053] The controller constructs a joint graph of dependencies that may still exist in the old generation, routes to be retained, and candidate dependencies. It uses a bounded depth-first traversal to find cycles, selecting dependencies from the cycle that are provided solely by the old generation and whose producers can be stopped, and adding them to set F until no cycles remain after removing F. F does not need to be mathematically minimal; it can be sorted by the number of affected routes or the current count. If a resource pair is also provided by a candidate, removing the old generation instance does not delete the candidate instance; if not all cycles can be broken, the candidate is recalculated or activation is rejected.
[0054] The inverted index that depends on the ingress route determines the freeze set, which must include all ingresses that may regenerate old dependencies in F. Ingress freeze confirmations are sequential with admission registration; messages that complete admission earlier are already counted, and freeze requests that complete earlier are either maintained or transferred to subsequent valid configurations. Once all freeze confirmations are received, the count in F can only be decremented; only when the count reaches zero is a cutoff confirmation issued for the bound topology snapshot, F, freeze set, and configuration generation. Preparation confirmations are still based on the final participant list; changes to the list or snapshot invalidate the confirmation.
[0055] For example, if the old dependency is from u to v, and the new dependency is from v to u, they form a loop. If F chooses the old path from u to v, there are two old packages when the entry point is frozen: Package A has not yet reached u, and Package B has released u and bypassed the dependency. Package A still holds the count, while Package B does not; the switch cannot be made prematurely because u is temporarily idle. After Package A bypasses and releases u, its count becomes zero, and the candidate becomes active. Subsequent acyclic paths of Package B and Package A can still run according to the old version. The old table continues to be retained until all references to it are removed.
[0056] Delayed exit messages only postpone the handover, not reduce the count prematurely; duplicate messages are suppressed by the bitmap. When a link failure prevents a packet from completing resource translation, relevant buffer cleanup and port isolation confirmations must be obtained before terminating its remaining registration; the result of the target operation is unknown and will be reported separately. When the count bit width is insufficient, new admissions are backpressured without wrapping around. This mechanism reduces the dependency segments that must be waited for and does not guarantee convergence under permanent failures or unisolated side effects.
[0057] When the same resource pair appears multiple times in a dependency sequence, each occurrence is recorded at a separate location. The count stops indicating that the packet may generate a dependency on that resource only after exiting at the last possible location. When F is selected, the loop in the graph is determined based on the actual resource pair, but freezing, counting, and exiting are grouped according to the old route generation and location. New and old instances of the same resource pair should not be mistakenly considered unrelated in loop detection due to different identity fields.
[0058] The dependency counter uses a bounded unsigned integer. Admission control first checks that all required count items for this message can be increased and latches these items; only when all capacity is successfully reserved will the count be increased and the message admission bit be published. When the count is full, adding new related old route messages stops, and wraparound or admission after saturation is not used; otherwise, subsequent decrementing may result in false zeros. Freezing and the publication of the count for this group share the same commit order, and the exit deduplication bit must be successfully cleared before the count can be decremented by one.
[0059] In pipelined or wormhole forwarding, the header advancing does not necessarily mean that the previous resource occupied by the tail has been released. The dependency exit flag RAM therefore stores pending_i, passed_i, released_i, and the resource allocation identity at position i, rather than using a single header position as a count decrement condition. The resource allocation identity consists of the actual resource number and the allocation generation of that resource; a new allocation generation must be used when the same port or buffer is reassigned to another packet. Unallocated future dependencies are still held in pending_i, and are bound to a specific instance after their previous resource is acquired.
[0060] `passed_i` is generated by the route submission circuit, indicating that the packet has irreversibly traversed the i-th dependency position on the fixed path, but does not indicate the completion of the entire packet. `released_i` is generated by the owner of the previous resource, indicating that the tail-end holding, buffer occupation, and accepted successor request relationships of this allocation instance have all ended; if the resource model also contains capacity that must be reserved before the response is returned, its release condition also overrides that capacity. Both events carry the packet identity, route generation, position i, and the bound allocation identity.
[0061] The event receiving circuit first verifies the identity and then sets the corresponding flag. When both passed_i and released_i are 1 and pending_i is 1, pending_i is atomically cleared and the count for that position is decremented. The side whose flag arrives first retains the waiting state, and repeated events only retain the set state. Exit records do not reuse their identity combinations until the event sender receives consumption confirmation or the sender has been isolated; when the bit width reaches the reuse boundary, new registrations are blocked and related old events are cleared.
[0062] For example, if an old route has a dependency from u to v, a candidate route introduces a dependency from v to u. Packet A's header has already passed the corresponding position, but its tail still holds u, so `passed` is 1 and `released` is 0; even if both producers are frozen, A is still counted in the old u-v dependency. Only after the owner of u finally releases the allocation instance can the two markers merge and the count be reset to zero. Conversely, if the release notification arrives first and the path commit notification arrives late, the count is also maintained. Thus, the severance confirmation dependency truly cannot be formed again, rather than being observed during a certain period of channel idle time.
[0063] Isolation is a termination path outside of the normal completion of two events. It must simultaneously confirm that the relevant actual resource is no longer held by the message, that the old successor request is no longer authorized, and that the late tail cannot enter the reused context, and then clear the remaining pending bits with a cascading termination confirmation. If the path has an unexpanded adaptive branch or resource re-entry and cannot be bounded, early exit at this position is prohibited, and a complete freeze and empty should be returned. Figure 5 The exit gate in the code only controls dependency counting; old tables and transaction references are still retained according to their respective actual termination conditions.
[0064] The Exit Flag RAM is an independent storage area within the topology controller 2, which, together with the Path Dependency Inverted RAM 5, stores the message-level exit status and the route-level generator set, respectively. The controller merges dual events, and the acknowledgment table 7 stores freeze and cut-off acknowledgments. The ingress gate controller 8 only consumes activation tokens that are consistent with the local installation configuration.
Claims
1. A method for automatic topology discovery and fast hardware convergence when CXLMesh cluster nodes go online or offline, characterized in that, include: Candidate topologies are established by bidirectional adjacency records, and service routes are represented as ordered channel resource dependencies. Register any potential dependencies that may arise before message access is granted and add the corresponding count; For each dependent location, a pass flag that a message cannot revert to cross that location and a release flag that the previous resource was actually released are latched. During normal forwarding, the registration is cleared and the count is decremented only when the two flags match the same message, route generation, dependent location, and resource allocation instance. When the topology changes, a joint dependency graph of the old and new routes is formed. A set of old dependencies is selected so that the joint graph after removing the set of old dependencies is acyclic. All generation entries of the selected old dependencies are frozen. A cutoff confirmation is formed after the freeze confirmation is complete and the selected counts are all zero. After the candidate configuration installation, adjacency verification, and cutoff confirmation are all satisfied, the candidate is activated. Old messages that have exited the selected dependencies continue to be completed according to the old configuration. The old configuration is recycled after all references are exited.
2. The method according to claim 1, characterized in that, The bidirectional adjacency record includes at least the identities of the two end nodes, the port identifiers of the two end nodes, the start generation of the two end nodes, and the challenge values sent by both parties and returned by the other end; when only the local link is valid or a single-end neighbor report is received, no candidate edge that can be used for routing is formed.
3. The method according to claim 1, characterized in that, Newly added edges are included in the candidate topology only after continuous and valid confirmations; the admission of faulty edges is immediately closed by the local port failure mask, and the deletion of topology records and route recalculation do not delay the local closure action.
4. The method according to claim 1, characterized in that, Dependency identity includes the previous resource, the next resource, and the generation of the old route to which it belongs. Ports or virtual channels with shared capacity are classified as the same actual resource. The selected set only removes old generation dependencies. If the candidate generation still uses the same resource pair, its dependency edge is retained. If the candidate itself has a cycle or if there is still a cycle after the set is removed, activation is rejected.
5. The method according to claim 1, characterized in that, The message record contains a bitmap of dependencies to be exited and a pass-through flag and a release flag for each position; when the previous resource is allocated for the first time, its resource number and allocation generation are bound to the position. The two flags can arrive out of order. When the identity matches and both are set, the pending exit bit is atomically cleared and the count is decremented. Repeated events are not decremented repeatedly; messages are only allowed after all count capacity is reserved and registered. If the capacity is insufficient, back pressure is maintained.
6. The method according to claim 1, characterized in that, When the topology control circuit receives an adjacency change related to a candidate configuration while waiting for confirmation, it invalidates the activation eligibility of the candidate configuration, increments the snapshot number, and recalculates. The preparation confirmation and activation token for the old snapshot were both rejected.
7. The method according to claim 1, characterized in that, The freeze confirmation and the entry admission registration share the sorting boundary; the overpass marker is generated by the route submission event when the subsequent path no longer returns to the dependent location, and the release marker is generated by the actual resource owner after the end of the last tick and the occupancy release; when the fault termination message is sent, the remaining registrations are cleared after the holding resources, submitted applications and late last tick paths corresponding to the location are isolated, and isolation confirmation is not replaced by timeout or header movement.
8. The method according to claim 1, characterized in that, Topology control messages are transmitted through control channels or out-of-band management channels with independent reserved resources; partitions disconnected from the topology control circuit keep their relevant entries closed, and configurations that require confirmation from other partitions are not activated by a single partition on their own.
9. The method according to claim 1, characterized in that, The entry point saves references to and emptying states of the old generation when switching route configurations. The new generation is only applied to new injection transactions after obtaining the activation token. The old configuration is only recycled after the old generation stops injection and the related in-transit references exit.
10. A cluster topology control device, characterized in that, It includes an adjacency state RAM, a challenge response circuit, an edge change FIFO, a path dependency inverted index RAM, a dependency exit flag RAM, an affected set merging circuit, a candidate route calculation circuit, a preparation confirmation bitmap RAM, and an activation gating circuit. Each circuit is connected via a hardware command queue and configured to perform the method described in any one of claims 1 to 9.
Citation Information
Patent Citations
Switch for dynamically rerouting traffic due to detection of faulty link
US7929428B2
Fabric discovery for a cluster of nodes
US9170971B2
