CN109428778A - Mainboard network connectivty test method and device - Google Patents

Mainboard network connectivty test method and device Download PDF

Info

Publication number
CN109428778A
CN109428778A CN201710735563.9A CN201710735563A CN109428778A CN 109428778 A CN109428778 A CN 109428778A CN 201710735563 A CN201710735563 A CN 201710735563A CN 109428778 A CN109428778 A CN 109428778A
Authority
CN
China
Prior art keywords
network
network interface
interface card
mainboard
chip
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.)
Granted
Application number
CN201710735563.9A
Other languages
Chinese (zh)
Other versions
CN109428778B (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.)
Loongson Technology Corp Ltd
Original Assignee
Loongson Technology Corp 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 Loongson Technology Corp Ltd filed Critical Loongson Technology Corp Ltd
Priority to CN201710735563.9A priority Critical patent/CN109428778B/en
Publication of CN109428778A publication Critical patent/CN109428778A/en
Application granted granted Critical
Publication of CN109428778B publication Critical patent/CN109428778B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

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

Abstract

The present invention provides a kind of mainboard network connectivty test method, which comprises after mainboard electrifying startup PMON to order line to be measured, configuring the first full-duplex mode for the network interface card of mainboard to be measured and network chip by way of the setting of PMON order line;Under first full-duplex mode, network packet is sent to network chip by network interface card by way of executing under PMON order line, and the network packet is sent back into network interface card in the PCS of network chip;The data that network chip is sent to by network interface card and network interface card are compared from the received data of PCS, if the two is inconsistent, it is determined that the network interface card of the mainboard to be measured is connected to sexual abnormality with the data path between network chip.The present invention is suitable for carrying out the test of mainboard network connectivty and positioning at PMON.

Description

