Test method, device, medium and electronic device for communication device

文档序号:1956564 发布日期:2021-12-10 浏览:15次 中文

阅读说明:本技术 通信设备的测试方法、装置、介质及电子设备 (Test method, device, medium and electronic device for communication device ) 是由 刘祥如 陶春雷 于 2020-12-29 设计创作,主要内容包括:本发明提供了一种通信设备的测试方法,包括:控制测试仪,向所述通信设备的第一端口发送测试样本,所述测试样本中包含s个通信源地址;从所述通信设备中获取所述通信地址表的容量值n,所述通信地址表用于存储所述通信源地址;更新所述通信源地址的个数,直至所述通信地址表的容量值和所述通信源地址的个数满足第一预设条件为止;从所述通信设备中获取第三端口的收包速率;更新所述通信源地址的个数,直至所述第三端口的收包速率满足第二预设条件为止,以此方式对通信设备进行测试可以有效地避免哈希冲突的影响,而且提高了测试效率使得测试结果逼近真实值,进而降低测试误差。本发明还提供了通信设备的测试装置、介质以及电子设备。(The invention provides a test method of communication equipment, which comprises the following steps: the control tester sends a test sample to a first port of the communication equipment, wherein the test sample comprises s communication source addresses; acquiring a capacity value n of the communication address table from the communication equipment, wherein the communication address table is used for storing the communication source address; updating the number of the communication source addresses until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition; acquiring a packet receiving rate of a third port from the communication equipment; and updating the number of the communication source addresses until the packet receiving rate of the third port meets a second preset condition, so that the influence of hash collision can be effectively avoided by testing the communication equipment, the testing efficiency is improved, the testing result approaches to a true value, and the testing error is reduced. The invention also provides a testing device, a medium and electronic equipment of the communication equipment.)

1. A method for testing a communication device, comprising:

the method comprises the steps that a tester is controlled to send a test sample to a first port of the communication equipment, wherein the test sample comprises s communication source addresses, and s is larger than zero;

acquiring a capacity value n of the communication address table from the communication equipment, wherein the n is greater than zero, and the communication address table is used for storing the communication source address;

updating the number of the communication source addresses until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition;

acquiring a packet receiving rate of a third port from the communication equipment;

and updating the number of the communication source addresses until the packet receiving rate of the third port meets a second preset condition.

2. The method of claim 1, wherein before obtaining the packet receiving rate of the third port from the communication device, the method further comprises:

acquiring the communication address table;

sending the communication address table to the tester, wherein the communication address table comprises n communication source addresses;

and controlling the tester to send a verification sample to a second port of the communication equipment, so that the communication equipment forwards data in the verification sample through the first port and/or the third port according to n communication destination addresses in the verification sample, wherein the n communication destination addresses are n communication source addresses in the communication address table.

3. The method of claim 1, wherein after obtaining the capacity value n of the communication address table from the communication device, the method further comprises:

judging whether the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition or not;

if the capacity value of the communication address table and the number of the communication source addresses do not meet the first preset condition, an updating mechanism is triggered; or if the capacity value of the communication address table and the number of the communication source addresses meet the first preset condition, setting the number of the communication destination addresses in the verification sample as n.

4. The method of claim 3, wherein updating the number of communication source addresses until the capacity value of the communication address table and the number of communication source addresses satisfy a first preset condition comprises:

updating the number of the communication source addresses by adopting a dichotomy;

deleting a communication source address in a communication address table in the communication equipment;

sending the updated number of the communication source addresses to the tester, and controlling the tester to send the communication source addresses to the communication equipment by the updated number of the communication source addresses;

acquiring a capacity value n of the communication address table from the communication equipment;

and the steps are circulated until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition.

5. The method of claim 1, wherein after obtaining the packet receiving rate of the third port from the communication device, the method further comprises:

judging whether the packet receiving rate of the third port meets the second preset condition or not;

if the packet receiving rate of the third port does not meet the second preset condition, triggering an updating mechanism; or if the packet receiving rate of the third port meets the second preset condition, recording the number of the current communication source addresses.

6. The method of claim 5, wherein updating the number of the communication source addresses until the packet receiving rate of the third port satisfies a second preset condition comprises:

updating the number of the communication source addresses by adopting a dichotomy;

deleting a communication source address in a communication address table in the communication equipment;

sending the updated number of the communication source addresses to the tester, and controlling the tester to send the communication source addresses to the communication equipment by the updated number of the communication source addresses;

acquiring a capacity value n of the communication address table from the communication equipment;

judging whether the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition or not, and if the capacity value of the communication address table and the number of the communication source addresses meet the first preset condition, setting the number of communication destination addresses in a verification sample as n;

controlling the tester to send the verification sample to a second port of the communication device, so that the communication device forwards data in the verification sample through the first port and/or the third port according to n communication destination addresses in the verification sample;

acquiring the packet receiving rate of the third port from the communication equipment;

and the steps are circulated until the packet receiving rate of the third port meets the second preset condition.

7. A test apparatus for a communication device, comprising:

the first control module is used for controlling the tester and sending a test sample to the first port of the communication equipment, wherein the test sample comprises s communication source addresses, and s is larger than zero;

a first obtaining module, configured to obtain a capacity value n of the communication address table from the communication device, where n is greater than zero, and the communication address table is used to store the communication source address;

the first updating module is used for updating the number of the communication source addresses until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition;

a second obtaining module, configured to obtain a packet receiving rate of a third port from the communication device;

