CN105281929A - Service network port state detection and fault tolerance device and method thereof - Google Patents

Service network port state detection and fault tolerance device and method thereof Download PDF

Info

Publication number
CN105281929A
CN105281929A CN201410245842.3A CN201410245842A CN105281929A CN 105281929 A CN105281929 A CN 105281929A CN 201410245842 A CN201410245842 A CN 201410245842A CN 105281929 A CN105281929 A CN 105281929A
Authority
CN
China
Prior art keywords
network interface
service
fault
load
module
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.)
Granted
Application number
CN201410245842.3A
Other languages
Chinese (zh)
Other versions
CN105281929B (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.)
Institute of Acoustics CAS
Original Assignee
Institute of Acoustics CAS
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 Institute of Acoustics CAS filed Critical Institute of Acoustics CAS
Priority to CN201410245842.3A priority Critical patent/CN105281929B/en
Priority to PCT/CN2014/093489 priority patent/WO2015184759A1/en
Publication of CN105281929A publication Critical patent/CN105281929A/en
Application granted granted Critical
Publication of CN105281929B publication Critical patent/CN105281929B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to a service network port state detection and fault tolerance device which is used for managing all network ports on a server. The service network port state detection and fault tolerance device comprises a regular packet sending module, a regular detection module and a resource management module. The regular packet sending module regularly sends a ping packet of an ICMP to a specified gateway or each network port in the server so that input end flow of the network ports is enabled to regularly increase. The regular detection module regularly inquires input end flow of each network port to the flow register of each network port in the server and reports to the resource management module that the network ports of which increasing of input end flow does not reach the standard are abnormal. The resource management module inquires all load information of the abnormal network ports and transfers the load information to other network ports of which rich bandwidth can meet the load demand.

Description

