CN104954205B - A kind of soft routing performance method of testing - Google Patents

A kind of soft routing performance method of testing Download PDF

Info

Publication number
CN104954205B
CN104954205B CN201510434047.3A CN201510434047A CN104954205B CN 104954205 B CN104954205 B CN 104954205B CN 201510434047 A CN201510434047 A CN 201510434047A CN 104954205 B CN104954205 B CN 104954205B
Authority
CN
China
Prior art keywords
computer
packet
address
network
network equipment
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
CN201510434047.3A
Other languages
Chinese (zh)
Other versions
CN104954205A (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.)
Huzhou YingLie Intellectual Property Operation Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510434047.3A priority Critical patent/CN104954205B/en
Publication of CN104954205A publication Critical patent/CN104954205A/en
Application granted granted Critical
Publication of CN104954205B publication Critical patent/CN104954205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of soft routing performance method of testing, and applied in the network equipment for employing Layer3 Switching technology, soft routing performance method of testing includes:The first port of the network equipment is configured to the VLAN that gives out a contract for a project;At least one in remaining port of the network equipment is configured to packet receiving VLAN;Second computer carries out communication test with the network equipment;IP address of the IP address of at least one network segment using vlan port connection of giving out a contract for a project of first computer construction as source address, the network segment of packet receiving VLAN connections is the packet of purpose address, different pieces of information bag has different source addresses or different destination addresses, and packet sending speed is set, constructed packet is sent with packet sending speed;According to second computer and network device communications test mode adjustment packet sending speed, and then determine the maximum packet sending speed being in communication test under not packet loss state.The invention provides the method for testing of the soft routing capabilities of the network equipment.

Description

