CN1210911C - Method for real time detecting ethernet connected computer on-line state through insertion equipment - Google Patents

Method for real time detecting ethernet connected computer on-line state through insertion equipment Download PDF

Info

Publication number
CN1210911C
CN1210911C CN 02108645 CN02108645A CN1210911C CN 1210911 C CN1210911 C CN 1210911C CN 02108645 CN02108645 CN 02108645 CN 02108645 A CN02108645 A CN 02108645A CN 1210911 C CN1210911 C CN 1210911C
Authority
CN
China
Prior art keywords
computer
time
access device
address
message
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.)
Expired - Fee Related
Application number
CN 02108645
Other languages
Chinese (zh)
Other versions
CN1450756A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 02108645 priority Critical patent/CN1210911C/en
Publication of CN1450756A publication Critical patent/CN1450756A/en
Application granted granted Critical
Publication of CN1210911C publication Critical patent/CN1210911C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a method by which a receiving device detects an online state of an ethernet receiving computer in real time. The receiving device actively sends the ARP request message for an ethernet receiving user, a requested user needs to response the message according to the requirements of an ARP protocol, and a situation whether a receiving computer user is online can be judged by the method so that the computer user is really charged according to the time; furthermore, the recovery of an IP address can be achieved (for a computer user of which the IP address is assigned through the DHCP protocol). When the method is used, any modification and configuration of a receiving computer is unnecessarily made, any special software is also unnecessarily installed, and a user computer has no adverse effect to normal functions.

Description

