CN111245674A - Method and system for testing low-power-consumption working mode of physical layer port and electronic equipment - Google Patents

Method and system for testing low-power-consumption working mode of physical layer port and electronic equipment Download PDF

Info

Publication number
CN111245674A
CN111245674A CN201911422296.5A CN201911422296A CN111245674A CN 111245674 A CN111245674 A CN 111245674A CN 201911422296 A CN201911422296 A CN 201911422296A CN 111245674 A CN111245674 A CN 111245674A
Authority
CN
China
Prior art keywords
node
preset
nodes
command packet
simulation
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
CN201911422296.5A
Other languages
Chinese (zh)
Other versions
CN111245674B (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.)
Xian Xiangteng Microelectronics Technology Co Ltd
Original Assignee
Xian Xiangteng Microelectronics 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 Xian Xiangteng Microelectronics Technology Co Ltd filed Critical Xian Xiangteng Microelectronics Technology Co Ltd
Priority to CN201911422296.5A priority Critical patent/CN111245674B/en
Publication of CN111245674A publication Critical patent/CN111245674A/en
Application granted granted Critical
Publication of CN111245674B publication Critical patent/CN111245674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and a system for testing a low-power-consumption working mode of a physical layer port and electronic equipment, wherein the method for testing the low-power-consumption working mode of the physical layer port comprises the following steps: building a network topology environment, wherein the network topology environment comprises a plurality of first preset nodes and simulation nodes; performing at least one of a suspend and resume test, a disable and enable test, or a sleep and wake test in the network topology environment. The method for testing the low-power-consumption working mode of the physical layer port can carry out suspension and recovery test, prohibition and enabling test and dormancy and awakening test in a network topology environment, so that the correctness and integrity of the low-power-consumption mode design of the physical layer port of each node can be comprehensively tested.

Description