and the second updating module is used for updating the number of the communication source addresses until the packet receiving rate of the third port meets a second preset condition.

8. A test system of a communication device, characterized in that the test system comprises a server, a tester and the communication device;

the tester receives a control instruction sent by the server, and sends a test sample to a first port of the communication equipment according to the control instruction, wherein the test sample comprises s communication source addresses, and s is larger than zero;

the communication equipment receives the test sample, learns the communication source address in the test sample and records the learned communication source address to a communication address table;

the server acquires a capacity value n of the communication address table from the communication equipment, wherein the n is larger than zero;

the server updates the number of the communication source addresses until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition;

the server acquires the packet receiving rate of a third port from the communication equipment;

and the server updates the number of the communication source addresses until the packet receiving rate of the third port meets a second preset condition.

9. An electronic device, comprising:

one or more processors; and

storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out a method according to any one of claims 1 to 6.

10. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method according to any one of claims 1 to 6.

Technical Field

The invention relates to the technical field of communication equipment testing, in particular to a method, a device, a medium and electronic equipment for testing communication equipment.

Background

The manufacturer of the communication device or the purchaser of the communication device performs detailed tests on the performance specifications of the communication device. At present, the performance specification testing method of the communication equipment adopts a manual mode and a testing instrument mode, but the influence of hash collision cannot be effectively avoided when the communication equipment is tested by the conventional method, and a large amount of tests cannot be carried out under the limitation of manual efficiency so that the testing result approaches to a true value, so that the testing error is larger.

It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present invention and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.

Disclosure of Invention

Embodiments of the present invention provide a method, an apparatus, a medium, and an electronic device for testing a communication device, so as to effectively avoid hash collision to a certain extent, improve testing efficiency, and enable a testing result to approach a true value, thereby reducing testing errors.

Additional features and advantages of the invention will be set forth in the detailed description which follows, or may be learned by practice of the invention.

According to a first aspect of the embodiments of the present invention, there is provided a method for testing a communication device, including: the method comprises the steps that a tester is controlled to send a test sample to a first port of the communication equipment, wherein the test sample comprises s communication source addresses, and s is larger than zero; acquiring a capacity value n of the communication address table from the communication equipment, wherein the n is greater than zero, and the communication address table is used for storing the communication source address; updating the number of the communication source addresses until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition; acquiring a packet receiving rate of a third port from the communication equipment; and updating the number of the communication source addresses until the packet receiving rate of the third port meets a second preset condition.

In some embodiments of the present invention, before obtaining the packet receiving rate of the third port from the communication device, the method further includes: acquiring the communication address table; sending the communication address table to the tester, wherein the communication address table comprises n communication source addresses; and controlling the tester to send a verification sample to a second port of the communication equipment, so that the communication equipment forwards data in the verification sample through the first port and/or the third port according to n communication destination addresses in the verification sample, wherein the n communication destination addresses are n communication source addresses in the communication address table.

In some embodiments of the invention, after obtaining the capacity value n of the communication address table from the communication device, the method further comprises: judging whether the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition or not; if the capacity value of the communication address table and the number of the communication source addresses do not meet the first preset condition, an updating mechanism is triggered; or if the capacity value of the communication address table and the number of the communication source addresses meet the first preset condition, setting the number of the communication destination addresses in the verification sample as n.

In some embodiments of the present invention, updating the number of the communication source addresses until the capacity value of the communication address table and the number of the communication source addresses satisfy a first preset condition includes: updating the number of the communication source addresses by adopting a dichotomy; deleting a communication source address in a communication address table in the communication equipment; sending the updated number of the communication source addresses to the tester, and controlling the tester to send the communication source addresses to the communication equipment by the updated number of the communication source addresses; acquiring a capacity value n of the communication address table from the communication equipment; and the steps are circulated until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition.

In some embodiments of the present invention, after obtaining the packet receiving rate of the third port from the communication device, the method further includes: judging whether the packet receiving rate of the third port meets the second preset condition or not; if the packet receiving rate of the third port does not meet the second preset condition, triggering an updating mechanism; or if the packet receiving rate of the third port meets the second preset condition, recording the number of the current communication source addresses.

In some embodiments of the present invention, updating the number of the communication source addresses until the packet receiving rate of the third port satisfies a second preset condition includes: updating the number of the communication source addresses by adopting a dichotomy; deleting a communication source address in a communication address table in the communication equipment; sending the updated number of the communication source addresses to the tester, and controlling the tester to send the communication source addresses to the communication equipment by the updated number of the communication source addresses; acquiring a capacity value n of the communication address table from the communication equipment; judging whether the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition or not, and if the capacity value of the communication address table and the number of the communication source addresses meet the first preset condition, setting the number of communication destination addresses in a verification sample as n; controlling the tester to send the verification sample to a second port of the communication device, so that the communication device forwards data in the verification sample through the first port and/or the third port according to n communication destination addresses in the verification sample; acquiring the packet receiving rate of the third port from the communication equipment; and the steps are circulated until the packet receiving rate of the third port meets the second preset condition.

According to a second aspect of the embodiments of the present invention, there is provided a test apparatus of a communication device, including: the first control module is used for controlling the tester and sending a test sample to the first port of the communication equipment, wherein the test sample comprises s communication source addresses, and s is larger than zero; a first obtaining module, configured to obtain a capacity value n of the communication address table from the communication device, where n is greater than zero, and the communication address table is used to store the communication source address; the first updating module is used for updating the number of the communication source addresses until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition; a second obtaining module, configured to obtain a packet receiving rate of a third port from the communication device; and the second updating module is used for updating the number of the communication source addresses until the packet receiving rate of the third port meets a second preset condition.

