CN101980483A - Switch port detection method - Google Patents

Switch port detection method Download PDF

Info

Publication number
CN101980483A
CN101980483A CN 201010566712 CN201010566712A CN101980483A CN 101980483 A CN101980483 A CN 101980483A CN 201010566712 CN201010566712 CN 201010566712 CN 201010566712 A CN201010566712 A CN 201010566712A CN 101980483 A CN101980483 A CN 101980483A
Authority
CN
China
Prior art keywords
switch
server
detection method
registrar
ports themselves
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
CN 201010566712
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.)
MOX BUILDING AUTOMATION (HANGZHOU) CO Ltd
Original Assignee
MOX BUILDING AUTOMATION (HANGZHOU) 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 MOX BUILDING AUTOMATION (HANGZHOU) CO Ltd filed Critical MOX BUILDING AUTOMATION (HANGZHOU) CO Ltd
Priority to CN 201010566712 priority Critical patent/CN101980483A/en
Publication of CN101980483A publication Critical patent/CN101980483A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a switch port detection method, which comprises the following steps of: a) configuring the address information of a registration server on a switch; b) configuring the address information of the switch to be detected on the registration server and starting a monitoring process; c) detecting an inserting or pulling action at a port and actively reporting the action to the registration server by the switch; and d) recording the inserting or pulling action and providing inquiry display by the registration server. By the switch port detection method provided by the invention, when the inserting or plugging action exists at the port of the switch, the switch can actively report the action to the server and the server records the inserting or plugging action, so that the aim of monitoring is fulfilled.

Description

The switch ports themselves detection method
Technical field
The present invention relates to a kind of external equipment plug detection method, relate in particular to a kind of switch ports themselves detection method.
Background technology
Switch is considered from the fail safe aspect as nucleus equipment in household control, and switch status need obtain strict monitoring.Fig. 1 is a house control system networking schematic diagram, sees also Fig. 1, and external equipment 3 links to each other with server 1 by switch 2, outside equipment running status in each in the centralized monitor house control system on the server 1.
Existing switch 2 is ports having measuring abilities all generally, but server 1 can't be known the plug situation that respectively exchanges airborne equipment.When switch ports themselves has the action of inserting or extracting,,, then can reach the purpose of monitoring by the record that server carries out Plug Action if can initiatively report server.
Summary of the invention
Technical problem to be solved by this invention provides a kind of switch ports themselves detection method, and the record that carries out Plug Action by server is to reach the purpose of monitoring.
The present invention solves the problems of the technologies described above the technical scheme that adopts to provide a kind of switch ports themselves detection method, comprises that method comprises the steps: a) configuration registry server address information on switch; B) configuration needs the address information of the switch of detection on registrar, and starts the monitoring flow process; C) the switch detection port action of inserting or extracting, and initiatively report registrar; D) registrar carries out the record of Plug Action, and query display is provided.
Above-mentioned switch ports themselves detection method, wherein, the information that writes down in the described step d) comprises the port numbers that reports time, switch ip address and state to change.
Above-mentioned switch ports themselves detection method, wherein, described registrar stores the external equipment information of binding on each switch ports themselves, and the port numbers that record switch ip address and state in the step d) changes is converted to concrete external equipment is shown to the user.
Above-mentioned switch ports themselves detection method, wherein, described switch and server adopt the communication of UDP mode, and the registrar address information comprises registrar IP address and udp port number in the described step a).
The present invention contrasts prior art following beneficial effect: switch ports themselves detection method provided by the invention, the action of inserting or extracting is arranged when switch ports themselves, can initiatively report server, the record that carries out Plug Action by server is to reach the purpose of monitoring.
Description of drawings
Fig. 1 is a house control system networking schematic diagram;
Fig. 2 is a switch ports themselves detection system implementation structure schematic diagram of the present invention;
Fig. 3 is a switch software flow chart of the present invention;
Fig. 4 is a server registration flow chart of the present invention;
Fig. 5 monitors flow chart for server of the present invention.
 
Among the figure:
1 server, 2 switches
3 external equipments
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
Fig. 2 is a switch ports themselves detection system implementation structure schematic diagram of the present invention.
See also Fig. 2, switch ports themselves detection method provided by the invention, system is divided into server end and switch two parts, wherein, comprise port change detection module on the switch: general switch is the ports having measuring ability, and this module is the variation of detection port state constantly, when finding that port status changes, change the UDP bag of information immediately to the server transmit status, comprise server ip address in this information, the port numbers of inserting or extracting;
Server registration configuration module: IP address and Port mouth that server is set, after having set the server relevant information, in a single day switch detects external equipment and extracts from switch, when perhaps having new equipment to insert switch, initiatively send message to default server, notice has equipment to insert or extracts.
Comprise the server registration processing module on the server: the server needs are logined the IP address of switch and the udp port of monitoring earlier;
Server is monitored module: start the thread listening port, when finding have the switch uploaded state to change information, promptly write down for inquiry, call time switch ip address, the port numbers that state changes on the information of record has;
Equipment plug display module and device port binding module: registrar stores the external equipment information of binding on each switch ports themselves, and the port numbers that the switch ip address noted and state change is converted to concrete external equipment is shown to the user.
Fig. 3 is a switch software flow chart of the present invention.
See also Fig. 3, switch software flow process of the present invention is as follows:
Step S301: judge whether the switch ports themselves state changes,, otherwise enter step S304 if there is change to enter step S302;
Step S302: judge whether server info is registered,, otherwise enter step S304 if there is registration to enter step S303;
Step S303: send the switch ports themselves modification information to server, enter step S304;
Step S304: judge whether switch receives request package,, otherwise enter step S307 if enter step S305;
Step S305: judge whether it is the request package of registrar,, otherwise enter step S307 if enter step S306;
Step S306: the server info of change of registration also sends the affirmation bag that succeeds in registration, and enters step S307;
Step S307: enter the switch main flow.
Fig. 4 is a server registration flow chart of the present invention.
See also Fig. 4, server registration flow process of the present invention is as follows:
Step S401: input needs the switch IP of monitoring, enters step S402;
Step S402: input server ip and listening port enter step S403;
Step S403: the request to switch transmission registrar information enters step S404;
Step S404: judge whether to receive to respond and confirm bag, succeed in registration if having then, otherwise registration failure.
Fig. 5 monitors flow chart for server of the present invention.
See also Fig. 5, it is as follows that server of the present invention is monitored flow process:
Step S501: listening port, judged whether switch ports themselves plug information, if enter step S502, otherwise enter step S504;
Step S502: record switch plug information enters step S503;
Step S503: remind subscriber exchange that unusual plug is arranged, enter step S504;
Step S504: enter the server main flow.
Though the present invention discloses as above with preferred embodiment; right its is not in order to qualification the present invention, any those skilled in the art, without departing from the spirit and scope of the present invention; when can doing a little modification and perfect, so protection scope of the present invention is when with being as the criterion that claims were defined.