A kind ofly serve network interface state-detection and fault-tolerant devices and methods therefor
Technical field
The present invention relates to network communication field, particularly a kind ofly serve network interface state-detection and fault-tolerant devices and methods therefor.
Background technology
Along with the development of Internet technology and broadcast television technique, network service business is advanced by leaps and bounds, and network service is by one of core application becoming Future Internet.
Network service system, according to the request of user, carrys out service-user by providing various content.For service system, the reliability of system equipment needs very high, and system equipment can long-time steady operation, once there are abnormal conditions, need can recover at once, this just needs a series of detection and prevention mechanism.
Under normal circumstances, if service system is providing, the nodes transmitting link of service lost efficacy because of congested, the service ability of node declines suddenly, the data that receive are imperfect etc., and these situations all can have a strong impact on the experience of user.In order to ensure that user node accepts the continuity of service, some fault tolerant mechanisms must be taked to make the service ability of network unaffected or recover as early as possible.
Network interface is fault-tolerant is a kind of fault tolerant mechanism that industry adopts usually.The fault-tolerant common practice of described network interface is: prepare a network interface for subsequent use in advance, when detecting that certain network interface occurs abnormal, to the services migrating of abnormal network interface be there is on network interface for subsequent use, when abnormal network interface recovers, again services migrating is returned, but so just cause network interface for subsequent use to be often in idle condition, fail to make full use of network interface resource.
Summary of the invention
The object of the invention is to overcome network interface fault-tolerance approach of the prior art need to be equipped with special network interface for subsequent use, the defect of network interface resource can not be made full use of, thus provide a kind of Data Migration that can be served by this network interface in time to the apparatus and method on rich network interface.
To achieve these goals, the invention provides and a kind ofly serve network interface state-detection and fault-tolerant device, this device, for managing each network interface on server, comprising: timing is given out a contract for a project module, timing detection module and resource management module; Wherein,
The give out a contract for a project ping of module timed sending ICMP of described timing wraps each network interface of specifying in gateway or server, and the traffic timing that enters to hold of network interface is increased; Described timing detection module timing flow register of each network interface in server inquire about each network interface enter to hold flow, report to resource management module and occur abnormal into the network interface that the growth of end flow is below standard; There are all load informations of abnormal network interface in described resource management module inquiry, these load informations are transferred to the network interface that other excess bandwidth can meet loading demand.
In technique scheme, enter the to hold increment of flow and the particular data amount that self sends of network interface compare by described timing detection module, if the increment of flow that enters to hold of network interface is less than the particular data amount of self transmission, then network interface enters to hold the growth of flow below standard.
In technique scheme, the timing cycle of described timing detection module is greater than described timing and gives out a contract for a project the timing cycle of module.
In technique scheme, the state information of each network interface of described resource management module record and related service load information; Wherein, the state information of network interface comprises: whether network interface number, network interface normally run, network interface maximum go out bandwidth, use out bandwidth; The related service load information of network interface comprises each load information on this network interface, and each load information comprises: the bandwidth that load uses, object MAC, object IP, source IP, source MAC.
In technique scheme, described resource management module will occur that the load information of abnormal port is transferred to the network interface that other excess bandwidth can meet loading demand and comprised: choose the fault-tolerant network interface that an excess bandwidth can meet loading demand, the load data that abnormal network interface occurs is moved to this fault-tolerant network interface to export, source IP in original load data message and source MAC information-change are IP and MAC of fault-tolerant network interface, and change there is abnormal network interface and fault-tolerant network interface use out source IP in bandwidth and load information and source MAC information; If do not have rich network interface, informing the user this service in time can not carry out, and allows user reopen service.
Present invention also offers the method realized based on described service network interface state-detection and fault-tolerant device, comprising:
Step 1), to the ping bag of specifying gateway or each network interface timed sending ICMP;
Step 2), each network interface periodic detection self enter to hold flow, whether the increment compared into end flow is not less than the particular data amount that self sends, and the condition that reaches then shows that network interface is in normal work; The condition that do not reach then shows that network interface is in abnormality;
Step 3), record state information and the related service load information of each network interface, when detecting that certain network interface is abnormal, the load data that this network interface is served being moved to other network interfaces with excess bandwidth and exporting; If there is no rich network interface, inform the user this service in time and can not carry out, to reopen service.
The invention has the advantages that:
1, apparatus and method of the present invention can detect in time and abnormal network interface occurs, and by the services migrating of this network interface to other network interfaces on server, thus ensure the uninterrupted of user's service;
2, apparatus and method of the present invention can make full use of the network interface resource of server, improve service number of concurrent.
Accompanying drawing explanation
Fig. 1 is the functional block diagram of service network interface state-detection of the present invention and fault tolerance facility.
Embodiment
Now the invention will be further described by reference to the accompanying drawings.
Service network interface state-detection of the present invention and fault tolerance facility are positioned on server, can do state-detection and fault-tolerant processing to each network interface on server; As shown in Figure 1, this device comprises: module of regularly giving out a contract for a project, timing detection module and resource management module; The give out a contract for a project ping of module timed sending ICMP of timing wherein wraps and specifies gateway or a certain network interface, and the flow that enters to hold of this network interface is regularly increased; Timing detection module timing flow register of each network interface in server inquire about each network interface enter to hold flow, if some network interfaces enter to hold the growth of flow below standard, then report that this network interface is abnormal to resource management module; There are all load informations of abnormal network interface in resource management module inquiry, for each load, inquire about all the other network interfaces and whether have excess bandwidth, if had, then according to load balancing, all load datas of this abnormal network interface are moved to another rich network interface and export, and revise corresponding network interface state information and related service load information, if no, then notify that user serves in time can not carry out.
Below the modules in device of the present invention is described further.
The ICMP (InternetControlMessageProtocol) that module of regularly giving out a contract for a project adopts is Internet Control Message Protocol.It is a sub-protocol of TCP/IP protocol suite, for transmitting control message between IP main frame, router.Control message refers to that network leads to the message of the network such as obstructed, whether main frame can reach, whether route can be used itself.Although these control messages not transmitting user data, the transmission for user data plays an important role." ping " bag can check whether network is communicated with, and us can be helped well to analyze and decision network fault.Therefore, " ping " of ICMP is surrounded by specific form, " ping " of ICMP bag is adopted to have versatility, not only can by " ping " self network interface increase network interface enter to hold flow, also the address can specified by " ping " or gateway, by " ping " bag of replying increase network interface enter to hold flow.
The timing of timing detection module inquires about particular data amount that corresponding network interface enters to hold the increment of flow whether to be not less than self to send (referring to include the flow of the data flow that " ping " that be specifically designed to network interface state-detection wraps) to the flow register of each network interface, if, then illustrate that the outside link of this network interface is UNICOM, network interface normally works; If not, then illustrate that this network interface is in abnormality, outwards can not provide service, need to resource management module report, allow resource management module be moved on other network interfaces by the load data on this network interface and export, Deterministic service proceeds.Should be noted that the timing cycle of timing detection module needs to be greater than timing and to give out a contract for a project the timing cycle of module, preferably in once timing testing process, have two to three " ping " to wrap and send.
Resource management module needs the state information and the related service load information that record each network interface, and network interface state information comprises: whether network interface number, network interface normally run, network interface maximum go out bandwidth, use out bandwidth etc.; The service load information that network interface is correlated with comprises each load information on this network interface, and each load information comprises: bandwidth, object MAC, object IP, source IP, source MAC etc. that load uses.When timing detection module reports that certain network interface is abnormal, using the network interface of this generation exception as network interface of makeing mistakes, resource management module inquires about all load informations of this network interface of makeing mistakes, for each load, whether the remaining bandwidth inquiring about all the other network interfaces can meet the bandwidth of this load, if met, then according to load balancing, choose a fault-tolerant network interface, this load is moved to fault-tolerant network interface at the load data of network interface of makeing mistakes export, source IP in original load data message and source MAC information-change are IP and MAC of fault-tolerant network interface, and change makes mistakes, network interface and fault-tolerant network interface uses out source IP in bandwidth and load information and source MAC information, if do not have rich network interface, then informing the user this service in time can not carry out, and allows user reopen service.
Based on device of the present invention, the service network interface state-detection that the present invention realizes and fault-tolerance approach comprise the following steps:
Step 1), each network interface regularly sends the data of ad hoc rules to self, comprises " ping " particular address.
Step 2), each network interface periodic detection self enter to hold flow, whether the increment compared into end flow is not less than the particular data amount that self sends, and the condition that reaches then shows that network interface is in normal work; The condition that do not reach then shows that network interface is in abnormality.
Step 3), record state information and the related service load information of each network interface.When detecting that certain network interface is abnormal, the load data that this network interface is served being moved to other available network interfaces and exporting, ensure the uninterrupted of user's service.
It should be noted last that, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted.Although with reference to embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, modify to technical scheme of the present invention or equivalent replacement, do not depart from the spirit and scope of technical solution of the present invention, it all should be encompassed in the middle of right of the present invention.

