CN116418713A - Traffic protection method and routing equipment - Google Patents

Traffic protection method and routing equipment Download PDF

Info

Publication number
CN116418713A
CN116418713A CN202310312005.7A CN202310312005A CN116418713A CN 116418713 A CN116418713 A CN 116418713A CN 202310312005 A CN202310312005 A CN 202310312005A CN 116418713 A CN116418713 A CN 116418713A
Authority
CN
China
Prior art keywords
port
monitoring
interface
target routing
monitored
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.)
Pending
Application number
CN202310312005.7A
Other languages
Chinese (zh)
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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN202310312005.7A priority Critical patent/CN116418713A/en
Publication of CN116418713A publication Critical patent/CN116418713A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results

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 specification provides a traffic protection method and routing equipment, wherein the method comprises the following steps: and determining a monitoring port and a monitored port of the target routing equipment, enabling the monitoring function of the monitoring port and the monitored port to obtain a monitoring result, and disconnecting a downlink interface and/or an uplink interface of the target routing equipment if the transmission quality problem is determined to exist according to the monitoring result. By this method, a forwarding chip failure can be identified.

Description

Traffic protection method and routing equipment
Technical Field
The disclosure relates to the field of communication technologies, and in particular, to a traffic protection method and routing equipment.
Background
Monitor Link: the interface linkage scheme is that the up/down state change of the down interface is triggered according to the up/down state change of the up interface of the monitoring equipment, so that the topology protocol on the downstream equipment is triggered to switch links.
Redundancy, dual homing, and backup networking are commonplace in current network environments. In the running process of the existing network, if the current equipment fails, the existing networking scheme can quickly switch the flow to the standby equipment. However, if the device forwarding chip fails, that is, the corresponding link switching mechanism cannot sense that the device cannot forward the traffic actually, the corresponding traffic is always forwarded to the failed device, so that the current network fails.
Disclosure of Invention
The present disclosure provides a traffic protection method and a routing device, by which a forwarding chip failure of the routing device can be effectively identified, so as to implement link switching.
The embodiment of the disclosure provides a traffic protection method, which is applied to any target routing device in an aggregated link, and comprises the following steps:
determining a monitoring port and a monitored port of the target routing equipment;
enabling a monitoring function for the monitoring port and the monitored port;
and acquiring a monitoring result, and if the transmission quality problem exists according to the monitoring result, disconnecting the downlink interface and/or the uplink interface of the target routing equipment.
The determining the monitoring port and the monitored port of the target routing device comprises the following steps:
configuring an uplink interface of the target routing equipment as a monitoring port;
configuring a downlink interface of the target routing equipment as a monitored port; or alternatively, the process may be performed,
configuring a downlink interface of the target routing equipment as a monitoring port;
and configuring an uplink interface of the target routing equipment as a monitored port.
The method further comprises the steps of: the target routing device is configured with an association protocol for enabling a monitoring function.
And if the transmission quality problem exists according to the monitoring result, disconnecting the downlink interface and/or the uplink interface of the target routing equipment, wherein the acquiring the monitoring result comprises the following steps:
and setting a threshold value, and when the ratio of the flow rate of the uplink interface to the flow rate of the downlink interface is smaller than the threshold value, determining that the transmission quality problem exists, and disconnecting the downlink interface and/or the uplink interface of the target routing equipment.
Optionally, a timer is set,
and enabling the monitoring function of the monitored port and the monitored port after the timer is started, and acquiring a monitoring result after the timer is overtime.
According to the embodiments, the monitoring port and the monitored port are arranged on the interface of the routing equipment, the monitoring result is obtained through monitoring the interface, whether the forwarding chip of the routing equipment is normal or not can be identified according to the monitoring result, and the link switching is timely carried out when the forwarding chip fails.
The embodiment of the disclosure also provides a routing device, which comprises:
the determining module is used for determining a self monitoring port and a monitored port;
the monitoring module is used for enabling the monitoring function of the monitored port and the monitored port;
and the processing module is used for acquiring a monitoring result, and disconnecting the downlink interface and/or the uplink interface of the target routing equipment if the transmission quality problem exists according to the monitoring result.
The determining module is specifically configured to configure an uplink interface of the target routing device as a monitoring port;
configuring a downlink interface of the target routing equipment as a monitored port; or alternatively, the process may be performed,
configuring a downlink interface of the target routing equipment as a monitoring port;
and configuring an uplink interface of the target routing equipment as a monitored port.
The determining module is further configured to configure an association protocol for enabling the monitoring function.
The processing module is specifically configured to set a threshold, and determine that a transmission quality problem exists when a ratio of a flow rate of an uplink interface to a flow rate of a downlink interface is smaller than the threshold, and disconnect a downlink interface and/or an uplink interface of the target routing device.
The determining module is also used for setting a timer,
and enabling the monitoring function of the monitored port and the monitored port after the timer is started, and acquiring a monitoring result after the timer is overtime.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and together with the description, serve to explain the principles of the specification.
Fig. 1 is a schematic diagram of a VRRP networking architecture according to an embodiment of the present disclosure.
Fig. 2 is a schematic architecture diagram of a Monitor Link networking provided in an embodiment of the disclosure.
Fig. 3 is a flow chart of a flow protection method according to an embodiment of the present disclosure.
Fig. 4 is a schematic diagram of an architecture in a network according to an embodiment of the disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present description as detailed in the accompanying claims.
The terminology used in the description presented herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification 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 or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
In the running process of the existing network, if the current equipment fails, the existing networking scheme can quickly switch the flow to the standby equipment. However, if the device forwarding chip fails, that is, the corresponding link switching mechanism cannot sense that the device cannot forward the traffic actually, the corresponding traffic is always forwarded to the failed device, so that the current network fails.
In a VRRP networking as shown in fig. 1, if a link of a Network connected with a Master device fails, the VRRP protocol will elect another Backup device as the Master to forward the corresponding traffic. However, if the device as the Master has a chip problem, traffic is forwarded from the device as the Master on the VRRP, but in reality, the traffic is already discarded or blocked on the device, and the switching mechanism of the VRRP is not triggered, so that the entire networking environment fails.
As shown in fig. 2, each Monitor Link group is composed of two member interfaces, namely an uplink interface and a downlink interface, and one Monitor Link group can have a plurality of uplink interfaces or downlink interfaces, but one interface can only belong to one Monitor Link group.
The interfaces Port B1 and Port B2 of the Device B form a Monitor Link group, wherein Port B1 is an uplink interface, and the Link where the interface is located is an uplink Link; port B2 is a downlink interface, and the link where the interface is located is a downlink. The situation on Device D is also similar to Device B.
In the prior art, only the monitoring of the interface can be realized, namely, the downlink interface down is triggered when the uplink interface down, and whether the forwarding chip fails or not cannot be detected.
In order to solve the above technical problem, an embodiment of the present disclosure provides a method for protecting traffic, where the method is applied to any target routing device in an aggregated link, as shown in fig. 3, and the method includes:
s301, determining a monitoring port and a monitored port of the target routing equipment;
s302, enabling a monitoring function of the monitored port and the monitored port;
s303, acquiring a monitoring result, and if the transmission quality problem exists according to the monitoring result, disconnecting the downlink interface and/or the uplink interface of the target routing equipment.
In step S301, the administrator may configure an uplink interface of the target routing device as a monitored port, and configure a downlink interface of the target routing device as a monitored port. Or, the downlink interface of the target routing device is configured as a monitored port, and the uplink interface of the target routing device is configured as a monitored port. For example, an administrator may add a monitoring list, set a monitoring port and a monitored port in the monitoring list, and at the same time, configure an associated protocol for enabling a monitoring function, e.g., VRRP, S-trunk, static aggregation, etc., and set a threshold.
In this embodiment, before executing step S302, it may also be determined whether the target routing device is in the active state, if it is determined that the state of the target routing device is in the standby (Backup) state, step S302 is not executed, otherwise, the step is executed.
In this embodiment, the monitored traffic may be selected by setting up the modes such as uRPF, QOS, packet filtering, and MAC address selection, and if the uRPF fails to check, QOS limits, packet filtering, or the MAC of the traffic is not matched, and the table entry record of the destination IP has no route packet loss appears, the table is a configuration problem, the log is sent to the log server, the operation and maintenance is checked, and the flow is ended.
In this embodiment, a timer may be further set to implement periodic detection, and when the timer is started, the monitoring function of the monitoring port and the monitored port is enabled, and after the timer times out, a monitoring result is obtained.
In step S303, a ratio of a traffic rate of the uplink interface to a traffic rate of the downlink interface may be obtained, and when the ratio is smaller than a threshold value, it is determined that there is a transmission quality problem, and the downlink interface and/or the uplink interface of the target routing device are disconnected.
Meanwhile, if a plurality of downlink ports exist, a shorter timer (10 s) can be created, the plurality of downlink ports are polled (only one downlink port link is guaranteed to be normal at a time), the ratio of the flow rate of the uplink interface to the flow rate of the downlink port is queried for a plurality of times, if the ratio is smaller than a threshold value, an interface event is triggered, the downlink port link is disconnected, and a log is sent to a log server.
In one network shown in fig. 4, router a and Router B are dual-active access, and for a Switch, router a and Router B are a Router, and traffic load is shared between two devices. The upstream port (interface to left Internet), downstream port (port connected to Switch), protocol (static aggregation), timer (1 minute) and threshold (0.5) are simultaneously configured on Router a and Router B. At this time, if the Router a detects that the ratio of the flow rate of the uplink interface to the flow rate of the downlink interface is less than 0.5 (at this time, the chip is abnormal or fails), and no related error packet loss information is configured, the downlink is disconnected, so that the flow from the switch can only be sent from the Router B, and the recovery of the existing network failure is ensured.
According to the embodiments, the monitoring port and the monitored port are arranged, the flow ratio of the monitoring port and the monitored port is compared with the threshold value, so that whether the forwarding chip of the equipment has faults or not is judged, and if the faults exist, the link switching is performed.
Based on the above method embodiments, the present disclosure further provides a routing device, where the routing device includes:
the determining module is used for determining a self monitoring port and a monitored port;
the monitoring module is used for enabling the monitoring function of the monitored port and the monitored port;
and the processing module is used for acquiring a monitoring result, and disconnecting the downlink interface and/or the uplink interface of the target routing equipment if the transmission quality problem exists according to the monitoring result.
The determining module is specifically configured to configure an uplink interface of the target routing device as a monitoring port;
configuring a downlink interface of the target routing equipment as a monitored port; or alternatively, the process may be performed,
configuring a downlink interface of the target routing equipment as a monitoring port;
and configuring an uplink interface of the target routing equipment as a monitored port.
The determining module is further configured to configure an association protocol for enabling the monitoring function.
The processing module is specifically configured to set a threshold, and determine that a transmission quality problem exists when a ratio of a flow rate of an uplink interface to a flow rate of a downlink interface is smaller than the threshold, and disconnect the downlink interface and/or the uplink interface of the target routing device.
The determining module is also used for setting a timer,
and enabling the monitoring function of the monitored port and the monitored port after the timer is started, and acquiring a monitoring result after the timer is overtime.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It is to be understood that the present description is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.