In some embodiments of the present invention, before obtaining the packet receiving rate of the third port from the communication device, the apparatus further includes: the second acquisition module is used for acquiring the communication address table; the sending module is used for sending the communication address table to the tester, and the communication address table comprises n communication source addresses; and the second control module is used for controlling the tester to send a verification sample to the second port of the communication equipment, so that the communication equipment forwards data in the verification sample through the first port and/or the third port according to n communication destination addresses in the verification sample, wherein the n communication destination addresses are n communication source addresses in the communication address table.

In some embodiments of the present invention, after obtaining the capacity value n of the communication address table from the communication device, the apparatus further includes: the first judging module is used for judging whether the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition or not; the first triggering module is used for triggering an updating mechanism if the capacity value of the communication address table and the number of the communication source addresses do not meet the first preset condition; or the setting module sets the number of the communication destination addresses in the verification sample as n if the capacity value of the communication address table and the number of the communication source addresses meet the first preset condition.

In some embodiments of the invention, the first update module is configured to: updating the number of the communication source addresses by adopting a dichotomy; deleting a communication source address in a communication address table in the communication equipment; sending the updated number of the communication source addresses to the tester, and controlling the tester to send the communication source addresses to the communication equipment by the updated number of the communication source addresses; acquiring a capacity value n of the communication address table from the communication equipment; and the steps are circulated until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition.

In some embodiments of the present invention, after obtaining the packet receiving rate of the third port from the communication device, the apparatus further includes: the second judging module is used for judging whether the packet receiving rate of the third port meets the second preset condition or not; the second triggering module triggers an updating mechanism if the packet receiving rate of the third port does not meet the second preset condition; or the recording module records the number of the current communication source address if the packet receiving rate of the third port meets the second preset condition.

In some embodiments of the invention, the second update module is configured to: updating the number of the communication source addresses by adopting a dichotomy; deleting a communication source address in a communication address table in the communication equipment; sending the updated number of the communication source addresses to the tester, and controlling the tester to send the communication source addresses to the communication equipment by the updated number of the communication source addresses; acquiring a capacity value n of the communication address table from the communication equipment; judging whether the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition or not, and if the capacity value of the communication address table and the number of the communication source addresses meet the first preset condition, setting the number of communication destination addresses in a verification sample as n; controlling the tester to send the verification sample to a second port of the communication device, so that the communication device forwards data in the verification sample through the first port and/or the third port according to n communication destination addresses in the verification sample; acquiring the packet receiving rate of the third port from the communication equipment; and the steps are circulated until the packet receiving rate of the third port meets the second preset condition.

According to a third aspect of the embodiments of the present invention, there is provided a test system of a communication device, the test system including a server, a tester, and the communication device; the tester receives a control instruction sent by the server, and sends a test sample to a first port of the communication equipment according to the control instruction, wherein the test sample comprises s communication source addresses, and s is larger than zero; the communication equipment receives the test sample, learns the communication source address in the test sample and records the learned communication source address to a communication address table; the server acquires a capacity value n of the communication address table from the communication equipment, wherein the n is larger than zero; the server updates the number of the communication source addresses until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition; the server acquires the packet receiving rate of a third port from the communication equipment; and the server updates the number of the communication source addresses until the packet receiving rate of the third port meets a second preset condition.

According to a fourth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of testing a communication device as described in the first aspect of the embodiments above.

According to a fifth aspect of embodiments of the present invention, there is provided a computer-readable medium, on which a computer program is stored, which when executed by a processor, implements the method of testing a communication device as described in the first aspect of the embodiments above.

The technical scheme provided by the embodiment of the invention has the following beneficial effects:

in the technical solutions provided in some embodiments of the present invention, a tester is controlled to send a test sample to a first port of a communication device, where the test sample includes s communication source addresses, a capacity value n of a communication address table is obtained from the communication device, the number of the communication source addresses is updated until the capacity value of the communication address table and the number of the communication source addresses satisfy a first preset condition, a packet receiving rate of a third port is obtained from the communication device, and the number of the communication source addresses is updated until the packet receiving rate of the third port satisfies a second preset condition.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:

FIG. 1 schematically shows a schematic diagram of a test system for a communication device according to an embodiment of the invention;

fig. 2 schematically shows a flow chart of a method of testing a communication device according to an embodiment of the invention;

fig. 3 schematically shows a flow chart of a method of testing a communication device according to another embodiment of the invention;

fig. 4 schematically shows a flow chart of a method of testing a communication device according to another embodiment of the invention;

fig. 5 schematically shows a flow chart of a method of testing a communication device according to another embodiment of the invention;

fig. 6 schematically shows a flow chart of a method of testing a communication device according to another embodiment of the invention;

fig. 7 schematically shows a flow chart of a method of testing a communication device according to another embodiment of the invention;

fig. 8 schematically shows a block diagram of a testing arrangement of a communication device according to an embodiment of the invention;

fig. 9 schematically shows a block diagram of a testing arrangement of a communication device according to another embodiment of the invention;

fig. 10 schematically shows a block diagram of a testing arrangement of a communication device according to another embodiment of the invention;

fig. 11 schematically shows a block diagram of a testing arrangement of a communication device according to another embodiment of the invention;

FIG. 12 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.

Detailed Description

Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.

Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.

The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.

The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.