Mainboard network connectivty test method and device
Technical field
The present invention relates to computer hardware debugging technique field more particularly to a kind of mainboard network connectivty test method and Device.
Background technique
Network is connection computer, the virtual platform for transmitting information between each computer, receiving information, shared information. And network interface card is then the controller of network interface, is the important equipment that computer realizes interconnection.The connectivity of network is to realize to calculate The necessary condition of machine interconnection, collaborative work.It for the mainboard of new production, needs to test the connectivity of its network, and works as When network connection is broken down where quick positioning question.
Currently, need to add the test equipment of some complexity for mainboard when carrying out the test of mainboard network connectivty, and It needs to initialize entire mainboard one time completely, entire test process is more complex, takes a long time, and testing efficiency is low.
Summary of the invention
Mainboard network connectivty test method provided by the invention and device can reduce test complexity, save test Time improves testing efficiency.
In a first aspect, the present invention provides a kind of mainboard network connectivty test method, comprising:
After mainboard electrifying startup PMON to order line to be measured, by master to be measured by way of in the setting of PMON order line The network interface card and network chip of plate are configured to the first full-duplex mode;
Under first full-duplex mode, by network packet by network interface card by way of being executed under PMON order line It is sent to network chip, and the network packet is sent back into network interface card in the PCS of network chip;
The data that network chip is sent to by network interface card and network interface card are compared from the received data of PCS, if the two is different It causes, it is determined that the network interface card of the mainboard to be measured is connected to sexual abnormality with the data path between network chip.
Second aspect, the present invention provide a kind of mainboard network-in-dialing system safety testing device, comprising:
First configuration unit is used for after mainboard electrifying startup PMON to order line to be measured, by PMON order line The network interface card of mainboard to be measured and network chip are configured the first full-duplex mode by the mode of setting;
First control unit is used under first full-duplex mode, by way of executing under PMON order line Network packet is sent to network chip by network interface card, and the network packet is sent back into network interface card in the PCS of network chip;
First comparison unit, for by be sent to by network interface card network chip data and network interface card from the received data of PCS into Row comparison;
First determination unit, for when by network interface card be sent to network chip data and network interface card from the received data of PCS not When consistent, determine that the network interface card of the mainboard to be measured is connected to sexual abnormality with the data path between network chip.
The third aspect, the present invention provide a kind of non-volatile computer readable storage medium storing program for executing, store in the storage medium There is computer instruction, when computer executes the computer instruction, for executing above-mentioned mainboard network connectivty test method.
Mainboard network connectivty test method provided in an embodiment of the present invention and device, in mainboard electrifying startup PMON to be measured To after order line, carrying out mainboard network connectivty test, each setting in such a way that PMON order line is arranged and executes Movement, test action can be realized in the form of command program under PMON order line, thus realize careful operating procedure, And can neatly add new test function and realize the compatibility to other mainboards, feasibility, strong operability can be with Mainboard manufacturing enterprise is set quickly and accurately to position Error Location in testing process, the effective investment for reducing human resources;And It does not need to add complicated equipment for mainboard, does not need to initialize entire mainboard one time completely yet, can be effectively reduced test Complexity saves the testing time, improves testing efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only Some embodiments of the present invention without creative efforts, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is the flow chart of mainboard network connectivty test method embodiment one of the present invention;
Fig. 2 is the hardware structural diagram of the network module of mainboard provided in an embodiment of the present invention;
Fig. 3 is the flow chart of mainboard network connectivty test method embodiment two of the present invention;
Fig. 4 is the flow chart of mainboard network connectivty test method embodiment three of the present invention;
Fig. 5 is the schematic diagram provided in an embodiment of the present invention that interior loopback test is carried out to mainboard to be measured;
Fig. 6 is the schematic diagram provided in an embodiment of the present invention that outer loopback test is carried out to mainboard to be measured;
Fig. 7 is the structural schematic diagram of mainboard network-in-dialing system safety testing device embodiment one of the present invention;
Fig. 8 is the structural schematic diagram of mainboard network-in-dialing system safety testing device embodiment two of the present invention;
Fig. 9 is the structural schematic diagram of mainboard network-in-dialing system safety testing device embodiment three of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of mainboard network connectivty test method, and Fig. 1 is mainboard network connectivty of the present invention The flow chart of test method embodiment one, as shown in Figure 1, the method for the present embodiment includes:
S11, after mainboard electrifying startup PMON (Process Monitor, process monitors) to order line to be measured, lead to The network interface card of mainboard to be measured and network chip are configured the first full-duplex mode by the mode crossed in the setting of PMON order line.
Wherein, the hardware configuration of the network module of mainboard is as shown in Figure 2.Wherein, network interface card belongs to data link layer, the net Network chip can be PHY (physical layer) chip.
Wherein, PMON is a kind of class BIOS (Basic Input Output designed for embedded system System, basic input and output) bootstrap.PMON has powerful and abundant function, in addition to basic input/output function, It further include the functions such as hardware initialization and detection, booting operating system and program debugging.
S12, under first full-duplex mode, by way of being executed under PMON order line by network packet by Network interface card is sent to network chip, and in the PCS of network chip (Physical Coding
Sublayer, Physical Coding Sublayer) network packet sent back into network interface card.
S13, the data that network chip is sent to by network interface card and network interface card are compared from the received data of PCS, if the two It is inconsistent, it is determined that the network interface card of the mainboard to be measured is connected to sexual abnormality with the data path between network chip.The embodiment of the present invention The mainboard network connectivty test method of offer, after mainboard electrifying startup PMON to order line to be measured, by being ordered in PMON Row setting and the mode executed is enabled to carry out mainboard network connectivty test, each setting movement, test action can be in PMON It is realized in the form of command program under order line, to realize careful operating procedure, and can neatly add new survey It tries function and realizes that feasibility, strong operability can make mainboard manufacturing enterprise in testing process to the compatibility of other mainboards Error Location is quickly and accurately positioned, the effective investment for reducing human resources;And it does not need to add complicated set for mainboard It is standby, it does not need to initialize entire mainboard one time completely yet, can be effectively reduced test complexity, save the testing time, improve Testing efficiency.
The embodiment of the present invention provides another mainboard network connectivty test method, and Fig. 3 is mainboard network-in-dialing of the present invention The flow chart of property test method embodiment two, as shown in figure 3, the method for the present embodiment includes:
S31, after mainboard electrifying startup PMON to order line to be measured, will be to by way of in the setting of PMON order line The network interface card and network chip for surveying mainboard are configured to the first full-duplex mode.
S32, under first full-duplex mode, by way of being executed under PMON order line by network packet by Network interface card is sent to network chip, and the network packet is sent back to network interface card in the PCS of network chip.
S33, the data that network chip is sent to by network interface card and network interface card are compared from the received data of PCS, if the two Unanimously, S34 is thened follow the steps, step S38 is otherwise gone to.
S34, network packet is sent to network interface by network interface card by way of executing under PMON order line, and The network packet is sent back to network interface card by network interface.
Wherein, the network interface can be RJ45 interface, but be not limited only to this.
S35, the data that network interface is sent to by network interface card and network interface card are compared by the received data of network interface, if The two is consistent, then goes to step S36, otherwise goes to step S37.
S36, determine that the network-in-dialing of the mainboard to be measured is good.
S37, determine that the network chip of the mainboard to be measured is connected to sexual abnormality with the data path between network interface.
S38, determine that the network interface card of the mainboard to be measured is connected to sexual abnormality with the data path between network chip.
Mainboard network connectivty test method provided in an embodiment of the present invention, in mainboard electrifying startup PMON to be measured to order After row, carrying out mainboard network connectivty test in such a way that PMON order line is arranged and executes, each setting movement is surveyed Examination movement can be realized in the form of command program under PMON order line, to realize careful operating procedure, Er Qieke Neatly to add new test function and realize that feasibility, strong operability can make mainboard to the compatibility of other mainboards Manufacturing enterprise quickly and accurately positions Error Location in testing process, the effective investment for reducing human resources;And it does not need For the equipment that mainboard addition is complicated, does not need to initialize entire mainboard one time completely yet, can be effectively reduced test complexity, The testing time is saved, testing efficiency is improved.
The embodiment of the present invention provides another mainboard network connectivty test method, and Fig. 4 is mainboard network-in-dialing of the present invention The flow chart of property test method embodiment three, as shown in figure 4, the method for the present embodiment includes:
S41, mainboard electrifying startup PMON to be measured to order line.
If PHY chip is with CRC (Cyclic Redundancy Check, cyclic redundancy check) error count function Chip, such as the 88E1111 chip of Marvell thens follow the steps S42, tested whether crc error;If PHY chip does not have Crc error tally function then skips step S42, executes step S43.
S42, the mainboard a to be measured and good mainboard b of another piece of network-in-dialing is passed through into the direct-connected RJ45 interface of cable, passed through The mode of PMON order line configures and enables the crc error tally function of the PHY chip of mainboard a to be measured, in mainboard b to master to be measured After plate a sends network packet, the crc error counter register of PHY chip is read by way of PMON order line, according to It reads result and carries out respective handling.
If being connected with router, interchanger among mainboard, the network packet of crc error can be by router, friendship It is dropped when changing planes, the PHY chip of network interface card can not just receive these data packets, and it is even more impossible to detect whether data packet has CRC Mistake, it is therefore desirable to carry out mainboard a to be measured and mainboard b direct-connected.
Test program 1 is executed under PMON order line: being configured and the crc error of the PHY chip of enabled 88E1111 counts function Energy.
Mainboard b sends network packet to mainboard a to be measured, executes test program 2 under PMON order line: reading 88E1111 PHY chip crc error counter register, if read value be 0, continue to execute step S43;If the value read is not 0, Then show that the network-in-dialing of mainboard a to be measured is abnormal.
S43, by the network interface card of mainboard to be measured and PHY chip 1000M full duplex mould is configured by way of PMON order line Network packet is sent to PHY chip by network interface card by way of PMON order line by formula, and the PCS of PHY chip will be described Network packet sends back to network interface card, and the data that PHY chip is sent to by network interface card and network interface card are compared from the received data of PCS, Respective handling is carried out according to comparing result.
Specifically, by configuring the PHY chip of mainboard a to be measured, so that the network interface card of mainboard a to be measured is issued network packet and arrive PHY chip sends back to network interface card in the PCS of PHY chip, as shown in Figure 5 again.
Test program 3 is executed under PMON order line: network interface card and PHY chip are each configured to 1000M full-duplex mode, is configured And the interior loop back mode of enabled PHY chip, the filling initialization network card data area data to be sent, and these data are sent, it passes through Interior winding, network interface card receive these data, the data that network interface card is sent are compared with the data received, if the two one It causes, then shows that network interface card is normal to the data path of PHY chip, continue to execute step S44;If the two is inconsistent, show that network interface card arrives There are problem, tests to terminate for the data path of PHY chip.
S44, network packet is sent to RJ45 interface by network interface card by way of PMON order line, and in RJ45 interface The network packet is sent back into network interface card, by be sent to by network interface card RJ45 interface data and network interface card by RJ45 interface number According to comparing, the network connectivty of mainboard to be measured is determined according to comparing result.
Firstly, RJ45 interface is connected cable, the reception data line for sending data line docking cable of cable.That is: by net 4 internal transmission lines and 4 piece-root grafting take-ups are linked to be 4 pairs, then this cable head is inserted into RJ45 interface by one cutting of line On.The network packet that network interface card issues sends back to network interface card in RJ45 interface again, on the basis of step S43 passes through, tests PHY Whether the data path of chip to RJ45 interface is normal, as shown in Figure 6.
Test program 4 is executed under PMON order line: network interface card and PHY chip are each configured to 1000M full-duplex mode, is filled The network card data area data to be sent are initialized, and send these data, through outer winding, network interface card receives these data, by net The data blocking the data that send and receiving compare, if the two is consistent, show PHY chip to RJ45 interface number Normal according to access, the network-in-dialing of the mainboard is good;If the two is inconsistent, show PHY chip to RJ45 interface data path There are problem, the network-in-dialing of the mainboard is abnormal.
Further, since the semaphore request under different bandwidth mode is different, in order to make final test result more Reliably, step S43 and step S44 can be repeated, during executing step S43 and step S44, by network interface card and PHY Chip is each configured to 100M full-duplex mode, 10M full-duplex mode.
If the data that step S44 is tested under 1000M full-duplex mode, 100M full-duplex mode and 10M full-duplex mode Access is normal, shows that the network-in-dialing of the mainboard is good;
If there are problems for the data path that step S44 is tested under 1000M full-duplex mode, and in 100M full-duplex mode Or the data path tested under 10M full-duplex mode is good, shows although the network-in-dialing of the mainboard has some problems, but still It is available reluctantly;
If the data that step S44 is tested under 1000M full-duplex mode, 100M full-duplex mode and 10M full-duplex mode There is problem in access, show that the network-in-dialing of the mainboard is abnormal.
Mainboard network connectivty test method provided in an embodiment of the present invention, in mainboard electrifying startup PMON to be measured to order After row, carrying out mainboard network connectivty test in such a way that PMON order line is arranged and executes, each setting movement is surveyed Examination movement can be realized in the form of command program under PMON order line, to realize careful operating procedure, Er Qieke Neatly to add new test function and realize that feasibility, strong operability can make mainboard to the compatibility of other mainboards Manufacturing enterprise quickly and accurately positions Error Location in testing process, the effective investment for reducing human resources;And it does not need For the equipment that mainboard addition is complicated, does not need to initialize entire mainboard one time completely yet, can be effectively reduced test complexity, The testing time is saved, testing efficiency is improved;In addition, final survey can be made by repeatedly being tested under different bandwidth mode Test result is relatively reliable.
The embodiment of the present invention provides a kind of mainboard network-in-dialing system safety testing device, and Fig. 7 is mainboard network connectivty of the present invention The structural schematic diagram of test device embodiment one, as shown in fig. 7, the device of the present embodiment includes:
First configuration unit 101 is used for after mainboard electrifying startup PMON to order line to be measured, by PMON order The network interface card of mainboard to be measured and network chip are configured the first full-duplex mode by the mode of row setting;
First control unit 102, for passing through the side executed under PMON order line under first full-duplex mode Network packet is sent to network chip by network interface card by formula, and the network packet is sent back to network interface card in the PCS of network chip;
First comparison unit 103, the data and network interface card for will be sent to network chip by network interface card are from the received data of PCS It compares;
First determination unit 104, for when the data and network interface card that be sent to network chip by network interface card are from the received data of PCS When inconsistent, determine that the network interface card of the mainboard to be measured is connected to sexual abnormality with the data path between network chip.
Wherein, the network chip can be PHY chip, and the network interface can be RJ45 interface, but be not limited only to This.
Mainboard network-in-dialing system safety testing device provided in an embodiment of the present invention, in mainboard electrifying startup PMON to be measured to order After row, carrying out mainboard network connectivty test in such a way that PMON order line is arranged and executes, each setting movement is surveyed Examination movement can be realized in the form of command program under PMON order line, to realize careful operating procedure, Er Qieke Neatly to add new test function and realize that feasibility, strong operability can make mainboard to the compatibility of other mainboards Manufacturing enterprise quickly and accurately positions Error Location in testing process, the effective investment for reducing human resources;And it does not need For the equipment that mainboard addition is complicated, does not need to initialize entire mainboard one time completely yet, can be effectively reduced test complexity, The testing time is saved, testing efficiency is improved.
The embodiment of the present invention provides another mainboard network-in-dialing system safety testing device, and Fig. 8 is mainboard network-in-dialing of the present invention The structural schematic diagram of system safety testing device embodiment two, as shown in figure 8, the device of the present embodiment includes:
First configuration unit 101 is used for after mainboard electrifying startup PMON to order line to be measured, by PMON order The network interface card of mainboard to be measured and network chip are configured the first full-duplex mode by the mode of row setting;
First control unit 102, for passing through the side executed under PMON order line under first full-duplex mode Network packet is sent to network chip by network interface card by formula, and the network packet is sent back to network interface card in the PCS of network chip;
First comparison unit 103, the data and network interface card for will be sent to network chip by network interface card are from the received data of PCS It compares;
First determination unit 104, for when the data and network interface card that be sent to network chip by network interface card are from the received data of PCS When inconsistent, determine that the network interface card of the mainboard to be measured is connected to sexual abnormality with the data path between network chip;
Second control unit 105, for when the data and network interface card that be sent to network chip by network interface card are from the received data of PCS When consistent, network packet is sent to network interface by network interface card by way of executing under PMON order line, and in network The network packet is sent back to network interface card by interface;
Second comparison unit 106, for receiving by network interface the data and network interface card that are sent to network interface by network interface card Data compare;
Second determination unit 107, for being received when the data and network interface card that are sent to network interface by network interface card by network interface Data it is consistent when, determine that the network-in-dialing of the mainboard to be measured is good, otherwise determine the network chip of the mainboard to be measured with Data path between network interface is connected to sexual abnormality.
Mainboard network-in-dialing system safety testing device provided in an embodiment of the present invention, in mainboard electrifying startup PMON to be measured to order After row, carrying out mainboard network connectivty test in such a way that PMON order line is arranged and executes, each setting movement is surveyed Examination movement can be realized in the form of command program under PMON order line, to realize careful operating procedure, Er Qieke Neatly to add new test function and realize that feasibility, strong operability can make mainboard to the compatibility of other mainboards Manufacturing enterprise quickly and accurately positions Error Location in testing process, the effective investment for reducing human resources;And it does not need For the equipment that mainboard addition is complicated, does not need to initialize entire mainboard one time completely yet, can be effectively reduced test complexity, The testing time is saved, testing efficiency is improved.
Fig. 9 is the structural schematic diagram of mainboard network-in-dialing system safety testing device embodiment three of the present invention, as shown in figure 9, optional Ground, when the network chip is the chip with crc error tally function, described device further include:
Second configuration unit 108, for being incited somebody to action in first configuration unit 101 by way of the setting of PMON order line The network interface card and network chip of mainboard to be measured are configured to before the first full-duplex mode, when the mainboard to be measured and another network-in-dialing After good mainboard passes through cable directly-connected network interface, configured by way of the setting of PMON order line and it is enabled described to Survey the crc error tally function of the network chip of mainboard;
Reading unit 109, for sending network packet to the mainboard to be measured in the good mainboard of the network-in-dialing Later, the crc error counter register of network chip is read by way of executing under PMON order line;
First configuration unit 101, when the value for reading when the reading unit 109 is 0, by PMON order The network interface card of mainboard to be measured and network chip are configured the first full-duplex mode by the mode of row setting;
Third determination unit 110 determines the mainboard to be measured when the value for reading when the reading unit 109 is not 0 Network-in-dialing it is abnormal.
Further, first configuration unit 101 is also used to when the network-in-dialing exception for determining the mainboard to be measured Afterwards, configuring the second full-duplex mode for the network interface card of mainboard to be measured and network chip by way of the setting of PMON order line;
The first control unit 102 is also used under second full-duplex mode, by holding under PMON order line Network packet is sent to network chip by network interface card by capable mode, and sends out the network packet in the PCS of network chip Return network interface card;
First comparison unit 103, be also used to by be sent to by network interface card network chip data and network interface card from PCS receive Data compare;
Second control unit 105 is also used to receive when the data and network interface card that are sent to network chip by network interface card from PCS Data it is consistent when, under second full-duplex mode by way of being executed under PMON order line by network packet by Network interface card is sent to network interface, and the network packet is sent back to network interface card in network interface;
First determination unit 104 is also used to receive when the data and network interface card that are sent to network chip by network interface card from PCS Data it is inconsistent when, determine that the network chip of the mainboard to be measured is connected to sexual abnormality with the data path between network interface;
Second comparison unit 106, the data and network interface card for being also used to that network interface will be sent to by network interface card are connect by network The received data of mouth compare;
Second determination unit 107 is also used to be connect when the data and network interface card that are sent to network interface by network interface card by network When the received data of mouth are consistent, determine that the network-in-dialing of the mainboard to be measured is slightly worse but still available, otherwise determine the master to be measured The network chip of plate is connected to sexual abnormality with the data path between network interface.
Wherein, the band under first full-duplex mode is wider than the bandwidth under second full-duplex mode.
Mainboard network-in-dialing system safety testing device provided in an embodiment of the present invention, in mainboard electrifying startup PMON to be measured to order After row, carrying out mainboard network connectivty test in such a way that PMON order line is arranged and executes, each setting movement is surveyed Examination movement can be realized in the form of command program under PMON order line, to realize careful operating procedure, Er Qieke Neatly to add new test function and realize that feasibility, strong operability can make mainboard to the compatibility of other mainboards Manufacturing enterprise quickly and accurately positions Error Location in testing process, the effective investment for reducing human resources;And it does not need For the equipment that mainboard addition is complicated, does not need to initialize entire mainboard one time completely yet, can be effectively reduced test complexity, The testing time is saved, testing efficiency is improved;In addition, final survey can be made by repeatedly being tested under different bandwidth mode Test result is relatively reliable.
The embodiment of the present invention also provides a kind of non-volatile computer readable storage medium storing program for executing, is stored in the storage medium Computer instruction, when computer executes the computer instruction, for executing above-mentioned mainboard network connectivty test method.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (11)

