Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

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 client's inability to connect to the Internet, and inability to automatically detect the connection status of WAN interfaces. Achieve the effect of improving system resource utilization and good processing

Active Publication Date: 2018-05-25
湖州帷幄知识产权运营有限公司
View PDF4 Cites 0 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 LAN. In the case of the WAN interface and the WAN interface, it is impossible to automatically detect the connection status of the WAN interface and know the network failure as soon as possible, and the communication terminal equipment cannot solve the problem that the client cannot connect to the Internet when the LAN interface and the WAN interface are in the same network segment

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] 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:

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

Embodiment 2

[0056] 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 present invention provides a method for detecting interface state and processing interface failure according to the interface state, including: creating a virtual file system when starting up the communication terminal equipment; predefining signal processing function and socket function; Input and output control request to obtain the name of the network card and the first interface status return value, and obtain the network card information from the virtual file system; judge whether the obtained network card information matches the network card; if the obtained network card information matches the network card, Then judge whether the first interface is in the connection state according to the return value of the first interface state, if not, send an alarm to prompt the user; if so, then detect whether the first interface and the second interface are in the same network segment; if the two interfaces are in the same network segment, Then call the signal processing function to reconfigure the network parameters. The invention solves the problem that the client cannot connect to the Internet when the WAN port and the LAN port of the routing device are in the same network segment, and improves the utilization rate of system resources.

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