Test frame generator for simulating network traffic load at line rates throughout a structure
By introducing a test frame generator into the switch architecture, and using the switch's ingress and egress ports to generate and receive test frames, the problem of relying on computing nodes in supercomputer-scale switch architecture testing is solved, enabling efficient network traffic testing and problem differentiation.
Patent Information
- Application Number
- CN202511378256.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2025-05-20
- Filing Date
- 2025-09-25
- Publication Date
- 2026-11-20
AI Technical Summary
In supercomputer-scale switch architectures, relying on compute nodes for testing is time-consuming and makes it difficult to distinguish between architecture-related and node-related issues. Existing port-specific Ethernet testing equipment cannot be effectively scaled.
By introducing a test frame generator into the switch architecture, test frames simulating real-world application loads can be generated and received using the switch's ingress and egress ports, enabling line-rate network traffic testing and avoiding reliance on the stability of computing nodes.
It enables efficient testing of switch structures without relying on computing nodes, can distinguish between structure-related issues and node-related issues, and supports comprehensive testing of large network structures.
Smart Images

Figure CN123145192A_ABST
Abstract
Description
[0001] Government-funded research statement This application was made with the support of the government under contract number H98230-23-C-0350 granted by the Maryland Procurement Office. The government holds certain rights to this invention. Background Technology
[0002] The switch fabric in a supercomputer-scale system can comprise thousands of switches and over 100,000 links, necessitating comprehensive testing to ensure proper functioning. While most fabric traffic during normal use originates from and terminates at compute nodes connected to edge ports, relying on these nodes for testing presents challenges. For example, if the fabric is installed before the compute nodes, valuable time may be wasted waiting for nodes to become available for testing purposes. Furthermore, compute nodes typically have complex hardware and multi-layered software stacks that may be unreliable during initial deployment, making it difficult to distinguish between fabric-related and node-related issues. While port-specific Ethernet test equipment may be sufficient for small systems, it does not scale effectively for large fabrics. Attached Figure Description
[0003] Figure 1 A diagram illustrating an exemplary network architecture according to one aspect of this application is shown.
[0004] Figure 2 The illustration shows an exemplary test frame data packet with a header according to one aspect of this application.
[0005] Figure 3 The illustration shows an environment for transmitting test frames between an ingress port and an egress port according to one aspect of this application.
[0006] Figure 4A The diagram illustrates an exemplary communication according to one aspect of this application, which facilitates a test frame generator that generates test frames with commands that do not require a response.
[0007] Figure 4B The diagram illustrates an exemplary communication according to one aspect of this application, which facilitates a test frame generator having test frames that require a response.
[0008] Figure 4C The diagram illustrates an exemplary communication according to one aspect of this application, which facilitates a test frame generator having a test frame with a command indicating a sequence of actions to be performed.
[0009] Figure 4DThe diagram illustrates an exemplary communication according to one aspect of this application, which facilitates a test frame generator having a command indicating a sequence of actions to be performed and a test frame containing urgent data as part of the data to be read based on the sequence of actions.
[0010] Figure 5 The diagram illustrates a test frame generator component in a network device according to one aspect of this application, which includes a transmitting engine and a receiving engine.
[0011] Figure 6A A flowchart illustrating a method for using a system for testing a frame generator, according to one aspect of this application, is presented, which simulates network traffic load at a line rate throughout the architecture.
[0012] Figure 6B A flowchart illustrating a method for using a system for testing a frame generator, according to one aspect of this application, is presented, which simulates network traffic load at a line rate throughout the architecture.
[0013] Figure 6C A flowchart illustrating a method for using a system for testing a frame generator, according to one aspect of this application, is presented, which simulates network traffic load at a line rate throughout the architecture.
[0014] Figure 7 The illustration shows a computer system according to one aspect of this application that facilitates the use of a test frame generator, which simulates network traffic load at a line rate throughout the architecture.
[0015] Figure 8 The illustration shows a computer-readable medium according to one aspect of this application that facilitates the use of a test frame generator, which simulates network traffic load at a line rate throughout the structure.
[0016] In these accompanying figures, similar reference numerals refer to the same figure elements. Detailed Implementation
[0017] This application provides a test frame generator that simulates various real-world application loads, which helps to test network structures (including network devices, such as switches) without relying on the setup or stability of compute nodes.
[0018] As mentioned above, testing switch architectures in supercomputer-scale systems (which can include thousands of switches and over 100,000 links) can be performed by sending traffic from compute nodes connected to edge ports (simulating normal usage). However, relying on these compute nodes to test switch architectures can be challenging. For example, if the architecture is installed before the compute nodes, valuable time may be wasted waiting for the nodes to become available for testing purposes. Additionally, compute nodes typically have complex hardware and multi-layered software stacks that may be unreliable during initial deployment, making it difficult to distinguish between architecture-related and node-related issues. While port-specific Ethernet test equipment may be sufficient for small systems, it does not scale effectively for large architectures.
[0019] To address these limitations, the described aspect provides a system that can generate realistic test traffic simulating real-world application loads and facilitates network infrastructure testing without relying on the setup or stability of compute nodes. Instead of using compute nodes, the described aspect can use the ingress and egress ports of switches within the infrastructure as alternative traffic endpoints for infrastructure testing. Each port of each switch in the infrastructure can include a test frame generator, which can include a sending engine for generating test frames, a receiving engine for receiving test frames, and a receive buffer for storing the received test frames, as described below. Figure 5 As described, each test frame generator can have the ability to inject traffic at a line rate. Therefore, the network can be fully utilized for testing or performance analysis purposes.
[0020] For example, a port on a sending switch (“ingress port”) can inject test frames into traffic sent through the network structure to a port on a receiving switch (“egress port”). The corresponding test frame can indicate (for example, as described below regarding…) Figure 2 As described, the header indicates that the receiving port will transfer the test frame and perform an action based on the command or instruction indicated in the test frame. The command or instruction in the corresponding test frame sent by the port can prompt or trigger the receiving port to perform an action, such as: COUNT_AND_DROP, which triggers the receiving port to increment the success counter and discard the packet; REPLY, which prompts the receiving port to respond with the COUNT_AND_DROP command; and CALL, which triggers the receiving port to execute a previously stored or programmed sequence of instructions. The following is about... Figure 3 and Figures 4A to 4D Examples of generating test frames using these various commands are provided. These examples illustrate the aspects described in the test frame generator that enable the generation of traffic patterns common in high-performance computing (HPC) and artificial intelligence (AI) systems.
[0021] Figure 1 Figure 100 illustrates an exemplary network architecture according to one aspect of this application. Figure 100 may include a network 110 of switches (which may be referred to as a “switch structure,” “network structure,” or “structure”) and may include switches 112, 114, 116, 118, and 120. Each switch may have a unique address or identifier within switch structure 110. Various types of endpoints, processing nodes, devices, and networks may be coupled to switch structure. For example, storage array 130 may be coupled to switch structure 110 via switch 112; HPC network 132 (e.g., InfiniBand, Slingshot, or any other high-performance network) may be coupled to switch structure 110 via switch 114; multiple end hosts (such as host 136 and host 138) may be coupled to switch structure 110 via switch 118; and Internet Protocol (IP) / Ethernet network 134 may be coupled to switch structure 110 via switch 120. HPC network 132 may include multiple networked computers and storage devices that simultaneously run programs to perform different complex and performance-intensive tasks. IP / Ethernet network 134 may include application layer protocols between physical Ethernet cabling and IP-based network devices, including communication via Transport Communication Protocol (TCP) / IP and User Datagram Protocol (UDP) packets.
[0022] Typically, a switch can have edge ports and fabric ports. Edge ports can be coupled to devices outside the fabric. Edge ports can be used as ingress ports (when receiving data from external devices) or as egress ports (when sending data to external devices). Fabric ports can be coupled to another switch within the fabric via a fabric link. Fabric ports can also be used as ingress ports (when receiving data from another switch within the fabric via a fabric link) or as egress ports (when sending data to another switch within the fabric via a fabric link). Typically, traffic can be injected into switch fabric 110 via the ingress edge port of a switch and leave switch fabric 110 via the egress edge port of another (or the same) switch. An ingress link can couple the NIC of an edge device (e.g., an HPC terminal host) to the ingress edge port of a switch in the network fabric. Switch fabric 110 can then transmit traffic to the egress edge port, which can then forward the traffic to the destination edge device via another NIC. Packets can be forwarded in switch fabric 110 based on their Layer 2 address (“fab address”). In an Ethernet-based switch fabric, the Layer 2 address can be an Ethernet Media Access Control (MAC) address.
[0023] In the described aspects, traffic can be injected into switch structure 110 as test frames, which are generated by ingress ports serving as edge ports of switch structure 110 and received by egress ports serving as edge ports of switch structure 110. Switches with edge ports in switch structure 110 may include test frame generator components that allow these switches (e.g., 112, 114, 118, and 120) to be used as ingress ports capable of generating test frames with specific commands or as egress ports capable of receiving test frames with specific commands. In some aspects, any switch or port in switch structure 110 can inject traffic into switch structure 110 by generating test frames in the manner described herein. For example, a port on switch 116 can be configured as an edge (ingress or egress) port for testing purposes by redefining the boundaries of switch structure 110, while still maintaining only a physical connection to other switches in switch structure 110. Therefore, any port of any switch used as an ingress port in switch architecture 110 can inject test traffic based on instructions programmed into the random access memory (RAM) associated with that switch, and any port of any switch used as an egress port in switch architecture 110 can receive the test traffic and forward test frames for further processing. This eliminates or avoids the requirement that traffic originating only from computing nodes or entities outside of switch architecture 110 be needed to properly test switch architecture 110 itself.
[0024] Additionally, any switch within switch fabric 110 or any entity outside switch fabric 110 can monitor test traffic generated by and destined for those switches. Such fabric switches or external entities can also configure switches or switch fabric 110 based on the monitored test traffic. In some aspects, a fabric manager associated with a switch can monitor test traffic and configure the switch based on policies or rules known to the switch. In other aspects, a central entity or external entity associated with a switch or switch fabric can monitor test traffic and configure the switch or switch fabric 110 by applying a predetermined set of rules determined by the system, users (e.g., users with expertise or specific knowledge of switch fabrics), or administrative users (e.g., users with permissions to set or modify switch configurations).
[0025] Figure 2Figure 200 illustrates an exemplary test frame data packet with a header according to one aspect of this application. In Figure 200, the structure-specific test frame 210, Ethernet test frame 240, and User Datagram Protocol (UDP) test frame 250 may each include a specific header indicating that the frame was generated by a Test Frame Generator (TFG). Each test frame may further include a TFG header and a payload.
[0026] For example, a structure-specific test frame 210 may include a structure-specific header 212, where the value of the “Label” field 213 is “TFG”, indicating that the frame was generated by a test frame generator. As another example, an Ethernet test frame 240 may include an Ethernet header 244, where the value of the “Ethertype” field 245 is “TFG”, indicating that the frame was generated by a test frame generator. In yet another example, a UDP test frame 250 may include: an Ethernet header 254; an IP header 256; and a UDP header 258, where the value of the “Dest_port” field 259 is “TFG”, indicating that the frame was generated by a test frame generator.
[0027] Test frames (e.g., Figure 2 The TFG-specific portion of test frames 210, 240, and 250 may include: a TFG header 220; a TFG payload 230; and other fields (not shown). The TFG header 220 may include: a command field (“cmd”) 222 indicating the command to be executed, such as COUNT_AND_DROP, REPLY, or CALL; the context of sending the frame (“send_cntx”) 224, which may be, for example, an integer value within a predetermined range, such as 0 given the range 0-7; the context of receiving the frame (“recv_cntx”) 226, which may be, for example, an integer value within a predetermined range, such as 8 given the range 8-15; and data associated with the command (e.g., “data_union”) 228, which may include the data of the command, the size of the response or reply (e.g., in...). Figure 4C The pseudocode 460 indicates "data_union.reply_size" or the offset in instruction RAM (e.g., in...). Figure 4C The pseudocode 452 indicates "data_union.offset".
[0028] Figure 3The illustration depicts an environment 300 according to one aspect of this application, including the transmission of test frames between an ingress port and an egress port. Environment 300 may include a source 310 and a destination 350, which may be endpoints or nodes (e.g., compute nodes) coupled to edge ports of a network structure. Source 310 may transmit data destined for destination 350 (via communication 362) to an ingress port 320 of an edge switch via structure 330 (via communication depicted as 364 and 366 and similar, for example...). Figure 1 Traffic between switches 112 and 118 via switch structure 110). Egress port 330 (of the same or different edge switches) can receive data (via communication 366).
[0029] Additionally, the described aspects may include the TFG transmitting engine 322 at the ingress port 320 and the TFG receiving (“Recv”) engine 332 at the egress port 330. Note that a single network device may include both an ingress port (and its corresponding TFG transmitting engine) and an egress port (and its corresponding TFG receiving engine), as described below regarding... Figure 5 What is depicted.
[0030] Ingress port 320 can generate test frames through its TFG transmission engine 322, and the test frame can include in its header an indication of how the frame is to be processed (e.g., as mentioned above regarding...). Figure 2 (As described). A test frame may include commands to be executed by the destination port (e.g., by the TFG receiving engine of the egress port). The TFG sending engine 322 may send the test frame to the ingress processing block 324 (via communication 370). The ingress processing block 324 may send the test frame through structure 330 (via communications depicted as 364 and 366). The egress port 330 may receive the test frame through the egress processing block 336 (via communication 366). The egress processing block 336 may determine how to process the data packet, e.g., continue to the destination or transfer it to another unit. Upon receiving a test frame, the egress processing block 336 may determine that the data packet is a TFG test frame and transfer the data packet (indicated by the dashed boundary line as transfer data packet 334) (via communication 372) to the TFG receiving engine 332 of the egress port 330. After receiving the test frame (via communication 372), the TFG receiving engine 332 may process the commands indicated in the test frame. Examples of commands may include, for example: (1) “COUNT_AND_DROP”, which prompts the receive port to increment the success counter and discard the packet; (2) “REPLY”, which prompts the receive port to return the COUNT_AND_DROP command; and (3) “CALL”, which triggers the receive port to execute a programmable instruction sequence. The following is about... Figures 4A to 4D These commands will be described further.
[0031] Figure 4A Figure 400 illustrates an exemplary communication according to one aspect of this application, which facilitates a test frame generator having test frames with commands that do not require a response. Figures 4A to 4D In the test, the sending context or request context can be identified by an integer in the range of 0 to 7, while the receiving context or response context can be identified by an integer in the range of 8 to 15. Furthermore, test frames can be associated with read requests, read responses, write requests, or write responses, including Remote Direct Memory Access (RDMA) requests such as PUT or GET. Each of these RDMA requests can include a request and a response (i.e., PUT request, PUT response, GET request, and GET response). For a PUT request, a payload (4096 bytes, e.g., ...) can be generated on the request side. Figure 4A As indicated in [the document], for GET requests, a payload can be generated on the response side (as described below). Figure 4C (As indicated). Both PUT and GET requests can be implemented using a SEND command on a frame indicating a REPLY (response). Additionally, in Figures 4A to 4D The number and size of data packets used in the communications depicted are for illustrative purposes only. Other numbers and sizes of data packets may be used.
[0032] Figure 400 may include an ingress port 402, which generates test frames and sends them to an egress port 404 via structure 406. The generated test frames can be identified by context 0 on the sending side (410) and by context 1 on the receiving side (414). The TFG sending engine of ingress port 402 (…) Figure 4A Not shown in the text; as mentioned above. Figure 3 The TFG sending engine 322 (described in the text) can generate a command (as depicted in pseudocode 412) to send 100 data packets to the destination, specifying the destination address (destination structure address (“DFA”), receiver context (“1”), size (“4096”), and command (“COUNT_AND_DROP”). Each data packet can be sent via structure 406 (via communication 417).
[0033] After receiving each of the 100 data packets, the TFG receive engine at egress port 404 ( Figure 4A Not shown in the text; as mentioned above. Figure 3 The TFG receiving engine 332 described in the document can execute the indicated COUNT_AND_DROP command, for example, by incrementing the success counter and discarding packets (as depicted by element 416).
[0034] Figure 4B Figure 420 illustrates an exemplary communication according to one aspect of this application, which facilitates a test frame generator with test frames that require a response. Figure 420 may include an ingress port 422 that generates test frames and sends them to an egress port 424 via structure 426. The generated test frames may be identified by context 0 on the sending side (430) and by context 8 on the receiving side (434). The TFG sending engine (not shown) of ingress port 422 may generate a command (as depicted in pseudocode 432) to send 100 data packets to a destination, specifying the destination address (“DFA”), receiver context (“8”), size (“4096”), and command (“REPLY”). Each data packet may be sent (via communication 437) via structure 426.
[0035] After receiving each of the 100 data packets, the TFG receive engine at egress port 424 ( Figure 4B (Not shown in the image) can process the corresponding data packets (e.g., by decoding the corresponding data packets and performing certain checks). The TFG receive engine can pass the data packets to the TFG send engine at egress port 424 ( Figure 4B (Not shown in the diagram), the TFG sending engine can execute the indicated REPLY command (as depicted in pseudocode 436) for example by sending a response packet back to ingress port 422. The response packet may indicate: the sender structure address as the destination ("dest=recv.src_addr"), with a value of "SFA"; the context to which the response packet is to be sent ("cntx=recv.src_cntx"), with a value of "0"; the size of the response packet ("size=recv.reply_size"), with a value of "64"; and the command ("COUNT_AND_DROP"). Each response packet can be sent back via structure 426 (via communication 438).
[0036] After receiving each of the 100 response packets, the TFG receive engine at ingress port 422 ( Figure 4B (Not shown) The indicated COUNT_AND_DROP command can be executed, for example, by incrementing a success counter and discarding packets. Ingress port 422 can respond by sending 100 packets to egress port 424 and waiting for 100 expected response packets, as indicated by "Wait(100)" (432).
[0037] In some aspects, a request port (e.g., ingress port 422) can generate a request test frame associated with a first traffic category (e.g., the traffic category indicated by one or more fields in the test frame), and a REPLY command in the request test frame (e.g., a request test frame sent via communication 437) can instruct a response test frame to be associated with a different traffic category. A receive or response port (e.g., egress port 424) can respond with a response test frame associated with a second traffic category different from the first traffic category (e.g., a response test frame sent via communication 438). By requesting response packets from different traffic categories, the described aspects can generate additional traffic patterns common in HPC and AI systems.
[0038] Figure 4C Figure 440 illustrates an exemplary communication according to one aspect of this application, which facilitates a test frame generator having test frames with commands indicating a sequence of actions to be performed. Figure 440 may include an ingress port 442 that generates test frames and sends them to an egress port 444 via structure 446. The generated test frames may be identified by: context 0 (450) on the “original” sending side as request frames; context 1 (458) on the receiving side as request frames; and context 8 (454) on the original sending side as response frames. The TFG sending engine (not shown) of ingress port 442 may generate commands repeated ten times, wherein each time (or per round) a request frame or data packet (as depicted in pseudocode 452) is sent to the destination, the request frame or data packet indicating the destination address (“DFA”), the receiving context (“1”), the number of data packets (“1”), the size (“64”), the command (“CALL”), and the offset in the instruction RAM of the sending engine at the destination, “data_union.offset” (similar to…). Figure 2 (element 228 in the original text). When using a communication protocol such as a rendezvz protocol, the offset can be specified as "rendvz_get_offset" and can instruct the receiving engine to begin executing a program stored in its instruction RAM starting at that offset. Each request frame or packet can be sent via structure 446 (via communication 461).
[0039] After receiving each of the ten request frames or packets, the TFG receive engine at egress port 444 ( Figure 4C(Not shown in Figure 4) The TFG sending engine (not shown in Figure 4) can process the corresponding data packets and send them to the egress port 444. The TFG sending engine can execute the indicated CALL command by executing an action sequence, which includes generating multiple test frames and sending them back to the source or original sending side (as depicted in pseudocode 460). For example, the action sequence indicated by the CALL command may include sending 100 GET requests to the source, where the GET request data packets may indicate: the parameter address as the destination ("dest=param_addr"), with a value of "SFA"; the context to which the response data packets are to be sent ("cntx=param.cntx"), with a value of "8"; the number of data packets ("100"); the size of the response data packets ("size=recv.reply_size"), with a value of "64"; the command ("REPLY"); and the size of the response or reply ("4096"). Each GET request data packet can be sent back (via communication 462) through structure 446.
[0040] After receiving each of the 100 GET request packets, the TFG receiving engine on ingress port 442 ( Figure 4C (Not shown in the image) can process the corresponding data packets and pass them to the TFG sending engine at ingress port 442. Figure 4C (Not shown in the diagram), the TFG sending engine can execute the indicated REPLY command, for example, by sending a GET response packet back to the sending port (as depicted in pseudocode 456). The GET response packet may indicate: the sender structure address as the destination ("dest=recv.src_addr"), with a value of "DFA"; the context to which the response packet is to be sent ("cntx=recv.src_cntx"), with a value of "1"; the size of the response packet ("size=recv.reply_size"), with a value of "4096"; and the command ("COUNT_AND_DROP"). Each GET response packet can be sent back via structure 446 (via communication 463).
[0041] After receiving each of the 100 GET response packets, the TFG receiver engine on egress port 444 ( Figure 4C (Not shown) The indicated COUNT_AND_DROP command can be executed, for example, by incrementing a success counter and discarding packets. Egress port 444 can respond by sending 100 GET request packets to ingress port 442 and waiting for 100 expected GET response packets, as indicated by “Wait(100)” (460).
[0042] Figure 4D Figure 470 illustrates an exemplary communication according to one aspect of this application, which facilitates a test frame generator having a command indicating a sequence of actions to be performed and a test frame containing urgent data as part of data to be read based on the sequence of actions. The communication in Figure 470 is similar to... Figure 4C The communication in Figure 440 includes, but also "urgent data" sent from the source port to the receiving port. As described below, this urgent data may include a portion of data that would otherwise be requested as part of a GET request triggered by a CALL command on the receiving port side.
[0043] exist Figure 4D In Figure 470, an ingress port 472 may be included, which generates test frames and sends them to an egress port 474 via structure 476. The generated test frames can be identified by: context 0 (480) as a request frame on the "original" (i.e., ingress port 472) sending side; context 1 (488) as a request frame on the receiving side; context 8 (484) as a response frame on the original sending side; and context 8 (492) as a response frame on the receiving side. The TFG sending engine (not shown) of ingress port 480 can generate a command repeated 10 times, wherein each time (or per round) a request frame or data packet (as depicted in pseudocode 482) is sent to the destination, indicating the destination address ("DFA"), the receiving context ("8"), the number of data packets ("1"), the size ("64"), the command ("CALL"), and the offset "data_union.offset" in the instruction RAM of the sending engine at the destination (similar to...). Figure 2 (e.g., element 228 in the structure 476) (for example, when using a communication protocol such as a rendezvz protocol, this offset is specified as "rendvz_get_offset"). Each request frame or packet can be sent (via communication 495) through structure 476.
[0044] After receiving each of the ten requests, the TFG receiving engine at egress port 474 ( Figure 4D (Not shown in the image) can process the corresponding data packets and send them to the TFG sending engine at egress port 474. Figure 4D(Not shown in the image). The TFG sending engine can execute the indicated CALL command by performing an action sequence that includes generating multiple test frames and sending those test frames back to the source (as depicted in pseudocode 490). For example, the action sequence indicated by the CALL command may include sending 96 GET requests to the source, where the GET request packets may indicate: the parameter address as the destination ("dest=param_addr"), with a value of "SFA"; the context to which the response packets are to be sent ("cntx=param.cntx"), with a value of "8"; the number of packets ("96"); the size of the response packets ("size=recv.reply_size"), with a value of "64"; the command ("REPLY"); and the size of the response or reply ("4096"). Each GET request packet can be sent back (via communication 496) through structure 476.
[0045] After receiving each of the 96 GET request packets, the TFG receiver engine at ingress port 472 ( Figure 4D (Not shown in the image) can process the corresponding data packets and pass them to the TFG sending engine at ingress port 472. Figure 4D (Not shown in the diagram), the TFG sending engine can execute the indicated REPLY command, for example, by sending a GET response packet back to the sending port (as depicted in pseudocode 486). The GET response packet may indicate: the address of the receiving structure as the destination ("dest=recv.src_addr"), with a value of "DFA"; the context to which the response packet is to be sent ("cntx=recv.src_cntx"), with a value of "1"; the size of the response packet ("size=recv.reply_size"), with a value of "4096"; and the command ("COUNT_AND_DROP"). Each GET response packet can be sent back via structure 476 (via communication 497).
[0046] After receiving each of the 96 GET response packets, the TFG receiver engine on egress port 474 ( Figure 4D (Not shown) The indicated COUNT_AND_DROP command can be executed, for example, by incrementing a success counter and discarding packets. Egress port 474 can respond by sending 96 GET request packets to ingress port 472 and waiting for 96 expected GET response packets, as indicated by “Wait(96)” (490).
[0047] In addition to sending repeated CALL commands 10 times (as described above with respect to pseudocode 482), ingress port 472 can also send urgent data to the destination, for example, as part of the payload of a test frame. Instructions for sending urgent data may include: the receive structure address, indicated as the destination, with a value of "DFA"; the context to which the request packet is to be sent, with a value of "8"; the number of packets to be sent, with a value of "4"; the size of the response packet, with a value of "4096"; the command ("REPLY"); and "data.reply_size", with a value of "64".
[0048] After receiving each of the four urgent data packets, the TFG receiver engine at egress port 474 ( Figure 4D (Not shown in the image) can process the corresponding data packets and pass them to the TFG sending engine at egress port 474. Figure 4D (Not shown in the diagram), the TFG sending engine executes the indicated REPLY command, for example, by sending a PUT response packet back to the sending port (as depicted in pseudocode 494). The PUT response packet may indicate: the source structure address as the destination ("dest=recv.src_addr"), with a value of "SFA"; the context to which the response packet is to be sent ("cntx=recv.src_cntx"), with a value of "0"; the size of the response packet ("size=recv.reply_size"), with a value of "64"; and the command ("COUNT_AND_DROP"). Each response packet can be sent back via structure 476 (via communication 499).
[0049] After receiving each of the four urgent data response frames, the TFG receiver engine at inlet port 472 ( Figure 4D (Not shown) The indicated COUNT_AND_DROP command can be executed, for example, by incrementing a success counter and discarding packets (as depicted by pseudocode 482). Ingress port 472 can respond by sending four eager data request frames to egress port 474 and waiting for four expected eager data response frames, as indicated by “Wait(4)” (482).
[0050] Figures 4A to 4D The test frames and communications depicted are provided for illustrative purposes only. Test traffic patterns can be extended to any number of test frames, switches, and ports. For example, other communications, such as concurrently transmitted test frame traffic, can occur using multiple request and response contexts sent between multiple ingress and egress ports of multiple switches in a switch architecture.
[0051] Figure 5Figure 500 illustrates a test frame generator component in a network device according to one aspect of this application, including a transmitting engine and a receiving engine. Figure 500 may represent a test frame generator component in a switch or port. The switch or port may be used as both an ingress port (from which generated test frames can be transmitted) and an egress port (where generated test frames can be received). For example, Figure 500 may include a receiving engine 510, a receive first-in-first-out (FIFO) queue 512, and a transmitting engine 520. The transmitting engine 520 may include: a context state unit 522 that determines and maintains a context identified by a received test frame or a transmitted test frame; an arbitrator 524 that can time-multiplex multiple contexts; a receive FIFO data RAM 526 (for read access); an instruction RAM 528 that may include, for example, 1024 entries including a pre-programmed sequence of actions to be executed or invoked; a multiplexer 530; an instruction / command decoding and context state update unit 532; and a packet generator 534.
[0052] During operation, the transmitting engine 520 can generate test frames based on instructions programmed into the instruction RAM 528 for generating one or more test frames. Associated with the instruction RAM 528 may be a microcontroller implementing a small instruction set (including the "transmit" instruction). The transmitting engine 520 can execute a specific instruction after it is invoked in the instruction RAM 528. For example, executing a transmit instruction stored in the instruction RAM 528 can trigger selection by multiplexer 530 (via communication 560), decoding and context state updates by instruction / command decoding and context state update unit 532 (via communications 560, 562, and 568), and packet generation by packet generator 534 (via communication 564). The packet generator 534 can then transmit the generated test frame (via communication 566) to the ingress port of another switch.
[0053] Test frames generated in a similar manner can be received from the egress port by the receiving engine 510 (via communication 542). The test frame may indicate a command, such as COUNT_AND_DROP, REPLY, or CALL. If the command is COUNT_AND_DROP, the receiving engine 510 may send the COUNT_AND_DROP command (via communication 544) to the context state 522 unit. In this example, context state 522 may store 16 contexts, including request contexts numbered 0 to 7 and response contexts numbered 8 to 15. The context state 522 unit may increment a counter associated with the context of a received test frame and discard the test frame (e.g., by not performing any further action on the test frame).
[0054] If the command is a REPLY command or a CALL command, the receive engine 510 can send a REPLY command (via communication 546) or a CALL command (via communication 548) to store the command in the receive FIFO 512. The receive FIFO 512 can store, for example, 1024 entries shared across 16 contexts. The REPLY or CALL command can be sent (via communication 550) to the context state 522 unit. If the command is a REPLY command (and sent to the arbitrator 524 via communication 552), the arbitrator 524 can multiplex the command and process it by reading data from the receive FIFO (via communication 554). The command can be sent to the multiplexer 530, which can multiplex commands from the receive FIFO data RAM 526 and the instruction RAM 528. If the command is a CALL command (and is sent to arbitrator 524 via communication 552), arbitrator 524 can multiplex the command and process it by invoking a pre-programmed sequence of actions stored in instruction RAM 528 (via communication 556). The command can be sent to multiplexer 530, which can multiplex commands from receive FIFO data RAM 526 and instruction RAM 528.
[0055] After being selected by multiplexer 530, a command (based on a REPLY command) or instruction (based on a CALL command) can be sent (via communication 562) to instruction / command decoding and context state update unit 532, which can decode the instruction or command and (e.g., via communication 568) update the context state. Next, transmitting engine 520 can generate data packets (via communication 564) based on the decoded instruction or command through its packet generator 534, and subsequently, packet generator 534 can transmit the generated test frames (via communication 566) to the ingress port of another switch.
[0056] The above text is in Figures 4A to 4D and Figure 5 The switches described herein (having ingress and egress ports, as well as receive and transmit engines), and the switches in network structures (such as switch structure 110), can synchronize test frames injected into the structure based on the Precise Time Protocol (PTP), a protocol with relatively high precision for clock synchronization throughout the computer network. For example, in Figure 1In the switch structure 110, the ingress ports of switches 112 to 120 can generate and transmit test frames by synchronizing the global clock based on PTP. This allows the system to monitor the generated test traffic more efficiently and configure the switches accordingly.
[0057] Figure 6A A flowchart 600 illustrating a method for a system used in a test frame generator according to one aspect of this application is presented, the test frame generator simulating network traffic load at a line rate throughout the architecture. During operation, the system receives a first test frame destined for a second switch in a switch architecture from a first switch in the switch architecture, the first test frame indicating an instruction [REPLY] (operation 602) to cause the second switch to respond to the first test frame. For example, in Figure 4B In this process, ingress port 422 (first switch) generates a test frame indicating a REPLY command and sends this test frame (indicated by pseudocode 432) to egress port 424 (second switch) via communication 437. Therefore, egress port 424 (second switch) receives the test frame from ingress port 422 (first switch) (via communication 437). The above also relates to... Figure 4C Communication 462 from exit port 444 to entry port 442 describes the sending of test frames indicating the REPLY command.
[0058] The system responds to the first test frame by sending a second test frame, which includes a response data packet, to the first switch. This second test frame indicates the instruction [COUNT_AND_DROP] (operation 604) to increment a counter on the first switch and discard the second test frame. For example, in... Figure 4B In this context, egress port 424 responds to each of the 100 data packets (test frames) received from ingress port 422 via communication 437 by sending a test frame (via communication 438) containing a response data packet back to ingress port 422. The above also relates to... Figure 4C The communication 463 from the ingress port 442 to the egress port 444 describes the response to the test frame indicating the REPLY command.
[0059] The system monitors test traffic generated by and destined for the switches in the switch architecture. The test traffic includes a first test frame and a second test frame (Operation 606). For example, Figure 1 Entities inside or outside the network structure 110 can monitor, for example, entities located in... Figures 4A to 4DTest frames generated from any of the ingress ports 402, 422, 442, or 472, or the egress ports 404, 424, 444, or 474. In some aspects, the system can configure the switch architecture based on monitored test traffic; for example, internal or external entities can configure network architecture 110 based on monitored test traffic. Operation can be performed on... Figure 6B Continue at label A.
[0060] Figure 6B A flowchart 610, illustrating a method for a system according to one aspect of this application that facilitates testing a frame generator, which simulates network traffic load at a line rate throughout the architecture, is presented. The system receives a third test frame destined for a second switch from a first switch via a second switch. This third test frame indicates an instruction [COUNT_AND_DROP] (operation 612) to increment a counter on the second switch and discard the third test frame. For example, in... Figure 4A In this process, ingress port 402 (first switch) generates a test frame indicating the COUNT_AND_DROP command and sends the test frame to egress port 404 (second switch) via communication 417 (indicated by pseudocode 412). Therefore, egress port 404 (second switch) receives the test frame from ingress port 402 (first switch) (via communication 417). After receiving each test frame or data packet, egress port 404 can increment a success counter and discard the data packet (indicated by pseudocode 416).
[0061] In response to receiving the third test frame, the system increments the counter (operation 614). The system discards the third test frame, wherein the monitored test traffic further includes the third test frame (operation 616). For example, in Figure 4A In this process, after receiving each test frame or data packet, the egress port 404 can increment the success counter and discard the data packet (as indicated by pseudocode 416).
[0062] The system receives a fourth test frame destined for the second switch from the first switch via the second switch. This fourth test frame indicates a sequence of actions to be performed by the second switch, including generating multiple test frames [CALL] (operation 618). For example, in Figure 4C In this process, ingress port 442 (first switch) generates a test frame indicating a CALL command and sends the test frame (indicated by pseudocode 452) to egress port 444 (second switch) via communication 461. Therefore, egress port 444 (second switch) receives the test frame from ingress port 442 (first switch) (via communication 461).
[0063] The system executes an action sequence (operation 620) by generating multiple test frames through the second switch and sending these test frames to the first switch. Figure 4C In this process, egress port 444 can generate 100 GET request test frames and send these test frames (via communication 462) to ingress port 442. Each GET request test frame can indicate an instruction for causing the receiving port to provide a response packet (e.g., the REPLY command indicated in pseudocode 460).
[0064] The system responds by sending the generated test frame to the first switch and receiving data, wherein the monitored test traffic further includes a fourth test frame, the generated test frame, and the received data (operation 622). For example, in Figure 4C In this context, egress port 444 can receive GET response packets for each sent GET request (via communication 463), as indicated by "Wait(100)" in pseudocode 460. Operations can be performed on... Figure 6C Continue at label B.
[0065] Figure 6C A flowchart 630 illustrating a method for a system according to one aspect of this application that facilitates testing a frame generator that simulates network traffic load at a line rate throughout the architecture is presented. The system receives from a first switch via a second switch: a fifth test frame destined for the second switch, the fifth test frame indicating a reduced set of actions in the sequence of actions to be performed by the second switch, the reduced set of actions including generating a reduced number of test frames, and the reduced set of actions being associated with a reduced portion of the data; and a sixth test frame destined for the second switch, the sixth test frame indicating an instruction [REPLY] to cause the second switch to respond to the sixth test frame, the sixth test frame being associated with the remaining portion of the data (operation 632).
[0066] For example, in Figure 4DIn this process, egress port 474 (via communication 495) receives a fifth test frame destined for egress port 472 from ingress port 472. The fifth test frame may indicate a reduced set of actions (e.g., 96 out of 100) in the sequence of actions to be performed by egress port 474 (indicated by the CALL command in pseudocode 482). The reduced set of actions may include generating a reduced number of test frames (e.g., 96 GET requests instead of 100, indicated by pseudocode 490), and the reduced set of actions may be associated with a reduced portion of the data (e.g., 96 out of 100 test frames). Egress port 474 may also (via communication 498) receive a sixth test frame destined for egress port 474 from ingress port 472. The sixth test frame may indicate a [REPLY] instruction to cause the second switch to respond to the sixth test frame, which is associated with the remaining portion of the data (e.g., urgent data described in pseudocode 482) (operation 632).
[0067] The system responds to the sixth test frame by sending a seventh test frame, which includes a response data packet, to the first switch. This seventh test frame indicates an instruction to increment a counter on the first switch and discard the seventh test frame (operation 634). Figure 4D In this process, the egress port 474 responds to the sixth test frame by sending a seventh test frame (via communication 499), and the seventh test frame may indicate the COUNT_AND_DROP command (indicated by pseudocode 494).
[0068] In response to receiving the fifth test frame, the system executes a reduced set of actions (operation 636) indicated in the fifth test frame by sending a reduced number of test frames to the first switch. Figure 4D In response to receiving the fifth test frame (via communication 495), the exit port 474 can perform the reduced set of actions indicated in the fifth test frame by sending a reduced number of test frames (e.g., 96 instead of 100) (via communication 496) to the ingress port 472.
[0069] The system receives test frames containing a reduced portion of the indication data, wherein the monitored test traffic further includes a fifth test frame, a test frame with a reduced quantity, a test frame containing a reduced portion of the indication data, a sixth test frame, and a seventh test frame (operation 638). For example, in Figure 4D In this context, egress port 474 can respond to 96 GET requests sent from egress port 474 (via communication 496) to ingress port 472 by waiting for and receiving 96 GET response test frames (via communication 497), as indicated by "Wait(96)" in pseudocode 490. The operation returns.
[0070] Figure 6AFlowchart 600 in the above text can correspond to the above about Figure 4B The described test frames and communications; Figure 6B Operations 612 to 616 in flowchart 610 can correspond to the above-mentioned... Figure 4A The described test frames and communications; Figure 6B Operations 618 to 622 in flowchart 610 can correspond to the above-mentioned... Figure 4C The described test frames and communications; and Figure 6C Flowchart 630 in the above text can correspond to the above about Figure 4D The test frames and communications described. Figures 4A to 4D Other communications not described in the text are also possible. For example, Figures 6A to 6C The sequence of operations depicted may include additional communication and may not occur in the exact order depicted in flowcharts 600, 610, and 630, respectively. Furthermore, communication not depicted in this disclosure may also be possible; for example, multiple ingress and egress ports of multiple switches in a switch architecture may simultaneously transmit test frame traffic using multiple request and response contexts. Therefore, the ingress and egress ports can generate test traffic representing traffic experienced in HPC and AI applications.
[0071] Therefore, the described aspects can provide a test frame generator component at each port of the switches in the network structure. This component allows each port to generate test frames that simulate real network or application-based traffic loads at line rate throughout the network structure. The system can then monitor this test traffic and configure the switches accordingly. Generating test traffic for the purpose of monitoring and configuring the network structure can be performed without relying on the setup or stability of any compute nodes coupled to the switches in the network structure. This avoids the need to wait for compute nodes to complete setup and testing before deploying or testing the structure itself.
[0072] Figure 7 The illustration depicts a computer system 700 according to one aspect of this application, which facilitates the use of a test frame generator to simulate network traffic load at a line rate throughout the architecture. The computer system 700 includes a processor 702, memory 704, and storage device 706. Memory 704 may include volatile memory (e.g., random access memory (RAM)) that serves as managed memory and can be used to store one or more memory pools. Furthermore, the computer system 700 may be coupled to peripheral I / O user devices 710 (e.g., display device 711, keyboard 712, and pointing device 713). Storage device 706 includes a non-transitory computer-readable storage medium and stores an operating system 716, instructions 718, and data 730. The computer system 700 may include a processor 702, memory 704, and storage device 706. Figure 7The entities or instructions shown are fewer or more entities or instructions.
[0073] Instruction 718 may include instructions that, when executed by computer system 700, cause computer system 700 to perform the methods and / or processes described in this disclosure. Specifically, instruction 718 may include instruction 720 for receiving a first test frame destined for a second switch in a switch configuration from a first switch in the same configuration, the first test frame indicating instructions for causing the second switch to respond to the first test frame, as described above. Figure 4B The test frame described in the text is sent from the ingress port 422 to the egress port 424 via communication 437, and is further described above with respect to operation 602 of Figure 6.
[0074] Instruction 718 may include instruction 722 for responding to the first test frame by sending a second test frame, including a response data packet, to the first switch. This second test frame indicates instructions for incrementing a counter and discarding the second test frame, as described above. Figure 4B The response test frame is described in the section concerning the transmission of the data from the egress port 424 to the ingress port 422 via communication 438, and is further described above with respect to operation 604 of Figure 6.
[0075] Instruction 718 may include instruction 724 for monitoring test traffic generated by and destined for switches in a switch architecture, the test traffic including a first test frame and a second test frame, as described above regarding... Figure 1 The switch structure 110 and operation 606 in Figure 6 are described.
[0076] Instruction 718 may include instruction 726 for configuring at least one of the switch architecture, the first switch, the second switch, or another switch in the switch architecture based on the monitored test traffic. For example, in Figure 1 In this context, a structure manager associated with a switch or a switch in switch structure 110 (or an entity outside switch structure 110) can monitor test traffic and configure that switch or another switch in structure 110 based on the monitored test traffic, which includes all request test frames and response test frames.
[0077] Instruction 718 may include more than Figure 7 The instructions shown are further instructions. For example, instruction 718 may include instructions for performing the operations described above with respect to the following: Figure 1 and Figure 3 The environment; Figure 2 An example test frame data packet with a header; Figures 4A to 4D as well as Figure 5 Test frames and communication within; Figures 6A to 6C Flowcharts; and Figure 8 The instructions in CRM800.
[0078] Data 730 may include any data required as input or generated as output by the methods, operations, communications, and / or processes described in this disclosure. Specifically, data 730 may store at least: frames; test frames; data packets; commands; indicators of source or destination structure addresses; indicators of ports, ingress ports, or egress ports; identifiers of switches in a switch structure; instructions; data associated with RDMA commands, including PUT or GET requests or responses; counts; indicators of commands to be executed by the receiving port, including COUNT_AND_DROP, REPLY, and CALL; sequences of actions to be performed; sequences of instructions to be executed; data; the remainder of the data; eager data; headers; information in the headers; information associated with a request or response context; integers identifying the context; request test frames; response test frames; reply test frames; commands for reading or writing data; and commands for retrieving instructions from RAM.
[0079] Figure 8 The illustration shows a computer-readable medium (CRM) 800 according to one aspect of this application, which assists in a system for using a test frame generator to simulate network traffic load at a line rate throughout the architecture. The CRM 800 may be a non-transitory computer-readable medium or device storing instructions that, when executed by a computer or processor, cause the computer or processor to perform a method. The CRM 800 may store instructions 810 for receiving a first test frame destined for a second switch in a switch architecture via a second switch in the switch architecture, wherein the first test frame indicates instructions for causing the second switch to respond to the first test frame, as described above. Figure 4B The test frame described in the text is sent from the ingress port 422 to the egress port 424 via communication 437, and is further described above with respect to operation 602 of Figure 6.
[0080] CRM 800 can store instructions 820 for responding to a first test frame by sending a second test frame, including a response data packet, to the first switch. The second test frame indicates instructions for causing the first switch to increment a counter and discard the second test frame, as described above. Figure 4B The response test frame is described in the section concerning the transmission of the data from the egress port 424 to the ingress port 422 via communication 438, and is further described above with respect to operation 604 of Figure 6.
[0081] The CRM 800 can also store instructions 830 for monitoring test traffic generated by switches in a switch architecture and destined for those switches, wherein the test traffic includes a first test frame and a second test frame, as described above. Figure 1 The switch structure 110 and operation 606 in Figure 6 are described.
[0082] CRM 800 can include more Figure 8 The instructions shown are further instructions. For example, the CRM 800 can also store instructions for performing the operations described above with respect to the following: Figure 1 and Figure 3 The environment; Figure 2 An example test frame data packet with a header; Figures 4A to 4D as well as Figure 5 Test frames and communication within; Figures 6A to 6C Flowcharts; and Figure 7 Instruction 718 of computer system 700.
[0083] The term "network device" refers to any device, component, or computing entity that can provide a communication channel for data packets sent from a "processing node" or "endpoint node." A processing node or endpoint node can refer to a device, component, or hardware component that can be used as a source or destination for data, including, for example, control packets or data packets. An example of a network device could be a switch, as discussed above. Figure 1 The switches in switch architecture 110 are described above. Furthermore, in this disclosure, the switches in switch architecture 110 can be used as a source or destination for test data or test traffic (i.e., test frames generated by the test frame generator), as described above regarding... Figure 3 , Figures 4A to 4D and Figure 5 As described.
[0084] In general, the disclosed aspects provide a method, computer system, and computer-readable medium that facilitate a test frame generator for simulating network traffic load at a line rate throughout an architecture. During operation, the system receives a first test frame destined for a second switch in a switch architecture via a second switch in the switch architecture. This first test frame indicates an instruction [REPLY] to cause the second switch to respond to the first test frame. The system responds to the first test frame by sending a second test frame, including a response data packet, to the first switch. This second test frame indicates an instruction [COUNT_AND_DROP] to cause the first switch to increment a counter and discard the second test frame. The system monitors test traffic generated by and destined for the switches in the switch architecture, including the first and second test frames.
[0085] In a variation of this aspect, the system receives a third test frame destined for the second switch from the first switch via the second switch. This third test frame indicates a command [COUNT_AND_DROP] to cause the second switch to increment a counter and discard the third test frame. In response to receiving the third test frame, the system increments the counter. The system then discards the third test frame. The monitored test traffic further includes the third test frame.
[0086] In a further variation of this aspect, the system receives a fourth test frame destined for the second switch from the first switch via the second switch. This fourth test frame indicates a sequence of actions to be performed by the second switch, the sequence including the generation of multiple test frames [CALL]. The system performs the sequence of actions by generating the multiple test frames and sending them to the first switch via the second switch. In response to sending the generated test frames to the first switch, the system receives data, wherein the monitored test traffic further includes the fourth test frame, the generated test frames, and the received data.
[0087] In a further variation, the system receives from the first switch via the second switch: a fifth test frame
[495] destined for the second switch, which indicates a reduced set of actions [CALL] in the sequence of actions to be performed by the second switch, the reduced set of actions including generating a reduced number of test frames and being associated with a reduced portion of the data; and a sixth test frame
[498] destined for the second switch, which indicates an instruction [REPLY] to cause the second switch to respond to the sixth test frame, which is associated with the remainder of the data. The system responds to the sixth test frame by sending a seventh test frame
[499] to the first switch, which includes a response data packet and indicates an instruction [COUNT_AND_DROP] to cause the first switch to increment a counter and discard the seventh test frame. In response to receiving the fifth test frame
[495] , the system performs the reduced set of actions indicated in the fifth test frame
[495] by sending a reduced number of test frames
[496] to the first switch. The system receives test frames of reduced portion of the indication data
[497] , wherein the monitored test traffic further includes a fifth test frame, a test frame of reduced quantity, a test frame of reduced portion of the indication data, a sixth test frame, and a seventh test frame.
[0088] In a further variation, after receiving the fourth test frame, the system retrieves the action sequence from the random access memory (RAM) that stores the instructions.
[0089] In a further variant, before generating or sending any test frames or test traffic, the system synchronizes the global clock on the switches in the switch architecture based on the Precision Time Protocol (PTP) running on the switches in the switch architecture.
[0090] In a further variation, the corresponding test frame includes at least one of the following: a structure-specific test frame; an Ethernet test frame; or a User Datagram Protocol (UDP) test frame. The corresponding test frame includes a header indicating that the frame was generated by a test frame generator. The header includes at least one of the following: a command to be executed; data associated with the command; context information associated with the sending switch; and context information associated with the receiving switch.
[0091] In a further variation, multiple test frames are generated based on at least one of the following: a read request; a write request; a memory access request based on the Remote Direct Memory Access (RDMA) protocol; a PUT request; a PUT response; a GET request; or a GET response.
[0092] In a further variation, the system configures the switch architecture or at least one of the switches in the switch architecture based on the monitored test traffic.
[0093] In a further variation, the first test frame is associated with a first traffic category. The instructions indicated in the first test frame are further used to cause a second switch to respond to the first test frame by sending a second test frame, which is associated with a second traffic category different from the first traffic category. The system responds to the first test frame by sending the second test frame, wherein the second test frame is associated with the second traffic category.
[0094] In a further variation, the first and second switches include edge switches in the switch architecture.
[0095] In another aspect, a computing system includes: processing resources; and a storage device storing instructions that, when executed by the processing resources, cause the processing resources to perform a method. The method includes: receiving a first test frame destined for a second switch in a switch architecture via a second switch in the switch architecture, the first test frame indicating instructions for causing the second switch to respond to the first test frame. The method further includes responding to the first test frame by sending a second test frame including a response data packet to the first switch, the second test frame indicating instructions for causing the first switch to increment a counter and discard the second test frame. The method further includes monitoring test traffic generated by and destined for switches in the switch architecture, the test traffic including the first and second test frames. The method further includes configuring at least one of the switch architecture, the first switch, the second switch, or another switch in the switch architecture based on the monitored test traffic. The instructions stored by the storage device may also include instructions for performing the operations described above with respect to the following: Figure 1 and Figure 3 The environment; Figure 2 An example test frame data packet with a header; Figures 4A to 4D as well as Figure 5 Test frames and communication within; Figures 6A to 6C Flowcharts; and Figure 8 Instructions in CRM 800.
[0096] On the other hand, a non-transitory computer-readable storage medium (or CRM) stores instructions that, when executed by processing resources, cause the processing resources to perform a method. The method includes: receiving a first test frame destined for a second switch in a switch architecture via a second switch in the switch architecture, wherein the first test frame indicates instructions for causing the second switch to respond to the first test frame. The method further includes responding to the first test frame by sending a second test frame including a response data packet to the first switch, wherein the second test frame indicates instructions for causing the first switch to increment a counter and discard the second test frame. The method further includes monitoring test traffic generated by and destined for switches in the switch architecture, wherein the test traffic includes the first test frame and the second test frame. The CRM may also store instructions for performing the operations described above with respect to the following: Figure 1 and Figure 3 The environment; Figure 2 An example test frame data packet with a header; Figures 4A to 4D as well as Figure 5 Test frames and communication within; Figures 6A to 6C Flowcharts; and Figure 7 Instruction 718 of computer system 700.
[0097] The foregoing description is presented to enable any person skilled in the art to make and use the aspects and examples, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed aspects will be apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects and applications without departing from the spirit and scope of this disclosure. Therefore, the aspects described herein are not limited to those shown, but are intended to be consistent with the maximum scope of the principles and features disclosed herein.
[0098] Furthermore, the foregoing descriptions of the various aspects have been presented solely for illustrative and descriptive purposes. These descriptions are not intended to be exhaustive or to limit the aspects described herein to the disclosed forms. Accordingly, many modifications and variations will be apparent to those skilled in the art. Additionally, the foregoing disclosure is not intended to limit the aspects described herein. The scope of the aspects described herein is defined by the appended claims.
Claims
1. A method comprising: The second switch in the switch structure receives the first test frame destined for the second switch from the first switch in the same switch structure. The first test frame indicates a command used to cause the second switch to respond to the first test frame; The first test frame is responded to by sending a second test frame, which includes a response data packet, to the first switch. The second test frame indicates an instruction to increment the counter of the first switch and discard the second test frame; as well as Monitor the test traffic generated by the switches in the switch structure and destined for the switches, the test traffic including the first test frame and the second test frame.
2. The method of claim 1, further comprising: The second switch receives a third test frame destined for the second switch from the first switch. The third test frame indicates an instruction for the second switch to increment a counter and discard the third test frame. In response to receiving the third test frame, the counter is incremented; and Discard the third test frame. The monitored test traffic further includes the third test frame.
3. The method of claim 1, further comprising: The second switch receives a fourth test frame destined for the second switch from the first switch. The fourth test frame indicates a sequence of actions to be performed by the second switch, the sequence of actions including generating multiple test frames. The second switch executes the action sequence by generating the plurality of test frames and sending the plurality of test frames to the first switch; and In response to sending the generated test frame to the first switch, data is received. The monitored test traffic further includes the fourth test frame, the generated test frame, and the received data.
4. The method of claim 3, further comprising: Received by the second switch from the first switch: The fifth test frame is directed to the second switch, indicating a reduced set of actions from the sequence of actions to be performed by the second switch. The reduced set of actions includes generating a reduced number of test frames, and the reduced set of actions is associated with a reduced portion of the data; and A sixth test frame is sent to the second switch, the sixth test frame indicating an instruction to cause the second switch to respond to the sixth test frame, the sixth test frame being associated with the remainder of the data; The sixth test frame is responded to by sending a seventh test frame, which includes a response data packet, to the first switch. The seventh test frame indicates an instruction to cause the first switch to increment a counter and discard the seventh test frame. In response to receiving the fifth test frame, the reduced set of actions indicated in the fifth test frame is performed by sending the reduced number of test frames to the first switch; and Receive a test frame indicating a reduced portion of the data. The monitored test traffic further includes the fifth test frame, the reduced number of test frames, the test frame indicating the reduced portion of the data, the sixth test frame, and the seventh test frame.
5. The method of claim 3, wherein, After receiving the fourth test frame, the method further includes: The sequence of actions is retrieved from the random access memory (RAM) containing the stored instructions.
6. The method of claim 1, further comprising: Before generating or sending any test frames or test traffic, the global clock on the switches in the switch architecture is synchronized based on the Precision Time Protocol (PTP) running on the switches in the switch architecture.
7. The method as described in claim 1, in, The corresponding test frame includes at least one of the following: Structure-specific test frames; Ethernet test frame; or User Datagram Protocol (UDP) test frames; and in, The corresponding test frame includes a header indicating that the frame was generated by a test frame generator, and the header includes at least one of the following: The command to be executed; Data associated with the command; Context information associated with the sending switch; and Context information associated with the receiving switch.
8. The method of claim 1, wherein, The plurality of test frames are generated based on at least one of the following: Read request; Write request; Memory access requests based on the Remote Direct Memory Access (RDMA) protocol; PUT request; PUT response; GET request; or GET response.
9. The method of claim 1, further comprising: Configure the switch architecture or at least one of the switches in the switch architecture based on the monitored test traffic.
10. The method as described in claim 1, in, The first test frame is associated with the first traffic category; The instruction indicated in the first test frame is further used to cause the second switch to respond to the first test frame by sending a second test frame, wherein the second test frame is a test frame associated with a second traffic category different from the first traffic category; and The method further includes responding to the first test frame by sending the second test frame, wherein the second test frame is associated with the second traffic category.
11. A computer system, comprising: Processing resources; as well as A storage device storing instructions, which, when executed by the processing resource, cause the processing resource to execute a method, the method comprising: The second switch in the switch structure receives the first test frame destined for the second switch from the first switch in the same switch structure. The first test frame indicates a command used to cause the second switch to respond to the first test frame; The first test frame is responded to by sending a second test frame, which includes a response data packet, to the first switch. The second test frame indicates an instruction to increment the counter of the first switch and discard the second test frame; Monitor the test traffic generated by the switches in the switch structure and destined for the switches, the test traffic including the first test frame and the second test frame; as well as Configure at least one of the switch architecture, the first switch, the second switch, or another switch in the switch architecture based on the monitored test traffic.
12. The computer system of claim 11, wherein, The method further includes: The second switch receives a third test frame destined for the second switch from the first switch. The third test frame indicates an instruction for the second switch to increment a counter and discard the third test frame. In response to receiving the third test frame, the counter is incremented; and Discard the third test frame. The monitored test traffic further includes the third test frame.
13. The computer system of claim 11, wherein, The method further includes: The second switch receives a fourth test frame destined for the second switch from the first switch. The fourth test frame indicates a sequence of actions to be performed by the second switch, the sequence of actions including generating multiple test frames. The second switch executes the action sequence by generating the plurality of test frames and sending the plurality of test frames to the first switch; and In response to sending the generated test frame to the first switch, data is received. The monitored test traffic further includes the fourth test frame, the generated test frame, and the received data.
14. The computer system of claim 13, wherein, The method further includes: Received by the second switch from the first switch: The fifth test frame is directed to the second switch, indicating a reduced set of actions from the sequence of actions to be performed by the second switch. The reduced set of actions includes generating a reduced number of test frames, and the reduced set of actions is associated with a reduced portion of the data; and A sixth test frame is sent to the second switch, the sixth test frame indicating an instruction to cause the second switch to respond to the sixth test frame, the sixth test frame being associated with the remainder of the data; The sixth test frame is responded to by sending a seventh test frame, which includes a response data packet, to the first switch. The seventh test frame indicates an instruction to cause the first switch to increment a counter and discard the seventh test frame. In response to receiving the fifth test frame, the reduced set of actions indicated in the fifth test frame is performed by sending the reduced number of test frames to the first switch; and Receive a test frame indicating a reduced portion of the data. The monitored test traffic further includes the fifth test frame, the reduced number of test frames, the test frame indicating the reduced portion of the data, the sixth test frame, and the seventh test frame.
15. The computer system as described in claim 11, in, The corresponding test frame includes at least one of the following: Structure-specific test frames; Ethernet test frame; or User Datagram Protocol (UDP) test frame, The corresponding test frame includes a header indicating that the frame was generated by a test frame generator, and the header includes at least one of the following: The command to be executed; Data associated with the command; Context information associated with the sending switch; and Context information associated with the receiving switch.
16. A non-transitory computer-readable medium storing instructions, said instructions causing the processing resource to perform a method when executed by a processing resource, said method comprising: The second switch in the switch structure receives the first test frame destined for the second switch from the first switch in the same switch structure. The first test frame indicates an instruction used to cause the second switch to respond to the first test frame. The first test frame is responded to by sending a second test frame, which includes a response data packet, to the first switch. Wherein, the second test frame indicates an instruction to cause the first switch to increment a counter and discard the second test frame; and Monitor the test traffic generated by the switches in the switch architecture and destined for the switches. The test traffic includes the first test frame and the second test frame.
17. The non-transitory computer-readable medium of claim 16, wherein, The method further includes: The second switch receives the third test frame destined for the second switch from the first switch. The third test frame indicates an instruction to increment the counter of the second switch and discard the third test frame; In response to receiving the third test frame, the counter is incremented; and Discard the third test frame. The monitored test traffic further includes the third test frame.
18. The non-transitory computer-readable medium of claim 16, wherein, The method further includes: The second switch receives the fourth test frame destined for the second switch from the first switch. The fourth test frame indicates a sequence of actions to be performed by the second switch, and the sequence of actions includes generating multiple test frames. The second switch executes the action sequence by generating the plurality of test frames and sending the plurality of test frames to the first switch; and In response to sending the generated test frame to the first switch, data is received. The monitored test traffic further includes the fourth test frame, the generated test frame, and the received data.
19. The non-transitory computer-readable medium of claim 18, wherein the method further comprises: Received by the second switch from the first switch: The fifth test frame destined for the second switch. The fifth test frame indicates a reduced set of actions in the sequence of actions to be performed by the second switch, the reduced set of actions including generating fewer test frames, and the reduced set of actions being associated with a reduced portion of the data; and The sixth test frame destined for the second switch. The sixth test frame indicates an instruction for causing the second switch to respond to the sixth test frame, and the sixth test frame is associated with the remainder of the data; The sixth test frame is responded to by sending a seventh test frame, which includes a response data packet, to the first switch. The seventh test frame indicates an instruction to cause the first switch to increment a counter and discard the seventh test frame; In response to receiving the fifth test frame, the reduced set of actions indicated in the fifth test frame is performed by sending the reduced number of test frames to the first switch; and Receive a test frame indicating a reduced portion of the data. The monitored test traffic further includes the fifth test frame, the reduced number of test frames, the test frame indicating the reduced portion of the data, the sixth test frame, and the seventh test frame.
20. The non-transitory computer-readable medium as claimed in claim 16, in, The first switch and the second switch include edge switches in the switch structure.