A kind of soft routing performance method of testing
Technical field
The present invention relates to a kind of network technology, more particularly to a kind of soft routing performance method of testing.
Background technology
Layer three switch is to introduce routing module in the network switch and substitute conventional router to realize and exchange and route The network technology being combined.It neatly carries out network according to situation during practical application in the network second layer or third layer Segmentation.Equipment with L3 Switching function is a layer 2 switch for carrying third layer routing function.Layer three switch Technology does not use the method that the most long address mask of router matches, but has used the method processing of accurate address matching, So, the realization for being advantageous to hardware is quickly searched.It employs the method using cache, and the Host routes being commonly used are put Arrive in hardware lookup table, the project that can not be only matched in this cache just may require that third layer routing function is carried out Processing.And for the network switch, the route quantity that Layer3 Switching technology can reach is a critically important performance, This performance and network switch CPU performance are closely related.
In consideration of it, how to test the soft routing performance for the network switch for employing Layer3 Switching technology becomes ability Field technique personnel's urgent problem to be solved.
The content of the invention
In view of the above the shortcomings that prior art, it is an object of the invention to provide a kind of soft routing performance test side Method, the soft routing performance for solving to test the network switch that employs Layer3 Switching technology in the prior art are asked Topic.
In order to achieve the above objects and other related objects, the present invention provides a kind of soft routing performance method of testing, is applied to In the network equipment for employing Layer3 Switching technology, soft routing performance method of testing includes:By the first of the network equipment Port is connected with the first network interface card of the first computer, the second port of the network equipment and the second network interface card phase of second computer Even, establishment is given out a contract for a project VLAN, and first port is configured into the VLAN that gives out a contract for a project, with setting the IP for the network segment that first port connected Location;Packet receiving VLAN is created, at least one in remaining port of the network equipment is configured to the packet receiving VLAN, set It is configured to the IP address for the network segment that the port of the packet receiving VLAN is connected;Second computer is communicated with the network equipment Test;The IP address of at least one network segment using the vlan port connection of giving out a contract for a project of first computer construction is source address, described The IP address of the network segment of packet receiving VLAN connections is the packet of purpose address, and the different packets have different source addresses Or different destination addresses, and packet sending speed is set, constructed packet is sent with the packet sending speed;Calculated according to second Machine adjusts the packet sending speed with the network device communications test mode, and then determines to be in not packet loss in the communication test Maximum packet sending speed under state.
Alternatively, the destination address of the packet is inaccessible IP address.
Alternatively, the communication test includes testing by ping orders.
Alternatively, the soft routing performance method of testing also includes:In setting time section, with the maximum packet sending speed Give out a contract for a project, while detect the communication test state.
Alternatively, first computer and the second computer are same computer, first network interface card with it is described Second network interface card is the different network interface cards of same computer.
Alternatively, the soft routing performance method of testing also includes:The network equipment passes through serial ports and the 3rd computer It is connected, the running status of the network equipment is checked on the 3rd computer.
Alternatively, the running status of the network equipment includes the CPU usage of the equipment.
Alternatively, the running status of the network equipment also includes the memory usage of the network equipment.
Alternatively, the running status of the network equipment also includes the quantity of route processing message.
Alternatively, the 3rd computer checks the running status of the network equipment by Command Line Interface.
Alternatively, first computer, the second computer and the 3rd computer are same computer, described One network interface card and the different network interface cards that second network interface card is same computer.
As described above, a kind of soft routing performance method of testing of the present invention, has the advantages that:Pass through a simulation Different packet sending speeds sends the packet for needing to route, and the network equipment with soft routing capabilities sends association while packet receiving Packet is discussed, to detect the performance of the soft routing capabilities and CPU of the network equipment.
Brief description of the drawings
Fig. 1 is shown as the schematic flow sheet of an embodiment of the soft routing performance method of testing of the present invention.
Component label instructions
S1~S4 steps
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through specific realities different in addition The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from Various modifications or alterations are carried out under the spirit of the present invention.
It should be noted that the diagram provided in the present embodiment only illustrates the basic conception of the present invention in a schematic way, Then the component relevant with the present invention is only shown in schema rather than is painted according to component count, shape and the size during actual implement System, kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its assembly layout kenel also may be used Can be increasingly complex.
The present invention provides a kind of soft routing performance method of testing, applied to the network equipment for employing Layer3 Switching technology In.The soft routing performance method of testing has used message to send the principle needed by route processing between different sub-network.Below Illustrate two websites by three-tier switch realize cross-network segment communicating be how a process.It is assumed that website A, B lead to Three-tier switch is crossed to be communicated.The network segment where website A and B belongs to the directly connected subnet on interchanger, if website A and website B Not in same subnet, dispatching station A first has to send ARP request message to its " default gateway ", and the IP of " default gateway " Location is exactly the IP address of the affiliated VLAN of website A on three-tier switch in fact.When dispatching station A is broadcasted the IP address of " default gateway " When going out an ARP request, interchanger just returns an ARP to dispatching station A and replys message, tells this VLAN of website A interchangers MAC Address, while the information such as website A IP address, MAC Address, the port numbers that are joined directly together with interchanger can be set by software Put in three layers of hardware table item of exchange chip.After website A receives this ARP reply messages, carry out target MAC (Media Access Control) address and replace Change, B to be issued bag is issued interchanger first.After interchanger receives this bag, source MAC is equally carried out first Practise, target MAC (Media Access Control) address is searched, in this case will be this because now target MAC (Media Access Control) address is the MAC Address of interchanger Message is sent to three layers of engine processing of exchange chip.In general, three layers of engine have two tables, and one is Host routes table, This table is the information such as the inside storage purpose IP address, next-hop mac address, port numbers using IP address as index.If find One matching list item, will afterwards will carrying out certain operations (such as purpose MAC and source MAC is replaced, TTL subtracts 1) to message The port that message is specified from table forwards.If not finding matching entry in Host routes table, may proceed to search another Individual table-- network segment routing table.The information such as this table storage network segment address, next-hop mac address, port numbers.In general this The entry of table wants much less, but the scope covered is very big, as long as setting is proper, can substantially ensure that major part enters interchanger Message all walk hardware forwarding, so not only greatly improve forwarding speed, while also mitigate CPU load.If search the network segment Routing table does not find matching list item yet, then exchange chip can give bag CPU processing, carry out soft route, is also referred to as CPU., can be directly using B IP as rope after CPU receives this IP message because website B belongs to one of directly connected subnet of interchanger Draw inspection arp cache, if without website B MAC Address, stood according to routing iinformation to B and broadcast an ARP request, B stations obtain Its MAC Address is replied to interchanger after this ARP request, CPU again may be by while this ARP reply messages are received Software sets three layers of hardware to exchange chip website B IP address, MAC Address, into information such as the port numbers of interchanger In list item, the IP messages sent by website A are then transmitted to website B, the first time this completes website A to website B One-way communication.Due to saved website A, B routing iinformation in three layers of engine of chip internal, enter between later website A, B The website of row communication or other network segments is wanted to be communicated with A, B, and exchange chip then can be directly bag from three layers of hardware table item The port specified forwards, without giving CPU processing bag again.This mode by " once routeing, repeatedly exchange ", Substantially increase forwarding speed.It should be noted that the route table items in three layers of engine are mostly by software design patterns.
In one embodiment, as shown in figure 1, the soft routing performance method of testing includes:
Step S1, the first port of the network equipment is connected with the first network interface card of the first computer, the network is set Standby second port is connected with the second network interface card of second computer, creates the VLAN that gives out a contract for a project, and first port is configured into the hair Wrap VLAN, the IP address for the network segment that setting first port is connected;Packet receiving VLAN is created, by remaining end of the network equipment At least one in mouthful is configured to the packet receiving VLAN, sets the IP for the network segment that the port for being configured to the packet receiving VLAN connected Address.Specifically, the VLAN and packet receiving VLAN that gives out a contract for a project is different VLAN, is when the network equipment receives source address The packet of the IP address of the network segment of the port of giving out a contract for a project, the IP address for the network segment that destination address is the packet receiving port, and should Packet is the IP address for the network segment that the source address that the network equipment receives for the first time is the port of giving out a contract for a project, destination address is During the packet of the IP address of the network segment of the packet receiving port, because the packet is that travelling across VLAN is sent, therefore, the network is set It is standby that hardware forwarding can not be directly carried out to the packet, it is necessary to carry out soft route processing.
Step S2, second computer carry out communication test with the network equipment.Specifically, second computer and the net Whether network equipment carries out continual communication test, determine the network equipment working in abnormal by the result of communication test State, when the situation of packet loss occurs in the communication test, then illustrate that the network equipment working is in packet loss state, i.e., abnormal shape State.When the communication test does not occur the situation of packet loss, then illustrate that the network equipment working is in not packet loss state, i.e., normally State.In one embodiment, the communication test includes testing by ping orders.
Step S3, the IP address of at least one network segment using the vlan port connection of giving out a contract for a project of the first computer construction is source Address, the packet receiving VLAN connections the network segment IP address be purpose address packet, the different packets have not Same source address or different destination addresses, and packet sending speed is set, constructed packet is sent with the packet sending speed.Tool Body, the packet includes IP messages.In one embodiment, the packet of the first computer construction can be multiple Packet with different source addresses or different destination addresses, to ensure that these packets are required for described in tested Routing forwarding is carried out in the network equipment.In one embodiment, the destination address of the packet is inaccessible IP address.By In when the destination address of the packet is inaccessible IP address, MAC Address corresponding to destination address can not be determined, i.e., without Method establishes hardware forwarding table.Therefore, when to send this destination address every time be the packet of inaccessible IP address, will all carry out Soft route processing.So, first computer can detect the network equipment by continuously transmitting same packet Soft routing capabilities.
Step S4, the packet sending speed is adjusted according to second computer and the network device communications test mode, and then It is determined that the maximum packet sending speed being in the communication test under not packet loss state.Specifically, when the second computer and institute State network device communications test mode for not packet loss state (i.e. normal communication state) when, the speed of giving out a contract for a project of the first computer of raising Rate;When the second computer and the network device communications test mode are packet loss state (i.e. abnormal communication states), drop The packet sending speed of low first computer.By continuously attempting to, and then determine to be under not packet loss state in the communication test Maximum packet sending speed.
In one embodiment, the soft routing performance method of testing also includes:In setting time section, with the maximum Packet sending speed is given out a contract for a project, while detects the communication test state.Specifically, the first computer in setting time section all with described Maximum packet sending speed sends packet, while detects whether the communication test is constantly in not packet loss state in real time.Such as fruit When detect the communication test and be constantly in not packet loss state, then the maximum packet sending speed correspond to the tested network equipment Maximum soft routing capabilities.If detect the communication test in real time needs sometimes in packet loss state, the maximum packet sending speed It is adjusted, that is, reduces the packet sending speed and further tested.
In one embodiment, first computer and the second computer are same computer, first net Block the different network interface cards for same computer from second network interface card.Specifically, the computer comprises at least two pieces of network interface cards, wherein one Block connects the first port of the network equipment, the second port of another piece of connection network equipment.
In one embodiment, the soft routing performance method of testing also includes:The network equipment passes through serial ports and Three computers are connected, and the running status of the network equipment is checked on the 3rd computer.In one embodiment, the network The running status of equipment includes the CPU usage of the equipment.The running status of the network equipment can also include the net The memory usage of network equipment.The running status of the network equipment can also include the quantity of route processing message.At one In embodiment, the 3rd computer checks the running status of the network equipment by Command Line Interface.It is described by checking The running status of the network equipment may further determine that the performance and stability of the network equipment.In one embodiment, institute It is same computer to state the first computer, the second computer and the 3rd computer, first network interface card and described second Network interface card is the different network interface cards of same computer.Specifically, the computer comprises at least two pieces of network interface cards, and one of connection network is set Standby first port, the second port of another piece of connection network equipment, meanwhile, the computer also passes through Serial Port Line and the network Equipment is attached, and the running status of the network equipment is checked by serial port command.
In summary, a kind of soft routing performance method of testing of the invention is sent by the different packet sending speed of a simulation The packet routeing is needed, the network equipment with soft routing capabilities sends protocol data bag while packet receiving, to detect net The performance of the soft routing capabilities and CPU of network equipment.The soft routing capabilities of the network equipment are the significant capabilities of the network equipment, this hair The bright power of test that greatly strengthen to the performance of the network equipment.So the present invention effectively overcome it is of the prior art a variety of Shortcoming and have high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as Into all equivalent modifications or change, should by the present invention claim be covered.