A kind of access device real-time detection Ethernet inserts the method for computer presence
Technical field
The present invention relates in the network communication field, whether online a kind of access device that makes can the real-time judge Ethernet insert computer method.
Technical background
Ethernet networking mode commonly used is shown in Fig. 1 " Ethernet access networking diagram ", the network interface card of computer links to each other by netting twine with hub (HUB) or Ethernet switch (LANSwitch), HUB or LANSwitch can connect a plurality of computers, and HUB or LANSwitch are connected on the access device by ethernet line.Wherein, access device can be Ethernet switch or the router with subscriber management function, perhaps has ethernet user's access management product of similar functions.Fig. 1 is common networking diagram, in the networking of reality, multiple networking structure can be arranged.In actual networking, personal computer can directly be connected in the access device, personal computer also can link to each other with VDSL switch (VDSL Switch) by Very-high-speed Digital Subscriber Line road (VDSL), and what wherein transmit in the VDSL circuit is the message of ethernet format.
In the networking of Fig. 1, when personal computer inserted, the inner ARP list item that can dynamically generate computer of access device had been noted down the network interface card hardware address (MAC Address) of computer and the corresponding relation of IP address.Implementation method commonly used according to address resolution protocol (ARP agreement), this ARP list item can be preserved a period of time (generally being 5 minutes to 20 minutes) on access device, if during this period of time this computer is not sending or receiving the Ethernet message, this ARP list item is deletion automatically.Usually the delet method of this ARP list item of address is aging for the ARP list item.In real network, computer is connected situation and has very big randomness with network, below is several typical situations:
A computer A may be shut down in transmission or after receiving message at once, and perhaps netting twine connects disconnection, perhaps computer A (as notebook) is removed.At this time watch the list item that still there is computer A in the ARP table on access device, but computer A has in fact been left network, other equipment on the network and this computer A can't communications.
A computer B is after sending or receiving message, and a period of time does not send or receive message.At this time access device can be with the ARP deletion of computer B, and watch the ARP list item of access device this moment, will not have the information of computer B.But in fact this computer B still normally is connected on the network, this moment, other computers C sent message by access device to computer B, access device is searched the ARP list item less than the user, can send the ARP request message, the MAC Address of active inquiry computer B, obtain the MAC Address of computer B after, regenerate the ARP list item, according to the MAC Address of the computer B in the ARP list item, the message of computer C is transmitted to computer B, realize the communication between computer B and the computer C.
Under this networking situation, access device can not judge by traditional method and insert whether real-time online of computer, is unfavorable for that access device realizes administering and maintaining of user, is unfavorable for that access device is to inserting the real time billing of computer.
Dynamically obtain IP address by DHCP (DHCP agreement) from the access device DHCP relay effect of access device (perhaps by) if insert computer, even computer has left access network, but access device can not be judged whether real line again of user by the ARP list item, therefore in the rental period of IP address, this IP address will be occupied always.This will make the IP address effectively not utilize.
Summary of the invention
The objective of the invention is to overcome above-mentioned weak point of the prior art, provide a kind of access device that makes can the real-time detection Ethernet to insert the whether online method of computer, help access device and achieve a butt joint, realize real time billing into computer user's management, maintenance.Recovery for the computer realization IP address of passing through DHCP agreement distributing IP address.
Principle of the present invention is: according to the ARP protocol requirement, when computer is received the ARP request message, if the IP address of request is the IP address of oneself, then this computer will send the arp response message, carry the MAC Address of oneself in the response message content.
Step of the present invention is:
(1) when the computer access network, the access device system generates a kind of computer and inserts the data message table, and this access information table comprises the IP address and the corresponding mac address information of computer;
(2) behind the certain interval of time T1, access device sends the ARP request message to inserting computer;
(3) access device is intercepted the arp response message of this computer, if not response of interior computer at the appointed time, then access device sends an ARP request message again, if also not response in the time of appointment then continues to send, up to the longest request time T 2Or till the largest request times N time, access device makes the following judgment in this process: if a. does not receive the response of computer, and the processing of then this computer being rolled off the production line; If b. receive the response of computer, whether MAC Address is the MAC Address of this computer of request in the then disconnected response message; If, think that this computer is online, proceed step (2); If not, with the processing of rolling off the production line of this computer.
Described rolling off the production line handled the information that is meant this computer of deletion; For computer, delete this computerized information, and this IP address is made as idle condition by DHCP agreement automatic IP address allocation.
Described blanking time T 1Be regular time, promptly no matter insert computer quantity what, insert computer for any one, access device all regularly sends the ARP request message at interval with regular time.Another kind method is: blanking time T 1Be the time that endless form is determined, promptly access device sends the ARP request message to inserting computer successively to inserting computer according to certain sequence arrangement, and access device was fixed the time interval that the neighboring access computer sends message.
The longest described request time T 2With time used time of largest request times N all less than T blanking time 1
This method is utilized the ARP agreement in the ICP/IP protocol, access device initiatively docks access customer initiates the ARP request message, requirement according to the ARP agreement, requested user must respond this message, therefore access device can active probe goes out to insert whether real-time online of user, and access device can be adjusted the frequency that initiatively sends the ARP request message and make a balance preferably on real-time and performance burden.
This method, the computer that does not need to insert is made any modification and configuration, and also not needing to install any software can use, and does not have adverse effect for the subscriber computer normal function.Be convenient to the access device maintenance and management and insert the user, really realize charged according to time.Can also make by DHCP agreement IP address allocated and in time reclaim, the IP address is effectively used.
Description of drawings
Fig. 1 is that a kind of Ethernet inserts networking diagram.
Fig. 2 is that the real-time detection Ethernet inserts the flow chart of user at line method.
Embodiment
Further specify below in conjunction with accompanying drawing:
(1) when the computer A access network, the access device system generates a kind of computer and inserts the data message table, and this access information table comprises the IP address ip _ a and the corresponding MAC Address MAC_a of computer; (2) certain interval of time T 1After, access device sends the ARP request message to inserting computer A.According to the ARP protocol requirement, when computer is received the ARP request message, if the IP address of request is the IP address of oneself, then this computer will send the arp response message, carry the MAC Address of oneself in the response message content.
T wherein 1Can be regular time, promptly no matter insert computer quantity what, insert computer for any one, access device all regularly sends the ARP request message at interval with regular time.Blanking time T 1Also can be definite time of endless form, promptly access device sends the ARP request message to inserting computer successively to inserting computer according to certain sequence arrangement, and access device was fixed the time interval that the neighboring access computer sends message.
(4) access device is intercepted the arp response message of computer A: interior (for example 10 seconds) this computer at the appointed time is response not, access device sends an ARP request message again, if also not response in the time of appointment then continues to send, up to the longest request time T 2Or judge whether response till the largest request times N time.The suggestion time T 2Can select the time between 1~3 minute; Inferior can the selection 3,4 or 5 times of suggestion largest request times N.The inferior used time of the longest request time T2 and largest request times N is all less than T blanking time 1Access device makes the following judgment in this process: if a. access device is not received the response of computer A, and the processing of then will rolling off the production line: the information of deleting this computer; For computer, delete this computerized information, and this IP address is made as idle condition by DHCP agreement automatic IP address allocation.If b. access device is received the response of computer, judge whether MAC Address is the MAC_a address of this computer of request in the response message; If, think that computer A is online, proceed step
(2); If not, with the computer A processing of rolling off the production line.