Claims (4)

1. a switch ports themselves detection method is characterized in that, described method comprises the steps:
A) configuration registry server address information on switch;
B) configuration needs the address information of the switch of detection on registrar, and starts the monitoring flow process;
C) the switch detection port action of inserting or extracting, and initiatively report registrar;
D) registrar carries out the record of Plug Action, and query display is provided.
2. switch ports themselves detection method as claimed in claim 1 is characterized in that, the information that writes down in the described step d) comprises the port numbers that reports time, switch ip address and state to change.
3. switch ports themselves detection method as claimed in claim 2, it is characterized in that, described registrar stores the external equipment information of binding on each switch ports themselves, and the port numbers that record switch ip address and state in the step d) changes is converted to concrete external equipment is shown to the user.
4. as each described switch ports themselves detection method of claim 1~3, it is characterized in that described switch and server adopt the communication of UDP mode, the registrar address information comprises registrar IP address and udp port number in the described step a).
CN 201010566712 2010-12-01 2010-12-01 Switch port detection method Pending CN101980483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010566712 CN101980483A (en) 2010-12-01 2010-12-01 Switch port detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010566712 CN101980483A (en) 2010-12-01 2010-12-01 Switch port detection method

Publications (1)

Publication Number Publication Date
CN101980483A true CN101980483A (en) 2011-02-23

Family

ID=43600968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010566712 Pending CN101980483A (en) 2010-12-01 2010-12-01 Switch port detection method

Country Status (1)

Country Link
CN (1) CN101980483A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI568217B (en) * 2015-06-08 2017-01-21 Quanta Comp Inc Method and system of server link state detection and notification

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953404A (en) * 2005-06-14 2007-04-25 泛达公司 Method and apparatus for monitoring physical network topology information
CN101345581A (en) * 2007-07-13 2009-01-14 华为技术有限公司 Fault location method and system for passive optical network
CN101809934A (en) * 2007-06-19 2010-08-18 北卡罗来纳科姆斯科普公司 The method, system and the computer program that are used for the use and management port circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953404A (en) * 2005-06-14 2007-04-25 泛达公司 Method and apparatus for monitoring physical network topology information
CN101809934A (en) * 2007-06-19 2010-08-18 北卡罗来纳科姆斯科普公司 The method, system and the computer program that are used for the use and management port circuit
CN101345581A (en) * 2007-07-13 2009-01-14 华为技术有限公司 Fault location method and system for passive optical network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI568217B (en) * 2015-06-08 2017-01-21 Quanta Comp Inc Method and system of server link state detection and notification

Similar Documents

Publication Publication Date Title
CN108134684B (en) BMCIP address management system, management terminal and management method
JP6708318B1 (en) Storage battery monitoring device and storage battery monitoring method
EP2853962A1 (en) Identification method for pan-tilt apparatus, pan-tilt apparatus, camera and control system for pan-tilt apparatus
CN104065526B (en) A kind of method and apparatus of server failure alarm
CN103685163B (en) Disaster recovery method, system and equipment in IMS network
WO2018233642A1 (en) Train network node, and train network node monitoring method based on canopen protocol
CN101355466A (en) Method and apparatus for transmitting continuous check information message
CN102970157A (en) Link failure processing method, intelligent resilient framework (IRF) member device and data communication device
CN104113428A (en) Apparatus management device and method
CN104243239A (en) State inspection method and device for controllers in SDN clusters
CN104980293A (en) Method and device for quickly transmitting and detecting OAM message
WO2014173027A1 (en) System for monitoring and controlling communication base station power supply on the basis of intelligent platform management interface
CN101980483A (en) Switch port detection method
CN104038387B (en) Line detecting method on frame-type switch business board
CN102377619A (en) Automatic detecting and processing method for communication abnormality of simple network management protocol (SNMP) agent
JP2012039695A (en) Connection apparatus managing system
CN102118266A (en) Industrial Ethernet dual-link redundancy technology
CN101458887B (en) Intelligent multimedia display terminal and information displaying method
JP4888067B2 (en) Layer 2 switch and network monitoring method
CN101848165A (en) Method for controlling recovery of interrupted communication link and interface board
CN104754762B (en) Automatically method, controller and the system of controller are found in the customized network of software
CN108012085A (en) A kind of method for processing multimedia information, server and storage medium
CN104076749B (en) Concurrent connection method, monitoring method and related device and system
WO2020174712A1 (en) Storage battery monitoring device and storage battery monitoring method
US20160308787A1 (en) Method for processing event between controller and network device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110223