Claims (6)

1. serve network interface state-detection and a fault-tolerant device, this device, for managing each network interface on server, is characterized in that, comprising: module of regularly giving out a contract for a project, timing detection module and resource management module; Wherein,
The give out a contract for a project ping of module timed sending ICMP of described timing wraps each network interface of specifying in gateway or server, and the traffic timing that enters to hold of network interface is increased; Described timing detection module timing flow register of each network interface in server inquire about each network interface enter to hold flow, report to resource management module and occur abnormal into the network interface that the growth of end flow is below standard; There are all load informations of abnormal network interface in described resource management module inquiry, these load informations are transferred to the network interface that other excess bandwidth can meet loading demand.
2. service network interface state-detection according to claim 1 and fault-tolerant device, it is characterized in that, enter the to hold increment of flow and the particular data amount that self sends of network interface compare by described timing detection module, if the increment of flow that enters to hold of network interface is less than the particular data amount of self transmission, then network interface enters to hold the growth of flow below standard.
3. service network interface state-detection according to claim 1 and fault-tolerant device, is characterized in that, the timing cycle of described timing detection module is greater than described timing and gives out a contract for a project the timing cycle of module.
4. service network interface state-detection according to claim 1 and fault-tolerant device, is characterized in that, the state information of each network interface of described resource management module record and related service load information; Wherein, the state information of network interface comprises: whether network interface number, network interface normally run, network interface maximum go out bandwidth, use out bandwidth; The related service load information of network interface comprises each load information on this network interface, and each load information comprises: the bandwidth that load uses, object MAC, object IP, source IP, source MAC.
5. service network interface state-detection according to claim 4 and fault-tolerant device, it is characterized in that, described resource management module will occur that the load information of abnormal port is transferred to the network interface that other excess bandwidth can meet loading demand and comprised: choose the fault-tolerant network interface that an excess bandwidth can meet loading demand, the load data that abnormal network interface occurs is moved to this fault-tolerant network interface to export, source IP in original load data message and source MAC information-change are IP and MAC of fault-tolerant network interface, and change there is abnormal network interface and fault-tolerant network interface use out source IP in bandwidth and load information and source MAC information, if do not have rich network interface, informing the user this service in time can not carry out, and allows user reopen service.
6., based on the method that the service network interface state-detection one of claim 1-5 Suo Shu and fault-tolerant device realize, comprising:
Step 1), to the ping bag of specifying gateway or each network interface timed sending ICMP;
Step 2), each network interface periodic detection self enter to hold flow, whether the increment compared into end flow is not less than the particular data amount that self sends, and the condition that reaches then shows that network interface is in normal work; The condition that do not reach then shows that network interface is in abnormality;
Step 3), record state information and the related service load information of each network interface, when detecting that certain network interface is abnormal, the load data that this network interface is served being moved to other network interfaces with excess bandwidth and exporting; If there is no rich network interface, inform the user this service in time and can not carry out, to reopen service.
CN201410245842.3A 2014-06-04 2014-06-04 A kind of service network interface state-detection and fault-tolerant devices and methods therefor Expired - Fee Related CN105281929B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410245842.3A CN105281929B (en) 2014-06-04 2014-06-04 A kind of service network interface state-detection and fault-tolerant devices and methods therefor
PCT/CN2014/093489 WO2015184759A1 (en) 2014-06-04 2014-12-10 Apparatus and method for state detection and fault tolerance of service network port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410245842.3A CN105281929B (en) 2014-06-04 2014-06-04 A kind of service network interface state-detection and fault-tolerant devices and methods therefor

