CN108134689B - Method and device for checking faults of cascade interface inside frame type equipment - Google Patents

Method and device for checking faults of cascade interface inside frame type equipment Download PDF

Info

Publication number
CN108134689B
CN108134689B CN201711308161.7A CN201711308161A CN108134689B CN 108134689 B CN108134689 B CN 108134689B CN 201711308161 A CN201711308161 A CN 201711308161A CN 108134689 B CN108134689 B CN 108134689B
Authority
CN
China
Prior art keywords
cascade
ports
packet
increased
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711308161.7A
Other languages
Chinese (zh)
Other versions
CN108134689A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201711308161.7A priority Critical patent/CN108134689B/en
Publication of CN108134689A publication Critical patent/CN108134689A/en
Application granted granted Critical
Publication of CN108134689B publication Critical patent/CN108134689B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning

Landscapes

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

Abstract

The application provides a method for checking faults of an internal cascade interface of frame type equipment, which is characterized by comprising the following steps: for 2 cascade ports in any group of connection, judging whether the link states of the 2 cascade ports are in an open state; for any cascade interface in 2 cascade interfaces, if the link state is the unopened state, determining that the cascade interface has a fault; if the link states of the 2 cascade ports are all open states, monitoring the packet sending number and the packet receiving number of the 2 cascade ports; if the packet sending number of any one cascade interface in the 2 cascade interfaces is increased and the packet receiving number of the other cascade interface is not increased, determining that the 2 cascade interfaces have faults; if the number of packets sent by any one of the 2 cascade ports is increased and the number of packets received by the other cascade port is also increased, monitoring the number of error packets of the cyclic redundancy check of the 2 cascade ports; for any cascade interface in 2 cascade interfaces, if the increase rate of the cyclic redundancy check error packet number is not less than the preset threshold value, determining that the cascade interface has a fault.

Description