Claims (10)

1. A method for protecting traffic, wherein the method is applied to any target routing device in an aggregated link, and the method comprises:
determining a monitoring port and a monitored port of the target routing equipment;
enabling a monitoring function for the monitoring port and the monitored port;
and acquiring a monitoring result, and if the transmission quality problem exists according to the monitoring result, disconnecting the downlink interface and/or the uplink interface of the target routing equipment.
2. The method of claim 1, wherein the determining the monitored and monitored ports of the target routing device comprises:
configuring an uplink interface of the target routing equipment as a monitoring port;
configuring a downlink interface of the target routing equipment as a monitored port; or alternatively, the process may be performed,
configuring a downlink interface of the target routing equipment as a monitoring port;
and configuring an uplink interface of the target routing equipment as a monitored port.
3. The method according to claim 1, wherein the method further comprises:
the target routing device is configured with an association protocol for enabling a monitoring function.
4. The method according to claim 1, wherein the obtaining the monitoring result, if it is determined that there is a transmission quality problem according to the monitoring result, disconnects the downlink interface and/or the uplink interface of the target routing device, includes:
and setting a threshold value, and when the ratio of the flow rate of the uplink interface to the flow rate of the downlink interface is smaller than the threshold value, determining that the transmission quality problem exists, and disconnecting the downlink interface and/or the uplink interface of the target routing equipment.
5. The method according to claim 1, wherein the method further comprises: a timer is set up and a timer is set up,
and enabling the monitoring function of the monitored port and the monitored port after the timer is started, and acquiring a monitoring result after the timer is overtime.
6. A routing device, the routing device comprising:
the determining module is used for determining a self monitoring port and a monitored port;
the monitoring module is used for enabling the monitoring function of the monitored port and the monitored port;
and the processing module is used for acquiring a monitoring result, and disconnecting the downlink interface and/or the uplink interface of the target routing equipment if the transmission quality problem exists according to the monitoring result.
7. The routing device of claim 6, wherein the routing device is configured to,
the determining module is specifically configured to configure an uplink interface of the target routing device as a monitoring port;
configuring a downlink interface of the target routing equipment as a monitored port; or alternatively, the process may be performed,
configuring a downlink interface of the target routing equipment as a monitoring port;
and configuring an uplink interface of the target routing equipment as a monitored port.
8. The routing device of claim 6, wherein the routing device is configured to,
the determining module is further configured to configure an association protocol for enabling the monitoring function.
9. The routing device of claim 6, wherein the routing device is configured to,
the processing module is specifically configured to set a threshold, and determine that a transmission quality problem exists when a ratio of a flow rate of an uplink interface to a flow rate of a downlink interface is smaller than the threshold, and disconnect the downlink interface and/or the uplink interface of the target routing device.
10. The routing device of claim 6, wherein the routing device is configured to,
the determining module is also used for setting a timer,
and enabling the monitoring function of the monitored port and the monitored port after the timer is started, and acquiring a monitoring result after the timer is overtime.
CN202310312005.7A 2023-03-22 2023-03-22 Traffic protection method and routing equipment Pending CN116418713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310312005.7A CN116418713A (en) 2023-03-22 2023-03-22 Traffic protection method and routing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310312005.7A CN116418713A (en) 2023-03-22 2023-03-22 Traffic protection method and routing equipment

