Traffic test system and method for giant frame multicast
By establishing multicast neighbor relationships between switches, setting multicast sources and receivers with processors, and building jumbo frame multicast service traffic, the problem of high testing costs in the existing technology is solved and low-cost traffic testing is achieved.
Patent Information
- Application Number
- CN202510792596.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-07-25
AI Technical Summary
In the prior art, the cost of using testers to conduct multicast service traffic tests is high.
By establishing multicast neighbor relationships between switches and using the processor to set up multicast sources and multicast receivers, we can directly build jumbo frame multicast service traffic in the existing multicast system and conduct traffic testing.
The cost of multicast service traffic testing of jumbo frames is reduced without the need for additional testers in existing multicast systems.
Smart Images

Figure CN120378337A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of multicast processing, and in particular, to a traffic testing system and method for jumbo frame multicast. Background Art
[0002] Jumbo frame multicast refers to the efficient data transfer from point to multi-point in a network by using Ethernet frames exceeding 1500 bytes restricted by the IEEE 802.3 standard.
[0003] Many network devices, such as layer-3 Ethernet switches, can support the multicast function. When testing the multicast function of a switch, a common method is to use a tester to construct jumbo frame multicast service traffic and transmit the constructed jumbo frame multicast service traffic to detect the change of traffic. Since the tester is expensive, the cost of using the tester to test the jumbo frame multicast service traffic is relatively high. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a traffic testing system and method for jumbo frame multicast to solve the problem of high cost of using a tester to test the jumbo frame multicast service traffic in the prior art.
[0005] To achieve the above object, embodiments of the present invention provide the following technical solutions:
[0006] A traffic testing system for jumbo frame multicast is shown in the first aspect of the embodiments of the present invention. The system includes: a switch, a multicast terminal, and a processor;
[0007] The processor connects multiple switches in series and establishes a multicast neighbor relationship between the multiple switches; obtains the test requirements input by the user, and sets the multicast terminal as the multicast source and the multicast terminal as the multicast receiver according to the test requirements;
[0008] When the processor determines that both the number of the multicast sources and the number of the multicast receivers is 1, the processor controls one end of the multicast source connected in series with the switch, and the other end of the multicast receiver connected in series with the switch;
[0009] The processor forwards the test requirements to the multicast source;
[0010] The multicast source constructs jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the multicast receiver through the switch with the multicast neighbor relationship for traffic testing.
[0011] Optionally, the multicast source is specifically used for:
[0012] The multicast source constructs a jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the switch connected thereto;
[0013] Correspondingly, the switch is used to send the jumbo frame multicast service traffic to the multicast receiver through the multicast neighbor relationship;
[0014] The multicast receiver is used to determine that the test passes if it is determined that the number of multicast packets in the received jumbo frame multicast service traffic is the same as the preset number.
[0015] Optionally, the multicast source constructs a jumbo frame multicast service traffic based on the received test requirements, including:
[0016] When the jumbo frame multicast function of the multicast source is triggered, corresponding jumbo frame multicast packets are simulated according to the test requirements to construct a jumbo frame multicast service traffic, and the jumbo frame multicast service traffic carries the number of jumbo frame multicast packets corresponding to the test requirements and the multicast address of the multicast packet.
[0017] Optionally, the switch is specifically used for:
[0018] When the switch receives the jumbo frame multicast service traffic, it determines the switches through which the jumbo frame multicast service traffic needs to flow in sequence according to the multicast address carried by the jumbo frame multicast service traffic;
[0019] The switch uses the multicast neighbor relationship to send the jumbo frame multicast service traffic to the switches that need to flow through in sequence, so that the switch connected to the multicast receiver forwards the jumbo frame multicast service traffic to the multicast receiver, where the switch connected to the multicast receiver is the last one of the switches that need to flow through in sequence.
[0020] Optionally, the multicast receiver is specifically used for:
[0021] Judge whether the number of multicast packets in the received jumbo frame multicast service traffic is the same as the preset number, where the preset number is the number of multicast packets carried in the jumbo frame multicast service traffic sent by the multicast source;
[0022] If so, determine that the traffic test passes.
[0023] Optionally, the processor for establishing a multicast neighbor relationship between multiple switches is specifically used for:
[0024] Perform virtual configuration on the switch;
[0025] For each switch after virtual configuration, trigger the multicast neighbor construction instruction of the switch after virtual configuration, and send response information to other switches at a preset time interval;
[0026] If response information sent by a certain switch is continuously received within the preset time interval, establish a multicast neighbor relationship with the certain switch.
[0027] Optionally, the processor for performing virtual configuration on the switch is specifically configured to:
[0028] Perform basic information configuration on the switch;
[0029] Perform virtual configuration on the switch by using the basic information.
[0030] Optionally, it further includes:
[0031] When the processor determines that the number of multicast sources is 1 and the number of multicast receivers is N, control one end of the connection between the multicast source and the switch in series;
[0032] Control the other end in series with the switch and one end of other switches in the middle of the series to be respectively connected to N multicast receivers, where one switch is connected to one multicast receiver, and N is a positive integer greater than or equal to 2.
[0033] The second aspect of the embodiments of the present invention shows a method for testing the traffic of jumbo frame multicast, which is applicable to the traffic test system of jumbo frame multicast shown in the first aspect of the embodiments of the present invention. The system includes: a switch, a multicast terminal, and a processor; the method includes:
[0034] The processor connects multiple switches in series and establishes a multicast neighbor relationship between the multiple switches; obtains the test requirements input by the user, and sets the multicast terminal as the multicast source and the multicast terminal as the multicast receiver according to the test requirements;
[0035] When the processor determines that the number of multicast sources and the number of multicast receivers are both 1, control one end of the connection between the multicast source and the switch in series, and connect the other end of the connection between the multicast receiver and the switch in series;
[0036] The processor forwards the test requirements to the multicast source;
[0037] The multicast source constructs jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the multicast receiver through the switch with a multicast neighbor relationship for traffic testing.
[0038] Optionally, the multicast source constructs a jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the multicast receiver through a switch with a multicast neighbor relationship for traffic testing, including:
[0039] The multicast source constructs a jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the switch connected to it;
[0040] The switch sends the jumbo frame multicast service traffic to the multicast receiver through the multicast neighbor relationship;
[0041] If the multicast receiver determines that the number of multicast packets of the received jumbo frame multicast service traffic is the same as the preset number, it determines that the test passes.
[0042] Based on the traffic test system and method for jumbo frame multicast provided in the above embodiments of the present invention, the system includes: a switch, a multicast terminal, and a processor; the processor connects multiple switches in series and establishes a multicast neighbor relationship between the multiple switches; obtains the test requirements input by the user, and sets the multicast terminal as the multicast source and the multicast terminal as the multicast receiver according to the test requirements; if the processor determines that the number of the multicast source and the number of the multicast receiver are both 1, it controls one end of the multicast source connected in series with the switch, and the other end of the multicast receiver connected in series with the switch; the processor forwards the test requirements to the multicast source; the multicast source constructs a jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the multicast receiver through a switch with a multicast neighbor relationship for traffic testing. This application does not require an additional tester, and can directly determine the multicast source and multicast receiver in the existing multicast system, so as to realize the test of the jumbo frame multicast service traffic and reduce the test cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.
[0044] Figure 1 It is a schematic structural diagram of a traffic test system for jumbo frame multicast shown in the embodiments of the present invention;
[0045] Figure 2 It is a schematic structural diagram of another traffic test system for jumbo frame multicast shown in the embodiments of the present invention;
[0046] Figure 3 It is a schematic flowchart of a traffic test method for jumbo frame multicast shown in an embodiment of the present invention. Detailed implementation manners
[0047] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0048] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in an order other than that shown or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0049] It should be noted that the descriptions involving "first", "second", etc. in the present invention are only for descriptive purposes, and cannot be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between various embodiments can be combined with each other, but it must be based on the fact that those of ordinary skill in the art can implement them. When the combination of technical solutions results in contradictions or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the protection scope required by the present invention.
[0050] In this application, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or device. Without further limitations, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including the said element.
[0051] See Figure 1, which is a traffic test system for jumbo frame multicast shown in an embodiment of the present invention. The traffic test system for jumbo frame multicast includes a multicast terminal 10, a switch 20, and a processor (not shown in the figure);
[0052] Among them, the number of the multicast terminals 10 is at least 2, and the number of the switches 20 is also at least 2.
[0053] It should be noted that the switch 20 and the multicast terminal 10 build an existing multicast system.
[0054] Specifically, the processor is respectively connected to the switch 20 and the multicast terminal 10.
[0055] The processor connects the multiple switches 20 in series and establishes a multicast neighbor relationship between the multiple switches 20;
[0056] It should be noted that the at least two switches 20 are connected in series.
[0057] Specifically, the process of establishing a multicast neighbor relationship between the multiple switches 20 includes:
[0058] Performing virtual configuration on the switch 20;
[0059] For each switch 20 after virtual configuration, triggering a multicast neighbor construction instruction of the switch 20 after virtual configuration and sending response information to other switches 20 at a preset time interval;
[0060] If response information sent by a certain switch 20 is continuously received within the preset time interval, a multicast neighbor relationship is established with the certain switch 20.
[0061] It should be noted that the response information can be a sent frame.
[0062] Optionally, the response information is a multicast message.
[0063] Furthermore, it should be noted that the process of performing virtual configuration on the switch 20 includes:
[0064] Performing basic information configuration on the switch 20.
[0065] Specifically, creating virtual local area networks VLAN a1 and VLAN a2, then adding the first port G1 of the switch 20 to the virtual local area network VLAN a1, and adding the second port G2 to the virtual local area network VLAN a2.
[0066] Performing virtual configuration on the switch 20 using the basic information.
[0067] Specifically, create three-layer virtual interfaces vlanif a1 and vlanif a2. Then, configure interface IP addresses for the two three-layer virtual interfaces vlanif a1 and vlanif a2 respectively. At this time, mutual access between VLANS of different switches 20 can be achieved through the interface IP addresses.
[0068] Furthermore, it should be noted that for each switch 20 after virtual configuration, trigger the multicast neighbor construction instruction of the switch 20 after virtual configuration. Based on the multicast neighbor construction instruction, send response information to other switches 20 at a preset time interval. If response information sent by a certain switch 20 is continuously received within the preset time interval, establish a multicast neighbor relationship with the certain switch 20. Specifically for:
[0069] For each switch 20 after virtual configuration, trigger the multicast neighbor construction instruction of the switch 20 after virtual configuration. The switch 20 sends response information to other switches 20 multiple times at a preset time interval, and at the same time receives response information sent by other switches 20. That is to say, switches 20 discover neighbors within the virtual local area network by continuously receiving response information. When the multicast neighbor construction instruction of the switch 20 is triggered, the switch 20 will send response information to all other cascaded switches 20 respectively at a preset time interval;
[0070] At the same time, receive response information sent by each other switch 20, and determine whether response information sent by the same switch 20 is continuously received within the preset time. If so, establish a multicast neighbor relationship with the switch 20, and write the basic information of the switch 20 into its own neighbor relationship table.
[0071] It should be noted that all switches 20 that need to establish neighbor relationships need to do so when the multicast neighbor construction instruction of the switch 20 is triggered.
[0072] The preset time can be set by technicians in advance according to actual situations, or it can be carried in the response information. The embodiments of the present invention do not limit this.
[0073] Optionally, if each switch 20 has the Protocol Independent Multicast - Sparse Mode (PIM - SM) function, in response to the activation of the multicast protocol PIM - SM function for vlanif a1 and vlanif a2 in each switch 20, multiple switches 20 can establish a multicast PIM neighbor relationship by exchanging PIM - SM protocol messages.
[0074] It should be noted that at this time, the three - layer virtual interfaces of each switch 20 can send and receive PIM - SM protocol messages.
[0075] Optionally, each switch 20 includes PIM forwarding entries.
[0076] Specifically, a multicast PIM forwarding table entry is created for each switch 20. The PIM forwarding table entry includes information such as PIM routing, public network, multicast dynamic RP address, input interface, output interface, etc.
[0077] Based on this, it is determined that the switches 20 establishing the multicast neighbor relationship are in the same multicast domain.
[0078] Continue to refer to Figure 1 , the processor obtains the test requirements input by the user, and sets the multicast terminal 10 as the multicast source and the multicast terminal 10 as the multicast receiver according to the test requirements; if it is determined that the number of the multicast source and the number of the multicast receivers are both 1, one end of the multicast source connected in series with the switch 20, and the other end of the multicast receiver connected in series with the switch 20;
[0079] Specifically, the processor first obtains the user's test requirements. If the test requirements indicate that the multicast source is a multicast terminal PC10 and the multicast receiver is also a multicast terminal PC10, the multicast terminal 10 set as the multicast source and the multicast terminal 10 as the multicast receiver are set.
[0080] It should be noted that the multicast terminal 10 serving as the multicast source and the multicast terminal 10 serving as the multicast receiver are not the same multicast terminal 10.
[0081] Next, one end of the multicast terminal 10 serving as the multicast source is connected in series with the switch 20, and the other end of the multicast terminal 10 serving as the multicast receiver is connected in series with the switch 20, and it is determined that the traffic test architecture for jumbo frame multicast is constructed.
[0082] Continue to refer to Figure 1 , the processor forwards the test requirements to the multicast source;
[0083] In a specific implementation, after the traffic test connection for jumbo frame multicast is constructed, the test requirements are forwarded to the multicast source;
[0084] The multicast source constructs jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the multicast receiver through the switch 20 with a multicast neighbor relationship for traffic testing.
[0085] Optionally, the multicast receiver joins the multicast group constructed by the multicast source and the switch 20.
[0086] Specifically, the multicast source constructs jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the switch 20 connected to it;
[0087] Correspondingly, the switch 20 is configured to send the jumbo frame multicast service traffic to the multicast receiver through the multicast neighbor relationship;
[0088] The multicast receiver is configured to determine that the test passes if it determines that the number of jumbo frame multicast service traffic multicast packets received is the same as the preset number.
[0089] Specifically, the process of the multicast source constructing the jumbo frame multicast service traffic includes:
[0090] When the jumbo frame multicast function of the multicast source is triggered, corresponding jumbo frame multicast packets are simulated according to the test requirements to construct the jumbo frame multicast service traffic, and the jumbo frame multicast service traffic carries the corresponding number of jumbo frame multicast packets and the multicast address of the multicast packet according to the test requirements.
[0091] The multicast group IP address can be 239.22.6.6, and the payload can be 1800 bytes.
[0092] It should be noted that each multicast packet is packed in the form of a single packet.
[0093] Specifically, in the network attributes of the multicast source, a jumbo frame network is selected to trigger the activation of the jumbo frame multicast function of the multicast source; according to the session requirements and quantity in the test requirements, jumbo frame multicast packets corresponding to the transmitted traffic with a payload greater than 1800 bytes are simulated to construct multicast packets corresponding to the session requirements and quantity.
[0094] Optionally, the jumbo frame multicast service traffic can also be constructed by a multicast simulation tool.
[0095] Among them, the multicast simulation tool is used to construct a multicast session for the transmitted traffic and add the corresponding multicast address.
[0096] The multicast source sends the jumbo frame multicast service traffic to the switch 20 connected to it.
[0097] In a specific implementation, the multicast source first sends the jumbo frame multicast service traffic to the switch 20 connected to it according to the carried multicast address.
[0098] The switch 20 is specifically configured to:
[0099] When the switch 20 receives the jumbo frame multicast service traffic, it determines the switches 20 through which the jumbo frame multicast service traffic needs to flow in sequence according to the multicast address carried by the jumbo frame multicast service traffic;
[0100] The switch 20 uses the multicast neighbor relationship to sequentially send the jumbo frame multicast service traffic to the switches 20 that need to be traversed, so that the switch 20 connected to the multicast receiver forwards the jumbo frame multicast service traffic to the multicast receiver, where the switch 20 connected to the multicast receiver is the last one among the switches 20 that need to be traversed in sequence.
[0101] Specifically, after receiving the jumbo frame multicast service traffic, the switch 20 determines the switches 20 that the jumbo frame multicast service traffic needs to traverse according to the multicast address; uses the multicast neighbor relationship to send the jumbo frame multicast service traffic to the switches 20 that need to be traversed, so that the last switch 20 that needs to be traversed forwards the jumbo frame multicast service traffic to the multicast receiver.
[0102] Optionally, the last switch 20 that needs to be traversed needs to create a multicast protocol IGMP entry.
[0103] The multicast protocol IGMP entry is used to maintain group join information and notify the multicast routing protocol, and specifically includes: multicast group address, uptime, expiration time, group status, etc.
[0104] Optionally, the multicast receiver is specifically used for:
[0105] Judging whether the number of multicast packets in the received jumbo frame multicast service traffic is the same as a preset number, where the preset number is the number of multicast packets carried in the jumbo frame multicast service traffic sent by the multicast source. If so, it is determined that the traffic test passes.
[0106] Specifically, the multicast receiver judges whether the number of multicast packets in the received jumbo frame multicast service traffic is the same as the preset number. If so, it is determined that the jumbo frame multicast service traffic of the multicast source can be forwarded to the multicast receiver without packet loss by the switch 20, indicating that the test passes at this time. If not, it indicates that the test fails.
[0107] The preset number is the number of multicast packets in the jumbo frame multicast service traffic sent by the multicast source.
[0108] In an embodiment of the present invention, the test requirements input by the user are obtained, and the multicast terminals of the multicast source and the multicast receivers are set according to the test requirements; if the processor determines that the number of the multicast sources and the number of the multicast receivers are both 1, it controls one end of the multicast source connected in series with the switch, and the other end of the multicast receiver connected in series with the switch; the processor forwards the test requirements to the multicast source; the multicast source constructs a jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the multicast receiver through the switch with a multicast neighbor relationship for traffic testing. This application does not require an additional tester, and can directly determine the multicast source and the multicast receiver in the existing multicast system, so that the jumbo frame multicast traffic of the multicast source can be forwarded to the multicast receiver by the switch without packet loss. Thus, the test of the jumbo frame multicast service traffic is realized to reduce the test cost.
[0109] Optionally, if the processor determines that the number of the multicast sources 10 is 1 and the number of the multicast receivers is N, it controls one end of the multicast source 10 connected in series with the switch 20, as Figure 2 shown;
[0110] controls the other end connected in series with the switch 20 and one end of other switches 20 in the middle of the series to be respectively connected to N multicast receivers, where one switch 20 is connected to one multicast receiver, and N is a positive integer greater than or equal to 2.
[0111] Specifically, if the test requirements indicate that the multicast source is a multicast terminal PC10 and the multicast receivers are also N multicast terminals PC10, the multicast terminal 10 set as the multicast source and the N multicast terminals 10 as the multicast receivers are set.
[0112] Wherein, N is a positive integer greater than or equal to 0, and at this time the number of switches 20 needs to be greater than N + 1.
[0113] Then, one end of the multicast terminal 10 set as the multicast source is connected in series with the switch 20, and the other end connected in series with the switch 20 and one end of other switches 20 in the middle of the series are respectively connected to N multicast receivers, and it is determined that the traffic test architecture of the jumbo frame multicast is completed. Wherein, each switch 20 can only be connected to one multicast receiver.
[0114] That is to say, connect one end of the multicast terminal 10 serving as the multicast source in series with the switch 20, connect the other end of the Nth multicast terminal 10 serving as the multicast receiver in series with the switch 20. Then, determine N - 1 switches 20 in the middle of the series connection. Each switch 20 in the middle of the series connection is connected to a multicast terminal 10 serving as the multicast receiver, and it is determined that the traffic test architecture for jumbo frame multicast is completed.
[0115] It should be noted that the switch 20 in the middle of the series connection refers to the switch 20 that is only connected to the switch 20. For example, if switch 1, switch 2, and switch 3 are connected in series, one end of switch 2 is connected to switch 1, and the other end of switch 2 is connected to switch 3, then switch 2 is the switch in the middle of the series connection.
[0116] It should be noted that after determining that the traffic test architecture for jumbo frame multicast is completed, the above method is used to perform the traffic test for jumbo frame multicast.
[0117] In the embodiment of the present invention, one end of the multicast terminal serving as the multicast source is connected in series with the switch, and the other end connected in series with the switch and one end of other switches in the middle of the series connection are respectively connected to N multicast receivers, and it is determined that the traffic test architecture for jumbo frame multicast is completed; the processor forwards the test requirement to the multicast source; the multicast source constructs the jumbo frame multicast service traffic based on the received test requirement, and sends the jumbo frame multicast service traffic to each multicast receiver through the switch with a multicast neighbor relationship for traffic test. This application enables the jumbo frame multicast traffic of the multicast source to be forwarded to the multicast receiver through the switch without packet loss, thereby realizing the test of the jumbo frame multicast service traffic and reducing the test cost.
[0118] Based on the system shown in the above embodiment of the present invention, correspondingly, the embodiment of the present invention shows a method for testing the traffic of jumbo frame multicast, which is applied to the system shown above, as Figure 3 shown, the method includes:
[0119] Step S301: The processor connects multiple switches in series and establishes a multicast neighbor relationship between the multiple switches; obtains the test requirement input by the user, and sets the multicast terminal serving as the multicast source and the multicast terminal serving as the multicast receiver according to the test requirement;
[0120] It should be noted that the process of establishing a multicast neighbor relationship between multiple switches includes step S11, step S12, step S13, and step S14, which are specifically as follows:
[0121] Step S11: Perform virtual configuration on the switch;
[0122] It should be noted that the process of specifically implementing step S11 includes step S21 and step S22, which are as follows:
[0123] Step S21: Configure the basic information of the switch;
[0124] Specifically, create virtual local area networks VLAN a1 and VLAN a2. Then, add the first port G1 of the switch to VLAN a1 and the second port G2 to VLAN a2.
[0125] Step S22: Perform virtual configuration on the switch using the basic information.
[0126] Specifically, create three-layer virtual interfaces vlanif a1 and vlanif a2; then, configure interface IP addresses for the two three-layer virtual interfaces vlanif a1 and vlanif a2 respectively. At this time, mutual access between VLANs of different switches can be achieved through the interface IP addresses.
[0127] Step S12: For each switch after virtual configuration, trigger the multicast neighbor construction instruction of the switch after virtual configuration, and send response information to other switches at a preset time interval;
[0128] In the process of specifically implementing step S12, switches discover neighbors within the virtual local area network by continuously receiving response information. When the multicast neighbor construction instruction of a switch is triggered, the switch sends response information to all other cascaded switches respectively at a preset time interval;
[0129] Step S13: Determine whether response information sent by a certain switch is continuously received within a preset time interval. If response information sent by a certain switch is continuously received within a preset time interval, execute step S14; otherwise, do not establish a multicast neighbor relationship with this switch.
[0130] Step S14: Establish a multicast neighbor relationship with a certain switch.
[0131] In the process of specifically implementing step S13 and step S14, at the same time, receive response information sent by each other switch, and determine whether response information sent by the same switch is continuously received within a preset time. If so, establish a multicast neighbor relationship with this switch, and write the basic information of this switch into its own neighbor relationship table; otherwise, do not establish a multicast neighbor relationship with this switch.
[0132] It should be noted that switches that need to create neighbor relationships all need to do so when the multicast neighbor construction instruction of the switch is triggered.
[0133] The preset time can be set by technicians in advance according to the actual situation, or it can be carried in the response information. The embodiments of the present invention do not limit this.
[0134] Step S302: The processor determines whether the number of multicast sources and the number of multicast receivers are both 1. If so, step S303 is executed. If not, further determination is required, that is, step S51 is executed.
[0135] Step S303: Control one end of the multicast source connected in series with the switch, and the other end of the multicast receiver connected in series with the switch;
[0136] In the process of specifically implementing steps S302 and S303, the processor first obtains the test requirements of the user, determines whether the test requirements indicate that the multicast source is one and the multicast receiver is also one. If the test requirements indicate that the multicast source is a multicast terminal PC and the multicast receiver is also a multicast terminal PC, the multicast terminal set as the multicast source and the multicast terminal set as the multicast receiver are set.
[0137] Step S304: The processor forwards the test requirements to the multicast source;
[0138] Step S305: The multicast source constructs a jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the multicast receiver through the switch with a multicast neighbor relationship for traffic testing.
[0139] The process of specifically implementing step S305 includes steps S31 and S32, as follows:
[0140] Step S31: The multicast source constructs a jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the switch connected to it;
[0141] It should be noted that the multicast source constructs a jumbo frame multicast service traffic based on the received test requirements, including:
[0142] When the jumbo frame multicast function of the multicast source is triggered, corresponding jumbo frame multicast packets are simulated according to the test requirements to construct a jumbo frame multicast service traffic. The jumbo frame multicast service traffic carries the corresponding number of jumbo frame multicast packets and the multicast address of the multicast packet according to the test requirements.
[0143] The multicast group IP address can be 239.22.6.6, and the payload can be 1800 bytes.
[0144] It should be noted that each multicast packet is packed in the form of a packet.
[0145] In a specific implementation, a jumbo frame network is selected in the network attributes of the multicast source to trigger the enabling of the jumbo frame multicast function of the multicast source; according to the session requirements and quantity in the test requirements, jumbo frame multicast packets with a payload greater than 1800 bytes corresponding to the transmitted traffic are simulated to construct multicast packets corresponding to the session requirements and quantity.
[0146] Optionally, the jumbo frame multicast service traffic can also be constructed through a multicast simulation tool.
[0147] Among them, the multicast simulation tool is used to construct a multicast session for the transmitted traffic and add the corresponding multicast address.
[0148] The multicast source sends the jumbo frame multicast service traffic to the Layer 3 virtual interface in the switch connected to it so that the switch can receive it.
[0149] Step S32: The switch sends the jumbo frame multicast service traffic to the multicast receiver through the multicast neighbor relationship;
[0150] It should be noted that the specific implementation process of step S32 includes step S41 and step S42, which are as follows:
[0151] Step S41: When the switch receives the jumbo frame multicast service traffic, it determines the switches through which the jumbo frame multicast service traffic needs to flow in sequence according to the multicast address carried in the jumbo frame multicast service traffic;
[0152] Step S42: The switch uses the multicast neighbor relationship to send the jumbo frame multicast service traffic to the switches that need to be flowed through in sequence, so that the switch connected to the multicast receiver forwards the jumbo frame multicast service traffic to the multicast receiver, where the switch connected to the multicast receiver is the last one among the switches that need to be flowed through in sequence.
[0153] Step S33: If the multicast receiver determines that the number of jumbo frame multicast service traffic multicast packets received is the same as the preset number, it determines that the test passes.
[0154] In the process of specifically implementing step S33, it is judged whether the number of multicast packets in the received jumbo frame multicast service traffic is the same as the preset number, where the preset number is the number of multicast packets carried in the jumbo frame multicast service traffic sent by the multicast source; if so, it is determined that the traffic test passes; if not, it is determined that multicast cannot be normally performed currently.
[0155] Optionally, based on the method shown in the above embodiments of the present invention, it further includes:
[0156] Step S51: If the processor determines that the number of multicast sources is 1 and the number of multicast receivers is N, it controls one end of the connection between the multicast source and the switch in series.
[0157] Step S52: It controls the other end of the connection in series with the switch and one end of each of the other switches in the middle of the series connection to be connected to N multicast receivers respectively, where one switch is connected to one multicast receiver, and N is a positive integer greater than or equal to 2.
[0158] Specifically, if the test requirement indicates that the multicast source is a multicast terminal PC and the multicast receivers are also N multicast terminal PCs, the multicast terminal set as the multicast source and the N multicast terminals as the multicast receivers are set.
[0159] Wherein, N is a positive integer greater than or equal to 0, and at this time the number of switches needs to be greater than N + 1.
[0160] Then, connect one end of the multicast terminal set as the multicast source to the switch in series, connect the Nth multicast terminal as the multicast receiver to the other end of the switch in series, and then determine N - 1 switches in the middle of the series connection, and each switch in the middle of the series connection is connected to a multicast terminal as the multicast receiver.
[0161] In the embodiment of the present invention, the test requirement input by the user is obtained, and the multicast terminal set as the multicast source and the multicast terminal of the multicast receiver are set according to the test requirement; if the processor determines that the number of multicast sources and the number of multicast receivers are both 1, it controls one end of the connection between the multicast source and the switch in series, and the other end of the connection between the multicast receiver and the switch in series; the processor forwards the test requirement to the multicast source; the multicast source constructs a jumbo frame multicast service traffic based on the received test requirement, and sends the jumbo frame multicast service traffic to the multicast receiver through the switch with a multicast neighbor relationship for traffic testing. This application does not require an additional tester, and can directly determine the multicast source and multicast receiver in the existing multicast system, so that the jumbo frame multicast traffic of the multicast source can be forwarded to the multicast receiver without packet loss through the switch. Thus, the test of the jumbo frame multicast service traffic is realized to reduce the test cost.
[0162] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for a system or system embodiment, since it is basically similar to a method embodiment, the description is relatively simple. For the relevant parts, reference can be made to the corresponding descriptions in the method embodiment. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative efforts.
[0163] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered as exceeding the scope of the present invention.
[0164] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A traffic test system for jumbo frame multicast, characterized in that, The system includes: a switch, a multicast terminal, and a processor; The processor connects multiple switches in series and establishes a multicast neighbor relationship between the multiple switches; obtains the test requirements input by the user, and sets the multicast terminal as the multicast source and the multicast terminal as the multicast receiver according to the test requirements; If the processor determines that the number of the multicast sources and the number of the multicast receivers are both 1, it controls one end of the multicast source connected in series with the switch, and the other end of the multicast receiver connected in series with the switch; The processor forwards the test requirements to the multicast source; The multicast source constructs a jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the multicast receiver through the switch with the multicast neighbor relationship for traffic testing.
2. The system according to claim 1, wherein The multicast source is specifically used for: The multicast source constructs a jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the switch connected to it; Correspondingly, the switch is used to send the jumbo frame multicast service traffic to the multicast receiver through the multicast neighbor relationship; The multicast receiver is used to determine that the test passes if it determines that the number of multicast packets in the received jumbo frame multicast service traffic is the same as the preset number.
3. The system according to claim 2, characterized in that, The multicast source constructs a jumbo frame multicast service traffic based on the received test requirements, including: When the jumbo frame multicast function of the multicast source is triggered, corresponding jumbo frame multicast packets are simulated according to the test requirements to construct a jumbo frame multicast service traffic, and the jumbo frame multicast service traffic carries the number of jumbo frame multicast packets corresponding to the test requirements and the multicast address of the multicast packet.
4. The system according to claim 2, wherein The switch is specifically used for: When the switch receives the jumbo frame multicast service traffic, it determines the switches that the jumbo frame multicast service traffic needs to flow through in sequence according to the multicast address carried by the jumbo frame multicast service traffic; The switch uses the multicast neighbor relationship to send the jumbo frame multicast service traffic to the switches that need to flow through in sequence, so that the switch connected to the multicast receiver forwards the jumbo frame multicast service traffic to the multicast receiver, where the switch connected to the multicast receiver is the last one of the switches that need to flow through in sequence.
5. The system according to claim 2, wherein, The multicast receiver is specifically used for: Judging whether the number of multicast packets in the received jumbo frame multicast service traffic is the same as the preset number, where the preset number is the number of multicast packets carried in the jumbo frame multicast service traffic sent by the multicast source; If so, determine that the traffic test passes.
6. The system according to claim 1, characterized in that, The processor that establishes a multicast neighbor relationship between multiple switches is specifically used for: Performing virtual configuration on the switch; For each switch after virtual configuration, triggering the multicast neighbor construction instruction of the switch after virtual configuration, and sending response information to other switches at a preset time interval; If the response information sent by a certain switch is continuously received within the preset time interval, establish a multicast neighbor relationship with a certain switch.
7. The system according to claim 6, wherein The processor that performs virtual configuration on the switch is specifically used for: Configure the basic information of the switch; Perform virtual configuration of the switch using the basic information.
8. The system according to claim 1, wherein It further includes: If the processor determines that the number of multicast sources is 1 and the number of multicast receivers is N, control one end of the multicast source connected in series with the switch; Control the other end connected in series with the switch and one end of other switches in the middle of the series to be respectively connected to N multicast receivers, where one switch is connected to one multicast receiver, and N is a positive integer greater than or equal to 2.
9. A traffic testing method for jumbo frame multicast, characterized in that, Apply to the traffic test system for jumbo frame multicast shown in claim 1 above. The system includes: a switch, a multicast terminal, and a processor; the method includes: The processor connects multiple switches in series and establishes a multicast neighbor relationship between the multiple switches; obtains the test requirements input by the user, and sets the multicast terminal as the multicast source and the multicast terminal as the multicast receiver according to the test requirements; If the processor determines that the number of multicast sources and the number of multicast receivers are both 1, control one end of the multicast source connected in series with the switch, and connect the other end of the multicast receiver connected in series with the switch; The processor forwards the test requirements to the multicast source; The multicast source constructs jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the multicast receiver through the switch with a multicast neighbor relationship for traffic testing.
10. The method according to claim 9, wherein The multicast source constructs jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the multicast receiver through the switch with a multicast neighbor relationship for traffic testing, including: The multicast source constructs jumbo frame multicast service traffic based on the received test requirements, and sends the jumbo frame multicast service traffic to the switch connected to it; The switch sends the jumbo frame multicast service traffic to the multicast receiver through the multicast neighbor relationship; If the multicast receiver determines that the number of multicast packets in the received jumbo frame multicast service traffic is the same as the preset number, determine that the test is passed.