1. a kind of mainboard network connectivty test method characterized by comprising
It, will by way of in the setting of PMON order line after mainboard electrifying startup process monitors PMON to order line to be measured The network interface card and network chip of mainboard to be measured are configured to the first full-duplex mode;
Under first full-duplex mode, network packet is sent by network interface card by way of being executed under PMON order line To network chip, and the network packet is sent back into network interface card in the Physical Coding Sublayer PCS of network chip;
The data that network chip is sent to by network interface card and network interface card are compared from the received data of PCS, if the two is inconsistent, Determine that the network interface card of the mainboard to be measured is connected to sexual abnormality with the data path between network chip.
2. the method according to claim 1, wherein the method also includes:
If the data that network interface card is sent to network chip are consistent from the received data of PCS with network interface card, by under PMON order line Network packet is sent to network interface by network interface card by the mode of execution, and the network packet is sent back to net in network interface Card;
The data that network interface is sent to by network interface card and network interface card are compared by the received data of network interface, if the two one It causes, it is determined that the network-in-dialing of the mainboard to be measured is good;Otherwise the network chip and network interface of the mainboard to be measured are determined Between data path be connected to sexual abnormality.
3. method according to claim 1 or 2, which is characterized in that when the network chip is with cyclic redundancy check When the chip of crc error tally function, it is described by way of the setting of PMON order line by the network interface card and net of mainboard to be measured Network chip is configured to before the first full-duplex mode, the method also includes:
After the mainboard to be measured and the good mainboard of another network-in-dialing pass through cable directly-connected network interface, by PMON The mode of order line setting configures and enables the crc error tally function of the network chip of the mainboard to be measured;
After the good mainboard of the network-in-dialing sends network packet to the mainboard to be measured, by PMON order line The mode of lower execution reads the crc error counter register of network chip;
If the value read is 0, by the way that the network interface card of mainboard to be measured and network chip are configured by way of the setting of PMON order line For the first full-duplex mode, otherwise determine that the network-in-dialing of the mainboard to be measured is abnormal.
4. according to the method described in claim 2, it is characterized in that, determining the network-in-dialing exception of the mainboard to be measured Afterwards, the method also includes:
Configuring the second full-duplex mode for the network interface card of mainboard to be measured and network chip by way of the setting of PMON order line;
Under second full-duplex mode, network packet is sent by network interface card by way of being executed under PMON order line To network chip, and the network packet is sent back into network interface card in the PCS of network chip;
The data that network chip is sent to by network interface card and network interface card are compared from the received data of PCS, if the two is consistent, Network packet is sent to network by network interface card by way of executing under PMON order line under second full-duplex mode Interface, and the network packet is sent back into network interface card in network interface, if the two is inconsistent, it is determined that the net of the mainboard to be measured Card is connected to sexual abnormality with the data path between network chip;
The data that network interface is sent to by network interface card and network interface card are compared by the received data of network interface, if the two one Cause, it is determined that the network-in-dialing of the mainboard to be measured is slightly worse but still available, otherwise determine the network chip of the mainboard to be measured with Data path between network interface is connected to sexual abnormality.
5. according to the method described in claim 4, it is characterized in that, the band under first full-duplex mode is wider than described Bandwidth under two full-duplex modes.
6. a kind of mainboard network-in-dialing system safety testing device characterized by comprising
First configuration unit is used for after mainboard electrifying startup PMON to order line to be measured, by being arranged in PMON order line Mode configure the first full-duplex mode for the network interface card of mainboard to be measured and network chip;
First control unit is used under first full-duplex mode, by net by way of executing under PMON order line Network data packet is sent to network chip by network interface card, and the network packet is sent back to network interface card in the PCS of network chip;
First comparison unit, for carrying out the data and network interface card that are sent to network chip by network interface card pair from the received data of PCS Than;
First determination unit, the data and network interface card for that ought be sent to network chip by network interface card are inconsistent from the received data of PCS When, determine that the network interface card of the mainboard to be measured is connected to sexual abnormality with the data path between network chip.
7. device according to claim 6, which is characterized in that described device further include:
Second control unit, for when the data for being sent to network chip by network interface card are consistent from the received data of PCS with network interface card, Network packet is sent to network interface by network interface card by way of executing under PMON order line, and in network interface by institute It states network packet and sends back to network interface card;
Second comparison unit, for by be sent to by network interface card network interface data and network interface card by the received data of network interface into Row comparison;
Second determination unit, for when the data and network interface card for being sent to network interface by network interface card are by the received data one of network interface When cause, determines that the network-in-dialing of the mainboard to be measured is good, otherwise determine the network chip and network interface of the mainboard to be measured Between data path be connected to sexual abnormality.
8. device according to claim 6 or 7, which is characterized in that when the network chip is to count function with crc error When the chip of energy, described device further include:
Second configuration unit, for first configuration unit by way of the setting of PMON order line by mainboard to be measured Network interface card and network chip are configured to before the first full-duplex mode, when the mainboard to be measured and the good mainboard of another network-in-dialing Net after cable directly-connected network interface, configuring and enabling the mainboard to be measured by way of the setting of PMON order line The crc error tally function of network chip;
Reading unit, for leading to after the good mainboard of the network-in-dialing sends network packet to the mainboard to be measured Cross the crc error counter register that the mode executed under PMON order line reads network chip;
First configuration unit, when the value for reading when the reading unit is 0, by the side that PMON order line is arranged The network interface card of mainboard to be measured and network chip are configured the first full-duplex mode by formula;
Third determination unit when the value for reading when the reading unit is not 0, determines the network-in-dialing of the mainboard to be measured It is abnormal.
9. device according to claim 7, which is characterized in that first configuration unit, be also used to when determine it is described to It surveys after the network-in-dialing exception of mainboard, by the network interface card and network chip of mainboard to be measured by way of in the setting of PMON order line It is configured to the second full-duplex mode;
The first control unit is also used under second full-duplex mode, passes through the side executed under PMON order line Network packet is sent to network chip by network interface card by formula, and the network packet is sent back to network interface card in the PCS of network chip;
First comparison unit, the data and network interface card for being also used to that network chip will be sent to by network interface card are from the received data of PCS It compares;
Second control unit is also used to when the data and network interface card that be sent to network chip by network interface card are from the received data of PCS When consistent, network packet is sent out by network interface card by way of being executed under PMON order line under second full-duplex mode It send to network interface, and the network packet is sent back into network interface card in network interface;
First determination unit is also used to when the data and network interface card that be sent to network chip by network interface card are from the received data of PCS When inconsistent, determine that the network chip of the mainboard to be measured is connected to sexual abnormality with the data path between network interface;
Second comparison unit, the data and network interface card for being also used to that network interface will be sent to by network interface card are received by network interface Data compare;
Second determination unit is also used to when the data and network interface card that are sent to network interface by network interface card are received by network interface When data are consistent, determine that the network-in-dialing of the mainboard to be measured is slightly worse but still available, otherwise determine the network of the mainboard to be measured Data path between chip and network interface is connected to sexual abnormality.
10. device according to claim 9, which is characterized in that the band under first full-duplex mode is wider than described Bandwidth under second full-duplex mode.
11. a kind of non-volatile computer readable storage medium storing program for executing, it is characterised in that: be stored with computer in the storage medium and refer to It enables, when computer executes the computer instruction, for executing mainboard network described in any one of the claims 1-5 Continuity testing method.
CN201710735563.9A 2017-08-24 2017-08-24 Mainboard network connectivity test method and device Active CN109428778B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710735563.9A CN109428778B (en) 2017-08-24 2017-08-24 Mainboard network connectivity test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710735563.9A CN109428778B (en) 2017-08-24 2017-08-24 Mainboard network connectivity test method and device