Method and system for testing low-power-consumption working mode of physical layer port and electronic equipment
Technical Field
The invention belongs to the technical field of aviation and industrial control, and particularly relates to a method and a system for testing a low-power-consumption working mode of a physical layer port and electronic equipment.
Background
The SAE AS5643 standard (SAE AS 5643: 1394b interface requirement for military and aircraft applications) defines the 1394b protocol locally to meet the aviation field requirements for high reliability, low latency, certainty.
The 1394 bus is used as a new generation airborne high-speed bus, is mainly used for data interaction between the internal interconnection of airborne subsystems and the subsystems, supports asynchronous transmission and isochronous transmission modes, and can be divided into a protocol layer, a link layer and a physical layer according to communication level division. The phy chip is a core device of the 1394 bus, and therefore it is important to know the operation mode of the ports of the phy chip in the case of low power consumption.
The PHY Silicon network interoperability test specification relates to the testing of a port low-power-consumption mode of operation, but only describes the most basic mode of entering the port low-power-consumption mode of operation and recovering the full power consumption and normal operation state, and a detailed and comprehensive feasibility test method is not proposed, and the comprehensive testing of the port low-power-consumption mode function cannot be completed only by the description.
Disclosure of Invention
In order to solve the above problems in the prior art, the invention provides a method and a system for testing a low-power-consumption working mode of a physical layer port, and an electronic device. The technical problem to be solved by the invention is realized by the following technical scheme:
a method for testing a low-power-consumption working mode of a physical layer port comprises the following steps:
building a network topology environment, wherein the network topology environment comprises a plurality of first preset nodes and simulation nodes;
performing at least one of a suspend and resume test, a disable and enable test, or a sleep and wake test in the network topology environment.
In one embodiment of the present invention, the performing of the suspend and resume test in the network topology environment comprises:
acquiring a plurality of second preset nodes and a plurality of first nodes needing to be suspended from the plurality of first preset nodes;
sending a Suspend command packet to the second preset node connected with the first node through the simulation node so as to Suspend the first node;
sending a Resume command packet or a Resume packet to the second preset node connected with the first node through the simulation node to recover the suspended first node.
In one embodiment of the present invention, sending, by the emulation node, a Suspend command packet to the second preset node connected to the first node to Suspend the first node, includes:
sending a Suspend command packet to the second preset node connected with the first node through the simulation node to obtain a third preset node;
and sending a Suspend symbol to the first node connected with the third preset node by using the third preset node, and broadcasting to the rest of the first nodes by the first node receiving the Suspend symbol so as to Suspend the first node.
In one embodiment of the present invention, sending a Resume command packet or a Resume packet to the second preset node connected to the first node through the emulation node to Resume the suspended first node, includes:
sending a Resume command packet to the second preset node connected with the first node through the simulation node so as to recover the first node connected with the second preset node; alternatively, the first and second electrodes may be,
and sending a Resume packet to the second preset node connected with the first node through the simulation node, and broadcasting to the first node through the second preset node so as to recover the first node.
In an embodiment of the present invention, performing sleep and wake-up tests in the network topology environment includes:
acquiring a plurality of fourth preset nodes and a plurality of second nodes needing dormancy from the plurality of first preset nodes;
sending a Standby command packet to the second node through the simulation node so as to enable the second node to be dormant;
and sending a Restore command packet to a fourth preset node connected with the second node through the simulation node so as to wake up the second node.
In one embodiment of the present invention, sending, by the emulating node, a Standby command packet to the second node to make the second node sleep, comprises:
and sending a Standby command packet to the second node through the simulation node, so that a port of the second node is in a Standby state, and the second node is enabled to be dormant.
In one embodiment of the present invention, the performing the disabling and enabling tests in the network topology environment includes:
acquiring a plurality of fifth preset nodes and a plurality of third nodes needing to be forbidden from the plurality of first preset nodes;
sending a Disable command packet to the fifth preset node connected with the third node through the simulation node so as to Disable the third node;
transmitting an Enable command packet to the fifth preset node connected to the third node through the simulation node to Enable the disabled third node.
In one embodiment of the present invention, the sending, by the emulation node, a Disable command packet to the fifth preset node connected to the third node to Disable the third node includes:
sending a Disable command packet to a fifth preset node connected with the third node through the simulation node to obtain a sixth preset node;
transmitting, by the sixth preset node, a Disablenotify symbol to the third node connected to the sixth preset node, so that the third node is disabled.
An embodiment of the present invention further provides a system for testing a low power consumption operating mode of a physical layer port, including:
the environment building module is used for building a network topology environment, and the network topology environment comprises a plurality of first preset nodes and simulation nodes;
a test module for performing at least one of a suspend and resume test, a disable and enable test, or a sleep and wake test in the network topology environment.
An embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor, configured to implement the steps of the method for testing the low power consumption operating mode of the physical layer port according to any of the embodiments when executing the computer program.
The invention has the beneficial effects that:
the method for testing the low-power-consumption working mode of the physical layer port can carry out suspension and recovery test, prohibition and enabling test and dormancy and awakening test in a network topology environment, so that the correctness and integrity of the low-power-consumption mode design of the physical layer port of each node can be comprehensively tested.
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Drawings
Fig. 1 is a schematic flowchart of a method for testing a low-power-consumption operating mode of a physical layer port according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a network topology for suspend and resume testing provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of a network topology for sleep and wake tests according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a network topology for disabling and enabling testing according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a test system of a physical layer port in a low power consumption operating mode according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to specific examples, but the embodiments of the present invention are not limited thereto.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for testing a low power consumption operating mode of a physical layer port according to an embodiment of the present invention. The embodiment of the invention provides a method for testing a low-power-consumption working mode of a physical layer port. The method for testing the low-power-consumption working mode of the physical layer port specifically comprises the following steps:
step 1, building a network topology environment, wherein the network topology environment comprises a plurality of first preset nodes and simulation nodes;
and 2, performing at least one of a suspend and resume test, a disable and enable test or a sleep and wake test in a network topology environment.
In this embodiment, a network topology environment needs to be established first. The network topology environment can be built according to an actual environment, or according to an environment to be tested, or according to design requirements, which is not specifically limited in this embodiment, the network topology environment built in this embodiment needs to include a simulation node, and the simulation node can send a Suspend command packet, a Resume command packet, a Standby command packet, a Restore command packet, a Disable command packet, an Enable command packet, and the like, so as to implement low power consumption testing under different conditions, and the simulation node can be, for example, a 1394 three-node simulation card. The first preset node of this embodiment is a node to be tested, and each first preset node is provided with at least one PHY (physical layer), and each PHY has three ports. Therefore, after the network topology environment is established, the physical layer port needs to be tested in the low power consumption operating mode according to the requirement, and the embodiment may perform at least one of a suspend and resume test, a disable and enable test, or a sleep and wake-up test on the physical layer port, that is, only the suspend and resume test, only the disable and enable test, only the sleep and wake-up test, or the suspend and resume test and the disable and enable test, or the suspend and resume test and the sleep and wake-up test, or the disable and enable test and the sleep and wake-up test, or the suspend and resume test, the disable and enable test and the sleep and wake-up test. The test content can be selected according to actual requirements, which is not specifically limited in this embodiment. In this embodiment, for example, the 1394 three-node emulation card and the matched Mil1394FG application software can perform the visual test operation of the ports Suspend and Resume, Disable and Enable, Standby and Restore.
In the present embodiment, Suspend and Resume are to bring ports connected on the physical layer into a low power consumption state, and can return from the low power consumption state to a full power consumption and full operation state. When the port is suspended, the port receiving the Suspend symbol is also suspended by propagating the Suspend symbol on the bus, so that part of the bus is put into a low power consumption state, and a sleep area is formed in the bus network. The ports can not receive and send data packets after being suspended, and the ports which are suspended are communicated through the connection tone. The port being suspended becomes the active port through Resume operation, bus reset is initiated in the Resume process, so that the node participates in bus network reset, and the node of the previous Suspend participates in normal bus activity after the reset is completed.
In this embodiment, the Standby and Restore are similar to the Suspend and Restore processes, the ports that enter the Standby state and the Suspend state both operate in a low power consumption mode, the ports cannot receive and transmit data packets, and the ports of the Standby are connected through a connection tone, but the processes of the ports of the Standby and the Suspend are different in that: firstly, Suspend is simultaneously applicable to a Beta port and a DS port, while Standby is only applicable to the Beta port; secondly, after one port is suspended, other nodes connected with the port can be suspended, a sleep area is formed after the bus is reset, the nodes cannot participate in bus activity, and the Standby can only sleep the nodes connected with the port of the Standby, so that the nodes of the Standby are separated from the bus, and the bus reset is not generated; finally, the port will initiate a bus reset during both Suspend and Resume, while the port will not initiate a bus reset during Standby and Restore.
In the present embodiment, for Disable and Enable, the port connection state can be Disabled in any state (Disabled state) and the priority of state hopping is highest. And the port is in a low power consumption mode after being disabled, and the port cannot receive and send data packets. The disabled port is kept connected with the peer port through the connection tone. Only when the port receives the Disable command packet, the Disable active port will initiate a bus reset, otherwise the bus reset will not be initiated.
In a specific embodiment, the method for performing suspend and resume test in a network topology environment will be specifically described in this embodiment, and the suspend and resume test in this embodiment is applicable to Alpha link and Beta link modes. Performing suspend and resume testing in a network topology environment may include steps 2.1-2.3, wherein:
and 2.1, acquiring a plurality of second preset nodes and a plurality of first nodes needing to be suspended from a plurality of first preset nodes.
Specifically, in this embodiment, first, a plurality of first nodes that need to be suspended are obtained from a plurality of first preset nodes, where the first nodes are nodes that need to be in a suspended state, and the second preset nodes are other nodes in a network topology.
And 2.2, sending a Suspend command packet to a second preset node connected with the first node through the simulation node so as to Suspend the first node.
Specifically, a first node to be suspended is determined, the suspended first node is a dormant node, and the dormant node is a low power consumption state. In this embodiment, the simulation node sends the Suspend command packet to the second preset node connected to the first node, that is, the simulation node sends the Suspend command packet to the second preset node connected to the first node, so that a port connected to the first node in the second preset node receives the Suspend command packet, so that the second preset node becomes an Initiator (Initiator), and the first node connected to the second preset node broadcasts to other first nodes, thereby achieving an effect of suspending the first node.
Further, step 2.2 may specifically comprise steps 2.21-2.22, wherein:
and 2.21, sending a Suspend command packet to a second preset node connected with the first node through the simulation node to obtain a third preset node.
Specifically, in this embodiment, the Suspend command packet is sent to the second preset node through the simulation node, and a port connected to the first node in the second preset node receives the Suspend command packet, so that the second preset node becomes an Initiator, and the second preset node that becomes the Initiator is the third preset node.
And 2.22, sending the Suspend symbol to the first node connected with the third preset node by using the third preset node, and broadcasting to other first nodes through the first node receiving the Suspend symbol so as to Suspend the first node.
Specifically, a Suspend symbol is sent to a first node connected to a third preset node for a port of the third preset node that receives the Suspend command packet, where the first node that receives the Suspend symbol may broadcast, so that the first node that is connected to the ports may broadcast through the port of the first node, and the broadcasted first node may be in a suspended state, so that the first node that needs to be suspended may be in the suspended state, and the first node may become a dormant node, so that the physical layer port is in a low-power-consumption operating mode.
Referring to fig. 2, for example, the network topology environment of the embodiment includes a simulation node E, a first preset node a, a first preset node B, a first preset node C, a first preset node D, and a first preset node F, the tested node is set as the first preset node a, the first node is set as the first preset node B, the second preset node C, and the first preset node D, so that the simulation node E sends a Suspend command packet to the port P0 of the first preset node a, so that the first preset node a becomes an Initiator, and the first preset node B can receive the Suspend symbol sent by the first preset node a, and the first preset node B can broadcast the Suspend symbol to the first preset node C and the first preset node D through the ports P1 and P2, and the port P0 of the first preset node a that receives the Suspend command packet is in a Suspend state, so that the first preset node a in the network topology environment of fig. 2 is in the Suspend state The first preset node F and the simulation node E are active nodes, and the first preset node B, the first preset node C and the first preset node D become dormant nodes.
And 2.3, sending a Resume command packet or a Resume packet to a second preset node connected with the first node through the simulation node so as to recover the suspended first node.
In this embodiment, if the suspended first node is to be restored to the un-suspended state, even if the first node becomes an active node, a Resume command packet or a Resume packet may be sent to the second predetermined node connected to the first node that needs to be restored by the emulation node, where the Resume command packet may restore the first node connected to the second predetermined node, and the Resume packet has a broadcast function, that is, may be broadcast to other first nodes connected to the first node by the first node connected to the second predetermined node, so as to restore the first node that needs to be restored. Those skilled in the art may select the Resume command packet or the Resume packet according to actual requirements, which is not specifically limited in this embodiment.
Further, sending the Resume command packet to the second preset node connected to the first node through the simulation node may specifically be: and sending a Resume command packet to a second preset node connected with the first node through the simulation node so as to recover the first node connected with the second preset node.
Specifically, in this embodiment, a first node that needs to be restored is first determined, and then a Resume command packet is sent to a second preset node connected to the first node through a simulation node, so that a port connected to the first node to be restored in the second preset node receives the Resume command packet, and a port that receives the Resume command packet is in an Active state, and then the first node connected to the port of the second preset node that receives the Resume command packet is restored to be an Active node.
Referring to fig. 2 again, for example, if the first preset node B is to be restored, a Resume command packet may be sent to the port P0 of the first preset node a through the simulation node E, and the port P0 that receives the Resume command packet is in an Active state, so that the first preset node a, the first preset node B, the first preset node F, and the simulation node E in the network topology in fig. 2 are Active nodes, and the first preset node C and the first preset node D are still dormant nodes.
Further, sending the Resume packet to the second preset node connected to the first node through the simulation node may specifically be: and sending a Resume packet to a second preset node connected with the first node through the simulation node, and broadcasting to the first node through the second preset node so as to recover the first node.
Specifically, in this embodiment, first nodes needing to be resumed are determined, then the Resume packet is sent to the second preset node connected to one of the first nodes through the simulation node, the second preset node receiving the Resume packet broadcasts to the first node connected to the second preset node, and the first node broadcasts to the first nodes connected to the first node, so that the suspended first node resumes to be the active node.
Referring to fig. 2 again, for example, if the first preset node B, the first preset node C, and the first preset node D are all to be recovered as active nodes, the simulation node may send a Resume packet to the first preset node a, and the first preset node a may broadcast the Resume packet to the first preset node B, the first preset node C, and the first preset node D, so that the first preset node B, the first preset node C, and the first preset node D are recovered as active nodes.
In a specific embodiment, the method for performing the sleep and wake-up test in the network topology environment will be specifically described in this embodiment, and the sleep and wake-up test in this embodiment is applicable to the Beta link mode. Performing sleep and wake-up tests in a network topology environment may include steps 2.4-2.6, wherein:
and 2.4, acquiring a plurality of fourth preset nodes and a plurality of second nodes needing dormancy from the plurality of first preset nodes.
Specifically, first, a second node that needs to be dormant needs to be determined, where the second node in the dormant state is a dormant node, in this embodiment, first, a plurality of second nodes that need to be dormant are obtained from a plurality of first preset nodes, and a fourth preset node is another node in the network topology.
And 2.5, sending a Standby command packet to the second node through the simulation node so as to enable the second node to be dormant.
Specifically, a second node which needs to be dormant is determined, then a Standby command packet can be sent to the second node through the simulation node, a port of the second node which receives the Standby command packet is in a Standby state, and when all ports connected with other nodes in the second node are in the Standby state, the second node is in a dormant state, so that the second node becomes a dormant node, and a physical layer port is in a low-power-consumption working mode.
Referring to fig. 3, for example, the network topology environment of the embodiment includes a simulation node E, a first preset node a, a first preset node B, a first preset node C, a first preset node D, and a first preset node F, sets a node to be tested as a first preset node D, that is, the first predetermined node D is required to be dormant, so that the second node is the first predetermined node D, so the emulation node E sends a Standby command packet to the port P0 of the first preset node D, and the port P0 of the first preset node D receives the Standby command packet, so the port P0 of the first preset node D is in the Standby state, and the port P2, which received the Standby symbol, of the first default node B is also in the Standby state, so that the first default node D becomes a sleeping node at this time, and the simulation node E and the first preset node a, the first preset node B, the first preset node C and the first preset node F become active nodes.
And 2.6, sending a Restore command packet to a fourth preset node connected with the second node through the simulation node so as to wake up the second node.
Specifically, when the second node needs to be woken up, that is, when the second node needs to become an Active node, the emulation node sends a Restore command packet to a fourth preset node connected to the second node, a port of the fourth preset node connected to the second node receives the Restore command packet, a port receiving the Restore command packet is in an Active state, and at this time, a port of the second node connected to the fourth preset node receives a Restore tone (tone is a signal during speed negotiation), and the Restore tone can wake up the corresponding port, so that the port of the second node is in an Active state, and the second node can be woken up.
Referring to fig. 3 again, for example, if the first preset node D is to be woken up, a Restore command packet may be sent to the port P2 of the first preset node B through the simulation node E, so that the port P2 of the first preset node B is in an Active state at this time, the port P0 of the first preset node D connected to the port P2 of the first preset node B receives the Restore tone, and the port P0 of the first preset node D is in an Active state at this time, so that the first preset node D is woken up, and the first preset node D becomes an Active node at this time.
In a specific embodiment, the method for performing the disable and enable test in the network topology environment will be specifically described, and the disable and enable test of the embodiment is applicable to Alpha link and Beta link modes. Performing the disabling and enabling tests in a network topology environment may include steps 2.7-2.9, wherein:
and 2.7, acquiring a plurality of fifth preset nodes and a plurality of third nodes needing to be forbidden from the plurality of first preset nodes.
Specifically, in this embodiment, first, a plurality of third nodes that need to be disabled are obtained from a plurality of first preset nodes, where the third nodes are nodes that need to be in a disabled state, and the fifth preset nodes are other nodes in a network topology.
And 2.8, sending a Disable command packet to a fifth preset node connected with the third node through the simulation node so as to Disable the third node.
Specifically, in this embodiment, first, a third node that needs to be disabled is determined, where the disabled third node is a dormant node, and then, a Disable command packet is sent to a fifth preset node connected to the third node through a simulation node, a port of the fifth preset node that receives the Disable command packet is in a Disable state, so that the third node connected to the port is in the disabled state, and the third node becomes the dormant node, so that a port of a physical layer is in a low-power-consumption operating mode.
Further, step 2.8 may specifically include steps 2.81-2.82, where:
step 2.81, a Disable command packet is sent to a fifth preset node connected with the third node through the simulation node to obtain a sixth preset node;
and 2.82, sending a disabling symbol to a third node connected with the sixth preset node by using the sixth preset node so as to disable the third node.
Specifically, in this embodiment, a third node to be disabled is first determined, and then a Disable command packet may be sent to a fifth preset node connected to the third node through the simulation node, where the fifth preset node receiving the Disable command packet is a sixth preset node, a port of the sixth preset node connected to the third node receives the Disable command packet, a port of the sixth preset node receiving the Disable command packet is in a Disable state, and a third node connected to the port of the sixth preset node receives a Disable notify symbol (Disable notification symbol), so that the third node becomes a Suspend Target, the third node which becomes the Suspend Target is disabled, and at this time, the third node becomes a sleep node, and the physical layer port is in a low power consumption working mode.
Referring to fig. 4, for example, the network topology environment of this embodiment includes a simulation node E, a first preset node a, a first preset node B, a first preset node C, a first preset node D and a first preset node F, the tested node is set as the first preset node a, the third node is the first preset node B, so that the simulation node E sends a Disable command packet to a port P0 of the first preset node a, a port P0 of the first preset node a receiving the Disable command packet is in a Disable state, the first preset node a sends a Disable symbol to the first preset node B, so that the first preset node B becomes a Suspend Target, the first preset node B becomes a dormant node when the first preset node B becomes the dormant node, because the first preset node C and the first preset node D are connected to ports P1 and P2 of the first preset node B, respectively, therefore, when the network topology structure at this time is observed through the observation interface, only the simulation node E, the first preset node a and the first preset node F can be observed.
And 2.9, sending an Enable command packet to a fifth preset node connected with the third node through the simulation node so as to Enable the forbidden third node.
Specifically, when the disabled third node needs to be enabled, even if the third node becomes an Active node, the emulation node may send an Enable command packet to a port of a fifth preset node connected to the third node, and the port of the fifth preset node receiving the Enable command packet may be in an Active state, so that the third node connected to the port of the fifth preset node is enabled, and the third node becomes the Active node.
Referring to fig. 4 again, for example, if the first preset node B is to be enabled, the emulation node E may send an Enable command packet to the first preset node a, the port P0 of the first preset node a connected to the first preset node B receives the Enable command packet, at this time, the port P0 of the first preset node a is in an Active state, and at this time, the first preset node B is enabled.
The method for testing the low-power-consumption working mode of the physical layer port can carry out suspension and recovery test, prohibition and enable test and dormancy and awakening test in a network topology environment, and can select different test modes according to actual requirements, so that the low-power-consumption working mode of the physical layer port can be tested under different conditions. The method for testing the low-power-consumption working mode of the physical layer port can solve the problem that the existing testing method is poor in feasibility and operability.
Example two
Referring to fig. 5, fig. 5 is a schematic structural diagram of a test system of a physical layer port in a low power consumption operating mode according to an embodiment of the present invention. As shown in fig. 5, the system for testing the low power consumption operation mode of the physical layer port may include:
the environment building module is used for building a network topology environment, and the network topology environment comprises a plurality of first preset nodes and simulation nodes;
a test module for performing at least one of a suspend and resume test, a disable and enable test, or a sleep and wake test in the network topology environment.
In a specific embodiment, the performing of the suspend and resume test in the network topology environment includes:
acquiring a plurality of second preset nodes and a plurality of first nodes needing to be suspended from the plurality of first preset nodes;
sending a Suspend command packet to the second preset node connected with the first node through the simulation node so as to Suspend the first node;
sending a Resume command packet or a Resume packet to the second preset node connected with the first node through the simulation node to recover the suspended first node.
In a specific embodiment, sending, by the emulation node, a Suspend command packet to the second preset node connected to the first node, so as to Suspend the first node, includes:
sending a Suspend command packet to the second preset node connected with the first node through the simulation node to obtain a third preset node;
and sending a Suspend symbol to the first node connected with the third preset node by using the third preset node, and broadcasting to the rest of the first nodes by the first node receiving the Suspend symbol so as to Suspend the first node.
In a specific embodiment, sending a Resume command packet or a Resume packet to the second preset node connected to the first node through the emulation node to Resume the suspended first node includes:
sending a Resume command packet to the second preset node connected with the first node through the simulation node so as to recover the first node connected with the second preset node; alternatively, the first and second electrodes may be,
and sending a Resume packet to the second preset node connected with the first node through the simulation node, and broadcasting to the first node through the second preset node so as to recover the first node.
In a specific embodiment, the performing sleep and wake tests in the network topology environment includes:
acquiring a plurality of fourth preset nodes and a plurality of second nodes needing dormancy from the plurality of first preset nodes;
sending a Standby command packet to the second node through the simulation node so as to enable the second node to be dormant;
and sending a Restore command packet to a fourth preset node connected with the second node through the simulation node so as to wake up the second node.
In a specific embodiment, sending, by the emulating node, a Standby command packet to the second node to make the second node sleep includes:
and sending a Standby command packet to the second node through the simulation node, so that a port of the second node is in a Standby state, and the second node is enabled to be dormant.
In a specific embodiment, the performing the disabling and enabling tests in the network topology environment includes:
acquiring a plurality of fifth preset nodes and a plurality of third nodes needing to be forbidden from the plurality of first preset nodes;
sending a Disable command packet to the fifth preset node connected with the third node through the simulation node so as to Disable the third node;
transmitting an Enable command packet to the fifth preset node connected to the third node through the simulation node to Enable the disabled third node.
In a specific embodiment, sending, by the emulation node, a Disable command packet to the fifth preset node connected to the third node, so as to Disable the third node, includes:
sending a Disable command packet to a fifth preset node connected with the third node through the simulation node to obtain a sixth preset node;
transmitting, by the sixth preset node, a Disablenotify symbol to the third node connected to the sixth preset node, so that the third node is disabled.
The system for testing the low-power-consumption working mode of the physical layer port provided by the embodiment of the invention can execute the method embodiment, and the implementation principle and the technical effect are similar, so that the detailed description is omitted.
EXAMPLE III
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 6, the electronic device 1100 includes: the system comprises a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, wherein the processor 1101, the communication interface 1102 and the memory 1103 are communicated with each other through the communication bus 1104;
a memory 1103 for storing a computer program;
the processor 1101 is configured to implement the above-mentioned method steps when executing the program stored in the memory 1103.
The processor 1101, when executing the computer program, implements the steps of:
building a network topology environment, wherein the network topology environment comprises a plurality of first preset nodes and simulation nodes;
performing at least one of a suspend and resume test, a disable and enable test, or a sleep and wake test in the network topology environment.
The electronic device provided by the embodiment of the present invention can execute the above method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus (device), or computer program product. Accordingly, this application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects that may all generally be referred to herein as a "module" or "system. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. A computer program stored/distributed on a suitable medium supplied together with or as part of other hardware, may also take other distributed forms, such as via the Internet or other wired or wireless telecommunication systems.
The electronic device provided by the embodiment of the present invention can execute the above method embodiments, and the implementation principle and technical effect are similar, which are not described herein again.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples described in this specification can be combined and combined by those skilled in the art.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A method for testing a low-power-consumption working mode of a physical layer port is characterized by comprising the following steps:
building a network topology environment, wherein the network topology environment comprises a plurality of first preset nodes and simulation nodes;
performing at least one of a suspend and resume test, a disable and enable test, or a sleep and wake test in the network topology environment.
2. The method for testing the low-power-consumption operation mode of the physical layer port according to claim 1, wherein the performing of the suspend and resume test in the network topology environment comprises:
acquiring a plurality of second preset nodes and a plurality of first nodes needing to be suspended from the plurality of first preset nodes;
sending a Suspend command packet to the second preset node connected with the first node through the simulation node so as to Suspend the first node;
sending a Resume command packet or a Resume packet to the second preset node connected with the first node through the simulation node to recover the suspended first node.
3. The method for testing the low-power-consumption operating mode of the physical layer port according to claim 2, wherein sending a Suspend command packet to the second preset node connected to the first node through the emulation node to Suspend the first node comprises:
sending a Suspend command packet to the second preset node connected with the first node through the simulation node to obtain a third preset node;
and sending a Suspend symbol to the first node connected with the third preset node by using the third preset node, and broadcasting to the rest of the first nodes by the first node receiving the Suspend symbol so as to Suspend the first node.
4. The method for testing the low-power-consumption operation mode of the physical layer port according to claim 2, wherein the sending, by the emulation node, a Resume command packet or a Resume packet to the second preset node connected to the first node to Resume the suspended first node comprises:
sending a Resume command packet to the second preset node connected with the first node through the simulation node so as to recover the first node connected with the second preset node; alternatively, the first and second electrodes may be,
and sending a Resume packet to the second preset node connected with the first node through the simulation node, and broadcasting to the first node through the second preset node so as to recover the first node.
5. The method for testing the low-power-consumption working mode of the physical layer port according to claim 1, wherein the performing the sleep and wake-up test in the network topology environment comprises:
acquiring a plurality of fourth preset nodes and a plurality of second nodes needing dormancy from the plurality of first preset nodes;
sending a Standby command packet to the second node through the simulation node so as to enable the second node to be dormant;
and sending a Restore command packet to a fourth preset node connected with the second node through the simulation node so as to wake up the second node.
6. The method for testing the low-power-consumption working mode of the physical layer port according to claim 5, wherein sending a Standby command packet to the second node through the simulation node to make the second node sleep comprises:
and sending a Standby command packet to the second node through the simulation node, so that a port of the second node is in a Standby state, and the second node is enabled to be dormant.
7. The method for testing the low-power-consumption operation mode of the physical layer port according to claim 1, wherein the performing of the disable and enable test in the network topology environment comprises:
acquiring a plurality of fifth preset nodes and a plurality of third nodes needing to be forbidden from the plurality of first preset nodes;
sending a Disable command packet to the fifth preset node connected with the third node through the simulation node so as to Disable the third node;
transmitting an Enable command packet to the fifth preset node connected to the third node through the simulation node to Enable the disabled third node.
8. The method for testing the low-power-consumption working mode of the physical layer port according to claim 7, wherein the sending, by the emulation node, a Disable command packet to the fifth preset node connected to the third node to Disable the third node comprises:
sending a Disable command packet to a fifth preset node connected with the third node through the simulation node to obtain a sixth preset node;
transmitting, by the sixth preset node, a Disablenotify symbol to the third node connected to the sixth preset node, so that the third node is disabled.
9. A system for testing a low-power-consumption working mode of a physical layer port is characterized by comprising:
the environment building module is used for building a network topology environment, and the network topology environment comprises a plurality of first preset nodes and simulation nodes;
a test module for performing at least one of a suspend and resume test, a disable and enable test, or a sleep and wake test in the network topology environment.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-8 when executing the computer program.
CN201911422296.5A 2019-12-31 2019-12-31 Method and system for testing low-power-consumption working mode of physical layer port and electronic equipment Active CN111245674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911422296.5A CN111245674B (en) 2019-12-31 2019-12-31 Method and system for testing low-power-consumption working mode of physical layer port and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911422296.5A CN111245674B (en) 2019-12-31 2019-12-31 Method and system for testing low-power-consumption working mode of physical layer port and electronic equipment

