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

Method for judging connection state of network device and network device

A technology of network equipment and connected state, applied in the field of network communication, can solve the problems of poor user experience and high after-sales cost, and achieve the effect of improving work efficiency, improving user experience, and low investment cost

Inactive Publication Date: 2016-07-13
PHICOMM (SHANGHAI) CO LTD
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0015] The purpose of the present invention is to solve the technical problem that the current home network equipment cannot accurately determine whether it is connected to the broadband operator network, resulting in poor user experience and high after-sales costs

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 for judging connection state of network device and network device
  • Method for judging connection state of network device and network device
  • Method for judging connection state of network device and network device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] Such as figure 1 As shown, the embodiment of the present invention provides a method for determining the connection state of a network device, the WAN port of the network device is provided with a two-color indicator light, including the following steps:

[0043] S1: The network device detects whether to obtain the operator's IP address, and if so, sends a request message to the operator's gateway;

[0044] S2: The network device receives the response message returned by the operator gateway;

[0045] S3: The network device judges the connection state of the network device according to the received response message, and controls the display of the two-color indicator light according to the different connection states of the network device, and the two-color indicator light displays The color indicates the connectivity status of the network device.

[0046] Further, the response message includes a response message and a non-response message, wherein the non-response me...

Embodiment 2

[0059] On the basis of Embodiment 1, in step S110, it is determined whether there is connectivity between the network device and the gateway address of the broadband operator in the following manner:

[0060] The network device invokes the Ping process, and sends N (for example, N=4) PingRequest messages to the remote host whose gateway address belongs to the operator. If the network device receives the PingRequest messages returned by the remote host whose gateway address belongs to the operator If the network device receives N reply response messages corresponding to the PingRequest message returned by the remote host whose gateway address belongs to the network device, it is determined that the network device and the gateway address of the broadband operator are connected. If it is Requesttimedout (request timeout) or DestinationhostUnreachable (target host is unavailable) or Unknownhostname (unknown hostname), it is determined that there is no connection between the network...

Embodiment 3

[0062] On the basis of embodiment 2, the execution steps of the Ping process wherein are as follows:

[0063] (1) Create a raw socket whose protocol type is IPPROTO_ICMP (IP protocol_Internet Control Message Protocol);

[0064] (2) Create and initialize an ICMP (InternetControlMessageProtocol, Internet Control Message Protocol) packet;

[0065] (3) calling the sendto function to send an ICMP request to the remote host to which the gateway address of the broadband operator belongs;

[0066] (4) Call the recvfrom function to receive the ICMP response.

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 for judging the connection state of a network device. The method is characterized in that the WAN port of the network device is provided with a dual-color indicating lamp, and the method comprises the following steps: S1, the network device detects whether the IP address of an operator is to be acquired, and sends a request message to an operator gateway if detecting that the IP address of the operator is to be acquired; S2, the network device receives a response message returned by the operator gateway; and S3, the network device judges the connection state of the network device according to the received response message, and controls the display of the dual-color indicating lamp according to different connection states of the network device, wherein the color displayed by the dual-color indicating lamp indicates the current connecting state of the network device. According to the method, the input cost is low, the user experience is enhanced significantly, and the work efficiency of after-sales service is also improved.

Description

technical field [0001] The invention relates to the field of network communication, in particular to a method for judging the connection status of network equipment and network equipment. Background technique [0002] At present, network devices, such as routers, WAN port LED (Light Emitting Diode, light emitting diode) lights can only show whether the physical link connection is normal, but cannot visually display to the user whether the network device is connected to the broadband operator network. When the network fails, For example, if you cannot access the Internet or dial-up fails, it will be difficult for ordinary users to locate the fault point and describe the problem accurately. [0003] At present, the corresponding meanings of the different states of the WAN port LED status indicators of home network equipment are as follows: [0004] 1. If the LED status indicator of the WAN port is off, it means that there is no link connection, that is, it is determined that ...

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 Applications(China)
IPC IPC(8): H04L12/26
CPCH04L43/0811
Inventor 张志强
Owner PHICOMM (SHANGHAI) CO LTD
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