CN111193664A - Link backup method and device for computer network - Google Patents
Link backup method and device for computer network Download PDFInfo
- Publication number
- CN111193664A CN111193664A CN202010048317.8A CN202010048317A CN111193664A CN 111193664 A CN111193664 A CN 111193664A CN 202010048317 A CN202010048317 A CN 202010048317A CN 111193664 A CN111193664 A CN 111193664A
- Authority
- CN
- China
- Prior art keywords
- link
- backup
- service
- bandwidth
- transmitted
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/12—Shortest path evaluation
- H04L45/125—Shortest path evaluation based on throughput or bandwidth
Abstract
The invention provides a link backup method and a device of a computer network, wherein the link backup method of the computer network comprises the following steps: detecting whether a main link fails; when the main link fails, acquiring the bandwidth requirement of a service to be transmitted; acquiring the bandwidth configured by each backup link of the main link; screening a target link from each backup link according to the bandwidth requirement of the service to be transmitted and the bandwidth configured by each backup link; and continuing to transmit the service to be transmitted based on the target link. By the technical scheme of the invention, the normal transmission of the service can be ensured to the maximum extent while the network stability is ensured.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a link backup method for a computer network, a link backup apparatus for a computer network, and a computer device.
Background
A link refers to a carrier for transferring information between two network relay devices. In the backbone equipment connection, the connection of a single link is easy to implement, and then the single link also means the network is interrupted once the failure occurs. In order to maintain the stability of the network, the standby link is added, but the standby link is usually randomly activated, which inevitably affects the normal transmission of the service, and further improvement is needed.
Disclosure of Invention
Based on at least one of the above technical problems, the present invention provides a new link backup scheme for a computer network, which can ensure the stability of the network and ensure the normal transmission of services to the maximum extent.
In view of the above, the present invention provides a new link backup method for a computer network, including: detecting whether a main link fails; when the main link fails, acquiring the bandwidth requirement of a service to be transmitted; acquiring the bandwidth configured by each backup link of the main link; screening a target link from each backup link according to the bandwidth requirement of the service to be transmitted and the bandwidth configured by each backup link; and continuing to transmit the service to be transmitted based on the target link.
In the above technical solution, preferably, the method further includes: monitoring whether the main link recovers a normal communication state in real time; and when the main link is determined to be recovered to the normal communication state, switching to the main link to transmit the service to be transmitted.
In any one of the above technical solutions, preferably, the step of screening a target link from the backup links according to the bandwidth requirement of the service to be transmitted and the bandwidth configured by each backup link specifically includes: sequencing the backup links with the bandwidth larger than the bandwidth requirement in each backup link; and taking the first backup link as the target link.
In any one of the above technical solutions, preferably, the method further includes: and recording the fault information of the main link and generating a log.
According to a second aspect of the present invention, there is provided a link backup apparatus for a computer network, comprising: the detection unit is used for detecting whether the main link fails or not; the first acquisition unit is used for acquiring the bandwidth requirement of the service to be transmitted when the main link fails; a second obtaining unit, configured to obtain a bandwidth configured for each backup link of the main link; the screening unit is used for screening a target link from each backup link according to the bandwidth requirement of the service to be transmitted and the bandwidth configured by each backup link; and the processing unit is used for continuously transmitting the service to be transmitted based on the target link.
In the above technical solution, preferably, the method further includes: the monitoring unit is used for monitoring whether the main link recovers a normal communication state in real time; the processing unit is further configured to switch to the main link to transmit the service to be transmitted when it is determined that the main link recovers to a normal communication state.
In any one of the above technical solutions, preferably, the screening unit is specifically configured to: sequencing the backup links with the bandwidth larger than the bandwidth requirement in each backup link; and taking the first backup link as the target link.
In any one of the above technical solutions, preferably, the method further includes: and the log generation unit is used for recording the fault information of the main link and generating a log.
According to a third aspect of the invention, there is provided a computer device comprising: a processor; and a memory communicatively coupled to the processor; wherein the memory stores readable instructions which, when executed by the processor, implement the method of any of the above aspects.
According to a fourth aspect of the present invention, a computer readable storage medium is presented, having stored thereon a computer program, which when executed, performs the method according to any of the previous claims.
Through the technical scheme, when a main link fails, the standby link is screened according to specific requirements of services for transmission, the standby link meeting the requirements of service bandwidth is screened according to the bandwidth requirements of the services, the standby link with the largest bandwidth is subjected to service transmission, the actual requirements are met to the maximum extent, the main link is timely switched back when the main link recovers a normal communication state, fault information of the main link is recorded for analysis, and the whole process can ensure the normal transmission of the services to the maximum extent while ensuring the stability of a network.
Drawings
FIG. 1 shows a flow diagram of a method for link backup of a computer network according to an embodiment of the invention;
FIG. 2 shows a schematic block diagram of a link backup apparatus of a computer network according to an embodiment of the present invention;
FIG. 3 shows a schematic block diagram of a computer device according to an embodiment of the invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
As shown in fig. 1, the method for backing up a link of a computer network according to an embodiment of the present invention specifically includes the following steps:
step S102, whether the main link fails or not is detected.
And step S104, when the main link fails, acquiring the bandwidth requirement of the service to be transmitted.
Step S106, acquiring the configured band of each backup link of the main link.
And step S108, screening the target link from each backup link according to the bandwidth requirement of the service to be transmitted and the bandwidth configured by each backup link.
Specifically, the backup links with bandwidth larger than bandwidth requirement in each backup link are sorted, and the first backup link in the sorting is used as the target link.
And step S110, continuously transmitting the service to be transmitted based on the target link.
Further, still include: monitoring whether the main link recovers a normal communication state in real time; and when the main link is determined to recover the normal communication state, switching to the main link to transmit the service to be transmitted.
Further, still include: and recording the fault information of the main link and generating a log.
As shown in fig. 2, the link backup apparatus 200 of the computer network according to the present embodiment includes: a detection unit 202, a first acquisition unit 204, a second acquisition unit 206, a screening unit 208 and a processing unit 210.
The detection unit 202 is configured to detect whether a main link fails; the first obtaining unit 204 is configured to obtain a bandwidth requirement of a service to be transmitted when a main link fails; the second obtaining unit 206 is configured to obtain bandwidths configured for each backup link of the main link; the screening unit 208 is configured to screen a target link from each backup link according to a bandwidth requirement of a service to be transmitted and a bandwidth configured by each backup link; the processing unit 210 is configured to continue to transmit the traffic to be transmitted based on the target link.
Further, still include: a monitoring unit 212, configured to monitor whether the main link recovers to a normal communication state in real time; the processing unit 210 is further configured to switch to the main link to transmit the service to be transmitted when it is determined that the main link recovers to the normal communication state.
Further, the screening unit 208 is specifically configured to: sequencing the backup links with the bandwidth larger than the bandwidth requirement in each backup link; and taking the first backup link as a target link.
Further, still include: and a log generating unit 214 for recording failure information of the main link and generating a log.
When a main link fails, screening a standby link for transmission by combining specific requirements of services, specifically screening the standby link which meets the requirements of service bandwidth and has the largest bandwidth for service transmission according to the requirements of the service bandwidth, meeting the actual requirements to the maximum extent, switching back to the main link in time when the main link recovers a normal communication state, and recording fault information of the main link for analysis, wherein the normal transmission of the services can be ensured to the maximum extent while the stability of a network is ensured in the whole process.
As shown in fig. 3, a computer apparatus 300 according to an embodiment of the present invention includes: a memory 302, a processor 304, and a communication bus 306. Wherein the memory 302 is configured to store executable instructions; the processor 304 is configured to execute the stored instructions to implement the steps of the method according to any of the above embodiments, so as to have all the technical effects of the data analysis method, which will not be described herein again.
In particular, the memory 302 described above may include mass storage for data or instructions. By way of example, and not limitation, memory 302 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 302 may include removable or non-removable (or fixed) media, where appropriate. The memory 302 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 302 is a non-volatile solid-state memory. In a particular embodiment, the memory 302 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these. The processor 304 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present invention. The communication bus 306 is used to enable connection communication between the signal processor 304 and the memory 302. The communication bus 306 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
An embodiment of the fourth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when being executed by a processor, implements the steps of the method according to any of the above technical solutions, so as to have all the technical effects of the data analysis method, and therefore, the details are not repeated herein. Computer readable storage media may include any medium that can store or transfer information. Examples of computer readable storage media include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method of link backup for a computer network, comprising:
detecting whether a main link fails;
when the main link fails, acquiring the bandwidth requirement of a service to be transmitted;
acquiring the bandwidth configured by each backup link of the main link;
screening a target link from each backup link according to the bandwidth requirement of the service to be transmitted and the bandwidth configured by each backup link;
and continuing to transmit the service to be transmitted based on the target link.
2. The method for link backup in a computer network according to claim 1, further comprising:
monitoring whether the main link recovers a normal communication state in real time;
and when the main link is determined to be recovered to the normal communication state, switching to the main link to transmit the service to be transmitted.
3. The method for link backup in a computer network according to claim 1, wherein the step of screening the target link from the backup links according to the bandwidth requirement of the service to be transmitted and the bandwidth configured by the backup links specifically comprises:
sequencing the backup links with the bandwidth larger than the bandwidth requirement in each backup link;
and taking the first backup link as the target link.
4. A method for link backup in a computer network according to claims 1 to 3, further comprising:
and recording the fault information of the main link and generating a log.
5. A link backup apparatus for a computer network, comprising:
the detection unit is used for detecting whether the main link fails or not;
the first acquisition unit is used for acquiring the bandwidth requirement of the service to be transmitted when the main link fails;
a second obtaining unit, configured to obtain a bandwidth configured for each backup link of the main link;
the screening unit is used for screening a target link from each backup link according to the bandwidth requirement of the service to be transmitted and the bandwidth configured by each backup link;
and the processing unit is used for continuously transmitting the service to be transmitted based on the target link.
6. The link backup apparatus of a computer network according to claim 5, further comprising:
the monitoring unit is used for monitoring whether the main link recovers a normal communication state in real time;
the processing unit is further configured to switch to the main link to transmit the service to be transmitted when it is determined that the main link recovers to a normal communication state.
7. The link backup device of a computer network according to claim 5, wherein the screening unit is specifically configured to:
sequencing the backup links with the bandwidth larger than the bandwidth requirement in each backup link;
and taking the first backup link as the target link.
8. The link backup apparatus of a computer network according to any of claims 5 to 7, further comprising:
and the log generation unit is used for recording the fault information of the main link and generating a log.
9. A computer device, comprising:
a processor; and
a memory communicatively coupled to the processor;
wherein the memory stores readable instructions that, when executed by the processor, implement the method of any of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed, carries out the method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010048317.8A CN111193664A (en) | 2020-01-16 | 2020-01-16 | Link backup method and device for computer network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010048317.8A CN111193664A (en) | 2020-01-16 | 2020-01-16 | Link backup method and device for computer network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111193664A true CN111193664A (en) | 2020-05-22 |
Family
ID=70708173
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010048317.8A Pending CN111193664A (en) | 2020-01-16 | 2020-01-16 | Link backup method and device for computer network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111193664A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112187533A (en) * | 2020-09-18 | 2021-01-05 | 北京浪潮数据技术有限公司 | Virtual network equipment defense method, device, electronic equipment and medium |
CN112543230A (en) * | 2020-12-04 | 2021-03-23 | 深圳市捷顺科技实业股份有限公司 | Method, device, equipment and medium for communication between controller host and cloud platform |
CN112907232A (en) * | 2021-04-16 | 2021-06-04 | 广东电网有限责任公司清远供电局 | Method, device, equipment and storage medium for guaranteeing reliability of end-to-end transmission of power grid service |
CN113133038A (en) * | 2021-04-16 | 2021-07-16 | 广东电网有限责任公司清远供电局 | Power Internet of things link backup method, device, equipment and storage medium |
WO2023016492A1 (en) * | 2021-08-10 | 2023-02-16 | Shanghai United Imaging Healthcare Co., Ltd. | Methods and devices for data transmission |
CN116386276A (en) * | 2023-06-06 | 2023-07-04 | 江西七叶莲科技有限公司 | Institution and home multimode safety monitoring system and method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101341692A (en) * | 2005-12-22 | 2009-01-07 | 艾利森电话股份有限公司 | Admission control using backup link based on access network in Ethernet |
US20140355426A1 (en) * | 2009-08-14 | 2014-12-04 | Hitachi, Ltd. | Transport control server, transport control system, and backup path setting method |
CN107332683A (en) * | 2016-04-29 | 2017-11-07 | 中国移动通信集团内蒙古有限公司 | A kind of link switch-over method and system |
CN107465609A (en) * | 2017-07-31 | 2017-12-12 | 深圳市盛路物联通讯技术有限公司 | A kind of terminal route selection method and internet-of-things terminal based on Internet of Things |
CN108156074A (en) * | 2016-12-02 | 2018-06-12 | 华为技术有限公司 | Pretection switch method, the network equipment and system |
CN110661702A (en) * | 2018-06-28 | 2020-01-07 | 中兴通讯股份有限公司 | Link backup method and device and computer readable storage medium |
-
2020
- 2020-01-16 CN CN202010048317.8A patent/CN111193664A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101341692A (en) * | 2005-12-22 | 2009-01-07 | 艾利森电话股份有限公司 | Admission control using backup link based on access network in Ethernet |
US20140355426A1 (en) * | 2009-08-14 | 2014-12-04 | Hitachi, Ltd. | Transport control server, transport control system, and backup path setting method |
CN107332683A (en) * | 2016-04-29 | 2017-11-07 | 中国移动通信集团内蒙古有限公司 | A kind of link switch-over method and system |
CN108156074A (en) * | 2016-12-02 | 2018-06-12 | 华为技术有限公司 | Pretection switch method, the network equipment and system |
CN107465609A (en) * | 2017-07-31 | 2017-12-12 | 深圳市盛路物联通讯技术有限公司 | A kind of terminal route selection method and internet-of-things terminal based on Internet of Things |
CN110661702A (en) * | 2018-06-28 | 2020-01-07 | 中兴通讯股份有限公司 | Link backup method and device and computer readable storage medium |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112187533A (en) * | 2020-09-18 | 2021-01-05 | 北京浪潮数据技术有限公司 | Virtual network equipment defense method, device, electronic equipment and medium |
CN112543230A (en) * | 2020-12-04 | 2021-03-23 | 深圳市捷顺科技实业股份有限公司 | Method, device, equipment and medium for communication between controller host and cloud platform |
CN112907232A (en) * | 2021-04-16 | 2021-06-04 | 广东电网有限责任公司清远供电局 | Method, device, equipment and storage medium for guaranteeing reliability of end-to-end transmission of power grid service |
CN113133038A (en) * | 2021-04-16 | 2021-07-16 | 广东电网有限责任公司清远供电局 | Power Internet of things link backup method, device, equipment and storage medium |
CN113133038B (en) * | 2021-04-16 | 2023-01-24 | 广东电网有限责任公司清远供电局 | Power Internet of things link backup method, device, equipment and storage medium |
WO2023016492A1 (en) * | 2021-08-10 | 2023-02-16 | Shanghai United Imaging Healthcare Co., Ltd. | Methods and devices for data transmission |
CN116386276A (en) * | 2023-06-06 | 2023-07-04 | 江西七叶莲科技有限公司 | Institution and home multimode safety monitoring system and method |
CN116386276B (en) * | 2023-06-06 | 2023-09-05 | 江西七叶莲科技有限公司 | Institution and home multimode safety monitoring system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111193664A (en) | Link backup method and device for computer network | |
CN101426306B (en) | A disaster tolerance switching method, system and apparatus | |
CN110740072B (en) | Fault detection method, device and related equipment | |
US20160283307A1 (en) | Monitoring system, monitoring device, and test device | |
CN101296135A (en) | Fault information processing method and device | |
CN108804260B (en) | SRIO system switching method and device | |
CN107995066A (en) | A kind of method and apparatus of automatic test network interface card | |
CN111224807B (en) | Distributed log processing method, device, equipment and computer storage medium | |
CN111679925B (en) | Database fault processing method, device, computing equipment and storage medium | |
CN107241216A (en) | Maintain the method and device of the stable transmission of critical data | |
CN101854263B (en) | Method, system and management server for analysis processing of network topology | |
CN105210043A (en) | Information processing device | |
CN111010706B (en) | Abnormality recovery method and device | |
CN102325171B (en) | Data storage method in monitoring system and system | |
CN111835641B (en) | Fault detection method, server and acquisition equipment | |
CN110224872B (en) | Communication method, device and storage medium | |
CN116015425A (en) | Optical module control method and device, storage medium and electronic device | |
CN115574853A (en) | Method, system, equipment and medium for judging sensor abnormity | |
JP7287157B2 (en) | Communication device, failure notification system, failure notification method and failure notification program | |
US20170132055A1 (en) | Determining Physical Layer Error Signatures of a Communications Link | |
CN108650101B (en) | Data transmission method and equipment | |
KR101918274B1 (en) | Method for reducing losses and recovering of underwater sensor data | |
CN116669084B (en) | Fault restoration method, device, equipment and storage medium based on cellular network | |
JP2007267099A (en) | Method and device for managing base station | |
CN112788265A (en) | Video data storage method and device, image acquisition equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200522 |
|
RJ01 | Rejection of invention patent application after publication |