Publications (2)

Publication Number Publication Date
CN105281929A true CN105281929A (en) 2016-01-27
CN105281929B CN105281929B (en) 2018-10-02

Family

ID=54766020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410245842.3A Expired - Fee Related CN105281929B (en) 2014-06-04 2014-06-04 A kind of service network interface state-detection and fault-tolerant devices and methods therefor

Country Status (2)

Country Link
CN (1) CN105281929B (en)
WO (1) WO2015184759A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445662B (en) * 2019-08-30 2022-12-02 上海哔哩哔哩科技有限公司 Internet data broadcast socket testing method, server and storage medium
CN112672203B (en) * 2020-12-16 2023-05-23 努比亚技术有限公司 File transfer control method, mobile terminal and computer readable storage medium
CN112565746A (en) * 2020-12-30 2021-03-26 杭州视洞科技有限公司 Automatic pressure test method and process for detecting IP address of wired network port of camera
CN114244723A (en) * 2021-09-29 2022-03-25 浙江国利网安科技有限公司 Service flow simulation method and device and service flow simulator

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201114126Y (en) * 2007-10-26 2008-09-10 中兴通讯股份有限公司 Multi- net opening test device
US20100312866A1 (en) * 2009-06-04 2010-12-09 Fujitsu Limited Redundancy pair detecting method, communication device and recording medium for recording redundancy pair detection program
CN102307122A (en) * 2011-09-06 2012-01-04 北京傲天动联技术有限公司 Ethernet over Coax (EoC) link failure detection system and method
CN102447639A (en) * 2012-01-17 2012-05-09 华为技术有限公司 Strategy routing method and device
CN102833591A (en) * 2012-08-09 2012-12-19 中兴通讯股份有限公司 Method and device for uninterrupted on-demand service in interactive personality television system
CN202649363U (en) * 2011-12-19 2013-01-02 光一科技股份有限公司 Network port detection device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201114126Y (en) * 2007-10-26 2008-09-10 中兴通讯股份有限公司 Multi- net opening test device
US20100312866A1 (en) * 2009-06-04 2010-12-09 Fujitsu Limited Redundancy pair detecting method, communication device and recording medium for recording redundancy pair detection program
CN102307122A (en) * 2011-09-06 2012-01-04 北京傲天动联技术有限公司 Ethernet over Coax (EoC) link failure detection system and method
CN202649363U (en) * 2011-12-19 2013-01-02 光一科技股份有限公司 Network port detection device
CN102447639A (en) * 2012-01-17 2012-05-09 华为技术有限公司 Strategy routing method and device
CN102833591A (en) * 2012-08-09 2012-12-19 中兴通讯股份有限公司 Method and device for uninterrupted on-demand service in interactive personality television system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
幸福等: "Linux 服务器下多网口负载均衡算法的研究", 《计算机工程与应用》 *
罗雪松等: "双网卡冗余在嵌入式容错网络中的设计与实现", 《四川师范大学学报(自然科学版)》 *