Fig. 1 shows a schematic diagram of a test system of a communication device according to an embodiment of the invention.

As shown in fig. 1, the test system 100 of the communication device includes a server 101, a tester 120, and a communication device 103. The communication device 103 includes a first port1, a second port 2, and a third port 3, and the three ports of the communication device 130 are respectively connected to the tester 102. The server 101 may interact with the communication device 103 and the tester 102. For example, the server 101 may send control instructions to the tester 102 so that the tester 102 may send test samples to the communication device 103 according to the control instructions. For another example, the server 101 may also acquire a capacity value of the communication address table from the communication device 103.

In this embodiment, the communication device 103 needs to be configured before the communication device 103 is tested. For example, the server 101 communication device issues the configuration remotely, creates the VLAN200, and configures the first port1, the second port 2, and the third port 3 connected to the tester 102 to join the VLAN200 with ACCESS attributes. In addition, the server 101 may verify whether the configuration of the communication device 103 is correctly issued through a show/display command of the communication device 103. For example, the server 101 obtains the configuration information of the communication device 103, and then verifies whether the configuration information is the same as the expected result by adopting a regular expression matching mode, and if the configuration information is the same as the expected result, the configuration delivery is correct.

In some embodiments of the present invention, the server 101 described above may be used to provide services to the tester 102 and the communication device 103. The tester 102 may be configured to send a random communication source address and a random communication destination address to the communication device 103. The communication device 103 may be configured to receive a communication source address and a communication destination address sent by the tester 102, learn the communication source address, and forward data through a port of the communication device 103 according to the communication destination address. In the present embodiment, the communication device 103 may be an interactive machine, a router, or the like, but is not limited thereto.

In some embodiments of the present invention, the tester 102 receives a control instruction sent by the server 101, and sends a test sample to the first port1 of the communication device 103 according to the control instruction, where the test sample includes s communication source addresses, and s is greater than zero; the communication equipment 103 receives the test sample, learns the communication source address in the test sample, and records the learned communication source address in the communication address table; the server 101 acquires a capacity value n of a communication address table from the communication device 103, wherein n is greater than zero; the server 101 updates the number of the communication source addresses until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition; the server 101 acquires the packet receiving rate of the third port 3 from the communication device 103; the server 101 updates the number of the communication source addresses until the packet receiving rate of the third port 3 meets a second preset condition.

Fig. 2 schematically shows a flow chart of a method of testing a communication device according to an embodiment of the invention.

As shown in fig. 2, the test method of the communication device may include steps S210 to S250.

In step S210, controlling the tester to send a test sample to the first port of the communication device, where the test sample includes S communication source addresses, and S is greater than zero.

In step S220, a capacity value n of the communication address table is obtained from the communication device, where n is greater than zero, and the communication address table is used to store the communication source address.

In step S230, the number of the communication source addresses is updated until the capacity value of the communication address table and the number of the communication source addresses satisfy a first preset condition.

In step S240, a packet receiving rate of the third port is obtained from the communication device.

In step S250, the number of the communication source addresses is updated until the packet receiving rate of the third port meets a second preset condition.

The method can control the tester to send a test sample to a first port of the communication equipment, wherein the test sample comprises s communication source addresses, the capacity value n of the communication address table is obtained from the communication equipment, the number of the communication source addresses is updated until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition, the packet receiving rate of a third port is obtained from the communication equipment, the number of the communication source addresses is updated until the packet receiving rate of the third port meets a second preset condition, and by the method, the influence of hash collision can be effectively avoided when the communication equipment is tested, the test efficiency is improved, the test result is close to a real value, and the test error is reduced.

In an embodiment of the present invention, the test sample may include s communication source addresses. Wherein s is greater than zero. The initial value of s in this embodiment may be set according to actual circumstances. For example, the number of communication source addresses, i.e., the initial s is set according to the chip capacity in the communication device. Assuming that the chip capacity in the communication device is m, the number of communication source addresses may be set to 2m, i.e., s is 2m, according to the chip capacity in the communication device.

In an embodiment of the present invention, the communication source address may be a MAC source address, an ARP source address, a routing source address, or the like, but is not limited thereto.

In one embodiment of the present invention, after the communication device receives the test sample, the communication device may learn a communication source address in the test sample, and record the learned communication source address in the communication address table. The server can acquire the capacity value n of the communication address table from the communication equipment in real time, and the acquisition is stopped when the capacity value n of the communication address table is not changed any more. N in this embodiment may refer to the number of communication source addresses included in the communication address.

In one embodiment of the invention, the number of the communication source addresses is updated until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition. Wherein the first preset condition may be that n ═ s or n ═ s, and 1-abs (pre _ n/n-1) ≧ 99.9%. In the present embodiment, when n is s, the number of communication source addresses is stopped from being updated, that is, s is stopped from being updated. Or when n is equal to s and 1-abs (pre _ n/n-1) is equal to or more than 99.9%, the updating of the number of the communication source addresses is stopped, that is, the updating of s is stopped. And pre _ n is the capacity value n of the communication address table in the communication equipment obtained by the last test in the whole circulation test flow. Generally, the initial value of pre _ n is set to 0.

In an embodiment of the present invention, the packet receiving rate of the third port may refer to a forwarding rate of forwarding data through the third port of the communication device. If the data is not forwarded through the third port of the communication device, the packet receiving rate of the third port is set to zero.