Method and device for checking faults of cascade interface inside frame type equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for checking a failure of an internal cascade interface of a frame device.
Background
With the rapid development of communication technology, a frame device, as a typical network device, plays an increasingly important role in the communication process. A plurality of slot positions exist in the frame type equipment, a plurality of single boards can be inserted into the slot positions, the single boards are connected through the cascade ports of the slot positions, and data are transmitted through the cascade ports. When the frame device has the problems of packet loss or forwarding failure and the like, whether a cascade port inside the device fails or not needs to be checked.
In the prior art, the cascade ports inside the device are mainly checked manually, and whether the cascade ports have faults or not is analyzed by checking the state of each cascade port, the number of the receiving and sending packets and the like. Because the number of cascading ports connected among the single boards is large and the connection relationship is complex, the workload for searching and determining the cascading ports with faults is large, the time is long, more manpower and time are consumed, and the checking efficiency is low.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for checking a fault of an internal cascade interface of a frame device, and the technical scheme is as follows:
a method for checking fault of cascade port in frame type equipment is characterized in that at least 1 group of connections is arranged in the frame type equipment, each group of connections corresponds to 2 cascade ports, and 2 cascade ports are used for connecting different single boards, the method comprises:
for 2 cascade ports in any group of connection, judging whether the link states of the 2 cascade ports are in an open state;
for any cascade interface in 2 cascade interfaces, determining that the cascade interface has a fault under the condition that the link state of the cascade interface is in an unopened state;
monitoring the packet sending number and the packet receiving number of 2 cascade ports under the condition that the link states of the 2 cascade ports are all open states;
determining that 2 cascade ports have faults under the condition that the packet sending number of any one cascade port in the 2 cascade ports is increased and the packet receiving number of the other cascade port is not increased;
under the condition that the packet sending number of any one cascade port in the 2 cascade ports is increased and the packet receiving number of the other cascade port is also increased, monitoring the cyclic redundancy check error packet number of the 2 cascade ports;
and for any cascade interface in the 2 cascade interfaces, determining that the cascade interface has a fault under the condition that the increase rate of the cyclic redundancy check error packet number is not less than a preset threshold value.
The utility model provides an inside cascade connection mouth fault detection device of frame equipment, its characterized in that, frame equipment is inside to have at least 1 group and connects, and every group connects and corresponds 2 cascade connection mouths, and 2 cascade connection mouths and be used for connecting different veneers, and the device includes:
the link state checking module is used for judging whether the link states of the 2 cascade ports are in an open state or not for the 2 cascade ports in any group of connection;
a failure determining module, configured to determine, for any cascade interface in the 2 cascade interfaces, that the cascade interface fails when a link state of the cascade interface is an unopened state;
the packet receiving and transmitting checking module is used for monitoring the packet receiving number and the packet transmitting number of the 2 cascade ports under the condition that the link states of the 2 cascade ports are all in an open state;
the failure determining module is further configured to determine that 2 of the cascade ports have a failure when the number of packets sent by any one of the 2 cascade ports is increased and the number of packets received by the other cascade port is not increased;
the error packet checking module is used for monitoring the number of the cyclic redundancy check error packets of 2 cascade ports under the condition that the number of the packets transmitted by any one of the 2 cascade ports is increased and the number of the packets received by the other cascade port is also increased;
the failure determining module is further configured to determine that, for any one of the 2 cascade ports, the cascade port has a failure when an increase rate of the cyclic redundancy check error packet number is not less than a preset threshold.
The technical scheme that this application provided can be through two cascade ports of examining interconnect automatically, whether open simultaneously, receive and dispatch the packet number whether corresponding and cyclic redundancy check number whether too much the circumstances such as, realizes the automatic check of the inside cascade port trouble of frame equipment, confirms the fault situation promptly more soon after the trouble appears, uses manpower sparingly and time, improves the efficiency of fault checking.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application. Moreover, not all of the above-described effects need to be achieved by any of the embodiments in this application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the following description are only some embodiments described in the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic diagram of a connection relationship between internal cascade ports of a frame device according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for checking a fault of an internal cascade interface of a frame device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a cascade port fault checking device inside a frame device in an embodiment of the present application;
FIG. 4 is a block diagram illustrating a link status checking module according to an embodiment of the present disclosure;
FIG. 5 is a block diagram of a transmit/receive inspection module according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a wrong packet checking module according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
The frame type equipment is a network equipment which can flexibly replace a single board and has better expansibility, a plurality of slot positions are arranged in the frame type equipment, each slot position is provided with one or a plurality of cascade ports, each cascade port in the same slot position has a certain connection relation in the slot position, and correspondingly, each cascade port is connected with only one cascade port of other slot positions outside the slot position. Different types of single boards can be inserted into the slot positions, and after different single boards are inserted into different slot positions, the single boards can be connected with each other and transmit data through the cascade ports in the slot positions. Fig. 1 shows SLOT positions SLOT1, SLOT2, and SLOT 33, in which 3 boards are respectively inserted, and the connection relationship of the boards through the cascade ports of the SLOT positions is shown in the figure. Suppose interface boards are inserted in the SLOT1, SLOT3, a switch board is inserted in the SLOT2, if data is required to flow in from tengige1_0 and out of tengige3_0, the data will pass through the Ieth1_0/1/2/3 port of the SLOT1, the Ieth2_0/1/2/3 and Ieth2_4/5/6/7 ports of the SLOT2, and the Ieth3_0/1/2/3 port of the SLOT3 in sequence, in this process, if a cascade port in the 3 slots fails, packet loss or forwarding failure of data will result, and therefore it is necessary to check whether the cascade port in the frame device fails, as the manual inspection needs to consume more manpower and time, the inspection efficiency is low, and in order to implement the automatic inspection, the embodiment of the present application provides a method for inspecting a fault of an internal cascade interface of a frame-type device, as shown in fig. 2, the method may include the following steps:
s101, judging whether the link states of 2 cascade ports in any group of connection are in an open state or not; for any cascade interface in 2 cascade interfaces, determining that the cascade interface has a fault under the condition that the link state of the cascade interface is in an unopened state;
after the start of the frame device is completed, the automatic check of the failure of the internal cascade interface of the device may be started, and it is first necessary to determine which slots have boards inserted therein and the connection relationship of the cascade interfaces between the slots, so as to determine which cascade interfaces will receive and/or transmit data and need to perform the failure check, so as to prevent packet loss or forwarding failure. As described above, each cascade port outside each slot is connected to only one cascade port of another slot in a group, and whether a single board is inserted into each slot in the frame device or not and the connection relationship between the cascade ports in each slot can be predetermined, recorded and updated in time by a maintainer, so that the connection relationship between each cascade port can be obtained by calling the record during automatic inspection; or when the single board insertion condition and the cascade port connection relationship of each slot position need to be determined, the maintenance personnel can be prompted to input the current condition; the single board insertion condition and the cascade port connection relationship in each slot position can be obtained through automatic detection after the device is started and before fault detection, and the like.
After each slot position into which a single board is inserted is determined, that is, it is determined that the cascade ports on the slot positions need to be subjected to fault check, and the connection relationship between the cascade ports is determined, for 2 cascade ports in any group of connection, it is first necessary to judge whether the link states of the 2 cascade ports are in an open state, if the link state of a certain one of the 2 cascade ports is in an unopened state, even if the link states of the 2 cascade ports are in an unopened state, it can be determined that the cascade port with the link state in the unopened state has a fault. Since some boxed devices may have a link state management function, the link state can be checked and determined only by turning on the management function, and therefore, the management function needs to be turned on in advance for these devices.
After determining that the cascade port has a fault, the fault may be recorded in a log, or a maintenance person may be prompted directly in a manner of popping up a warning message, or the like. Specifically, the rate and the duplex mode of the failed cascade interface may be reconfigured first, and whether the link state of the cascade interface after reconfiguration is an open state is determined, at this time, if the link state of the cascade interface is an open state, the fault repair of the cascade interface is completed; if the link state of the cascade interface is in the open state, completing fault repair of the cascade interface; if the cascade port is still in the unopened state, the fault of the cascade port is determined to be difficult to repair, the fault condition can be recorded, or a fault warning can be given out, and the condition is likely to be that hardware of the cascade port is in fault, so that maintenance personnel can be prompted to check or replace the hardware.
S102, monitoring the packet sending number and the packet receiving number of 2 cascade ports under the condition that the link states of the 2 cascade ports are all in an open state; determining that 2 cascade ports have faults under the condition that the packet sending number of any one cascade port in the 2 cascade ports is increased and the packet receiving number of the other cascade port is not increased;
if the link states of the 2 cascade ports are all in the open state after being checked, or the link states are in the open state after being repaired, the link states of the 2 cascade ports are normal, and no fault occurs, and the packet sending and receiving conditions need to be further checked. For example, if there are other programs in the device, and the device counts the packet sending and receiving numbers of the 2 cascade ports, the statistical result may be directly read, or the packet receiving and sending numbers of the 2 cascade ports may be automatically counted during the inspection, and the reading or the counting may be periodically performed, for example, the reading or the counting is performed every 1 second or 1 time, the counting mode may be re-counting or accumulated counting, and other various modes may be available. Monitoring shows that 1 or 2 of the 2 cascade ports have faults if 1 of the cascade ports transmits packets and the other cascade port does not receive packets.
As described above, after determining that the cascade interface has a fault, processing manners such as recording, warning, or repairing may be adopted, and in a specific embodiment of the present application, an attempt may be made to repair the fault of the cascade interface. Specifically, the rate and the duplex mode of the failed cascade interface may be reconfigured first, and whether the failure is repaired or not may be determined according to the packet receiving and sending numbers of the 2 cascade interfaces after reconfiguration. If 1 of the cascade ports transmits packets and the cascade port at the opposite end receives packets, the fault is repaired; if the situation that 1 cascade port transmits packets and the other cascade port does not receive packets still exists, the fault is not repaired, the 2 cascade ports can be reinitialized, the rate and the duplex mode are configured, and after the configuration is completed, whether the fault is repaired or not is judged according to the packet transmitting and receiving numbers and based on the standard. If the fault is not repaired yet, then it may be determined that the fault at the cascade interface is more difficult to repair, the fault condition may be recorded, or a fault warning may be issued, etc., and maintenance personnel may be prompted to inspect or replace the hardware, as described above. In addition, because the probability of the 2 cascade ports all having faults is low, when the 2 cascade ports are tried to be subjected to fault restoration, 1 of the 2 cascade ports can be subjected to fault restoration, and if the situation that the packet is sent by 1 of the 2 cascade ports and the packet is not received by the other cascade port still exists, the fault restoration is performed on the other cascade port.
S103, monitoring the number of the error packets of the cyclic redundancy check of the 2 cascade ports under the condition that the number of the packets transmitted by any one of the 2 cascade ports is increased and the number of the packets received by the other cascade port is also increased; and for any cascade port in the 2 cascade ports, determining that the cascade port has a fault under the condition that the increase rate of the cyclic redundancy check error packet number is greater than a preset threshold value.
When the conditions of packet sending and receiving of 2 cascade ports are normal or the generated fault is repaired, the cyclic redundancy check condition of the cascade ports can be further checked. Firstly, the number of crc error packets of each of 2 cascade ports needs to be monitored, as described above, there may be various implementation manners for the monitoring, which is not described herein again, in a specific embodiment of the present application, a statistical value of the number of crc error packets may be periodically read, for example, 1 time every 1 second, and the number of error packets increased in this period is calculated, so as to obtain an increase rate of the number of error packets, and the increase rate of the number of error packets is compared with a preset threshold, and if there is an increase rate of an error report of a cascade port exceeding the preset threshold, it is determined that the cascade port has a fault. As described above, after determining that the cascade port has a fault, a processing manner such as recording, warning or repairing may be adopted, and due to the occurrence of the cyclic redundancy check packet, when the device is just started, the sending and receiving of the packet of the cascade port is unstable, and the possibility of the hardware of the cascade port having a fault is high, therefore, in a specific embodiment of the present application, timing may be started when it is first monitored that the increase rate of the number of cyclic redundancy check packets is not less than the preset threshold, and the timing is compared with the preset time duration while monitoring the number of error packets is performed later, for example, the monitoring process reads the statistical value of the number of error packets 1 time per 1 second, the preset time duration is 5 minutes, and within 5 minutes of starting timing, if the increase rate of the number of error packets is monitored to be less than the preset threshold, it indicates that the hardware of the cascade port has no fault, it may be that there are more crc packets due to unstable packet sending and receiving of the cascade port when the device is just started, and it is determined that the cascade port has not failed. If the increase rate of the number of the error packets is not monitored to be smaller than the preset threshold value after the time exceeds 5 minutes, it indicates that the interface may be a hardware fault, and as described above, the fault condition may be recorded, or a maintenance person may be prompted to check or replace the hardware, and so on.
Therefore, whether the cascade port in the frame type equipment fails or not can be automatically checked by applying the scheme, the failed cascade port can be automatically tried to be repaired, the check can be completed within a short time after the cascade port fails, the labor and the time are saved, and the check efficiency is improved.
Corresponding to the foregoing method embodiment, the present application further provides a device for checking a failure of a cascade port inside a frame-type device, where at least 1 group of connections is provided inside the frame-type device, each group of connections corresponds to 2 cascade ports, and 2 cascade ports are used to connect different boards, as shown in fig. 3, the device may include:
a link status checking module 110, configured to determine, for 2 cascading ports in any group of connections, whether link statuses of the 2 cascading ports are in an open state;
a failure determining module 120, configured to determine, for any cascade interface in the 2 cascade interfaces, that the cascade interface fails when a link state of the cascade interface is an unopened state;
a packet receiving and transmitting checking module 130, configured to monitor the packet receiving number and the packet transmitting number of 2 cascade ports when the link states of the 2 cascade ports are all open states;
the failure determining module 120 is further configured to determine that 2 of the cascade ports have a failure when the number of packets sent by any one of the 2 cascade ports is increased and the number of packets received by the other cascade port is not increased;
the error packet checking module 140 is configured to monitor the number of error packets of cyclic redundancy check of 2 cascade ports when the number of packets sent by any one of the 2 cascade ports increases and the number of packets received by another cascade port also increases;
the failure determining module 120 is further configured to determine, for any cascade interface of the 2 cascade interfaces, that the cascade interface fails when an increase rate of the cyclic redundancy check error packet number of the cascade interface is not less than a preset threshold.
In one embodiment of the present application, referring to fig. 4, the link status checking module 110 may include:
a first configuration unit 111, configured to reconfigure, for any of the 2 cascaded ports, the cascaded port according to a preset configuration rule when a link state of the cascaded port is an unopened state;
a link status checking unit 112, configured to determine whether a link status of the cascade interface is an open status;
the failure determination module 120 may be further configured to:
and determining that the cascade interface fails under the condition that the link state of the cascade interface is in an unopened state.
In an embodiment of the present application, referring to fig. 5, the transceiving packet checking module 130 may include:
a second configuration unit 131, configured to reconfigure 2 cascaded ports according to a preset configuration rule when the number of packets sent by any one of the 2 cascaded ports is increased and the number of packets received by another one of the 2 cascaded ports is not increased;
a packet transmitting/receiving checking unit 132 for monitoring the packet transmitting number and the packet receiving number of the 2 cascade ports;
the failure determination module 120 may be further configured to:
and determining that the 2 cascade ports have faults under the condition that the packet sending number of any one of the 2 cascade ports is increased and the packet receiving number of the other cascade port is not increased.
In a specific embodiment of the present application, the second configuring unit 131 may be further configured to reconfigure a cascade port with an increased packet sending number according to a preset configuration rule;
the packet receiving and sending checking unit 132 may be further configured to monitor the packet sending number and the packet receiving number of 2 cascade ports;
the second configuration unit 131 may be further configured to reconfigure a cascade port with an unadditized number of received packets according to a preset configuration rule when the number of transmitted packets of the reconfigured cascade port is increased and the number of received packets of another cascade port is not increased.
In an embodiment of the present application, referring to fig. 6, the error packet checking module 140 may include:
a timing unit 141, configured to start timing for any one of the 2 cascade ports when an increase rate of the cyclic redundancy check error packet number is not less than a preset threshold;
a packet error checking unit 142, configured to determine whether an increase rate of the number of error packets of the cyclic redundancy check of the interface is not less than a preset threshold value when the timed duration exceeds a preset duration;
the failure determination module 120 may be further configured to:
and under the condition that the increase rate of the number of the cyclic redundancy check error packets of the interface is not less than a preset threshold value, determining that the cascade interface fails.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Embodiments of the subject matter and the functional operations described in this specification can be implemented in: digital electronic circuitry, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions, encoded on a tangible, non-transitory program carrier for execution by, or to control the operation of, data processing apparatus. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode and transmit information to suitable receiver apparatus for execution by the data processing apparatus. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features specific to particular embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. In other instances, features described in connection with one embodiment may be implemented as discrete components or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. Further, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A method for checking fault of cascade port in frame type equipment is characterized in that at least 1 group of connections is arranged in the frame type equipment, each group of connections corresponds to 2 cascade ports, and 2 cascade ports are used for connecting different single boards, the method comprises the following steps:
acquiring the single board insertion condition and the cascade port connection relation in each slot position in the frame type equipment;
for 2 cascade ports in any group of connection, judging whether the link states of the 2 cascade ports are in an open state;
for any cascade interface in 2 cascade interfaces, determining that the cascade interface has a fault under the condition that the link state of the cascade interface is in an unopened state;
monitoring the packet sending number and the packet receiving number of 2 cascade ports under the condition that the link states of the 2 cascade ports are all open states;
determining that 2 cascade ports have faults under the condition that the packet sending number of any one cascade port in the 2 cascade ports is increased and the packet receiving number of the other cascade port is not increased;
under the condition that the packet sending number of any one cascade port in the 2 cascade ports is increased and the packet receiving number of the other cascade port is also increased, monitoring the cyclic redundancy check error packet number of the 2 cascade ports;
and for any cascade interface in the 2 cascade interfaces, determining that the cascade interface has a fault under the condition that the increase rate of the cyclic redundancy check error packet number is not less than a preset threshold value.
2. The method according to claim 1, wherein determining that any of the 2 cascaded ports has a failure if its link status is in an unopened status comprises:
for any cascade interface in 2 cascade interfaces, under the condition that the link state is the unopened state, reconfiguring the cascade interface according to a preset configuration rule;
judging whether the link state of the cascade interface is an open state;
and determining that the cascade interface fails under the condition that the link state of the cascade interface is in an unopened state.
3. The method according to claim 1, wherein determining that 2 tandem ports have a failure when the number of packets sent from any one of the 2 tandem ports is increased and the number of packets received from the other tandem port is not increased comprises:
under the condition that the packet sending number of any one cascade port in the 2 cascade ports is increased and the packet receiving number of the other cascade port is not increased, reconfiguring the 2 cascade ports according to a preset configuration rule;
monitoring the packet sending number and the packet receiving number of 2 cascade ports;
and determining that the 2 cascade ports have faults under the condition that the packet sending number of any one of the 2 cascade ports is increased and the packet receiving number of the other cascade port is not increased.
4. The method according to claim 3, wherein when the number of packets sent from any of the 2 cascaded ports is increased and the number of packets received from another cascaded port is not increased, reconfiguring the 2 cascaded ports according to a preset configuration rule, comprising:
reconfiguring the cascade ports with increased packet sending number according to a preset configuration rule;
monitoring the packet sending number and the packet receiving number of 2 cascade ports;
and under the condition that the packet sending number of the reconfigured cascade port is increased and the packet receiving number of the other cascade port is not increased, reconfiguring the cascade port with the non-increased packet receiving number according to a preset configuration rule.
5. The method according to claim 1, wherein the determining that any of the 2 cascaded ports has a failure in the case that the increase rate of the cyclic redundancy check error packet number is not less than a preset threshold value comprises:
for any cascade interface in 2 cascade interfaces, under the condition that the increase rate of the cyclic redundancy check error packet number is not less than a preset threshold value, timing is started;
under the condition that the timed duration exceeds the preset duration, judging whether the increase rate of the number of the cyclic redundancy check error packets of the cascade interface is not less than a preset threshold value or not;
and under the condition that the increase rate of the number of the cyclic redundancy check error packets of the cascade port is not less than a preset threshold value, determining that the cascade port has a fault.
6. The utility model provides an inside cascade connection mouth fault detection device of frame equipment, its characterized in that, frame equipment is inside to have 1 at least group to connect, and every group connects and corresponds 2 cascade connection mouths, and 2 cascade connection mouths and be used for connecting different veneers, the device includes:
the equipment inspection module is used for acquiring the single board insertion condition and the cascade port connection relation in each slot position in the frame type equipment;
the link state checking module is used for judging whether the link states of the 2 cascade ports are in an open state or not for the 2 cascade ports in any group of connection;
a failure determining module, configured to determine, for any cascade interface in the 2 cascade interfaces, that the cascade interface fails when a link state of the cascade interface is an unopened state;
the packet receiving and transmitting checking module is used for monitoring the packet receiving number and the packet transmitting number of the 2 cascade ports under the condition that the link states of the 2 cascade ports are all in an open state;
the failure determining module is further configured to determine that 2 of the cascade ports have a failure when the number of packets sent by any one of the 2 cascade ports is increased and the number of packets received by the other cascade port is not increased;
the error packet checking module is used for monitoring the number of the cyclic redundancy check error packets of 2 cascade ports under the condition that the number of the packets transmitted by any one of the 2 cascade ports is increased and the number of the packets received by the other cascade port is also increased;
the failure determining module is further configured to determine that, for any one of the 2 cascade ports, the cascade port has a failure when an increase rate of the cyclic redundancy check error packet number is not less than a preset threshold.
7. The apparatus of claim 6,
the link state checking module includes:
a first configuration unit, configured to reconfigure, for any of the 2 cascaded ports, the cascaded port according to a preset configuration rule when a link state of the cascaded port is an unopened state;
a link state checking unit for judging whether the link state of the cascade interface is an open state;
the fault determination module is further configured to:
and determining that the cascade interface fails under the condition that the link state of the cascade interface is in an unopened state.
8. The apparatus of claim 6,
the transceiving packet checking module comprises:
a second configuration unit, configured to reconfigure 2 cascade ports according to a preset configuration rule when the number of packets sent by any one of the 2 cascade ports is increased and the number of packets received by the other cascade port is not increased;
a packet transmitting and receiving inspection unit for monitoring the packet transmitting number and the packet receiving number of the 2 cascade ports;
the fault determination module is further configured to:
and determining that the 2 cascade ports have faults under the condition that the packet sending number of any one of the 2 cascade ports is increased and the packet receiving number of the other cascade port is not increased.
9. The apparatus of claim 8,
the second configuration unit is further configured to reconfigure the cascade ports, the number of which is increased, according to a preset configuration rule;
the receiving and sending packet checking unit is also used for monitoring the number of the sending packets and the number of the receiving packets of the 2 cascade ports;
the second configuration unit is further configured to reconfigure the cascade port with the number of packets not increased according to a preset configuration rule, when the number of packets transmitted from the reconfigured cascade port is increased and the number of packets received from another cascade port is not increased.
10. The apparatus of claim 6,
the wrong packet checking module comprises:
the timing unit is used for starting timing for any cascade interface in the 2 cascade interfaces under the condition that the increase rate of the cyclic redundancy check error packet number is not less than a preset threshold value;
the error packet checking unit is used for judging whether the increase rate of the number of the cyclic redundancy check error packets of the cascade interface is not less than a preset threshold value or not under the condition that the timed duration exceeds a preset duration;
the fault determination module is further configured to:
and under the condition that the increase rate of the number of the cyclic redundancy check error packets of the cascade port is not less than a preset threshold value, determining that the cascade port has a fault.
CN201711308161.7A 2017-12-11 2017-12-11 Method and device for checking faults of cascade interface inside frame type equipment Active CN108134689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711308161.7A CN108134689B (en) 2017-12-11 2017-12-11 Method and device for checking faults of cascade interface inside frame type equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711308161.7A CN108134689B (en) 2017-12-11 2017-12-11 Method and device for checking faults of cascade interface inside frame type equipment