Claims (9)

1. a kind of soft routing performance method of testing, applied in the network equipment for employing Layer3 Switching technology, its feature exists In the soft routing performance method of testing includes:
The first port of the network equipment is connected with the first network interface card of the first computer, the second port of the network equipment It is connected with the second network interface card of second computer, establishment is given out a contract for a project VLAN, and first port is configured into the VLAN that gives out a contract for a project, and sets the The IP address for the network segment that Single port is connected;Packet receiving VLAN is created, by least one in remaining port of the network equipment It is individual to be configured to the packet receiving VLAN, the IP address for the network segment that the port that setting is configured to the packet receiving VLAN is connected;The hair Bag VLAN and packet receiving VLAN is different VLAN;
Second computer carries out communication test with the network equipment;
The IP address of at least one network segment using the vlan port connection of giving out a contract for a project of first computer construction is source address, the receipts The IP address for wrapping the network segment of VLAN connections is the packet of purpose address, and the difference packets have different source address or not Same destination address, and packet sending speed is set, constructed packet is sent with the packet sending speed;The purpose of the packet Address is inaccessible IP address;
The packet sending speed is adjusted according to second computer and the network device communications test mode, and then determined described logical Maximum packet sending speed of the letter test under not packet loss state.
2. soft routing performance method of testing according to claim 1, it is characterised in that:The communication test includes passing through Ping orders are tested.
3. soft routing performance method of testing according to claim 1, it is characterised in that:In setting time section, with described Maximum packet sending speed is given out a contract for a project, while detects the communication test state.
4. soft routing performance method of testing according to claim 1, it is characterised in that:First computer and described the Two computers are same computer, first network interface card and the different network interface cards that second network interface card is same computer.
5. soft routing performance method of testing according to claim 1, it is characterised in that:The soft routing performance method of testing Also include:The network equipment is connected by serial ports with the 3rd computer, and the network equipment is checked on the 3rd computer Running status.
6. soft routing performance method of testing according to claim 5, it is characterised in that:The running status of the network equipment Include the CPU usage of the equipment.
7. soft routing performance method of testing according to claim 6, it is characterised in that:The running status of the network equipment Also include the quantity of route processing message.
8. soft routing performance method of testing according to claim 5, it is characterised in that:3rd computer passes through order The running status of the network equipment is checked at row interface.
9. soft routing performance method of testing according to claim 5, it is characterised in that:First computer, described Two computers and the 3rd computer are same computer, first network interface card and second network interface card be same computer not Same network interface card.
CN201510434047.3A 2015-07-22 2015-07-22 A kind of soft routing performance method of testing Active CN104954205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510434047.3A CN104954205B (en) 2015-07-22 2015-07-22 A kind of soft routing performance method of testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510434047.3A CN104954205B (en) 2015-07-22 2015-07-22 A kind of soft routing performance method of testing