In an embodiment of the present invention, the number of the communication source addresses is updated until the packet receiving rate of the third port satisfies a second preset condition. Wherein the second preset condition is that TC3_ Rx _ Rate is 0, or TC3_ Rx _ Rate is 0, and 1-abs (pre _ s/s-1) ≧ 99.9%. And the TC3_ Rx _ Rate is a packet receiving Rate of the third port, pre _ s verifies the number of the communication destination addresses in the sample for the last test in the whole cyclic test flow, and when the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition, pre _ s is equal to n. Generally, the initial value of pre _ s is set to 0. In the present embodiment, when TC3_ Rx _ Rate is 0, the number of communication source addresses stops being updated, that is, the update s is stopped. Alternatively, when TC3_ Rx _ Rate is 0 and 1-abs (pre _ s/s-1) ≧ 99.9%, the number of communication source addresses is stopped from being updated, i.e., s is stopped from being updated.

Fig. 3 schematically shows a flow chart of a method of testing a communication device according to another embodiment of the invention.

As shown in fig. 3, before the step S240, the method further includes a step S310 to a step S330.

In step S310, the communication address table is acquired.

In step S320, the communication address table is sent to the tester, and the communication address table includes n communication source addresses.

In step S330, controlling the tester to send a verification sample to the second port of the communication device, so that the communication device forwards data in the verification sample through the first port and/or the third port according to n communication destination addresses in the verification sample, where the n communication destination addresses are n communication source addresses in the communication address table.

The method can use the communication source address in the communication address table as the communication destination address in the verification sample, which helps the communication device forward the data in the verification sample through the first port and/or the third port according to the n communication destination addresses in the verification sample so as to obtain the packet receiving rate of the third port.

In an embodiment of the present invention, the communication address table is used for storing a communication source address and a port identifier, and is specifically shown in table 1:

TABLE 1

Communication source address Port identification
MAC Source Address A Port1
MAC Source Address B Port1
MAC Source Address C Port1

As shown in table 1, the capacity value n of the communication address table is 3, and since the test sample is received through the first Port of the communication device, the Port identifier in table 1 is the identifier of the first Port, i.e., Port 1.

In one embodiment of the invention, when the tester receives the communication address table, the tester can take the communication source address in the communication address table as the communication destination address in the verification sample and control the tester to send the verification sample to the communication device. When the communication device receives the verification sample, the communication address table can be inquired according to the communication destination address in the verification sample, and the data of the verification sample can be forwarded through the first port and/or the third port according to the inquiry result.

Fig. 4 schematically shows a flow chart of a method of testing a communication device according to another embodiment of the invention.

As shown in fig. 4, after step S220, the method may further include steps S410 to S430.

In step S410, it is determined whether the capacity value of the communication address table and the number of the communication source addresses satisfy a first preset condition.

In step S420, if the capacity value of the communication address table and the number of the communication source addresses do not satisfy the first preset condition, an update mechanism is triggered. Alternatively, in step S430, if the capacity value of the communication address table and the number of the communication source addresses satisfy the first preset condition, the number of the communication destination addresses in the verification sample is set to n.

The method can judge whether the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition or not, and trigger an updating mechanism if the capacity value of the communication address table and the number of the communication source addresses do not meet the first preset condition. Or if the capacity value of the communication address table and the number of the communication source addresses meet the first preset condition, setting the number of the communication destination addresses in the verification sample as n, and in this way, rapidly and accurately triggering an updating mechanism or setting the number of the communication destination addresses in the verification sample as n.

In an embodiment of the present invention, if the capacity value of the communication address table and the number of the communication source addresses do not satisfy the first preset condition, an update mechanism is triggered. For example, if n is smaller than s, an updating mechanism is triggered, and an updating step is executed, namely the number of the communication source addresses is updated until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition. For another example, if n is equal to s and 1-abs (pre _ n/n-1) < 99.9%, an updating mechanism is triggered, and an updating step is executed, i.e., the number of the communication source addresses is updated until the capacity value of the communication address table and the number of the communication source addresses meet the first preset condition. In the present embodiment, 99.9% is the preset test accuracy. The test precision can be adjusted according to actual requirements.

Fig. 5 schematically shows a flow chart of a method of testing a communication device according to another embodiment of the invention.

As shown in fig. 5, the step S230 may specifically include steps S510 to S550.

In step S510, the number of communication source addresses is updated by using a dichotomy.

In step S520, the communication source address in the communication address table in the communication apparatus is deleted.

In step S530, the updated number of communication source addresses is sent to the tester, and the tester is controlled to send the communication source addresses to the communication device with the updated number of communication source addresses.

In step S540, a capacity value n of the communication address table is acquired from the communication apparatus.

In step S550, the steps S510 to S540 are repeated until the capacity value of the communication address table and the number of the communication source addresses satisfy a first preset condition.

The method can update the number of the communication source addresses by circulating the steps S510 to S540 until the capacity value of the communication address table and the number of the communication source addresses meet the first preset condition, so that the capacity value of the communication address table and the number of the communication source addresses can quickly meet the first preset condition, and the test efficiency is improved.

In one embodiment of the invention, the number of the communication source addresses is updated by adopting a dichotomy method, so that the performance specification precision of the communication equipment can be controlled within a desired value. For example, the number of communication source addresses is updated based on the minimum value min _ s of the number of communication source addresses and/or the maximum value max _ s of the number of communication source addresses. In this embodiment, the initial value of min _ s is 0, the initial value of max _ s is 2m, and the initial value of s is 2 m.