Claims (5)

1, a kind of access device real-time detection Ethernet inserts the method for computer presence, it is characterized in that, may further comprise the steps:
(1) when the computer access network, the access device system generates a kind of computer and inserts the data message table, and this access information table comprises the IP address and the corresponding network interface card hardware address information of computer;
(2) certain interval of time T 1After, access device sends the arp request message to inserting computer;
(3) access device is intercepted the address resolution protocol response message of this computer, if not response of computer at the appointed time, then access device sends an arp request message again, if also not response in the time of appointment, then continue to send, up to the longest request time T 2Or till the largest request times N time, access device makes the following judgment in this process: if a. does not receive the response of computer, and the processing of then this computer being rolled off the production line; If b. receive the response of computer, then non-ly judge whether network interface card hardware address in the response message asks the network interface card hardware address of this computer; If, think that this computer is online, proceed step (2); If not, with the processing of rolling off the production line of this computer.
2, a kind of real-time detection Ethernet according to claim 1 inserts the method for computer presence, it is characterized in that: described rolling off the production line is treated to the information of this computer of deletion; For computer, delete this computerized information, and this IP address is made as idle condition by the DHCP automatic IP address allocation.
3, a kind of real-time detection Ethernet according to claim 1 connects the method for computer presence, it is characterized in that; Described blanking time T 1Be regular time, promptly no matter insert computer quantity what, insert computer for any one, access device all regularly sends the arp request message at interval with regular time.
4, a kind of real-time detection Ethernet according to claim 1 inserts the method for computer presence, it is characterized in that: described blanking time T 1Be the time that endless form is determined, promptly access device sends the arp request message to inserting to calculate successively to inserting computer according to certain sequence arrangement, and access device was fixed the time interval that the neighboring access computer sends message.
5, a kind of real-time detection Ethernet according to claim 1 inserts the method for computer presence, it is characterized in that: the longest described request time T 2With time used time of largest request times N all less than T blanking time 1
CN 02108645 2002-04-08 2002-04-08 Method for real time detecting ethernet connected computer on-line state through insertion equipment Expired - Fee Related CN1210911C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02108645 CN1210911C (en) 2002-04-08 2002-04-08 Method for real time detecting ethernet connected computer on-line state through insertion equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02108645 CN1210911C (en) 2002-04-08 2002-04-08 Method for real time detecting ethernet connected computer on-line state through insertion equipment

Publications (2)

Publication Number Publication Date
CN1450756A CN1450756A (en) 2003-10-22
CN1210911C true CN1210911C (en) 2005-07-13

Family

ID=28680318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02108645 Expired - Fee Related CN1210911C (en) 2002-04-08 2002-04-08 Method for real time detecting ethernet connected computer on-line state through insertion equipment

Country Status (1)

