Method and system for detecting interface status and processing interface fault according to interface status

A technology for interface status and interface detection, applied in transmission systems, digital transmission systems, data exchange networks, etc., can solve problems such as early detection of network failures, inability to solve the problem that clients cannot connect to the Internet, and cannot automatically detect the connection status of WAN interfaces. Achieve the effect of improving system resource utilization and good processing

Active Publication Date: 2014-12-10
湖州帷幄知识产权运营有限公司
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a method and system for detecting the interface state and processing the interface failure according to the interface state, which is used to solve the problem of the communication terminal equipment in the prior art, especially the router when connecting to the L

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
  • Method and system for detecting interface status and processing interface fault according to interface status
  • Method and system for detecting interface status and processing interface fault according to interface status
  • Method and system for detecting interface status and processing interface fault according to interface status

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] This embodiment provides a method for detecting an interface state and processing an interface fault according to the interface state, which is applied to a communication terminal device having a first interface, a second interface and multiple network cards, and network parameters are configured on the communication terminal device. In this embodiment, the communication terminal device is a router, the first interface is a WAN (Local Area Network) interface, and the second interface is a LAN (Wide Area Network) interface. see figure 1 , which is a schematic flowchart of a method for detecting an interface state and handling an interface fault according to the interface state. Such as figure 1 As shown, the method for detecting the state of an interface and processing an interface failure according to the state of the interface includes:

[0043] S1. Create a virtual file system when starting the communication terminal device. The virtual file system is a PROC file s...

Embodiment 2

[0057] This embodiment provides a system 10 for detecting interface status and processing interface faults according to the interface status, which is applied to a communication terminal device having a first interface, a second interface, and multiple network cards, and network parameters are configured on the communication terminal device. In this embodiment, the communication terminal device is a router 2, the first interface 21 is a WAN (Local Area Network) interface, and the second interface 22 is a LAN (Wide Area Network) interface. see image 3 , which is a schematic structural diagram of a system that detects interface status and handles interface faults according to the interface status. Such as figure 2 As shown, the system 10 for detecting the interface state and processing the interface fault according to the interface state includes: an initialization module 101, a predefined module 102, an acquisition module 103, a first judgment module 104, a second judgment m...

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 provides a method for detecting interface status and processing interface fault according to the interface status. The method includes: when starting communication terminal equipment, creating a virtual file system; predefining a signal processing function and a socket function; acquiring name of a network card and a first interface status return value through an input and output control request associated to a network socket, and acquiring network card information from the virtual file system; judging whether the acquired network card information is matched with the network card or not; if yes, judging whether a first interface is under a connection status or not according to the first interface status return value, and if not, giving an alarm to prompt a user; if yes, detecting whether the first interface and a second interface are located on a same network segment or not; if the two interfaces are located on the same network segment, invoking the signal processing function, and reconfiguring network parameters. By the method, the problem that client sides cannot access to the internet under the condition that a WAN (wide area network) interface and an LAN (local area network) interface of router equipment are located on the same network segment is solved, and utilization rate of system resources is increased.

Description

technical field [0001] The invention belongs to the technical field of computer communication equipment, and in particular relates to a method and a system for detecting interface states and processing interface faults according to the interface states. Background technique [0002] A router is a computer network device that provides two important mechanisms of routing and forwarding, and is a device that connects to a local area network and a wide area network. The LAN interface (LAN interface) is mainly used to connect the router to the LAN. The interface connecting the router to the WAN is called the WAN interface (WAN interface). A router is a bridge connecting a LAN to a WAN, between WANs, and between LANs. The router is connected to the interface through a network cable, and only by configuring or obtaining the corresponding network address can it be connected to the Internet normally. The network device is connected to the uplink device through the WAN interface. I...

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
IPC IPC(8): H04L12/24H04L12/26
Inventor 蔡丽艳
Owner 湖州帷幄知识产权运营有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products