Specifically, when n < s, update s is (min _ s + s)/2, where min _ s is the updated min _ s when the last test fails to satisfy the first preset condition (n is s, and 1-abs (pre _ n/n-1) < 99.9%). In addition, when n < s, max _ s also needs to be updated to the current s.

When n is equal to s and 1-abs (pre _ n/n-1) < 99.9%, update s is equal to (max _ s + s)/2, where max _ s is the updated max _ s when the last test fails to satisfy the first preset condition (n < s). In addition, when n ═ s and 1-abs (pre _ n/n-1) < 99.9%, min _ s also needs to be updated to the current s.

In one embodiment of the present invention, when the capacity value of the communication address table and the number of the communication source addresses satisfy the first preset condition, the flag is set to 1, and the above pre _ s is set to the capacity value of the current communication address table, that is, to the current n. On the contrary, when the capacity value of the communication address table and the number of the communication source addresses do not satisfy the first preset condition, the flag is set to 0, and the above pre _ n is set to the capacity value of the current communication address table, that is, to the current n. In this embodiment, flag is 1, which indicates that the capacity value of the communication address table and the number of communication source addresses satisfy the first preset condition. And when the flag is 0, the capacity value of the communication address table and the number of the communication source addresses do not meet the first preset condition.

Fig. 6 schematically shows a flow chart of a method of testing a communication device according to another embodiment of the invention.

As shown in fig. 6, after the step 240, the method further includes a step S610 to a step S630.

In step S610, it is determined whether the packet receiving rate of the third port satisfies the second preset condition.

In step S620, if the packet receiving rate of the third port does not satisfy the second preset condition, an update mechanism is triggered. Or, in step S630, if the packet receiving rate of the third port meets the second preset condition, the number of the current communication source addresses is recorded.

The method can judge whether the packet receiving rate of the third port meets a second preset condition, and if the packet receiving rate of the third port does not meet the second preset condition, an updating mechanism is triggered. Or, if the packet receiving rate of the third port meets the second preset condition, the number of the current communication source addresses is recorded, and in this way, the updating mechanism can be triggered quickly and accurately or the number of the current communication source addresses is recorded.

In an embodiment of the present invention, if the packet receiving rate of the third port does not satisfy the second predetermined condition, the update mechanism is triggered. For example, if the TC3_ Rx _ Rate > 0, the updating mechanism is triggered to perform the updating step, i.e. updating the number of the communication source addresses, until the packet receiving Rate of the third port meets the second preset condition. For another example, if the TC3_ Rx _ Rate is 0 and 1-abs (pre _ s/s-1) < 99.9%, the updating mechanism is triggered to perform the updating step, i.e., update the number of the communication source addresses until the packet receiving Rate of the third port meets the second preset condition. In the present embodiment, 99.9% is the preset test accuracy. The test precision can be adjusted according to actual requirements.