Publications (2)

Publication Number Publication Date
CN109428778A true CN109428778A (en) 2019-03-05
CN109428778B CN109428778B (en) 2020-11-17

Family

ID=65499397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710735563.9A Active CN109428778B (en) 2017-08-24 2017-08-24 Mainboard network connectivity test method and device

Country Status (1)

Country Link
CN (1) CN109428778B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475398A (en) * 2020-03-08 2020-07-31 苏州浪潮智能科技有限公司 Server NIC diagnosis method, system, terminal and storage medium
CN112653595A (en) * 2020-12-15 2021-04-13 成都海光集成电路设计有限公司 Chip network function testing method and device, storage medium and equipment
CN112866061A (en) * 2021-01-26 2021-05-28 浪潮电子信息产业股份有限公司 NCSI (network control information system) testing method, device, equipment and medium of onboard network port
CN114338457A (en) * 2021-12-23 2022-04-12 绿盟科技集团股份有限公司 System, method, device, equipment and medium for testing network card switching effectiveness

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004068312A2 (en) * 2003-01-28 2004-08-12 Frost D Gabriel System and method for ubiquitous network access
US20060018263A1 (en) * 2004-07-23 2006-01-26 Mcgee Michael Sean Method and system for monitoring network connectivity
CN102055624A (en) * 2010-12-30 2011-05-11 中兴通讯股份有限公司 Method and system for detecting connectivity fault
CN104268042A (en) * 2014-09-24 2015-01-07 浪潮电子信息产业股份有限公司 Server memory signal detection design method
CN104283733A (en) * 2013-07-12 2015-01-14 鸿富锦精密工业(深圳)有限公司 Connectivity testing method and system of switchboard and network card
CN104598353A (en) * 2015-02-02 2015-05-06 浪潮电子信息产业股份有限公司 Method for on-line testing functional completeness of NCSI (Network Connectivity Status Indicator) adapter card
CN106649019A (en) * 2017-01-11 2017-05-10 郑州云海信息技术有限公司 Test method for overall automatic PCIE communication quality based on serial port

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004068312A2 (en) * 2003-01-28 2004-08-12 Frost D Gabriel System and method for ubiquitous network access
US20060018263A1 (en) * 2004-07-23 2006-01-26 Mcgee Michael Sean Method and system for monitoring network connectivity
CN102055624A (en) * 2010-12-30 2011-05-11 中兴通讯股份有限公司 Method and system for detecting connectivity fault
CN104283733A (en) * 2013-07-12 2015-01-14 鸿富锦精密工业(深圳)有限公司 Connectivity testing method and system of switchboard and network card
CN104268042A (en) * 2014-09-24 2015-01-07 浪潮电子信息产业股份有限公司 Server memory signal detection design method
CN104598353A (en) * 2015-02-02 2015-05-06 浪潮电子信息产业股份有限公司 Method for on-line testing functional completeness of NCSI (Network Connectivity Status Indicator) adapter card
CN106649019A (en) * 2017-01-11 2017-05-10 郑州云海信息技术有限公司 Test method for overall automatic PCIE communication quality based on serial port

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475398A (en) * 2020-03-08 2020-07-31 苏州浪潮智能科技有限公司 Server NIC diagnosis method, system, terminal and storage medium
CN112653595A (en) * 2020-12-15 2021-04-13 成都海光集成电路设计有限公司 Chip network function testing method and device, storage medium and equipment
CN112653595B (en) * 2020-12-15 2022-08-12 成都海光集成电路设计有限公司 Chip network function testing method and device, storage medium and equipment
CN112866061A (en) * 2021-01-26 2021-05-28 浪潮电子信息产业股份有限公司 NCSI (network control information system) testing method, device, equipment and medium of onboard network port
CN114338457A (en) * 2021-12-23 2022-04-12 绿盟科技集团股份有限公司 System, method, device, equipment and medium for testing network card switching effectiveness
CN114338457B (en) * 2021-12-23 2023-12-01 绿盟科技集团股份有限公司 Test system, method, device, equipment and medium for network card switching effectiveness