Publications (2)

Publication Number Publication Date
CN104954205A CN104954205A (en) 2015-09-30
CN104954205B true CN104954205B (en) 2018-03-27

Family

ID=54168579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510434047.3A Active CN104954205B (en) 2015-07-22 2015-07-22 A kind of soft routing performance method of testing

Country Status (1)

Country Link
CN (1) CN104954205B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483296B (en) * 2017-09-26 2020-11-03 北京润科通用技术有限公司 Optical fiber transmission rate testing method and system
CN110505110B (en) * 2018-05-18 2021-07-20 杭州海康威视数字技术股份有限公司 Network interface test method and device and multi-network-port host
CN109379249A (en) * 2018-09-30 2019-02-22 福建星瑞格软件有限公司 A method of monitoring network interface card can bear maximum packet sending speed
CN109525461B (en) * 2018-11-27 2020-09-08 杭州迪普科技股份有限公司 Network equipment testing method, device, equipment and storage medium
CN110233779B (en) * 2019-07-16 2021-08-06 迈普通信技术股份有限公司 Test method, test system and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272291B (en) * 2008-04-29 2012-05-30 北京星网锐捷网络技术有限公司 Network appliance testing method and system
CN102843273A (en) * 2012-08-14 2012-12-26 瑞斯康达科技发展股份有限公司 Method and device for testing throughput of network device
CN102170376B (en) * 2011-04-25 2014-05-28 北京交通大学 A method for measuring mapping performance of access switch router in identification-based universal network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272291B (en) * 2008-04-29 2012-05-30 北京星网锐捷网络技术有限公司 Network appliance testing method and system
CN102170376B (en) * 2011-04-25 2014-05-28 北京交通大学 A method for measuring mapping performance of access switch router in identification-based universal network
CN102843273A (en) * 2012-08-14 2012-12-26 瑞斯康达科技发展股份有限公司 Method and device for testing throughput of network device