In one embodiment of the present invention, when TC3_ Rx _ Rate is 0 and 1-abs (pre _ s/s-1 ≧ 99.9%, the number of current communication source addresses may be regarded as infinitely approaching the true performance of the communication apparatus, in which case the number of current communication source addresses may be regarded as the number of communication source addresses that the communication apparatus can maximally tolerate.

Fig. 7 schematically shows a flow chart of a method of testing a communication device according to another embodiment of the invention.

As shown in fig. 7, the step S250 may specifically include steps S710 to S780.

In step S710, the number of communication source addresses is updated by using a dichotomy.

In step S720, the communication source address in the communication address table in the communication apparatus is deleted.

In step S730, the updated number of communication source addresses is sent to the tester, and the tester is controlled to send the communication source addresses to the communication device with the updated number of communication source addresses.

In step S740, a capacity value n of the communication address table is acquired from the communication apparatus.

In step S750, it is determined whether the capacity value of the communication address table and the number of the communication source addresses satisfy a first preset condition, and if the capacity value of the communication address table and the number of the communication source addresses satisfy the first preset condition, the number of the communication destination addresses in the verification sample is set to be n.

In step S760, the tester is controlled to send the verification sample to the second port of the communication device, so that the communication device forwards the data in the verification sample through the first port and/or the third port according to the n communication destination addresses in the verification sample.

In step S770, a packet receiving rate of the third port is obtained from the communication device.

In step S780, the steps S710 to S770 are repeated until the packet receiving rate of the third port satisfies the second preset condition.

The method can update the number of the communication source addresses by circulating the steps S710 to S770 until the packet receiving rate of the third port meets the second preset condition, so that the packet receiving rate of the third port can quickly meet the second preset condition, and the test efficiency is improved.

In one embodiment of the invention, the number of the communication source addresses is updated by adopting a dichotomy method, so that the performance specification precision of the communication equipment can be controlled within a desired value. For example, the number of communication source addresses is updated based on the minimum value min _ s of the number of communication source addresses and/or the maximum value max _ s of the number of communication source addresses. In this embodiment, the initial value of min _ s is 0, the initial value of max _ s is 2m, and the initial value of s is 2 m.

Specifically, when TC3_ Rx _ Rate > 0, update s is (min _ s + s)/2, where min _ s is min _ s updated when the last test fails to satisfy the second preset condition (TC3_ Rx _ Rate is 0, and 1-abs (pre _ s/s-1) < 99.9%). In addition, when TC3_ Rx _ Rate > 0, max _ s also needs to be updated to the current s.

When TC3_ Rx _ Rate is 0 and 1-abs (pre _ s/s-1) < 99.9%, update s is (max _ s + s)/2, where max _ s is the updated max _ s when the last test fails to satisfy the second preset condition (TC3_ Rx _ Rate > 0). In addition, when TC3_ Rx _ Rate is 0 and 1-abs (pre _ s/s-1) < 99.9%, min _ s also needs to be updated to the current s.

The test method of the communication equipment provided by the invention can be used for testing a large number of performance values (namely the number of communication source addresses) of the communication equipment, so that the efficiency can be improved, the test result is infinitely close to the real performance of the communication equipment, the test precision meeting the requirement is set, and the test precision is further improved. For example, the number of the communication source addresses can be updated quickly through the loop flow described in the embodiment of fig. 5 or the loop flow described in the embodiment of fig. 7, which is helpful for improving efficiency, so that the test result infinitely approaches to the real performance of the communication device, and the test precision meeting the requirement is set, thereby further improving the test precision.

Fig. 8 schematically shows a block diagram of a testing arrangement of a communication device according to an embodiment of the invention.

As shown in fig. 8, the testing apparatus 800 of the communication device includes a first control module 801, a first obtaining module 802, a first updating module 803, a second obtaining module 804, and a second updating module 805.

Specifically, the first control module 801 is configured to control the tester to send a test sample to the first port of the communication device, where the test sample includes s communication source addresses, and s is greater than zero.

A first obtaining module 802, configured to obtain a capacity value n of the communication address table from the communication device, where n is greater than zero, and the communication address table is used to store the communication source address.

A first updating module 803, configured to update the number of the communication source addresses until the capacity value of the communication address table and the number of the communication source addresses satisfy a first preset condition.

A second obtaining module 804, configured to obtain a packet receiving rate of the third port from the communication device.

A second updating module 805, configured to update the number of the communication source addresses until a packet receiving rate of the third port meets a second preset condition.

The testing device 800 of the communication equipment can control the tester to send a test sample to the first port of the communication equipment, wherein the test sample comprises s communication source addresses, the capacity value n of the communication address table is obtained from the communication equipment, the number of the communication source addresses is updated until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition, the packet receiving rate of the third port is obtained from the communication equipment, the number of the communication source addresses is updated until the packet receiving rate of the third port meets a second preset condition, and in this way, the influence of hash collision can be effectively avoided when the communication equipment is tested, the testing efficiency is improved, so that the testing result approaches to a real value, and the testing error is reduced.

According to the embodiment of the present invention, the testing apparatus 800 of the communication device can be used to implement the testing method of the communication device described in the embodiment of fig. 2.

In some embodiments of the present invention, the first update module 803 is configured to: updating the number of the communication source addresses by adopting a dichotomy; deleting a communication source address in a communication address table in the communication equipment; sending the updated number of the communication source addresses to the tester, and controlling the tester to send the communication source addresses to the communication equipment by the updated number of the communication source addresses; acquiring a capacity value n of the communication address table from the communication equipment; and the steps are circulated until the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition. In this embodiment, the first updating module 803 may be used to implement the testing method of the communication device described in the embodiment of fig. 5.

In some embodiments of the present invention, the second update module 805 is configured to: updating the number of the communication source addresses by adopting a dichotomy; deleting a communication source address in a communication address table in the communication equipment; sending the updated number of the communication source addresses to the tester, and controlling the tester to send the communication source addresses to the communication equipment by the updated number of the communication source addresses; acquiring a capacity value n of the communication address table from the communication equipment; judging whether the capacity value of the communication address table and the number of the communication source addresses meet a first preset condition or not, and if the capacity value of the communication address table and the number of the communication source addresses meet the first preset condition, setting the number of communication destination addresses in a verification sample as n; controlling the tester to send the verification sample to a second port of the communication device, so that the communication device forwards data in the verification sample through the first port and/or the third port according to n communication destination addresses in the verification sample; acquiring the packet receiving rate of the third port from the communication equipment; and the steps are circulated until the packet receiving rate of the third port meets the second preset condition. In this embodiment, the second updating module 805 described above may be used to implement the testing method of the communication device described in the embodiment of fig. 7.

Fig. 9 schematically shows a block diagram of a testing arrangement of a communication device according to another embodiment of the invention.

As shown in fig. 9, the testing apparatus 800 of the communication device may further include a second obtaining module 806, a sending module 807, and a second controlling module 808.

Specifically, the second obtaining module 806 is configured to obtain the communication address table.

A sending module 807, configured to send the communication address table to the tester, where the communication address table includes n communication source addresses.

A second control module 808, configured to control the tester to send a verification sample to a second port of the communication device, so that the communication device forwards data in the verification sample through the first port and/or the third port according to n communication destination addresses in the verification sample, where the n communication destination addresses are n communication source addresses in the communication address table.

The testing apparatus 800 of the communication device may use the communication source address in the communication address table as the communication destination address in the verification sample, which helps the communication device forward the data in the verification sample through the first port and/or the third port according to the n communication destination addresses in the verification sample, so as to obtain the packet receiving rate of the third port.

According to the embodiment of the present invention, the testing apparatus 800 of the communication device can be used to implement the testing method of the communication device described in the embodiment of fig. 3.

Fig. 10 schematically shows a block diagram of a testing arrangement of a communication device according to another embodiment of the invention.

As shown in fig. 10, the testing apparatus 800 of the communication device may further include a first determining module 809, a first triggering module 810, and a setting module 811.

Specifically, the first determining module 809 is configured to determine whether the capacity value of the communication address table and the number of the communication source addresses satisfy a first preset condition.

A first triggering module 810, configured to trigger an update mechanism if the capacity value of the communication address table and the number of the communication source addresses do not satisfy the first preset condition; or the setting module 811 sets the number of the communication destination addresses in the verification sample to n if the capacity value of the communication address table and the number of the communication source addresses satisfy the first preset condition.

The testing device 800 of the communication device may determine whether the capacity value of the communication address table and the number of the communication source addresses satisfy a first preset condition, and trigger an update mechanism if the capacity value of the communication address table and the number of the communication source addresses do not satisfy the first preset condition. Or if the capacity value of the communication address table and the number of the communication source addresses meet the first preset condition, setting the number of the communication destination addresses in the verification sample as n, and in this way, rapidly and accurately triggering an updating mechanism or setting the number of the communication destination addresses in the verification sample as n.

According to the embodiment of the present invention, the testing apparatus 800 of the communication device can be used to implement the testing method of the communication device described in the embodiment of fig. 4.

Fig. 11 schematically shows a block diagram of a testing arrangement of a communication device according to another embodiment of the invention.

As shown in fig. 11, the testing apparatus 800 of the communication device may further include a second determining module 812, a second triggering module 813, and a recording module 814.

Specifically, the second determining module 812 is configured to determine whether the packet receiving rate of the third port meets the second preset condition.

A second triggering module 813 configured to trigger an update mechanism if the packet receiving rate of the third port does not satisfy the second preset condition; or the recording module 814, if the packet receiving rate of the third port meets the second preset condition, records the number of the current communication source addresses.

The testing apparatus 800 of the communication device may determine whether the packet receiving rate of the third port satisfies a second preset condition, and trigger the update mechanism if the packet receiving rate of the third port does not satisfy the second preset condition. Or, if the packet receiving rate of the third port meets the second preset condition, the number of the current communication source addresses is recorded, and in this way, the updating mechanism can be triggered quickly and accurately or the number of the current communication source addresses is recorded.

According to the embodiment of the present invention, the testing apparatus 800 of the communication device may be used to implement the testing method of the communication device described in the embodiment of fig. 6.

For details that are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the above-described embodiments of the testing method of the communication device of the present invention for details that are not disclosed in the embodiments of the apparatus of the present invention, because each module of the testing apparatus 800 of the communication device of the present invention can be used to implement the steps of the above-described exemplary embodiments of the testing method of the communication device described in fig. 2 to fig. 7.

It is understood that the first control module 801, the first obtaining module 802, the first updating module 803, the second obtaining module 804, the second updating module 805, the second obtaining module 806, the sending module 807, the second control module 808, the first judging module 809, the first triggering module 810, the setting module 811, the second judging module 812, the second triggering module 813, and the recording module 814 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present invention, at least one of the first control module 801, the first obtaining module 802, the first updating module 803, the second obtaining module 804, the second updating module 805, the second obtaining module 806, the sending module 807, the second control module 808, the first judging module 809, the first triggering module 810, the setting module 811, the second judging module 812, the second triggering module 813, and the recording module 814 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in a suitable combination of three implementations of software, hardware, and firmware. Alternatively, at least one of the first control module 801, the first acquiring module 802, the first updating module 803, the second acquiring module 804, the second updating module 805, the second acquiring module 806, the sending module 807, the second control module 808, the first judging module 809, the first triggering module 810, the setting module 811, the second judging module 812, the second triggering module 813, and the recording module 814 may be at least partially implemented as a computer program module that, when executed by a computer, may perform the functions of the respective modules.

Referring now to FIG. 12, shown is a block diagram of a computer system 1200 suitable for use with the electronic device implementing an embodiment of the present invention. The computer system 1200 of the electronic device shown in fig. 12 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.

As shown in fig. 12, the computer system 1200 includes a Central Processing Unit (CPU)1201, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)1202 or a program loaded from a storage section 1208 into a Random Access Memory (RAM) 1203. In the RAM 1203, various programs and data necessary for system operation are also stored. The CPU 1201, ROM 1202, and RAM 1203 are connected to each other by a bus 1204. An input/output (I/O) interface 1205 is also connected to bus 1204.

The following components are connected to the I/O interface 1205: an input section 1206 including a keyboard, a mouse, and the like; an output portion 1207 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 1208 including a hard disk and the like; and a communication section 1209 including a network interface card such as a LAN card, a modem, or the like. The communication section 1209 performs communication processing via a network such as the internet. A driver 1210 is also connected to the I/O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is mounted on the drive 1210 as necessary, so that a computer program read out therefrom is mounted into the storage section 1208 as necessary.

In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 1209, and/or installed from the removable medium 1211. The computer program performs the above-described functions defined in the system of the present application when executed by the Central Processing Unit (CPU) 1201.

It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.

As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to implement the method for testing the communication device as described in the above embodiments.

For example, the electronic device may implement the following as shown in fig. 2: in step S210, controlling the tester to send a test sample to the first port of the communication device, where the test sample includes S communication source addresses, and S is greater than zero. In step S220, a capacity value n of the communication address table is obtained from the communication device, where n is greater than zero, and the communication address table is used to store the communication source address. In step S230, the number of the communication source addresses is updated until the capacity value of the communication address table and the number of the communication source addresses satisfy a first preset condition. In step S240, a packet receiving rate of the third port is obtained from the communication device. In step S250, the number of the communication source addresses is updated until the packet receiving rate of the third port meets a second preset condition.

It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.

Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.

Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

26页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:无接触感知边界确定方法、系统、计算机设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!