This application relates to the communication field, and in particular, to a fault information processing method and apparatus.
When a fault occurs in communication between interfaces, it is particularly important to locate the fault.
In some scenarios, a physical layer (PHY) chip and a media access control (MAC) chip of an Ethernet interface are two different chips. This is briefly referred to as “PHY and MAC separation”. In a scenario in which PHY and MAC are separated, if a fault occurs in communication between an interface A and an interface B, a specific location of the fault cannot be determined.
In view of this, a solution is urgently needed to resolve the foregoing problem.
Embodiments of this application provide a fault information processing method and apparatus, to determine a specific location of a fault in a scenario in which PHY and MAC are separated.
According to a first aspect, an embodiment of this application provides a fault information processing method. The method may be applied to a first interface, and the first interface includes a PHY chip and a MAC chip. In an example, the method may be performed by the PHY chip of the first interface. After receiving first fault information sent by a second interface communicating with the first interface, the PHY chip may send second fault information to the MAC chip. The first fault information indicates that the second interface detects a fault, and the second fault information indicates that the fault is from the second interface. Because the PHY chip has received the first fault information sent by the second interface, a link between the PHY chip and the second interface is normal. Similarly, if the MAC chip can normally receive the second fault information, it indicates that communication between the PHY chip and the MAC chip is also normal. Therefore, it may be determined that the fault is from the second interface. According to this solution, after the second interface sends the first fault information to the PHY chip of the first interface, the PHY chip of the first interface may send the first fault information and the second fault information to the MAC chip of the first interface, to indicate that the fault is from the second interface. It can be learned that, according to this solution, a specific location of the fault can be determined.
In a possible implementation, during specific implementation of sending the second fault information by the PHY chip to the MAC chip, the PHY chip may include the second fault information in a data block and send the data block to the MAC chip. In this manner, after receiving the data block sent by the PHY chip, the MAC chip may parse the data block to obtain the second fault information.
In a possible implementation, if the PHY chip of the first interface and the MAC chip of the first interface are connected through a universal slicing attachment unit interface (USAUI), an overhead block is communicated between the PHY chip of the first interface and the MAC chip of the first interface. Therefore, in this case, during an implementation of sending the second fault information by the PHY chip to the MAC chip, the PHY chip may send, to the MAC chip, an overhead block carrying the second fault information. In this manner, after receiving the overhead block sent by the PHY chip, the MAC chip may parse the overhead block to obtain the second fault information.
In a possible implementation, the PHY chip may send a control character sequence to the MAC chip. In this case, during an implementation of sending the second fault information by the PHY chip to the MAC chip, the PHY chip may send, to the MAC chip, a control character sequence carrying the second fault information. In this manner, after receiving the control character sequence sent by the PHY chip, the MAC chip may parse the control character sequence to obtain the second fault information.
In a possible implementation, in addition to sending the second fault information to the MAC chip, the PHY chip may further send the first fault information to the MAC chip. In this way, the MAC chip may not only determine that the fault occurs in the second interface, but also determine that an interface detecting the fault is the second interface.
According to a second aspect, an embodiment of this application provides a fault information processing method. The method may be applied to a first interface, and the first interface includes a PHY chip. In an example, the method may be performed by the PHY chip of the first interface. After determining that a receiving fault occurs in the PHY chip, the PHY chip of the first interface may send first fault information, where the first fault information indicates that the fault is from the PHY chip of the first interface. According to this solution, when the fault occurs in the PHY chip of the first interface, the first fault information indicating a specific location of the fault may be sent. It can be learned that, according to this solution, the specific location of the fault can be determined.
In a possible implementation, when determining that a fault occurs in a link from a first chip to the PHY chip, the PHY chip of the first interface may determine that the fault occurs in the PHY chip. The first chip is a chip communicating with the PHY chip. In an example, the first chip may be the MAC chip of the first interface. In another example, the first chip may be a PHY chip of a second interface.
In a possible implementation, the PHY chip of the first interface may send the first fault information to a controller, so that the controller learns that the fault occurs in the PHY chip of the first interface, and then takes a further measure.
In a possible implementation, the PHY chip of the first interface may send the first fault information to the MAC chip of the first interface, so that the MAC chip of the first interface takes a further measure based on the first fault information.
In a possible implementation, in addition to sending the first fault information, the PHY chip of the first interface may further send second fault information to the second interface, where the second fault information indicates that the first interface detects the fault. In this way, the first interface may not only determine, based on the first fault information, that the fault is from the PHY chip of the first interface, but also determine, based on the second fault information, that the first interface detects the fault.
In a possible implementation, if the first chip is the MAC chip of the first interface, in addition to sending the first fault information to the MAC chip of the first interface, the PHY chip of the first interface may further send third fault information to the MAC chip of the first interface. The third fault information indicates that a chip other than the MAC chip of the first interface detects the fault. After receiving the third fault information, the MAC chip of the first interface may determine that the chip other than the MAC chip of the first interface detects the fault.
In a possible implementation, if the first chip is the PHY chip of the second interface, in addition to sending the first fault information to the MAC chip of the first interface, the PHY chip of the first interface may further send fourth fault information to the MAC chip of the first interface. The fourth fault information indicates that the first interface detects the fault. In this way, the MAC chip of the first interface may not only determine, based on the first fault information, that the fault occurs in the PHY chip of the first interface, but also determine, based on the fourth fault information, that the PHY chip of the first interface detects the fault.
According to a third aspect, an embodiment of this application provides a fault information processing apparatus. The apparatus is used in a PHY chip of a first interface, and the first interface further includes a MAC chip. The apparatus includes a receiving unit configured to receive first fault information sent by a second interface, where the first fault information indicates that the second interface detects a fault, and a sending unit configured to send second fault information to the MAC chip, where the second fault information indicates that the fault is from the second interface.
In a possible implementation, the sending unit is configured to send a data block to the MAC chip, where the data block includes the second fault information.
In a possible implementation, the sending unit is configured to send an overhead block to the MAC chip, where the overhead block includes the second fault information.
In a possible implementation, the sending unit is configured to send a control character sequence to the MAC chip, where the control character sequence includes the second fault information.
In a possible implementation, the sending unit is further configured to send the first fault information to the MAC chip.
According to a fourth aspect, an embodiment of this application provides a fault information processing apparatus. The apparatus is used in a PHY chip of a first interface. The apparatus includes a processing unit configured to determine that a fault occurs in the PHY chip, and a sending unit configured to send first fault information, where the first fault information indicates that the fault is from the PHY chip.
In a possible implementation, the processing unit is configured to determine that a fault occurs in a link from a first chip to the PHY chip, where the first chip is a MAC chip of the first interface or a PHY chip of a second interface.
In a possible implementation, the sending unit is configured to send the first fault information to the MAC chip of the first interface and/or a controller.
In a possible implementation, the sending unit is further configured to send second fault information to the second interface, where the second fault information indicates that the first interface detects the fault.
In a possible implementation, if the first chip is the MAC chip of the first interface, the sending unit is further configured to send third fault information to the MAC chip of the first interface, where the third fault information indicates that a chip other than the MAC chip of the first interface detects the fault.
In a possible implementation, if the first chip is the PHY chip of the second interface, the sending unit is further configured to send fourth fault information to the MAC chip of the first interface, where the fourth fault information indicates that the first interface detects the fault.
According to a fifth aspect, an embodiment of this application provides a chip. The chip includes a processor and a memory. The memory is configured to store instructions or a computer program. The processor is configured to execute the instructions or the computer program in the memory, to perform the method according to any one of the first aspect, or the method according to any one of the second aspect.
According to a sixth aspect, an embodiment of this application provides a computer-readable storage medium, including instructions or a computer program. When the instructions are run or the computer program is run on a computer, the computer is enabled to perform the method according to any one of the first aspect, or the method according to any one of the second aspect.
According to a seventh aspect, an embodiment of this application provides a computer program product including instructions or a computer program. When the computer program product runs on a computer, the computer is enabled to perform the method according to any one of the first aspect, or the method according to any one of the second aspect.
To describe technical solutions in some embodiments of this application more clearly, the following briefly describes the accompanying drawings for describing some embodiments. It is clear that, the accompanying drawings in the following descriptions show only some embodiments recorded in this application, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
Fault information may be communicated between Ethernet interfaces by using two signals: a local fault (LF) and a remote fault (RF). For example, for an interface A and an interface B, if the interface A detects a fault, the interface A sends an RF to the interface B, to notify the interface B that the interface A detects the fault. In addition, the interface A may further report an LF to a local controller, to notify the local controller that the interface A detects the fault.
However, in a scenario in which a MAC and a PHY are separated, when a fault occurs in communication between an interface A and an interface B, the interface A or the interface B in which the fault occurs cannot be located by using an LF and an RF. Further, even if it is determined that the fault occurs in the interface A, a MAC chip of the interface A or a PHY chip of the interface A in which the fault occurs cannot be located by using the LF and the RF. Similarly, it is determined that the fault occurs in the interface B, and a MAC chip of the interface B or a PHY chip of the interface B in which the fault occurs cannot be located by using the LF and the RF.
In addition, for some interfaces such as the interface A, the interfaces may have a plurality of MAC chips and a plurality of PHY chips, where the MAC chips are in one-to-one correspondence with the PHY chips. It can be learned from the foregoing descriptions that a MAC chip and a PHY chip in which the fault occurs cannot be located by using the LF and RF.
In view of this, embodiments of this application provide a fault information processing method and apparatus. In the scenario in which PHY and MAC are separated, if the fault occurs in the communication between the interface A and the interface B, the fault information processing method and apparatus can determine a specific location of the fault.
The following describes the fault information processing method provided in embodiments of this application.
As shown in
Both the interface 110 and the interface 120 may be Ethernet interfaces. In addition, in
The interface 110 is used as an example. When the interface 110 includes a plurality of PHY chips and a plurality of MAC chips, the PHY chips are in one-to-one correspondence with the MAC chips. The MAC chip of the interface 110 and the PHY chip of the interface 110 may be connected through a media independent interface (MII), or may be connected through an attachment unit interface (AUI). When the interface 110 includes a plurality of PHY chips and a plurality of MAC chips, and the MAC chips and the PHY chips may be connected through a USAUI, the plurality of MAC chips and the plurality of PHY chips are interconnected by using a serializer/deserializer (SerDes). The SerDes is not described in detail herein.
In addition, in
For example, the method shown in
S101: The PHY chip receives first fault information sent by a second interface, where the first fault information indicates that the second interface detects a fault.
In this embodiment of this application, the second interface is an interface communicating with the first interface. In the scenario shown in
In an implementation of this embodiment of this application, the first fault information may be an RF. For the RF, refer to a related description part of the Institute of Electrical and Electronics Engineers (IEEE) 802.3. Details are not described herein again.
S102: The PHY chip sends second fault information to the MAC chip, where the second fault information indicates that the fault is from the second interface.
In an example, it is considered that only based on the first fault information, it can only be determined that the second interface detects the fault, but a specific location of the fault cannot be determined. Since the first interface has received the first fault information, it indicates that a link between the second interface and the first interface is normal. In addition, if the MAC chip of the first interface can normally receive data sent by the PHY chip of the first interface, it indicates that communication between the PHY chip of the first interface and the MAC chip of the first interface is also normal. In view of this, in this embodiment of this application, after receiving the first fault information, the PHY chip of the first interface may send the second fault information to the MAC chip of the first interface, where the second fault information indicates that the fault is from the second interface. If the MAC chip of the first interface has normally received the second fault information, it may be determined, based on the second fault information, that the fault occurs in the second interface. In some embodiments, the second fault information may be referred to as remote PHY fault (RPF) information.
In an example, the PHY chip of the first interface may send, to the MAC chip of the first interface, a data block carrying the second fault information, to send the second fault information to the MAC chip of the first interface. The data block is not limited in this embodiment of this application. In some embodiments, the data block may be similar to a data block used to transmit an LF and an RF. In an example, code corresponding to the second fault information may be defined, and the code corresponding to the second fault information is carried in the data block and sent to the MAC chip of the first interface. The code corresponding to the second fault information is not limited in this embodiment of this application. In an example, code corresponding to the LF defined in IEEE 802.3 is/K28.4/D0.0/D0.0/D1.0/, code corresponding to the RF defined in IEEE 802.3 is/K28.4/D0.0/D0.0/D2.0/, and the code corresponding to the second fault information may be/K28.4/D0.0/D0.0/D5.0/.
In another example, it is considered that if the PHY chip of the first interface and the MAC chip of the first interface are connected through a USAUI, an overhead block is communicated between the PHY chip of the first interface and the MAC chip of the first interface. Therefore, in an example, the PHY chip of the first interface may include the second fault information in the overhead block and send the overhead block to the MAC chip of the first interface. In an example, the overhead block may include an indicator bit of the second fault information, and the indicator bit of the second fault information may be, for example, a reserved bit in the overhead block. For example, when a value of the bit is 0, it indicates that the overhead block does not carry the second fault information. When a value of the bit is 1, it indicates that the overhead block carries the second fault information. For example,
In addition, as described above, the first interface may include a plurality of PHY chips and a plurality of MAC chips, and each PHY chip of the first interface may perform the method shown in
In still another embodiment, the PHY chip of the first interface may send a control character sequence (control character sequence) to the MAC chip of the first interface, and include the second fault information in the control character sequence, to send the second fault information to the MAC chip of the first interface. In an example, the control character sequence may include 64 bits, that is, 8 bytes. Based on an existing special code block in 802.3, content of a byte, for example, the 4th byte, may be self-defined to distinguish the second fault information from other information. For example, refer to the following Table 1 for understanding. Table 1 shows a control character sequence corresponding to the RPF information (namely, the second fault information).
In Table 1: 0x9C indicates that content of the 8 bytes is a control character sequence, and that content of the byte 3 is 0x05 indicates that the control character sequence is RPF information.
Table 1 is shown only for ease of understanding, and the content of the byte 3 is not limited to 0x05 shown in Table 1.
In addition, in some embodiments, in addition to sending the second fault information to the MAC chip of the first interface, the PHY chip of the first interface may further send the first fault information to the MAC chip of the first interface. For example, after receiving the first fault information, the PHY chip of the first interface transmits the first fault information to the MAC chip of the first interface. In this way, the MAC chip of the first interface may not only determine that the fault occurs in the second interface, but also determine that an interface detecting the fault is the second interface.
It can be learned from the foregoing descriptions that, according to this solution, the first interface can determine the specific location in which the fault occurs when receiving the first fault information. In addition, each PHY chip of the first interface can perform the foregoing S101 and S102. Therefore, even if the first interface includes the plurality of PHY chips and the plurality of MAC chips, a specific PHY or MAC in which the fault occurs can be located. For example, if the interface 110 includes a plurality of PHY chips and a plurality of MAC chips, after the PHY chip 122 of the interface 120 performs S101 and S102, the MAC chip of the interface 120 may determine that a fault occurs in the MAC chip and/or the PHY chip that are/is in the interface 110 and that communicate/communicates with the PHY chip 122.
In an example of this embodiment of this application, after receiving the second fault information, the MAC chip of the first interface may report the second fault information to a controller, or send the second fault information to a main control chip of the first interface, and the main control chip reports the second fault information to a controller.
Embodiments of this application further provides a fault information processing method. The following describes the method with reference to
For example, the method shown in
S201: The PHY chip determines that a fault occurs in the PHY chip.
In this embodiment of this application, the PHY chip of the first interface may receive data sent by a first chip. A receiving fault occurring in the PHY chip may be that the PHY chip of the first interface fails to receive the data sent by the first chip.
In an implementation of this embodiment of this application, when a fault occurs in a link from the first chip to the PHY chip, it may be determined that the fault occurs in the PHY chip of the first interface. In an example, during an implementation, S201 may be that the PHY chip determines that the fault occurs in the link from the first chip to the PHY chip. An implementation in which the PHY chip determines that the fault occurs in the link from the first chip to the PHY chip is not limited in this embodiment of this application. In an example, if detecting a loss of signal, the PHY chip may determine that the fault occurs in the link from the first chip to the PHY chip.
It should be noted that, because the PHY chip of the first interface may receive data sent by the MAC chip of the first interface or data sent by a PHY chip of a second interface communicating with the first interface, the first chip may be the MAC chip of the first interface or the PHY chip of the second interface.
S202: The PHY chip sends first fault information, where the first fault information indicates that the fault is from the PHY chip.
In this embodiment of this application, when determining that the receiving fault occurs in the PHY chip, the PHY chip may send the first fault information indicating that the fault is from the PHY chip, so that a device or a chip receiving the first fault information determines that the fault occurs in the PHY chip of the first interface. The first fault information mentioned herein may be local PHY fault (LPF) information. In an example, the PHY chip of the first interface may send the first fault information to a controller, so that the controller learns that the fault occurs in the PHY chip of the first interface, and then takes a further measure. In another example, the PHY chip of the first interface may send the first fault information to the MAC chip of the first interface, so that the MAC chip of the first interface takes a further measure based on the first fault information. For example, the MAC chip of the first interface changes data that originally needs to be sent to the PHY chip of the first interface to special data, such as an idle code block, an error code block, an RF, all-zero data, or the like.
During an implementation, the PHY chip of the first interface may send the first fault information to the MAC chip of the first interface in a plurality of implementations. The following describes several possible implementations.
Implementation 1: The PHY chip of the first interface may send, to the MAC chip of the first interface, a data block carrying the first fault information, to send the first fault information to the MAC chip of the first interface. The data block is not limited in this embodiment of this application. In some embodiments, the data block may be similar to a data block used to transmit an LF and an RF. In an example, code corresponding to the first fault information may be defined, and the code corresponding to the first fault information is carried in the data block and sent to the MAC chip of the first interface. The code corresponding to the first fault information is not limited in this embodiment of this application. In an example, the code corresponding to the first fault information may be/K28.4/D0.0/D0.0/D4.0/.
Implementation 2: It is considered that if the PHY chip of the first interface and the MAC chip of the first interface are connected through a USAUI, an overhead block is communicated between the PHY chip of the first interface and the MAC chip of the first interface. Therefore, in an example, the PHY chip of the first interface may include the first fault information in the overhead block and send the overhead block to the MAC chip of the first interface. In an example, the overhead block may include an indicator bit of the first fault information, and the indicator bit of the first fault information may be, for example, a reserved bit in the overhead block. For example, when a value of the bit is 0, it indicates that the overhead block does not carry the first fault information. When a value of the bit is 1, it indicates that the overhead block carries the first fault information. It may be understood with reference to
In addition, as described above, the first interface may include a plurality of PHY chips and a plurality of MAC chips, and each PHY chip of the first interface may perform the method shown in
Implementation 3: The PHY chip of the first interface may send a control character sequence to the MAC chip of the first interface, and include the first fault information in the control character sequence, to send the first fault information to the MAC chip of the first interface. In an example, the control character sequence may include 64 bits, that is, 8 bytes. Content of a byte, for example, the 4th byte, may be self-defined to distinguish the first fault information from other information. For example, refer to the following Table 2 for understanding. Table 2 shows a control character sequence corresponding to the LPF information (namely, the first fault information).
In Table 2: 0x9C indicates that content of the 8 bytes is a control character sequence, and that content of the byte 3 is 0x04 indicates that the control character sequence is LPF information.
Table 2 is shown only for ease of understanding, and the content of the byte 3 is not limited to 0x04 shown in Table 2.
In an example, in addition to sending the first fault information, the PHY chip of the first interface may further send second fault information to the second interface, where the second fault information indicates that the first interface detects the fault. The second fault information mentioned herein may be an RF. For related content of the PHY chip of the first interface sending the RF and the RF, refer to a related description part of IEEE 802.3. Details are not described herein again.
It may be understood that the PHY chip of the first interface communicates with the second interface via the PHY chip of the second interface. Therefore, the second fault information sent by the PHY chip of the first interface is received by the PHY chip of the second interface. After receiving the second fault information, the PHY chip of the second interface may further send, to a MAC chip of the second interface, fault information indicating that the fault is from the first interface. In this way, the second interface may determine that the fault is from the first interface.
As described above, the first chip may be the MAC chip of the first interface or the PHY chip of the second interface. In some embodiments, if the first chip is the MAC chip of the first interface, in addition to sending the first fault information to the MAC chip of the first interface, the PHY chip of the first interface may further send third fault information to the MAC chip of the first interface. The third fault information indicates that a chip other than the MAC chip of the first interface detects the fault. The third fault information mentioned herein may be an RF. After receiving the third fault information, the MAC chip of the first interface may take a further measure based on the third fault information. For example, the MAC chip of the first interface changes data that originally needs to be sent to the PHY chip of the first interface to special data, such as an idle code block, an error code block, an RF, all-zero data, or the like.
In an example, the PHY chip of the first interface may send the first fault information and the third fault information to the MAC chip of the first interface by using same signaling. For example, the PHY chip of the first interface may include the first fault information and the third fault information in a same packet and send the packet to the MAC chip of the first interface. For another example, the first interface may include both the first fault information and the third fault information in the overhead block and send the overhead block to the MAC chip of the first interface. For still another example, the first interface may send a control character sequence that carries the first fault information and the third fault information to the MAC chip of the first interface.
In another example, the PHY chip of the first interface may separately send the first fault information and the third fault information to the MAC chip of the first interface by using two different pieces of signaling. For example, the third fault information is sent to the MAC chip of the first interface in a conventional RF sending manner. For the conventional RF sending manner, refer to a related description part of IEEE 802.3. Details are not described herein again.
In some embodiments, if the first chip is the PHY chip of the second interface, in addition to sending the first fault information to the MAC chip of the first interface, the PHY chip of the first interface may further send fourth fault information to the MAC chip of the first interface. The fourth fault information indicates that the first interface detects the fault. The fourth fault information mentioned herein may be an LF. After receiving the fourth fault information, the MAC chip of the first interface may take a further measure based on the fourth fault information, for example, send an RF to the PHY chip of the first interface, so that the PHY chip of the first interface transmits the RF to the PHY chip of the second interface.
In an example, the PHY chip of the first interface may send the first fault information and the fourth fault information to the MAC chip of the first interface by using same signaling. For example, the PHY chip of the first interface may include the first fault information and the fourth fault information in a same packet and send the packet to the MAC chip of the first interface. For another example, the first interface may include both the first fault information and the fourth fault information in the overhead block and send the overhead block to the MAC chip of the first interface. For still another example, the first interface may send a control character sequence that carries the first fault information and the fourth fault information to the MAC chip of the first interface.
In another example, the PHY chip of the first interface may separately send the first fault information and the fourth fault information to the MAC chip of the first interface by using two different pieces of signaling. For example, the fourth fault information is sent to the MAC chip of the first interface in a conventional LF sending manner. For the conventional LF sending manner, refer to a related description part of IEEE 802.3. Details are not described herein again.
It may be learned from the foregoing descriptions that, according to this solution, when the receiving fault occurs in the PHY chip, the first fault information indicating a specific location of the fault may be sent. It can be learned that, according to this solution, the specific location of the fault can be determined.
The following describes several possible fault information processing manners with reference to the application scenario shown in
The MAC chip 111 detects a fault, and the MAC chip 111 sends an RF to the PHY chip 112. The PHY chip 112 transmits the RF to the PHY chip 122. After receiving the RF, the PHY chip 122 sends an RPF and the RF to the MAC chip 121.
In this scenario, the interface 120 is equivalent to the first interface in the method shown in
The PHY chip 112 determines that a fault occurs in a link from the MAC chip 111 to the PHY chip 112. In this case, the PHY chip 112 sends an RF and an LPF to the MAC chip 111. In addition, the PHY chip 112 sends an RF to the PHY chip 122. After receiving the RF, the PHY chip 122 sends the RF and an RPF to the MAC chip 121.
In this scenario, the interface 110 is equivalent to the first interface in the method shown in
In this scenario, the interface 120 is equivalent to the first interface in the method shown in
The PHY chip 122 determines that a fault occurs in a link from the PHY chip 112 to the PHY chip 122. In this case, the PHY chip 122 sends an LF and an LPF to the MAC chip 121. In addition, the PHY chip 122 sends an RF to the PHY chip 112. After receiving the RF, the PHY chip 112 sends the RF and an RPF to the MAC chip 111.
In this scenario, the interface 120 is equivalent to the first interface in the method shown in
In this scenario, the interface 110 is equivalent to the first interface in the method shown in
Based on the fault information processing methods provided in the foregoing embodiments, an embodiment of this application further provides a corresponding apparatus. The following describes the apparatus with reference to the accompanying drawings.
The fault information processing apparatus 500 may include, for example, a receiving unit 501 and a sending unit 502.
The receiving unit 501 is configured to receive first fault information sent by a second interface, where the first fault information indicates that the second interface detects a fault.
The sending unit 502 is configured to send second fault information to the MAC chip, where the second fault information indicates that the fault is from the second interface.
In a possible implementation, the sending unit 502 is configured to send a data block to the MAC chip, where the data block includes the second fault information.
In a possible implementation, the sending unit 502 is configured to send an overhead block to the MAC chip, where the overhead block includes the second fault information.
In a possible implementation, the sending unit 502 is configured to send a control character sequence to the MAC chip, where the control character sequence includes the second fault information.
In a possible implementation, the sending unit 502 is further configured to send the first fault information to the MAC chip.
The apparatus 500 is an apparatus corresponding to the method corresponding to
The fault information processing apparatus 600 may include, for example, a processing unit 601 and a sending unit 602.
The processing unit 601 is configured to determine that a fault occurs in the PHY chip.
The sending unit 602 is configured to send first fault information, where the first fault information indicates that the fault is from the PHY chip.
In a possible implementation, the processing unit 601 is configured to determine that a fault occurs in a link from a first chip to the PHY chip, where the first chip is the MAC chip of the first interface or a PHY chip of a second interface.
In a possible implementation, the sending unit 602 is configured to send the first fault information to the MAC chip of the first interface and/or a controller.
In a possible implementation, the sending unit 602 is further configured to send second fault information to the second interface, where the second fault information indicates that the first interface detects the fault.
In a possible implementation, if the first chip is the MAC chip of the first interface, the sending unit 602 is further configured to send third fault information to the MAC chip of the first interface, where the third fault information indicates that a chip other than the MAC chip of the first interface detects the fault.
In a possible implementation, if the first chip is the PHY chip of the second interface, the sending unit 602 is further configured to send fourth fault information to the MAC chip of the first interface, where the fourth fault information indicates that the first interface detects the fault.
The apparatus 600 is an apparatus corresponding to the method corresponding to
It should be noted that hardware structures of the fault information processing apparatus 500 and the fault information processing apparatus 600 mentioned above may be structures shown in
Refer to
The processor 710 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP. The processor 710 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex PLD (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
The memory 730 may include a volatile memory, for example, a random-access memory (RAM). Alternatively, the memory 730 may include a non-volatile memory, for example, a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD). The memory 730 may alternatively include a combination of the foregoing types of memories. When the device 700 corresponds to the fault information processing apparatus 500, the memory 730 may store, for example, the first fault information mentioned in S101. When the device 700 corresponds to the fault information processing apparatus 600, the memory 730 may store, for example, the first fault information in S202.
Optionally, the memory 730 stores an operating system and a program, an executable module or a data structure, or a subset thereof, or an extended set thereof, where the program may include various operating instructions to implement various operations. The operating system may include various system programs, to implement various basic services and process a hardware-based task. The processor 710 may read the program stored in the memory 730, to implement the fault information processing methods provided in embodiments of this application.
The bus system 740 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus system 740 may be classified into an address bus, a data bus, a control bus, and the like. For ease of representation, only one bold line is used for representation in
An embodiment of this application further provides a computer-readable storage medium, including instructions or a computer program. When the instructions are run or the computer program is run on a computer, the computer is enabled to perform the fault information processing methods provided in the foregoing embodiments.
An embodiment of this application further provides a computer program product including instructions or a computer program. When the computer program product runs on a computer, the computer is enabled to perform the fault information processing methods provided in the foregoing embodiments.
The apparatus in this application may be a network device such as a switch or a router, may be a server, or may be a part of a network device or a server such as a chip on the network device. In some embodiments, the apparatus in this application may alternatively be a function module deployed in a device or a network.
In the specification, claims, and accompanying drawings of this application, the terms “first”, “second”, “third”, “fourth”, and the like (if existent) are intended to distinguish between similar objects but do not necessarily indicate a specific order or sequence. It should be understood that the terms used in such a way are interchangeable in proper cases so that embodiments described herein can be implemented in other orders than the order illustrated or described herein. In addition, the terms “include” and “have” and any other variants are intended to cover the non-exclusive inclusion. For example, a process, method, system, product, or device that includes a list of steps or units is not necessarily limited to those expressly listed steps or units, but may include other steps or units not expressly listed or inherent to such a process, method, product, or device.
It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing described system, apparatus, and unit, refer to a corresponding process in the foregoing method embodiments, and details are not described herein again.
In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiments are merely examples. For example, division into the units is merely logical service division. In actual implementation, there may be another division manner. For example, a plurality of units or parts may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatus or units may be implemented in electronic, mechanical, or other forms.
The units described as separate components may or may not be physically separate, and components displayed as units may or may not be physical units, in an example, may be located in one location, or may be distributed on a plurality of network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of embodiments.
In addition, service units in embodiments of this application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software service unit.
When the integrated unit is implemented in the form of the software service unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of this application essentially, or the part contributing to the conventional technology, or all or some of the technical solutions may be embodied in a form of a software product. The computer software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in embodiments of this application. The storage medium includes any medium that can store program code, such as a Universal Serial Bus (USB) flash drive, a removable hard disk, a read-only memory (ROM), a RAM, a magnetic disk, or an optical disc.
A person skilled in the art should be aware that in the foregoing one or more examples, services described in the present application may be implemented by hardware, software, firmware, or any combination thereof. When implemented by the software, these services may be stored in a computer-readable medium or transmitted as one or more instructions or code on the computer-readable medium. The computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that enables a computer program to be transmitted from one place to another. The storage medium may be any available medium accessible to a general-purpose or a dedicated computer.
The objectives, technical solutions, and beneficial effects of the present application are further described in detail in the foregoing implementations. It should be understood that the foregoing are implementations of the present application.
The foregoing embodiments are merely used to describe the technical solutions of this application, but not to limit the technical solutions. Although this application is described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that modifications may still be made to the technical solutions recorded in the foregoing embodiments or equivalent replacements may be made to some technical features thereof. However, these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of embodiments of this application
Number | Date | Country | Kind |
---|---|---|---|
202111275477.7 | Oct 2021 | CN | national |
This is a continuation of International Patent Application No. PCT/CN2022/092584 filed on May 13, 2022, which claims priority to Chinese Patent Application No. 202111275477.7 filed on Oct. 29, 2021. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2022/092584 | May 2022 | WO |
Child | 18649140 | US |