Also Published As

Publication number Publication date
CN104954205A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN104954205B (en) A kind of soft routing performance method of testing
CN106664261B (en) A kind of methods, devices and systems configuring flow entry
CN109873760A (en) Handle the method and apparatus of routing and the method and apparatus of data transmission
US9331936B2 (en) Switch fabric support for overlay network features
CN103795623B (en) A kind of method and apparatus for realizing flow intercommunication between virtual unit
CN109995654B (en) Method and device for transmitting data based on tunnel
US20120275297A1 (en) Multi-Chassis Link Aggregation on Network Devices
CN102957616B (en) In the method and system of ASIC repeating TRILL network message
CN100591048C (en) Method for equilibrating network-flow load and the third-level exchanger
CN101789949B (en) Method and router equipment for realizing load sharing
CN106341338B (en) A kind of retransmission method and device of message
CN105827495A (en) Message forwarding method and device for VXLAN gateway
CN105791214A (en) Method and apparatus for converting RapidIO message and Ethernet message
TWI759571B (en) Data transfer method based on flow table
CN102447639B (en) A kind of policy routing method and device
CN104065582A (en) Message transmission method and gateway device
CN106209638A (en) From VLAN to the message forwarding method of virtual expansible LAN and equipment
CN106209689A (en) From the multicast data packet forwarding method and apparatus of VXLAN to VLAN
CN101534253A (en) Message forwarding method and device
CN109639552A (en) A kind of three-layer forwarding method and device
CN103200117B (en) A kind of load-balancing method and device
CN102801622B (en) A kind of retransmission method of data message and retransmission unit
CN106209637A (en) From message forwarding method and the equipment of virtual expansible LAN to VLAN
US20150146726A1 (en) Hybrid data plane forwarding
CN106453091B (en) The equivalent route management method and device of router Forwarding plane

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201127

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201210

Address after: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee after: Bengbu 309 Technology Consulting Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co., Ltd

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210201

Address after: 313001 room 1019, Xintiandi office building, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee before: Bengbu 309 Technology Consulting Co.,Ltd.