Country Link
CN (1) CN1210911C (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7454503B2 (en) * 2004-04-08 2008-11-18 International Business Machines Corporation Method to identify transactions and manage the capacity to support the transaction
CN100426915C (en) * 2004-09-10 2008-10-15 中兴通讯股份有限公司 Discrimination of user on or off state in PHS system
CN100466540C (en) * 2005-08-05 2009-03-04 华为技术有限公司 State detection method based on main and backup Ethernet interface
CN1327658C (en) * 2005-08-09 2007-07-18 华为技术有限公司 Detection method of network communication state
CN1874223B (en) * 2006-06-27 2010-07-14 天津移动通信有限责任公司 Access control method for implementing binding MAC/IP of network device
CN101262503B (en) * 2008-03-20 2011-04-06 中兴通讯股份有限公司 Method for withdrawing user IP addresses of DHCP device
CN101572930B (en) * 2008-04-28 2012-08-29 鸿富锦精密工业(深圳)有限公司 System and method for stable connection of unauthorized mobile access mobile phone
CN101729312B (en) * 2009-12-03 2012-12-19 中兴通讯股份有限公司 Method and system for detecting a link based on ARP protocol
CN101795449B (en) * 2010-01-07 2013-04-17 杭州华三通信技术有限公司 Wireless network terminal access control method and device thereof
CN101778107B (en) * 2010-01-15 2014-03-12 中兴通讯股份有限公司 State synchronization processing method and device
CN101895587B (en) * 2010-07-06 2015-09-16 中兴通讯股份有限公司 Prevent the methods, devices and systems of users from modifying IP addresses privately
CN101997920A (en) * 2010-11-18 2011-03-30 中兴通讯股份有限公司 DHCP lease processing method and device
CN104468133B (en) * 2013-09-16 2018-03-09 华为技术有限公司 POE control method, power supply unit and system
CN104683326A (en) * 2014-12-30 2015-06-03 盛科网络(苏州)有限公司 Method for preventing hostile exhausting of DHCP (dynamic host configuration protocol) server address pool
CN105338130B (en) * 2015-11-17 2018-06-01 中国联合网络通信集团有限公司 It is directed toward the method and system and device of address in configuration isolation area
CN107465772A (en) * 2017-09-28 2017-12-12 郑州云海信息技术有限公司 A kind of method and apparatus for reclaiming dynamic host configuration protocol DHCP address
CN114039897A (en) * 2021-10-29 2022-02-11 四川天邑康和通信股份有限公司 Method for identifying offline of relay router down-hanging device based on home gateway

Also Published As

Publication number Publication date
CN1450756A (en) 2003-10-22

Similar Documents

Publication Publication Date Title
CN1210911C (en) Method for real time detecting ethernet connected computer on-line state through insertion equipment
EP1414186B1 (en) System and method for providing internet broadcasting data based on hierarchical structure
CN101453495B (en) Method, system and equipment for preventing authentication address resolution protocol information loss
CN100518105C (en) Method, system and content distribution network for monitoring network
CN102368714B (en) Network alarm processing method, apparatus and system thereof
CN101106512B (en) A processing method and device for QinQ termination configuration
US20040008717A1 (en) Fault tolerant correlation engine method and system for telecommunications networks
CN110505319A (en) A kind of RS485 is from device address auto-allocation method and system
CN101953139B (en) DHCP in response to Internet connectedness initializes
CN101453447A (en) Customer aging method for dynamic host configuration protocol DHCP and access equipment
CN101248628A (en) Network interface control program and network interface control device
CN102025574B (en) Cable modem termination system and method
CN103312593B (en) A kind of message distributing system and method
CN101796774A (en) Method and system for checking automatically connectivity status of an IP link on IP network
CN100561954C (en) Method, system and the equipment of control detection of connectivity
CN102281263B (en) Method for establishing Internet small computer system interface (iSCSI) session and iSCSI initiator
CN101729310B (en) Method and system for realizing business monitor and information acquisition equipment
CN101340370B (en) Link selection method and apparatus
CN101340339A (en) Wideband access server cluster system and apparatus
CN100499528C (en) DHCP monitoring method and apparatus thereof
CN1285198C (en) Method for detecting and controlling user access by using Internet control protocol
CN104009961A (en) PPPoE session ID distribution method and equipment thereof
CN101102231B (en) An automatic discovery method and device of PPP link routing device
CN103051484A (en) Method and system for processing session service and session border controller
CN103684672A (en) Ethernet data transmission rate adjusting method and device

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050713

Termination date: 20180408