Publications (2)

Publication Number Publication Date
CN108134689A CN108134689A (en) 2018-06-08
CN108134689B true CN108134689B (en) 2021-07-23

Family

ID=62389122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711308161.7A Active CN108134689B (en) 2017-12-11 2017-12-11 Method and device for checking faults of cascade interface inside frame type equipment

Country Status (1)

Country Link
CN (1) CN108134689B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878098A (en) * 2006-07-05 2006-12-13 华为技术有限公司 Method for testing reliability of cascade device and system therefor
CN101136806A (en) * 2007-07-04 2008-03-05 中兴通讯股份有限公司 Label VLAN based switching chip port detecting method and apparatus
CN101217422A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 A method to test the performance of net mouth
CN102664774A (en) * 2012-05-31 2012-09-12 迈普通信技术股份有限公司 Method for testing port connectivity of switch

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2383927B (en) * 2001-12-22 2004-01-28 3Com Corp Network unit and packets for use in a cascade system
JP2011169618A (en) * 2010-02-16 2011-09-01 Hitachi Kokusai Electric Inc Fault diagnosis system
CN101977128B (en) * 2010-09-14 2015-04-01 中兴通讯股份有限公司 Interface detection method and device for communication equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878098A (en) * 2006-07-05 2006-12-13 华为技术有限公司 Method for testing reliability of cascade device and system therefor
CN101136806A (en) * 2007-07-04 2008-03-05 中兴通讯股份有限公司 Label VLAN based switching chip port detecting method and apparatus
CN101217422A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 A method to test the performance of net mouth
CN102664774A (en) * 2012-05-31 2012-09-12 迈普通信技术股份有限公司 Method for testing port connectivity of switch