Publications (1)

Publication Number Publication Date
CN116418713A true CN116418713A (en) 2023-07-11

Family

ID=87059010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310312005.7A Pending CN116418713A (en) 2023-03-22 2023-03-22 Traffic protection method and routing equipment

Country Status (1)

Country Link
CN (1) CN116418713A (en)

Similar Documents

Publication Publication Date Title
US9722917B2 (en) Traffic recovery in openflow networks
US8489913B2 (en) Network system and network relay apparatus
US7940645B2 (en) Protection switching method based on change in link status in ethernet link aggregation sublayer
JP5546461B2 (en) Method and system for transparent auto recovery in chains and ring networks
EP2922248B1 (en) Communication system, control device, method for controlling same, and program
JP5743809B2 (en) Network management system and network management method
EP0955786B1 (en) Asynchronous transfer mode layer automatic protection switching mechanism for ATM permanent virtual connections
US8976681B2 (en) Network system, network management server, and OAM test method
EP2243255A1 (en) Method and system for dynamic link failover management
US8724450B2 (en) Network relay system and method of controlling a network relay system
US10389615B2 (en) Enhanced packet flow monitoring in a network
US9407535B2 (en) Packet network linear protection systems and methods in a dual home or multi-home configuration
EP2479926B1 (en) Method and device for backing up user information
JP2010239279A (en) Communication apparatus and method thereof, and communication system and method thereof
CN111447095A (en) Bidirectional forwarding detection switching method, bidirectional forwarding detection module and edge device
JP5012485B2 (en) Redundancy method and switch device
CN112231153B (en) Equipment switching method and network equipment
US20090316572A1 (en) Method and system for managing port statuses of a network device and relay device
JP2010141845A (en) Communication apparatus including multiple servers and communication method
KR20170000787A (en) Method for link configuration between SFF and SF for ensuring stability of service function chaining
CN116418713A (en) Traffic protection method and routing equipment
US8885462B2 (en) Fast repair of a bundled link interface using packet replication
JP2007027954A (en) Packet network and layer 2 switch
US10181997B2 (en) Methods, systems and computer readable media for providing receive port resiliency in a network equipment test device
US10237122B2 (en) Methods, systems, and computer readable media for providing high availability support at a bypass switch

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