Publications (2)

Publication Number Publication Date
CN111245674A true CN111245674A (en) 2020-06-05
CN111245674B CN111245674B (en) 2022-09-09

Family

ID=70864774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911422296.5A Active CN111245674B (en) 2019-12-31 2019-12-31 Method and system for testing low-power-consumption working mode of physical layer port and electronic equipment

Country Status (1)

Country Link
CN (1) CN111245674B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020056060A1 (en) * 2000-05-31 2002-05-09 Noriyuki Saruhashi Physical layer device testing method, physical layer device with test circuits, and transmitting/receiving circuit with test circuits
JP2003023473A (en) * 2001-07-06 2003-01-24 Seiko Epson Corp Physical layer chip for ieee1394 standards, and testing method therefor
CN107276871A (en) * 2017-06-16 2017-10-20 山东省科学院自动化研究所 A kind of Low-power-consumptiocontrol control method, controller and the control system of CAN nodes
US20180115480A1 (en) * 2016-10-20 2018-04-26 Mediatek Inc. Unified protocol device with self functional test and associated method
CN108259265A (en) * 2017-12-08 2018-07-06 中国航空工业集团公司成都飞机设计研究所 A kind of military 1394B bus network channel integrity detection method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020056060A1 (en) * 2000-05-31 2002-05-09 Noriyuki Saruhashi Physical layer device testing method, physical layer device with test circuits, and transmitting/receiving circuit with test circuits
JP2003023473A (en) * 2001-07-06 2003-01-24 Seiko Epson Corp Physical layer chip for ieee1394 standards, and testing method therefor
US20180115480A1 (en) * 2016-10-20 2018-04-26 Mediatek Inc. Unified protocol device with self functional test and associated method
CN107276871A (en) * 2017-06-16 2017-10-20 山东省科学院自动化研究所 A kind of Low-power-consumptiocontrol control method, controller and the control system of CAN nodes
CN108259265A (en) * 2017-12-08 2018-07-06 中国航空工业集团公司成都飞机设计研究所 A kind of military 1394B bus network channel integrity detection method