Also Published As

Publication number Publication date
CN108134689A (en) 2018-06-08

Similar Documents

Publication Publication Date Title
CN110380907B (en) Network fault diagnosis method and device, network equipment and storage medium
CA1204834A (en) Protocol for determining physical order of active stations on a token ring
US9009523B2 (en) Method and apparatus for isolating a fault in a controller area network
CN101977128B (en) Interface detection method and device for communication equipment
CN103138988B (en) Positioning treatment method and positioning treatment device of network faults
US20070022331A1 (en) Single-ended ethernet management system and method
CN110740072A (en) fault detection method, device and related equipment
CN108063687B (en) Method for judging fault node in CAN bus network
CN103684818A (en) Method and device for detecting failures of network channel
RU2602977C2 (en) Method for detecting correctness of optic fibre connection based on radio remote unit (rru) looped network and base band unit (bbu)
CN104104542A (en) Real-time intelligent debugging method based on RS485
EP1733506B1 (en) Fault management in an ethernet based communication system
CN101980478B (en) Method and device for detecting and processing equipment failures and network equipment
CN102104521B (en) Ethernet ring network link failure recovery method, Ethernet ring network and node equipment
CN108134689B (en) Method and device for checking faults of cascade interface inside frame type equipment
CN110768871B (en) Test method and system for automatically counting data transmission correctness of DCS (distributed control system)
CN102217359B (en) Interface unit for base station control system and detecting method thereof
CN113315235B (en) Multi-unit fault accurate positioning method adopting annular optical fiber communication
CN101902369B (en) The Fault Locating Method of backboard cross system and device
CN109861745B (en) Fault processing method and cluster router
CN110572292B (en) High availability system and method based on unidirectional transmission link
US6484202B1 (en) Method and apparatus for determining the status of a transmission link
CN112751688A (en) Flow control processing method of OTN device, electronic device and storage medium
CN110138446B (en) Detection method for redundancy degradation fault of dual-redundancy fiber channel network
CN204631174U (en) Novel remote signal line loopback detection device

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