Unlock instant, AI-driven research and patent intelligence for your innovation.

A detection method and device for a three-layer interface state

A technology of interface status and detection method, which is applied in the network field, can solve the problems of poor timeliness of the three-layer interface, and achieve good timeliness effect

Active Publication Date: 2016-03-30
KYLAND TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Embodiments of the present invention provide a method and device for detecting the state of a layer-3 interface to solve the problem of poor timeliness in detecting the state of a layer-3 interface in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A detection method and device for a three-layer interface state
  • A detection method and device for a three-layer interface state
  • A detection method and device for a three-layer interface state

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] Such as figure 1 As shown, it is a main flow chart of a method for detecting the state of a three-layer interface provided by Embodiment 1 of the present invention. The method includes the following steps:

[0038] Step 11, receiving the first interrupt message generated by the port hardware interrupt;

[0039] Wherein, the port hardware interrupt is a hardware interrupt triggered by the operation of plugging and unplugging a certain port, and the generated first interrupt message carries the port identifier and the port status identifier of the port whose status has changed.

[0040] Step 12, according to the preset port state oscillation flag, judge whether to shield the received first interrupt message; if the judgment result is yes, execute step 13; if the judgment result is no, execute step 15.

[0041] Step 13, judging whether a second interrupt message carrying the same port identifier as the first interrupt message has been received within the prescribed length...

Embodiment 2

[0057] The embodiment of the present invention is implemented on the premise that the port connection number information is: the number of ports in the Up state among the ports respectively indicated by the identifiers of the ports corresponding to the port connection number information.

[0058] Such as figure 2 As shown in FIG. 2 , it is a flow chart of pre-storing corresponding relationships in practical applications provided by Embodiment 2 of the present invention. Among them, it can be set in advance: vlan_id is the port ID of the ports contained in different Layer 3 interfaces; link_counter is the information on the number of port connections; state indicates the state of the Layer 3 interface; The received first interrupt message needs to be shielded; when off_flag is 0, it means that the received first interrupt message does not need to be shielded. The pre-stored correspondence may specifically include:

[0059] After the Vlan is configured with an IP address, the...

Embodiment 3

[0076] Based on the above detection method for the state of the three-layer interface, Embodiment 3 of the present invention provides a detection device for the state of the three-layer interface, such as Figure 5 As shown, it specifically includes the following functional modules:

[0077] a receiving unit 51, configured to receive a first interrupt message generated by a port hardware interrupt;

[0078] The judging unit 52 is configured to judge whether to shield the first interrupt message received by the receiving unit 51 according to the preset port state oscillation flag;

[0079] The port connection quantity information determining unit 53 is used to determine whether the judgment result of the judging unit 52 is yes and the second interrupt message carrying the same port identifier as the first interrupt message is not received within the specified time length, or the judging unit When the judgment result of 52 is no, according to the port identification contained i...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for detecting the state of a three-layer port, which are used for solving the problem of poor timeliness of detecting the state of the three-layer port in the prior art. The method comprises the following steps of receiving a first interrupt message generated by hardware interruption of the port; according to a preset port state oscillation identification, judging whether the received first interrupt message is shielded or not; when a judgment result is yes and a second interrupt message with the same port identification with the first interrupt message is not received in a regulated time span, or when the judgment result is no, determining port connection number information corresponding to the port identification according to the port identification contained in the first interrupt message; according to the port state identification contained in the first interrupt message, updating the determined port connection number information; and according to a corresponding relation between a pre-regulated port connection number information and the state of the three-layer port as well as the updated port connection number information, determining the state of the three-layer port.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a method and device for detecting the state of a three-layer interface. Background technique [0002] A layer-3 interface refers to a virtual local area network (Virtual Local Area Network, VLAN) interface configured with an IP address, wherein the state of the layer-3 interface refers to a logical Up (connected) or Down (non-connected) state. Only when the status is Up, the Layer 3 interface can send and receive packets; otherwise, the Layer 3 interface will not send and receive packets. [0003] A Layer 3 interface contains one or more Layer 2 physical ports. The connection status of these Layer 2 physical ports ultimately determines the state of the Layer 3 interface. That is, as long as one Layer 2 physical port is in the Up state, the state of the Layer 3 interface is Up state; when all the layer 2 physical ports under the layer 3 interface are in the down state, the state...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/26
Inventor 何英军
Owner KYLAND TECH CO LTD