CN113572698B - Multicast group capacity testing method and device, storage medium and electronic device - Google Patents

Multicast group capacity testing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113572698B
CN113572698B CN202110731754.4A CN202110731754A CN113572698B CN 113572698 B CN113572698 B CN 113572698B CN 202110731754 A CN202110731754 A CN 202110731754A CN 113572698 B CN113572698 B CN 113572698B
Authority
CN
China
Prior art keywords
multicast
target
network card
switch
multicast group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110731754.4A
Other languages
Chinese (zh)
Other versions
CN113572698A (en
Inventor
孔天一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110731754.4A priority Critical patent/CN113572698B/en
Publication of CN113572698A publication Critical patent/CN113572698A/en
Application granted granted Critical
Publication of CN113572698B publication Critical patent/CN113572698B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/36Flow control; Congestion control by determining packet size, e.g. maximum transfer unit [MTU]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a method and a device for testing multicast group capacity, a storage medium and an electronic device, wherein the method comprises the following steps: controlling a first network card to send a target report message through a switch to be tested, wherein the first network card is used for simulating multicast group members, the second network card is used for simulating multicast sources, and the number of target multicast groups to which the target report message belongs is a first number; controlling the second network card to send target data messages to the first number of target multicast groups through the switch; and determining that the maximum multicast group capacity of the switch is the second number under the condition that the switch starts unknown multicast discarding and the second number of the target multicast groups to which the target data message received by the first network card belongs is smaller than the first number. The application solves the problems of complex configuration process and overlong configuration time of the test environment in the test mode of the multicast group capacity of the exchange unit in the related technology.

Description

Multicast group capacity testing method and device, storage medium and electronic device
Technical Field
The present application relates to the field of communications, and in particular, to a method and apparatus for testing multicast group capacity, a storage medium, and an electronic apparatus.
Background
Multicast is widely used in life, multicast is one of the basic technologies supported by the switch, and the maximum multicast group capacity is an important index for measuring the multicast performance of the switch. At present, the existing maximum multicast group capacity test method of the switch generally comprises the following steps: and connecting the switch equipment to be tested with a plurality of instrument ports, and testing by using software provided by the instruments. In the above test, it is necessary to manually configure to simulate a host, an inquirer, a multicast source, construct an IGMP (Internet Group Management Protocol, network multicast management protocol) inquiry message, a report message, a multicast data stream, etc. for the test.
However, the use of the instrument requires manual configuration of a host, an inquirer, a multicast source, message construction and the like, and is complex in operation and difficult to operate; the configuration time of the early test environment is long, and the test time is wasted; in addition, the cost of the professional instrument is high, and the test cost is increased.
Therefore, the test mode of the multicast group capacity of the exchange unit in the related technology has the problems of complex configuration process and overlong configuration time of the test environment.
Disclosure of Invention
The embodiment of the application provides a method and a device for testing multicast group capacity, a storage medium and an electronic device, which at least solve the problems of complex configuration process and overlong configuration time of a test environment in a test mode of the multicast group capacity of a switch in the related technology.
According to an aspect of the embodiment of the present application, there is provided a method for testing multicast group capacity, including: controlling a first network card to send a target report message through a switch to be tested, wherein the first network card is used for simulating multicast group members, and the number of target multicast groups to which the target report message belongs is a first number; controlling a second network card to send target data messages to the first number of target multicast groups through the switch, wherein the second network card is used for simulating multicast sources; and determining that the maximum multicast group capacity of the switch is the second number under the condition that the switch starts unknown multicast discarding and the second number of the target multicast groups to which the target data message received by the first network card belongs is smaller than the first number.
In an exemplary embodiment, before controlling the first network card to send the target report message via the switch to be tested, the method further includes: controlling the second network card to send multicast data through the switch under the condition that the multicast table of the switch is empty; under the condition that the first network card receives the multicast data sent by the second network card, determining that the switch does not start unknown multicast discarding; and under the condition that the first network card does not receive the multicast data sent by the second network card, determining that the switch starts unknown multicast discarding.
In an exemplary embodiment, controlling the first network card to send the target report message via the switch to be tested includes: and controlling the first network card to circularly send the first number of target report messages through the switch, wherein the first number is updated to be the sum of the first number and the target number after each circulation.
In an exemplary embodiment, after controlling the second network card to send the target data packet to the first number of the target multicast groups via the switch, the method further includes: when the switch starts unknown multicast discarding and the second number is equal to the first number, before the first network card is controlled to resend the target report message through the switch, the first network card is controlled to disconnect the switch; controlling the first network card to be reconnected to the switch under the condition that the connection time of the first network card and the switch reaches the target time; and clearing a target multicast table used for recording the multicast address on the switch.
In an exemplary embodiment, before controlling the first network card to send the target report message via the switch to be tested, the method further includes: and controlling the first network card to construct the first number of target report messages in a mode of increasing the multicast address, wherein different target report messages have different multicast addresses.
In an exemplary embodiment, before controlling the second network card to send the target data packet to the first number of the target multicast groups via the switch, the method further includes: and controlling the second network card to construct the first number of target data messages in a mode of increasing the multicast addresses, wherein the multicast addresses of the first number of target report messages are in one-to-one correspondence with the multicast addresses of the first number of target data messages.
In an exemplary embodiment, after controlling the second network card to send the target data packet to the first number of the target multicast groups via the switch, the method further includes: and under the condition that the switch does not start unknown multicast discarding and a third network card receives at least one target data message, determining the maximum multicast group capacity of the switch as a difference value between the first quantity and a third quantity, wherein the third network card is used for simulating non-multicast group members, and the third quantity is the quantity of the target multicast groups to which the target data message received by the third network card belongs.
According to another aspect of the embodiment of the present application, there is also provided a device for testing multicast group capacity, including: the first control unit is used for controlling the first network card to send target report messages through the switch to be tested, wherein the first network card is used for simulating multicast group members, and the number of target multicast groups to which the target report messages belong is a first number; the second control unit is used for controlling the second network card to send target data messages to the first number of target multicast groups through the switch, wherein the second network card is used for simulating multicast sources; and the first determining unit is used for determining that the maximum multicast group capacity of the switch is the second number when the switch starts unknown multicast discarding and the second number of the target multicast groups to which the target data message received by the first network card belongs is smaller than the first number.
In an exemplary embodiment, the apparatus further comprises: the third control unit is used for controlling the second network card to send multicast data through the switch under the condition that a multicast table of the switch is empty before controlling the first network card to send the target report message through the switch to be tested; the second determining unit is used for determining that the switch does not start unknown multicast discarding under the condition that the first network card receives the multicast data sent by the second network card; and the third determining unit is used for determining that the switch starts unknown multicast discarding under the condition that the first network card does not receive the multicast data sent by the second network card.
In an exemplary embodiment, the first control unit includes: and the control module is used for controlling the first network card to circularly send the target report messages of the first quantity through the switch, wherein the first quantity is updated to be the sum of the first quantity and the target quantity after each circulation.
In an exemplary embodiment, the apparatus further comprises: a fourth control unit, configured to control, after controlling the second network card to send the target data packet to the first number of the target multicast groups via the switch, to control the first network card to disconnect from the switch before controlling the first network card to resend the target report packet via the switch if the switch has opened unknown multicast discard and the second number is equal to the first number; a fifth control unit, configured to control the first network card to be reconnected to the switch when a duration of disconnection of the first network card from the switch reaches a target duration; and the emptying unit is used for emptying the target multicast table used for recording the multicast address on the switch.
In an exemplary embodiment, the apparatus further comprises: and a sixth control unit, configured to control the first network card to construct the first number of target report messages in a manner of increasing multicast addresses before controlling the first network card to send the target report messages via the switch to be tested, where different target report messages have different multicast addresses.
In an exemplary embodiment, the apparatus further comprises: and a seventh control unit, configured to control, before controlling the second network card to send the target data packets to the first number of target multicast groups via the switch, to construct the first number of target data packets in a manner that the multicast addresses are increased, where the multicast addresses of the first number of target report packets are in one-to-one correspondence with the multicast addresses of the first number of target data packets.
In an exemplary embodiment, the apparatus further comprises: and a fourth determining unit, configured to determine, after controlling the second network card to send the target data packet to the first number of target multicast groups via the switch, that a maximum multicast group capacity of the switch is a difference between the first number and a third number when the switch does not open unknown multicast discard and a third network card receives at least one of the target data packets, where the third network card is used to simulate a non-multicast group member and the third number is the number of the target multicast groups to which the target data packet received by the third network card belongs.
According to yet another aspect of the embodiments of the present application, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described multicast group capacity testing method when run.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the method for testing the multicast group capacity according to the computer program.
In the embodiment of the application, a mode of simulating a multicast source and multicast group members by using a network card is adopted, and a first network card is controlled to send a target report message through a switch to be tested, wherein the first network card is used for simulating the multicast group members, and the number of target multicast groups to which the target report message belongs is a first number; controlling a second network card to send target data messages to a first number of target multicast groups through a switch, wherein the second network card is used for simulating a multicast source; under the condition that the switch starts unknown multicast discarding and the second number of target multicast groups to which the target data messages received by the first network card belong is smaller than the first number, determining the maximum multicast group capacity of the switch as the second number, and controlling the network card to simulate message transmission between a multicast source and multicast group members by using an automatic program, wherein a tester can pass through one-key computer test only according to a built test environment, so that the operation is simple; compared with the instrument for testing, the method has low testing cost, and can achieve the technical effects of simplifying the configuration process of the testing environment, shortening the configuration time, improving the testing efficiency and saving the testing cost, thereby solving the problems of complex configuration process and overlong configuration time of the testing environment in the testing mode of the multicast group capacity of the exchange unit in the related technology.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic diagram of a hardware environment of an alternative multicast group capacity test method according to an embodiment of the present application;
fig. 2 is a flow chart of an alternative multicast group capacity testing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of an alternative multicast group capacity testing method according to an embodiment of the present application;
fig. 4 is a flow chart of another alternative multicast group capacity testing method according to an embodiment of the present application;
fig. 5 is a flow chart of yet another alternative multicast group capacity testing method according to an embodiment of the present application;
fig. 6 is a block diagram of an alternative multicast group capacity testing apparatus according to an embodiment of the present application;
Fig. 7 is a block diagram of an alternative electronic device according to an embodiment of the application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiment of the application, a method for testing the capacity of a multicast group is provided. Alternatively, in this embodiment, the method for testing the multicast group capacity may be applied to a hardware environment formed by the control device 102 and the switch 104 as shown in fig. 1, where at least two network cards are further connected to the switch 104. As shown in fig. 1, a control device 102 is connected to a switch 104 via a network or other means (e.g., data lines, etc.), and is operable to control testing of the multicast group capacity of the switch 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The control device 102 may not be limited to a PC, a mobile phone, a tablet computer, etc.
The method for testing the multicast group capacity according to the embodiment of the present application may be performed by the control device 102, or may be performed by the control device 102 and the switch 104 together. The method for testing the capacity of the multicast group performed by the control device 102 according to the embodiment of the present application may be performed by a client installed thereon.
Taking the method for testing the multicast group capacity in the present embodiment performed by the control device 102 as an example, fig. 2 is a schematic flow chart of an alternative method for testing the multicast group capacity according to an embodiment of the present application, and as shown in fig. 2, the flow of the method may include the following steps:
step S202, a first network card is controlled to send a target report message through a switch to be tested, wherein the first network card is used for simulating multicast group members, and the number of target multicast groups to which the target report message belongs is a first number.
The method for testing the multicast group capacity in the present embodiment may be applied to a scenario of testing the maximum multicast group capacity of the switch, for example, a scenario of performing IGMP Snooping (Snooping) test of the switch. Taking IGMP Snooping test as an example, an example of an IGMP Snooping test topology may be shown in fig. 3, which may include 4 devices, namely, network card 1, network card 2, network card 3 (optional device) and a switch (switch is a device under test, supporting IGMP Snooping function), network card 1, network card 2, network card 3 may connect to the switch of the device under test, wherein,
a computer (an example of the foregoing control device) may control the network card 1 (an example of the second network card) to simulate a multicast source, and send a multicast group data packet (an example of a target data packet);
The computer can control the network card 2 (an example of a first network card) to simulate multicast group membership, send an IGMP report message (an example of a target report message), and receive a multicast group data message sent by the network card 1;
the computer may control the network card 3 (an example of a third network card) to simulate a non-multicast group member and receive the multicast group data packet sent by the network card 1.
When the switch multicast group test is performed, the control device may first control the first network card to construct a target report packet, where the number of target multicast groups to which the target report packet belongs is a first number, and destination addresses and group addresses (for example, IGMP group addresses) of the target report packets belonging to different target multicast groups are different. The number of target report messages belonging to each target multicast group may be one or more.
After the target report message is constructed, the control device may control the first network card to simulate the multicast group member to send the report message, that is, control the first network card to send the target report message via the switch to be tested. Since the number of target multicast groups to which the target report message belongs is the first number and the capacity of the multicast table of the switch is limited, multicast addresses of all or part of the target multicast groups can be added in the multicast table of the switch.
Alternatively, in order to ensure that the multicast table of the switch is empty before receiving the target report message, the multicast table of the switch, that is, the multicast table of the switch to be tested, may be emptied before step S202.
Step S204, the second network card is controlled to send the target data message to the first number of target multicast groups via the switch, wherein the second network card is used for simulating the multicast source.
After the target report message is sent, the control device can control the second network card to simulate the multicast source and send the multicast group data message. The control device may first control the second network card to construct the target data packet. The target data message may be constructed from a first number of target multicast groups, e.g., from the multicast addresses (e.g., destination address + group address) of each target multicast group. The number of target data messages addressed to each target multicast group may be one or more.
It should be noted that, the second network card may construct the target data packet before the first network card sends the target report packet, or after the first network card sends the target report packet, as long as the target data packet is sent to the switch after all the target report packets have been sent.
The control device may control the second network card to send the target data packet to the first number of target multicast groups via the switch. After receiving the target data message, the switch can query the multicast address of the target data message. According to the multicast address corresponding to the target data message, the switch can forward the multicast address to the corresponding interface. Optionally, if the multicast address is not in the multicast table of the switch and the switch has opened unknown multicast discard, the switch may discard the target data message.
Step S206, when the switch starts unknown multicast discarding and the second number of the target multicast groups to which the target data message received by the first network card belongs is smaller than the first number, determining the maximum multicast group capacity of the switch as the second number.
The first network card can receive the target data message forwarded by the switch, and the number of target multicast groups to which the received target data message belongs is the second number. The second number may be equal to or less than the first number.
Only the multicast address of the upper limit of the multicast group capacity is recorded in the multicast table of the switch. If the switch starts unknown multicast discarding and the first number reaches the upper limit of the multicast group capacity of the switch, the switch only forwards the target data message of which the multicast address is found to the corresponding interface and discards the target data message of which the multicast address is not found, although the number of the target multicast groups to which the target data message sent by the second network card belongs is the first number. Therefore, the number of the target multicast groups to which the target data packet received by the first network card belongs is the multicast capacity of the switch.
For example, the first network card constructs 100 IGMP report messages, each IGMP report message corresponding to one multicast group, i.e., 100 multicast addresses (destination address and IGMP group address). The maximum multicast group capacity of the switch is 80, then when 100 IGMP report messages are sent via the switch to be tested, the switch records only 80 of the 100 multicast addresses in its multicast table. The record corresponding to each multicast address may represent: and forwarding the message sent to the multicast address to an interface corresponding to the first network card.
On the second network card side, the second network card constructs 100 multicast group data messages, each multicast group data message corresponds to one multicast group, that is, there are 100 multicast addresses (target address and IGMP group address), and the 100 multicast addresses correspond to the multicast addresses of the IGMP report message one by one.
The switch opens an unknown multicast discard. When 100 multicast group data messages arrive at the switch, only the multicast addresses of 80 multicast group data messages can find records in the multicast table and transfer to the interface corresponding to the first network card; the multicast addresses of the remaining 20 multicast group data messages do not find the corresponding record, which the switch discards.
The first network card only receives 80 multicast group data messages, and based on the received multicast group data messages, the first network card can determine that: the maximum multicast group capacity of the switch is 80.
Through the steps, the first network card is controlled to send target report messages through the switch to be tested, wherein the first network card is used for simulating multicast group members, the second network card is used for simulating multicast sources, and the number of target multicast groups to which the target report messages belong is a first number; controlling the second network card to send target data messages to the first number of target multicast groups through the switch; under the condition that the switch is started with unknown multicast discarding and the second number of target multicast groups to which the target data message received by the first network card belongs is smaller than the first number, determining the maximum multicast group capacity of the switch as the second number, solving the problems of complex configuration process and overlong configuration time of a test environment in a test mode of the multicast group capacity of the switch in the related technology, simplifying the configuration process of the test environment, shortening the configuration time, improving the test efficiency and saving the test cost.
In an exemplary embodiment, before controlling the first network card to send the target report message via the switch to be tested, the method further includes:
S11, when the multicast table of the switch is empty, controlling the second network card to send multicast data through the switch;
s12, under the condition that the first network card receives the multicast data sent by the second network card, determining that the switch does not start unknown multicast discarding;
s13, under the condition that the first network card does not receive the multicast data sent by the second network card, determining that the switch starts unknown multicast discarding.
Whether the switch is started or not can be known in advance, or can be obtained by testing by adopting other topology structures. In this embodiment, a topology architecture for testing the multicast group capacity of the switch may be used to test whether the switch has opened unknown multicast drops.
In the case that the multicast table of the switch is empty, the control device may control the second network card to send multicast data via the switch, where the multicast group data may be a data packet that sends a certain multicast address or a certain multicast addresses. To ensure that the switch multicast table is empty, the control device may control the switch to empty its multicast table.
After receiving the multicast data, the switch may look up its multicast table to determine the interface to which the multicast data is to be forwarded. Because the multicast table is empty, if the switch starts unknown multicast discarding, the multicast data is discarded; if the switch does not initiate unknown multicast drops, the multicast data is broadcast to the interfaces.
If the first network card receives the multicast data sent by the second network card, the control device can determine that the switch does not start unknown multicast discarding; otherwise, determining that the switch opens unknown multicast drops.
For example, for the test topology shown in fig. 3, the network card 1 transmits multicast data traffic with a destination address of 224.1.1.1, and checks whether the network card 2 receives the traffic. If the network card 2 does not receive the multicast data flow sent by the network card 1, judging that the switch starts unknown multicast discarding; if the network card 2 receives the multicast data flow sent by the network card 1, the switch is judged to not start unknown multicast discarding.
According to the embodiment, when the multicast table of the switch is empty, the network card forwards multicast data through the switch, whether the switch starts unknown multicast discarding is determined according to whether other network cards receive the multicast data, the topology framework of the multicast group capacity test can be compatible, the test cost is reduced, and meanwhile, the convenience of information acquisition is improved.
In an exemplary embodiment, controlling the first network card to send the target report message via the switch to be tested includes:
s21, the first network card is controlled to circularly send a first number of target report messages through the switch, wherein the first number is updated to be the sum of the first number and the target number after each circulation.
Because the maximum multicast group capacity of the switch is unknown, if a large number of report messages are directly sent, the test abnormality is easy to be caused, and the accuracy of the multicast group capacity test is reduced. In this embodiment, the target report packet may be sent in a cyclic manner by increasing the number of multicast groups until a cyclic end condition is satisfied, for example, the cyclic end condition may be: and under the condition that the switch starts unknown multicast discarding, the second number of target multicast groups to which the target data message received by the first network card belongs is smaller than the first number.
For example, for a test topology as shown in fig. 3, the following information may be configured prior to starting the test program: the network card 2 initially sends the multicast group number T of the message, reports the multicast group number m increased by the message after each cycle, and the cycle number n is equal to 0, the initial value is equal to 0, and the cycle number n is increased by 1.
In the process of testing the multicast group capacity of the switch, the control device may control the first network card to send the target report message through the switch in a circulating manner, and after each circulation, the number of the target multicast groups to which the target report message belongs is increased by the target number, that is, the first number is updated to be the sum of the first number and the target number. For example, after each round of circulation, the number of multicast groups that send report messages is updated as: t+n.times.m.
According to the embodiment, the multicast group capacity of the switch is determined in a loop test mode, so that the accuracy of determining the multicast group capacity can be improved.
In an exemplary embodiment, after controlling the second network card to send the target data packet to the first number of target multicast groups via the switch, the method further includes:
s31, when the switch starts unknown multicast discarding and the second number is equal to the first number, before the first network card is controlled to resend the target report message through the switch, the first network card is controlled to disconnect the switch;
s32, controlling the first network card to be reconnected to the switch under the condition that the connection time of the first network card and the switch reaches the target time;
s33, the target multicast table used for recording the multicast address on the switch is emptied.
After the second network card is controlled to send the target data message, if the switch starts unknown multicast discarding and the second number of target multicast groups to which the target data message received by the first network card belongs is smaller than the first number, it can be determined that the maximum multicast group capacity of the switch is greater than or equal to the first number, and the next round of testing is started.
In order to ensure the accuracy of the multicast group capacity test, the first network card can be controlled to disconnect from the switch before the next round of test is started; after being disconnected for a period of time (i.e., the disconnection time reaches the target time), the first network card is controlled to be reconnected to the switch.
For example, for the test topology shown in fig. 3, after a round of testing is completed, the computer controls the network card 2 to disconnect, reconnect after waiting for 5 seconds, and empty the switch multicast table.
According to the embodiment, before a new round of testing is started, the accuracy of the multicast group capacity testing can be ensured by controlling the network cards of the analog multicast group members to be disconnected and then reconnected and clearing the multicast table of the exchange.
In an exemplary embodiment, before controlling the first network card to send the target report message via the switch to be tested, the method further includes:
s41, controlling the first network card to construct a first number of target report messages in a multicast address increasing mode, wherein different target report messages have different multicast addresses.
When the target report message is sent, the control device may first control the first network card to construct the target report message. In order to reduce the number of report messages that need to be sent, each target multicast group may only construct one target report message for it, different target report messages having different multicast addresses. Correspondingly, the number of the constructed target report messages is the first number.
When the first number of target report messages is constructed, in order to avoid the problem of insufficient multicast addresses caused by excessive report message numbers, the first number of target report messages can be constructed in a mode of increasing the multicast addresses.
According to the embodiment, the report messages with the same number as the multicast groups are constructed in a mode of increasing the multicast addresses, so that convenience in message construction can be improved, and meanwhile, the defect that the multicast addresses are insufficient due to the fact that the number of the report messages is too large is avoided.
In an exemplary embodiment, before controlling the second network card to send the target data packet to the first number of target multicast groups via the switch, the method further includes:
s51, the second network card is controlled to construct a first number of target data messages in a mode of increasing multicast addresses, wherein the multicast addresses of the first number of target report messages are in one-to-one correspondence with the multicast addresses of the first number of target data messages.
When the target data message is sent, the control device may first control the second network card to construct the target data message. In order to reduce the number of report messages to be sent, each target multicast group may only construct one target data message for it, different target data messages having different multicast addresses. Correspondingly, the number of the constructed target data messages is the first number.
When constructing the first number of target data messages, in order to ensure the accuracy of the multicast group capacity test, the first number of target data messages can be constructed in a mode of increasing the multicast addresses, that is, the first number of target data messages are constructed in the same mode as the target report messages are generated, and the multicast addresses of the first number of target report messages are in one-to-one correspondence with the multicast addresses of the first number of target data messages.
It should be noted that, in order to avoid the problem that the multicast group capacity test of the switch is inaccurate due to the packet loss, each target data packet may be sent at least twice.
According to the embodiment, the data messages with the same quantity as the multicast groups are constructed in a mode of increasing the multicast addresses, so that convenience in message construction can be improved, and meanwhile, the defect that the multicast addresses are insufficient due to the fact that the quantity of the report messages is too large is avoided.
The method for testing the multicast group capacity in the embodiment of the present application is explained below with reference to an alternative example. In this alternative example, the target data message is a multicast group data message, the target report message is an IGMP report message, and each multicast group only constructs one message (whether it is a multicast group data message or an IGMP report message).
An automatic test scheme suitable for the maximum multicast group capacity of the switch is provided in an alternative example, as shown in fig. 4, for the test topology shown in fig. 3, the test method for the multicast group capacity in this alternative example may include the following procedures:
in step S402, the number of multicast groups of the initial transmission message of t=network card 2 is defined, n=0, m=the number of multicast groups incremented each time, and the procedure is started.
In step S404, the network card 1 transmits the multicast data traffic with the destination address of 224.1.1.1.
Step S406, determining whether the network card 2 receives the multicast group data traffic, if yes (there is traffic reception), executing step S408, otherwise executing step S418.
In step S408, the network card 2 sends an IGMP report message, and the destination address group address is incremented by the number t+n×m.
The network card 2 constructs the report message of IGMPv2 version with the destination address and IGMP group address increasing, the initial destination IP address and IGMP group address are 224.1.1.1, increasing 0.0.0.1 (corresponding to one multicast group every time), the number of the constructed report message is the same as the number of the multicast groups, and is T+n.m (one report message is constructed for each multicast group).
And after the network card 2 message construction is completed, sending reporting messages of IGMPv2 version, wherein the number of reporting messages is T+n.
In step S410, the network card 1 sends the same multicast group packets as the previous step with the number of 2 (t+n×m).
The network card 1 constructs data messages in a progressive manner according to the initial destination address of 224.1.1.1 and the progressive manner of 0.0.0.1, and the number of the constructed messages is T+n×m (one data message is constructed for each multicast group).
And immediately transmitting the constructed data messages after the message construction of the network card 1 is completed, wherein each constructed data message is transmitted for 2 times, and the number of the transmitted data messages is 2 (T+n.times.m).
Step S412, the number of network cards 2 received is compared with the number of network cards 1 transmitted, if the number is equal to the number of network cards 1 transmitted, step S414 is executed, otherwise, step S416 is executed.
The multicast message data (i.e., the foregoing data message) received by the network card 2 is compared with the multicast message data sent by the network card 1, and it is determined whether the number of messages received by the network card 2 is equal to the number of messages sent by the network card 1, i.e., equal to 2 (t+n×m). If so, it is indicated that the current multicast group number (t+n×m) does not reach the maximum multicast group capacity of the switch, and step S414 is performed. Otherwise, the number of messages received by the network card 2 is smaller than the number of messages sent by the network card 1, which indicates that the current multicast group number (t+n×m) reaches (is at least equal to) the maximum multicast group capacity of the switch, and step S416 is performed.
In step S414, the shown (shutdown) network card 2 is restored to the connection again.
The computer controls the network card 2 to disconnect, reconnect after waiting for 5s, and empty the switch multicast table. Meanwhile, the number of loops n is increased by 1 (n=n+1), and step S408 is re-executed.
Step S416, the output switch maximum multicast group capacity is: number of receptions/2.
If the number of the multicast messages received by the network card 2 is smaller than the number of the multicast messages sent by the network card 1, the maximum multicast group capacity of the switch is that the number of the multicast messages received by the network card 2 is divided by 2, and the output result program is finished.
In step S418, the maximum multicast group capacity of the switch is tested using network card 1, network card 2 and network card 3.
By the alternative example, in the maximum multicast group capacity test of the switch, an automatic program is utilized, so that the automatic program test does not occupy manual test time, the test efficiency is improved, and the problems of long manual test time and low efficiency are solved; judging whether the switch defaults to open unknown multicast discarding by using an automatic program, and reducing configuration of the switch; the test data is automatically recorded, so that the test data is convenient to store and check.
In an exemplary embodiment, after controlling the second network card to send the target data packet to the first number of target multicast groups via the switch, the method further includes:
S61, under the condition that the switch does not start unknown multicast discarding and the third network card receives at least one target data message, determining the maximum multicast group capacity of the switch as a difference value between the first number and the third number, wherein the third network card is used for simulating non-multicast group members, and the third number is the number of target multicast groups to which the target data message received by the third network card belongs.
In this embodiment, the switch may further be connected to a third network card, where the third network card is used to simulate a non-multicast group member, and the multicast table of the switch does not include a multicast address corresponding to the network card. In the case where the switch does not open an unknown multicast discard, the third network card does not receive multicast data if the first number does not exceed the maximum multicast group capacity of the switch. In this case, the destination report message may be cyclically transmitted in a similar manner to that described above until the third network card receives the multicast data.
If the first number exceeds the maximum multicast group capacity of the switch, the third network card receives multicast data, i.e., at least one target data packet. In this case, the number of target multicast groups to which the target data packet received by the third network card belongs (i.e., the third number) is the difference between the second number (equal to the first number) and the maximum multicast group capacity. Based on this, the control device may determine that the multicast group capacity upper limit of the switch is a difference between the first number and the third number.
According to the embodiment, under the condition that the switch does not start unknown multicast discarding, the network card is used for simulating the non-multicast group members, and the maximum multicast group capacity of the switch is determined based on the multicast data receiving condition of the network card, so that the convenience of multicast group capacity test can be improved.
The method for testing the multicast group capacity in the embodiment of the present application is explained below with reference to an alternative example.
An alternative implementation of step S418 is provided in this alternative example, as shown in fig. 5, and the flow of the method for testing the multicast group capacity in this alternative example may include the following steps:
in step S502, the network card 2 sends an IGMP report message, and the destination address group addresses are incremented by a number of t+n×m.
The network card 2 constructs the report message of IGMPv2 version with the destination address and IGMP group address increasing, the initial destination IP address and IGMP group address are 224.1.1.1, increasing 0.0.0.1 (corresponding to one multicast group every time), the number of the constructed report message is the same as the number of the multicast groups, and is T+n.m (one report message is constructed for each multicast group).
And after the network card 2 message construction is completed, sending reporting messages of IGMPv2 version, wherein the number of reporting messages is T+n.
In step S504, the network card 1 sends the same multicast group packets with destination address as in the previous step, and the number is 2 (t+n×m).
The network card 1 constructs data messages in a progressive manner according to the initial destination address of 224.1.1.1 and the progressive manner of 0.0.0.1, and the number of the constructed messages is T+n×m (one data message is constructed for each multicast group).
And immediately transmitting the constructed data messages after the message construction of the network card 1 is completed, wherein each constructed data message is transmitted for 2 times, and the number of the transmitted data messages is 2 (T+n.times.m).
Step S506, determining whether the network card 3 receives the traffic, if yes, executing step S508, otherwise, executing step S510.
Step S508, the output switch maximum multicast group capacity is: t+m x n- (data traffic/2 received by network card 3).
The network card 3 receives the multicast data flow sent by the network card 1, and considering that each data message is sent twice, the maximum multicast group capacity of the switch is T+m×n- (the data flow/2 received by the network card 3), and the output result program is finished.
Step S510, the shown network card 2 is restored.
The computer controls the network card 2 to disconnect, reconnect after waiting for 5S, empty the switch multicast table, and increase the number of loops n by 1 (n=n+1), and re-execute step S502.
By the alternative example, in the maximum multicast group capacity test of the switch, an automatic program is utilized, so that the automatic program test does not occupy manual test time, the test efficiency is improved, and the problems of long manual test time and low efficiency are solved; judging whether the switch defaults to open unknown multicast discarding by using an automatic program, and reducing configuration of the switch; the test data is automatically recorded, so that the test data is convenient to store and check.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM (Read-Only Memory)/RAM (Random Access Memory), magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
According to another aspect of the embodiment of the present application, there is also provided a multicast group capacity testing device for implementing the above method for testing a multicast group capacity. Fig. 6 is a block diagram of an alternative multicast group capacity testing apparatus according to an embodiment of the present application, and as shown in fig. 6, the apparatus may include:
a first control unit 602, configured to control a first network card to send a target report packet via a switch to be tested, where the first network card is configured to simulate a multicast group member, and the number of target multicast groups to which the target report packet belongs is a first number;
the second control unit 604 is connected to the first control unit 602, and is configured to control the second network card to send the target data packet to the first number of target multicast groups via the switch, where the second network card is used to simulate a multicast source;
the first determining unit 606 is connected to the second control unit 604, and is configured to determine that the maximum multicast group capacity of the switch is the second number when the switch has started unknown multicast discard and the second number of target multicast groups to which the target data packet received by the first network card belongs is smaller than the first number.
It should be noted that, the first control unit 602 in this embodiment may be used to perform the above-mentioned step S202, the second control unit 604 in this embodiment may be used to perform the above-mentioned step S204, and the first determining unit 606 in this embodiment may be used to perform the above-mentioned step S206.
Through the module, the first network card is controlled to send target report messages through the switch to be tested, wherein the first network card is used for simulating multicast group members, and the number of target multicast groups to which the target report messages belong is a first number; controlling a second network card to send target data messages to a first number of target multicast groups through a switch, wherein the second network card is used for simulating a multicast source; under the condition that the switch is started with unknown multicast discarding and the second number of target multicast groups to which the target data message received by the first network card belongs is smaller than the first number, determining the maximum multicast group capacity of the switch as the second number, solving the problems of complex configuration process and overlong configuration time of a test environment in a test mode of the multicast group capacity of the switch in the related technology, simplifying the configuration process of the test environment, shortening the configuration time, improving the test efficiency and saving the test cost.
In an exemplary embodiment, the above apparatus further includes:
the third control unit is used for controlling the second network card to send multicast data through the switch under the condition that the multicast table of the switch is empty before controlling the first network card to send the target report message through the switch to be tested;
The second determining unit is used for determining that the switch does not start unknown multicast discarding under the condition that the first network card receives the multicast data sent by the second network card;
and the third determining unit is used for determining that the switch starts unknown multicast discarding under the condition that the first network card does not receive the multicast data sent by the second network card.
In one exemplary embodiment, the first control unit 602 includes:
the control module is used for controlling the first network card to circularly send a first number of target report messages through the switch, wherein the first number is updated to be the sum of the first number and the target number after each circulation.
In an exemplary embodiment, the above apparatus further includes:
the fourth control unit is used for controlling the first network card to disconnect the connection with the switch before controlling the first network card to resend the target report message through the switch under the condition that the switch starts unknown multicast discarding and the second number is equal to the first number after controlling the second network card to send the target data message to the first number of target multicast groups through the switch;
the fifth control unit is used for controlling the first network card to be reconnected to the switch under the condition that the time length of disconnecting the first network card from the switch reaches the target time length;
And the emptying unit is used for emptying the target multicast table used for recording the multicast address on the switch.
In an exemplary embodiment, the above apparatus further includes:
and the sixth control unit is used for controlling the first network card to construct a first number of target report messages in a multicast address increasing mode before controlling the first network card to send the target report messages through the switch to be tested, wherein different target report messages have different multicast addresses.
In an exemplary embodiment, the above apparatus further includes:
and the seventh control unit is used for controlling the second network card to construct the first number of target data messages in a mode of increasing multicast addresses before controlling the second network card to send the target data messages to the first number of target multicast groups through the switch, wherein the multicast addresses of the first number of target report messages are in one-to-one correspondence with the multicast addresses of the first number of target data messages.
In an exemplary embodiment, the above apparatus further includes:
and the fourth determining unit is used for determining that the maximum multicast group capacity of the switch is the difference between the first number and the third number after controlling the second network card to send the target data messages to the first number of target multicast groups through the switch, and under the condition that the switch does not start unknown multicast discarding and the third network card receives at least one target data message, wherein the third network card is used for simulating non-multicast group members and the third number is the number of target multicast groups to which the target data messages received by the third network card belong.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or in hardware as part of the apparatus shown in fig. 1, where the hardware environment includes a network environment.
According to yet another aspect of an embodiment of the present application, there is also provided a storage medium. Alternatively, in this embodiment, the storage medium may be used to execute the program code of the method for testing the multicast group capacity according to any one of the foregoing embodiments of the present application.
Alternatively, in this embodiment, the storage medium may be located on at least one network device of the plurality of network devices in the network shown in the above embodiment.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
s1, a first network card is controlled to send a target report message through a switch to be tested, wherein the first network card is used for simulating multicast group members, and the number of target multicast groups to which the target report message belongs is a first number;
S2, controlling a second network card to send target data messages to a first number of target multicast groups through a switch, wherein the second network card is used for simulating multicast sources;
and S3, determining the maximum multicast group capacity of the switch as the second number under the condition that the switch starts unknown multicast discarding and the second number of the target multicast groups to which the target data message received by the first network card belongs is smaller than the first number.
Alternatively, specific examples in the present embodiment may refer to examples described in the above embodiments, which are not described in detail in the present embodiment.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, ROM, RAM, a mobile hard disk, a magnetic disk or an optical disk.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device for implementing the method for testing a multicast group capacity, where the electronic device may be a server, a terminal, or a combination thereof.
Fig. 7 is a block diagram of an alternative electronic device, according to an embodiment of the present application, as shown in fig. 7, including a processor 702, a communication interface 704, a memory 706, and a communication bus 708, wherein the processor 702, the communication interface 704, and the memory 706 communicate with each other via the communication bus 708, wherein,
A memory 706 for storing a computer program;
the processor 702, when executing the computer program stored on the memory 706, performs the following steps:
s1, a first network card is controlled to send a target report message through a switch to be tested, wherein the first network card is used for simulating multicast group members, and the number of target multicast groups to which the target report message belongs is a first number;
s2, controlling a second network card to send target data messages to a first number of target multicast groups through a switch, wherein the second network card is used for simulating multicast sources;
and S3, determining the maximum multicast group capacity of the switch as the second number under the condition that the switch starts unknown multicast discarding and the second number of the target multicast groups to which the target data message received by the first network card belongs is smaller than the first number.
Alternatively, in the present embodiment, the communication bus may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or an EISA (Extended Industry Standard Architecture ) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 7, but not only one bus or one type of bus. The communication interface is used for communication between the electronic device and other equipment.
The memory may include RAM or nonvolatile memory (non-volatile memory), such as at least one magnetic disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
As an example, the memory 706 may include, but is not limited to, a first control unit 602, a second control unit 604, and a first determination unit 606 in the multicast group capacity test apparatus. In addition, other module units in the multicast group capacity testing device may be included, but are not limited to, and are not described in detail in this example.
The processor may be a general purpose processor and may include, but is not limited to: CPU (Central Processing Unit ), NP (Network Processor, network processor), etc.; but also DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be understood by those skilled in the art that the structure shown in fig. 7 is only illustrative, and the device implementing the method for testing the multicast group capacity may be a terminal device, and the terminal device may be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 7 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, etc.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in the present embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method for testing multicast group capacity, comprising:
controlling a first network card to send target report messages through a switch to be tested, wherein the first network card is used for simulating multicast group members, the number of target multicast groups to which the target report messages belong is a first number, the destination addresses and the group addresses of the target report messages belonging to different target multicast groups are different, and the number of the target report messages belonging to each target multicast group is one or more;
Controlling a second network card to send target data messages to the first number of target multicast groups through the switch, wherein the second network card is used for simulating a multicast source, and the target data messages are constructed according to the first number of target multicast groups;
and determining that the maximum multicast group capacity of the switch is the second number under the condition that the switch starts unknown multicast discarding and the second number of the target multicast groups to which the target data message received by the first network card belongs is smaller than the first number.
2. The method of claim 1, wherein prior to controlling the first network card to send the target report message via the switch under test, the method further comprises:
controlling the second network card to send multicast data through the switch under the condition that the multicast table of the switch is empty;
under the condition that the first network card receives the multicast data sent by the second network card, determining that the switch does not start unknown multicast discarding;
and under the condition that the first network card does not receive the multicast data sent by the second network card, determining that the switch starts unknown multicast discarding.
3. The method of claim 1, wherein controlling the first network card to send the target report message via the switch to be tested comprises:
and controlling the first network card to circularly send the first number of target report messages through the switch, wherein the first number is updated to be the sum of the first number and the target number after each circulation.
4. The method of claim 1, wherein after controlling the second network card to send the target data packet to the first number of the target multicast groups via the switch, the method further comprises:
when the switch starts unknown multicast discarding and the second number is equal to the first number, before the first network card is controlled to resend the target report message through the switch, the first network card is controlled to disconnect the switch;
controlling the first network card to be reconnected to the switch under the condition that the connection time of the first network card and the switch reaches the target time;
and clearing a target multicast table used for recording the multicast address on the switch.
5. The method of claim 1, wherein prior to controlling the first network card to send the target report message via the switch under test, the method further comprises:
and controlling the first network card to construct the first number of target report messages in a mode of increasing the multicast address, wherein different target report messages have different multicast addresses.
6. The method of claim 5, wherein prior to controlling the second network card to send the target data message to the first number of the target multicast groups via the switch, the method further comprises:
and controlling the second network card to construct the first number of target data messages in a mode of increasing the multicast addresses, wherein the multicast addresses of the first number of target report messages are in one-to-one correspondence with the multicast addresses of the first number of target data messages.
7. The method according to any one of claims 1 to 6, wherein after controlling the second network card to send the target data packets to the first number of the target multicast groups via the switch, the method further comprises:
And under the condition that the switch does not start unknown multicast discarding and a third network card receives at least one target data message, determining the maximum multicast group capacity of the switch as a difference value between the first quantity and a third quantity, wherein the third network card is used for simulating non-multicast group members, and the third quantity is the quantity of the target multicast groups to which the target data message received by the third network card belongs.
8. A device for testing the capacity of a multicast group, comprising:
the first control unit is used for controlling a first network card to send target report messages through a switch to be tested, wherein the first network card is used for simulating multicast group members, the number of target multicast groups to which the target report messages belong is a first number, the destination addresses and the group addresses of the target report messages belonging to different target multicast groups are different, and the number of the target report messages belonging to each target multicast group is one or more;
a second control unit, configured to control a second network card to send a target data packet to the first number of target multicast groups via the switch, where the second network card is configured to simulate a multicast source, and the target data packet is according to the first number of target multicast groups; and the first determining unit is used for determining that the maximum multicast group capacity of the switch is the second number when the switch starts unknown multicast discarding and the second number of the target multicast groups to which the target data message received by the first network card belongs is smaller than the first number.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of claims 1 to 7 by means of the computer program.
CN202110731754.4A 2021-06-29 2021-06-29 Multicast group capacity testing method and device, storage medium and electronic device Active CN113572698B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110731754.4A CN113572698B (en) 2021-06-29 2021-06-29 Multicast group capacity testing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110731754.4A CN113572698B (en) 2021-06-29 2021-06-29 Multicast group capacity testing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113572698A CN113572698A (en) 2021-10-29
CN113572698B true CN113572698B (en) 2023-12-01

Family

ID=78163066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110731754.4A Active CN113572698B (en) 2021-06-29 2021-06-29 Multicast group capacity testing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113572698B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338457B (en) * 2021-12-23 2023-12-01 绿盟科技集团股份有限公司 Test system, method, device, equipment and medium for network card switching effectiveness
CN118041846A (en) * 2024-04-11 2024-05-14 深圳市丰润达科技有限公司 Static multicast automatic test method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242419A (en) * 2008-03-19 2008-08-13 中兴通讯股份有限公司 Fast multicast processing method
CN101426014A (en) * 2008-12-02 2009-05-06 中兴通讯股份有限公司 Method and system for multicast source attack prevention
WO2017000159A1 (en) * 2015-06-30 2017-01-05 Thomson Licensing Method and apparatus for ip multicast grouping
CN108055211A (en) * 2017-12-22 2018-05-18 盛科网络(苏州)有限公司 A kind of method of multicast replication, equipment and storage medium
CN111224882A (en) * 2018-11-23 2020-06-02 中兴通讯股份有限公司 Message processing method and device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242419A (en) * 2008-03-19 2008-08-13 中兴通讯股份有限公司 Fast multicast processing method
CN101426014A (en) * 2008-12-02 2009-05-06 中兴通讯股份有限公司 Method and system for multicast source attack prevention
WO2017000159A1 (en) * 2015-06-30 2017-01-05 Thomson Licensing Method and apparatus for ip multicast grouping
CN108055211A (en) * 2017-12-22 2018-05-18 盛科网络(苏州)有限公司 A kind of method of multicast replication, equipment and storage medium
CN111224882A (en) * 2018-11-23 2020-06-02 中兴通讯股份有限公司 Message processing method and device and storage medium

Also Published As

Publication number Publication date
CN113572698A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN113572698B (en) Multicast group capacity testing method and device, storage medium and electronic device
CN109417691B (en) Bluetooth cluster online upgrading method and device
CN110401568B (en) Network topology discovery method and equipment
JP7239090B2 (en) Methods, devices, computer readable storage media, programs and systems for measuring signal strength
CN101094121B (en) Method, system and device for detecting Ethernet links among not direct connected devices
CN110430135B (en) Message processing method and device
CN107204924B (en) Link discovery method and device
CN111224903B (en) Data transmission method, data transmission equipment and computer readable storage medium
CN111884875A (en) Offline device determination method and device
CN108650336A (en) IP address dynamic allocation method, device and storage medium, wireless relay apparatus
CN106533823B (en) Automatic test system and method and recyclable sending device thereof
CN101800672B (en) Equipment detection method and equipment
CN109361625B (en) Method, device and controller for checking forwarding table item
CN114095876A (en) Broadcast data processing method and device, storage medium and electronic device
CN107612753B (en) Wireless information processing method and device and wireless access equipment
CN113596089A (en) Distribution network binding method and device of equipment, storage medium and electronic device
CN112422485B (en) Communication method and device of transmission control protocol
RU2010111754A (en) NETWORK SYSTEM
US10931529B2 (en) Terminal device management method, server, and terminal device for managing terminal devices in local area network
US20160360386A1 (en) SMS Message Management
CN111787262B (en) Method, system, equipment and storage medium for local area network audio and video call
CN113835946A (en) Pressure testing method for data exchange
WO2018121353A1 (en) Method of testing data channel, test server, and test system
CN112306511A (en) Multicast upgrading method and device
CN111147899A (en) Fault early warning method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant