The embodiment of the invention provides a test method, device and a multi network interface host. The method includes: for two network interfaces to be tested in the multi network interface host, the two network interfaces to be tested are respectively set as the network interfaces of two independent networks isolated from each other in the internal network of the multi network interface host, and the network interface pair is obtained; two network interface pairs are tested Performance of the network interface. In the network interface test method of the embodiment of the invention, for two network interfaces to be tested in the multi network port host, the two network interfaces are set as the network interfaces of independent networks isolated from each other in the internal network of the multi network port host, and the two network interfaces can be used to receive and transmit data to complete the performance test of the network interface, without external switches and clients The device can reduce the test cost of network interface.
【技术实现步骤摘要】
网络接口的测试方法、装置及多网口主机
本专利技术涉及计算机
,特别是涉及网络接口的测试方法、装置及多网口主机。
技术介绍
为了获取多网口主机中各网络接口的性能,需要对各网络接口的性能进行测试。现有的网络接口的测试方法中,需要将待测试的多网口主机作为服务器,并将多网口主机的各网络接口分别连接到交换机上,同时将客户端设备连接到该交换机上,其结构如图1所示。在测试网络接口的性能时,利用网络打流测试方法,采用轮询方式依次通过各网络接口向客户端设备发送数据,以测试各网络接口的性能。但是采用此种测试方法,需要外接交换机及客户端设备,网络接口的测试成本高。
技术实现思路
本专利技术实施例的目的在于提供一种网络接口的测试方法、装置及多网口主机,以实现降低网络接口的测试成本。具体技术方案如下:第一方面,本专利技术实施例提供了一种网络接口的测试方法,应用于多网口主机,所述方法包括:针对所述多网口主机中两个待测试的网络接口,将该两个待测试的网络接口分别设置为在所述多网口主机内部网络中相互隔离的两个独立网络的网络接口,得到网络接口对;测试所述网络接口对中两个网络接口的性能。可选的,所述针对所述多网口主机中两个待测试的网络接口,将该两个待测试的网络接口分别设置为在所述多网口主机内部网络中相互隔离的两个独立网络的网络接口,得到网络接口对,包括:分别将各所述网络接口所在的网络,设置为在所述多网口主机内部网络中相互隔离的独立网络,得到独立网络接口;测试各所述独立网络接口的连接 ...
【技术保护点】
1.一种网络接口的测试方法,其特征在于,应用于多网口主机,所述方法包括:/n针对所述多网口主机中两个待测试的网络接口,将该两个待测试的网络接口分别设置为在所述多网口主机内部网络中相互隔离的两个独立网络的网络接口,得到网络接口对;/n测试所述网络接口对中两个网络接口的性能。/n
【技术特征摘要】
1.一种网络接口的测试方法,其特征在于,应用于多网口主机,所述方法包括:
针对所述多网口主机中两个待测试的网络接口,将该两个待测试的网络接口分别设置为在所述多网口主机内部网络中相互隔离的两个独立网络的网络接口,得到网络接口对;
测试所述网络接口对中两个网络接口的性能。
2.根据权利要求1所述的方法,其特征在于,所述针对所述多网口主机中两个待测试的网络接口,将该两个待测试的网络接口分别设置为在所述多网口主机内部网络中相互隔离的两个独立网络的网络接口,得到网络接口对,包括:
分别将所述多网口主机中各网络接口所在的网络,设置为在所述多网口主机内部网络中相互隔离的独立网络,得到独立网络接口;
测试各所述独立网络接口的连接情况,确定各待测试的网络接口对,其中,所述网络接口对包括两个连接的独立网络接口。
3.根据权利要求2所述的方法,其特征在于,所述分别将各所述网络接口所在的网络,设置为在所述多网口主机内部网络中相互隔离的独立网络,得到独立网络接口,包括:
通过网络命名空间虚拟化技术,分别将各所述网络接口所在的网卡虚拟化为独立网络环境的网卡,将虚拟化为独立网络环境的网卡的网络接口作为独立网络接口。
4.根据权利要求2所述的方法,其特征在于,所述测试所述网络接口对中两个网络接口的性能,包括:
针对每个所述网络接口对,将该网络接口对的两个网络接口的地址设置为同一网段内两个不同的地址;
利用预设的网络打流测试方法,测试各所述网络接口对中两个独立网络接口的性能。
5.根据权利要求2所述的方法,其特征在于,所述测试所述网络接口对中两个网络接口的性能,包括:
针对每个所述网络接口对,配置虚拟网关;
通过所述虚拟网关,利用预设的网络打流测试方法,测试各所述网络接口对中两个网络接口的性能。
6.一种网络接口的测试装置,其特征在于,应用于多网口主...
【专利技术属性】
技术研发人员:余际来,王卫平,
申请(专利权)人:杭州海康威视数字技术股份有限公司,
类型:发明
国别省市:浙江;33
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。