Also Published As

Publication number Publication date
CN109428778B (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN109428778A (en) Mainboard network connectivty test method and device
US7650555B2 (en) Method and apparatus for characterizing components of a device under test using on-chip trace logic analyzer
CN104184617B (en) InterWorking Equipment pre-add method for reconfiguration, device, system and the network equipment
CN110050441A (en) Capture flow in real time in case of a fault to carry out protocol debugging
KR101933723B1 (en) Programmable protocol generator
CN105868149A (en) A serial port information transmission method and device
CN104618054B (en) Parameter regulation means and device
CN109144932A (en) A kind of device and method of the quick dynamic configuration FPGA based on DSP
CN104471880A (en) Method for efficient parallel testing of time division duplex (TDD) communications systems
CN104731566B (en) Integrated Development Environment test device, method and system
CN103138988B (en) Positioning treatment method and positioning treatment device of network faults
US20080133169A1 (en) Methods and apparatus for testing a link between chips
US6178525B1 (en) Trigger sequencing controller
CN103761185A (en) Automated testing system and automated testing method
CN106776346A (en) The method of testing and device of CCMTS equipment
CN110309069A (en) Test case dynamically load and control tool
US11157378B2 (en) Method, device, data storage system, and computer product for error injection
CN110389901A (en) Test method, device, computer equipment and the storage medium of ARM industrial personal computer
CN108896841A (en) Test macro, test method and device
CN105610627A (en) Method and device for upgrading network device
CN101800672B (en) Equipment detection method and equipment
CN104780123B (en) A kind of network pack receiving and transmitting processing unit and its design method
CN109428783A (en) Network apparatus test method and device
WO2020259339A1 (en) Bus monitoring device and method, storage medium, and electronic device
CN109547274A (en) A kind of enclosure board switching method, device and first network equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Patentee after: Loongson Zhongke Technology Co.,Ltd.

Address before: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Patentee before: LOONGSON TECHNOLOGY Corp.,Ltd.