Also Published As

Publication number Publication date
CN105281929B (en) 2018-10-02
WO2015184759A1 (en) 2015-12-10

Similar Documents

Publication Publication Date Title
CN101132320B (en) Method for detecting interface trouble and network node equipment
CN108306777B (en) SDN controller-based virtual gateway active/standby switching method and device
CN108965123A (en) A kind of link switch-over method and network communicating system
US9032240B2 (en) Method and system for providing high availability SCTP applications
US9515919B2 (en) Method and apparatus for protection switching in packet transport system
US11153185B2 (en) Network device snapshots
CN104753828A (en) SDN controller, data central system and route connection method
JP7313480B2 (en) Congestion Avoidance in Slice-Based Networks
US10277493B2 (en) Packet throughput and loss ratio measurements of a service function chain
CN105429799A (en) Server backup method and device
CN105281929A (en) Service network port state detection and fault tolerance device and method thereof
CN104639435A (en) Method and device for data stream forwarding in SDN (Software Defined Networking)
CN104065508A (en) Application service health examination method, device and system
EP3029883A1 (en) Network protection method and apparatus, next-ring node, and system
EP3407544B1 (en) Fault-tolerant monitoring of tunneled ip flows
CN103248567B (en) A kind of BFD session message transmitting method and equipment
CN104518936A (en) Method and device for link dynamic aggregation
CN106341249A (en) Redundant port switching method and device
CN103220189A (en) Multi-active detection (MAD) backup method and equipment
CN102487338A (en) Method and device for adjusting bidirectional forwarding detection (BFD) sending interval according to network jitter
US11477098B2 (en) Identification of candidate problem network entities
CN104618148A (en) Firewall device and backup method thereof
CN108270593A (en) A kind of two-node cluster hot backup method and system
CN108337162B (en) System and method for supporting dual-homing protection
CN102780640B (en) Method and device for realizing multilayer LM (loss measurement) in switching chip

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
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: 20181002

Termination date: 20200604