Also Published As

Publication number Publication date
CN111245674B (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN102571452B (en) Multi-node management method and system
CN107659494B (en) Data processing method and intelligent vehicle-mounted gateway
US8745238B2 (en) Virtual hot inserting functions in a shared I/O environment
WO2015090245A1 (en) File transmission method, apparatus, and distributed cluster file system
WO2010011235A1 (en) Usb self-idling techniques
CN103645975B (en) A kind of method of abnormal restoring and serial bus transmission device
CN102394914A (en) Cluster brain-split processing method and device
CN107196771A (en) Vehicle netbios synchronization dormancy method, system and gateway controller
CN105242990A (en) Cloud platform based data backup method and apparatus
CN110880998A (en) Message transmission method and device based on programmable device
CN109150662A (en) Method for message transmission, distributed system, equipment, medium and unmanned vehicle
CN103516734A (en) Data processing method, device and system
CN109165261A (en) Method of data synchronization, device, server and computer storage medium
CN110730095B (en) Cloud computing platform-oriented data security emergency drilling method and system
CN111245674B (en) Method and system for testing low-power-consumption working mode of physical layer port and electronic equipment
CN113630269B (en) High-performance computing system operation environment deployment acceleration method and system based on topology awareness
WO2024120230A1 (en) Network device management method and apparatus and storage medium
CN111490918A (en) Vehicle-mounted Ethernet network awakening system, method and device and computer equipment
CN113938842A (en) Method, network equipment and system for self-organizing network root node election
CN109151033A (en) Communication means, device, electronic equipment and storage medium based on distributed system
CN112468317A (en) Cluster topology updating method, system, equipment and computer storage medium
US9323629B2 (en) Method for managing path failures of OSEK networks
CN109413180B (en) Data acquisition method, system and equipment and storage medium
US9491132B2 (en) System and method for providing push service for reducing network loads
CN108363629B (en) Method, medium, apparatus and computing device for instant messaging

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