CN109347743A - A kind of special line communication method, computer readable storage medium and terminal device - Google Patents

A kind of special line communication method, computer readable storage medium and terminal device Download PDF

Info

Publication number
CN109347743A
CN109347743A CN201810868941.5A CN201810868941A CN109347743A CN 109347743 A CN109347743 A CN 109347743A CN 201810868941 A CN201810868941 A CN 201810868941A CN 109347743 A CN109347743 A CN 109347743A
Authority
CN
China
Prior art keywords
server
special line
group
message
sent
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
CN201810868941.5A
Other languages
Chinese (zh)
Other versions
CN109347743B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810868941.5A priority Critical patent/CN109347743B/en
Publication of CN109347743A publication Critical patent/CN109347743A/en
Application granted granted Critical
Publication of CN109347743B publication Critical patent/CN109347743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • 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
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of special line communication method, computer readable storage medium and terminal devices, this method comprises: controller sends the first configuration message to first group of server, first group of server of instruction accesses opposite end server by purpose address of the first IP address;Controller sends the second configuration message to second group of server, and second group of server of instruction accesses opposite end server by purpose address of the second IP address;Local routing receives the access message that first group of server is sent, and the access message that first group of server is sent is sent to opposite end server by primary special line;Local routing receives the access message that second group of server is sent, and the destination address in the access message of second group of server transmission is converted to the first IP address, and the access message that second group of server is sent is sent to opposite end server by spare special line.By for opposite end server unique address create a new address, the active and standby special line made simultaneously can be used.

Description

A kind of special line communication method, computer readable storage medium and terminal device
Technical field
The invention belongs to field of computer technology more particularly to a kind of special line communication methods, computer readable storage medium And terminal device.
Background technique
In fields such as bank, finance, military affairs, to use the transmission of user data reliably credible, locally applied access opposite end clothes Business device is usually to pass through network special line to realize connection.In general, for the High Availabitity for guaranteeing communication link, it will usually be arranged primary special Two special lines of line and spare special line are switched to spare special line when primary special line is abnormal.
But there are the following problems in the prior art, and first, primary special line and spare special line are typically only capable to using one Special line, it is not only higher to special line bandwidth requirement, the idle waste of another special line is also caused, the cost of system is increased;Second, Mutual switching between primary special line and spare special line needs to carry out the equipment of accessed end the configuration of relevant parameter, for example, When accessing the server of affiliate by special line, once primary special line breaks down, needs the support of affiliate and match Conjunction could be switched to spare special line by primary special line, and switching difficulty is larger, implement the timeliness that the time is longer, and dependence other side supports And efficiency of the practice, traffic affecting continuity.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of special line communication method, computer readable storage medium and terminals Equipment, to solve to switch by the wasting of resources brought by active and standby special line communication and active and standby special line in the prior art, difficulty is big to be asked Topic.
The first aspect of the embodiment of the present invention provides a kind of special line communication method, and this method is applied to a kind of communication system System, the communication system includes controller, and the controller is connected with two groups of servers, two groups of servers and local routing It is connected, the local routing is connected by primary special line and spare special line with opposite end server, this method comprises:
The controller sends the first configuration message to first group of server, indicates first group of server with the first IP address Opposite end server is accessed for purpose address, wherein first IP address is the IP address of opposite end server;
The controller sends the second configuration message to second group of server, indicates second group of server with the second IP address Opposite end server is accessed for purpose address;
The local routing receives the access message that first group of server is sent, according to the first IP in the routing table pre-seted The access message that first group of server is sent is sent to institute by primary special line by unique mapping relations of address and primary special line State opposite end server;
The local routing receives the access message that second group of server is sent, according to the 2nd IP in the routing table pre-seted Destination address in access message that second group of server is sent is converted to the by unique mapping relations of address and spare special line One IP address, and the access message that second group of server is sent is sent to by the opposite end server by spare special line.
The second aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer-readable instruction, and the computer-readable instruction realizes following steps when being executed by processor:
The first configuration message is sent to first group of server, indicates first group of server using the first IP address as purpose address Access opposite end server, wherein first IP address is the IP address of opposite end server;
The second configuration message is sent to second group of server, indicates second group of server using the second IP address as purpose address Opposite end server is accessed, so that local routing receives the access message that first group of server is sent, according to the routing pre-seted Unique mapping relations of first IP address and primary special line in table, the access message that first group of server is sent pass through primary special Line is sent to the opposite end server;Or local routing is made to receive the access message that second group of server is sent, according to default Unique mapping relations of second IP address and spare special line in the routing table set, will be in the access message of second group of server transmission Destination address be converted to the first IP address, and the access message that second group of server is sent is sent to by institute by spare special line State opposite end server.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer-readable instruction that can run on the processor, the processor executes the computer can Following steps are realized when reading instruction:
The first configuration message is sent to first group of server, indicates first group of server using the first IP address as purpose address Access opposite end server, wherein first IP address is the IP address of opposite end server;
The second configuration message is sent to second group of server, indicates second group of server using the second IP address as purpose address Opposite end server is accessed, so that local routing receives the access message that first group of server is sent, according to the routing pre-seted Unique mapping relations of first IP address and primary special line in table, the access message that first group of server is sent pass through primary special Line is sent to the opposite end server;Or local routing is made to receive the access message that second group of server is sent, according to default Unique mapping relations of second IP address and spare special line in the routing table set, will be in the access message of second group of server transmission Destination address be converted to the first IP address, and the access message that second group of server is sent is sent to by institute by spare special line State opposite end server.
The present invention provides a kind of special line communication method, computer readable storage medium and terminal device, controllers to pass through Configuration message is sent, so that one group of server accesses opposite end server by the first IP address, another group of server passes through second IP address accesses opposite end server, and unique mapping relations of the first IP address and primary special line are provided in local routing, with And second IP address and spare special line unique mapping relations;When local routing receives the visit that destination address is the first IP address When asking message, it is sent to opposite end server by accessing message between primary special line, is the when local routing receives destination address It is the first IP address by the second IP address conversion when the access message of two IP address, and message hair will be accessed by spare special line It send to opposite end server, to solve the problems, such as that active and standby special line cannot use simultaneously.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the configuration diagram for the communication system that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram for the special line communication method that the embodiment of the present invention one provides;
Fig. 3 is the flow diagram of special line communication method provided by Embodiment 2 of the present invention;
Fig. 4 is the schematic diagram for the special line communication device that the embodiment of the present invention three provides;
Fig. 5 is the schematic diagram for the special line communication terminal device that the embodiment of the present invention four provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one
The embodiment of the present invention one provides a kind of special line communication method, and this method is applied to a kind of communication system, in conjunction with Fig. 1, The communication system includes controller, and controller is connected with all local servers, and Servers-all is divided into two groups, and this two groups Server is connected with local routing, and the local routing is connected by primary special line and spare special line with opposite end server, alternatively, Local routing is connected with opposite end routing, specifically, which is not limited by the present invention, in conjunction with Fig. 2, this method comprises:
S101, controller send the first configuration message to first group of server, and first group of server of instruction is with the first IP Location is that purpose address accesses opposite end server.
Wherein, first IP address is the IP address of opposite end server.
After first group of server receives the first configuration message, when first group of server needs to access opposite end server, Access message is sent by purpose address of the first IP address.
S102, controller send the second configuration message to second group of server, and second group of server of instruction is with the 2nd IP Location is that purpose address accesses opposite end server.
After second group of server receives the second configuration message, when second group of server needs to access opposite end server, Access message is sent by purpose address of the second IP address.
S103, the local routing receives the access message that first group of server is sent, according in the routing table pre-seted Unique mapping relations of first IP address and primary special line send out the access message that first group of server is sent by primary special line It send to the opposite end server.
Optionally, in the routing table of local routing maintenance, the first IP address of setting is uniquely reflected with primary port of private line Relationship is penetrated, when the destination address of the access message received is the first IP address, which is sent by primary port of private line Message, since the destination address in access message is the first IP address, the first IP address is the address of opposite end server, to make It obtains opposite end server and is properly received the access message.If also leading to correspondingly, opposite end server receives access data from primary special line Cross primary special line returning response data.
S104, the local routing receives the access message that second group of server is sent, according in the routing table pre-seted Unique mapping relations of second IP address and spare special line, the destination address in access message that second group of server is sent turn It is changed to the first IP address, and the access message that second group of server is sent is sent to by the opposite end by spare special line and is serviced Device.
Optionally, in the routing table of local maintenance, unique mapping relations of the second IP address Yu spare special line are pre-seted, When the destination address for the access message that local routing receives is the second IP address, the second IP address uniquely maps spare special Line, since the second IP address is not the destination address of opposite end server, the second IP address conversion is first by local routing at this time IP address is forwarded to opposite end server for message is accessed by spare special line, if correspondingly, opposite end server connects from spare special line Access message is received, also sends response message from spare special line.
The embodiment of the invention provides a kind of special line communication method, controller is by sending configuration message, so that one group of clothes Device be engaged in by the first IP address access opposite end server, another group of server accesses opposite end server by the second IP address, The unique mapping relations and the second IP address and spare special line of the first IP address and primary special line are provided in local routing Unique mapping relations;When local routing receives the access message that destination address is the first IP address, by between primary special line Access message is sent to opposite end server, will when local routing receives the access message that destination address is the second IP address Second IP address conversion is the first IP address, and is sent to opposite end server for message is accessed by spare special line, to solve The problem of active and standby special line cannot use simultaneously.
Embodiment two
In conjunction with Fig. 3, the embodiment of the invention provides a kind of methods of special line communication, this method comprises:
S201, controller receive the primary special line that first group of server is sent and detect message, and according to the primary special line Message is detected, judges whether the spare special line breaks down.
Wherein, the primary special line detection message is disappearing for the primary special line fault-free or the primary special line failure Breath.
Specifically, first group of server includes at least two-server, if all services in first group of server The primary special line detection message that device is sent is the primary special line failure, then judges the primary special line failure, if described first The primary special line detection message that at least one server is sent in group server is the primary special line fault-free, then described in judgement Primary special line fault-free, the server that primary special line fault detection message is sent in first group of server is failed services Device.
S202, controller receive the spare special line that second group of server is sent and detect message, are examined according to the spare special line Message is surveyed, judges whether the spare special line breaks down.
Wherein, the spare special line detection message is disappearing for the spare special line fault-free or the spare special line failure Breath.
Specifically, second group of server includes at least two-server, if all services in second group of server The spare special line detection message that device is sent is the spare special line failure, then judges the spare special line failure, if described second The spare special line detection message that at least one server is sent in group server is the spare special line fault-free, then described in judgement Spare special line fault-free, the server that spare special line fault detection message is sent in second group of server is failed services Device.
For example, there are five servers, respectively server 1 to server 5 for controller connection, wherein controller will Server 1-3 is set as first group of server, sets second group of server for server 4-5.
Controller receives first group of server, i.e. the primary special line detection message and second group of service that server 1-3 is sent The spare special line that device, i.e. server 4-5 are sent detects message.If the primary special line that server 1 and server 2 are sent detects message For primary special line fault-free, the primary special line detection message that server 3 is sent is primary special line failure, then controller judges primary Special line fault-free, server 3 break down.
In another example the spare special line detection message that server 4-5 is sent is spare special line failure, then controller judges standby It is broken down with special line.
Further, controller by two ways obtain the primary special line that first group of server is sent detect message and/ Or the spare special line that second group of server is sent detects message, it is specific:
The controller sends broadcast message to first group of server and/or second group of server, and the broadcast disappears Breath is for requesting first group of server to detect primary special line and/or for requesting second group of server detection spare specially Line;
The controller receives the primary special line detection message and/or second group of server that first group of server is sent The spare special line sent detects message;Or,
The controller receive first group of server according to the primary special line that prefixed time interval is sent detect message and/or It receives second group of server and detects message according to the spare special line that the prefixed time interval is sent.
That is, controller can be broadcasted in domain by way of sending broadcast message, so that connected After first group of server and second group of server receive broadcast message, state-detection is carried out to used special line, and will inspection It surveys result and is reported to controller.Or first group of server and second group of server are according to prefixed time interval, active detecting institute The state of the special line used, and will test result and be reported to controller.
Further, any server A in first group of server and second group of server detects its used special line State, also include two methods, it may be assumed that
Server A sends heartbeat packet to the opposite end server, timing is carried out after sending, if reaching preset time threshold Value, server A do not receive the response message of opposite end server transmission, and server A sends special line detection to the controller and disappears Breath, the special line detection message include the message of special line failure used in the server A;Or,
Server A sends ping (Packet Internet Groper, the Internet packets exploration to the opposite end server Device) it wraps, the response that the opposite end server is sent, which is not received by, after the ping packet of the server A transmission preset number disappears Breath, server A send special line to the controller and detect message, and the special line detection message includes that the server A is used Special line failure message.
S203, if the controller judges primary special line and spare special line all fault-frees, and at least a server occurs Failure, then the controller, which thinks highly of all Non-Defected Services, is newly assigned as two groups of servers, and to the one group of clothes redistributed Business device sends the first configuration message, sends the second configuration message to the second group of server redistributed.
Optionally, when the Servers-all connected is divided into first group of server and second group of server for the first time by controller When, it can be grouped by the following method:
The controller obtains the performance parameter information of connected Servers-all;
The Servers-all is divided into described according to the performance parameter information of the Servers-all by the controller One group of server and second group of server;
Unique mapping relations of controller creation first group of server and the first IP address, and create second group of service Unique mapping relations of device and the second IP address.
The performance parameter of server includes but is not limited to the memory parameters of server, CPU (CentralProcessing Unit, central processing unit) parameter etc..Controller safeguards a server performance, and establishes server in the performance table Unique mapping relations of unique identification and server performance parameter, according to the principle of load balancing, by the server connected point For first group of server and second group of server.
Further, when controller receives the primary special line detection message and the inspection of spare special line that first group of server is sent After surveying message, if judging primary special line and spare special line all fault-frees, but at least one server fail therein, at this time Controller includes at least the principle of two-server according to every group of server of principle and guarantee of load balancing, to trouble-free Server re-starts grouping.
For example, first group of server includes server 1-3, and second group of server includes server 4-5, if first group The primary special line detection message that server 1-3 in server is sent is primary special line fault-free, and server 4 is sent spare It is spare special line failure that special line, which detects message, and the spare special line detection message that server 5 is sent is spare special line fault-free, at this time According to above-mentioned judgment principle, controller judges primary special line and the equal fault-free of spare special line, and server 1-3 and server 5 are without reason Barrier, server 4 breaks down, and controller being to there is no the server 1-3 of failure and server 5 to re-start grouping at this time, Optionally, server 1-2 is divided again according to the principle of load balancing according to the performance parameter of server 1-3 and server 5 With for first group of server, server 3 and server 5 are redistributed as second group of server.
Controller sends the first configuration message to server 1-2, so that server 1-2 accesses opposite end by primary special line Server sends the second configuration message to server 3 and 5, so that server 3 and 5 accesses opposite end service by spare special line Device both ensure that every group of server included at least two-server, the judgement of the system failure carried out convenient for controller, and reached The purpose of load balancing.
S204, if the controller judges primary special line fault-free, spare special line failure, then the controller to institute whether there is or not Failed server sends the first configuration message.
If controller judges primary special line fault-free, spare special line failure, at this point, being sent to all trouble-free servers First configuration message ensure that fault-free so that all trouble-free servers access opposite end server by primary special line The continuity of server service.
S205, if the controller judges primary special line failure, spare special line fault-free, then the controller to institute whether there is or not Failed server sends the second configuration message.
If controller judges primary special line failure, spare special line fault-free, at this point, being sent to all trouble-free servers Second configuration message ensure that fault-free so that all trouble-free servers access opposite end server by spare special line The continuity of server service.
According to step S203 and step S205, after controller judges special line failure or server failure, report is sent in time Alert message, the warning message include at least the equipment to break down and/or special line.
The embodiment of the invention provides a kind of special line communication method, controller is sent primary special by first group of server The spare special line detection message that line detects message and second group of server is sent, determines whether server and special line break down, And configuration is re-started according to different fault conditions, in conjunction with the principle of load balancing, it is not only able to server in guarantee system The continuity of business, moreover it is possible to the load balancing of server in guarantee system.
Embodiment three
Fig. 4 is a kind of special line communication schematic device provided in an embodiment of the present invention, and in conjunction with Fig. 4, which includes first Transmission unit 31;
First transmission unit 31, for sending the first configuration message to first group of server, indicate first group of server with First IP address is that purpose address accesses opposite end server, wherein first IP address is the IP address of opposite end server;
First transmission unit 31 is also used to send the second configuration message to second group of server, indicates second group of server Opposite end server is accessed by purpose address of the second IP address, so that local routing receives the access that first group of server is sent Message sends out first group of server according to unique mapping relations of the first IP address in the routing table pre-seted and primary special line The access message sent is sent to the opposite end server by primary special line;Or local routing is made to receive second group of server hair The access message sent, according to unique mapping relations of the second IP address in the routing table pre-seted and spare special line, by second group The destination address in access message that server is sent is converted to the first IP address, and by spare special line by second group of server The access message of transmission is sent to the opposite end server.
Further, first group of server includes at least two-server, and second group of server includes at least Two-server, the device further include: receiving unit 32 and judging unit 33;
Receiving unit 32 detects message, the primary special line inspection for receiving the primary special line that first group of server is sent Survey the message that message is the primary special line fault-free or the primary special line failure;
Receiving unit 32 is also used to receive the spare special line detection message that second group of server is sent, the spare special line inspection Survey the message that message is the spare special line fault-free or the spare special line failure;
Judging unit 33 judges whether the primary special line breaks down for detecting message according to the primary special line;
Judging unit 33 is also used to judge whether the spare special line occurs event according to the spare special line detection message Barrier.
The judging unit 33 is specifically used for: if the primary special line that the Servers-all in first group of server is sent Detection message is the primary special line failure, then the primary special line failure is judged, if at least one in first group of server The primary special line detection message that a server is sent is the primary special line fault-free, then judges the primary special line fault-free, The server that primary special line fault detection message is sent in first group of server is failed server.
The judging unit 33 is specifically used for: if the spare special line that the Servers-all in second group of server is sent Detection message is the spare special line failure, then the spare special line failure is judged, if at least one in second group of server The spare special line detection message that a server is sent is the spare special line fault-free, then judges the spare special line fault-free, The server that spare special line fault detection message is sent in second group of server is failed server.
Further, device further include: the second transmission unit 34;
Second transmission unit 34, for sending broadcast message, institute to first group of server and/or second group of server Broadcast message is stated for requesting first group of server to detect primary special line and/or for requesting second group of server to be examined Survey spare special line;
The receiving unit 32 is used for: being received the primary special line that first group of server is sent and is detected message and/or second The spare special line that group server is sent detects message;Or,
Receive second group of primary special line detection message and/or reception that first group of server is sent according to prefixed time interval Server detects message according to the spare special line that the prefixed time interval is sent.
Optionally, server A is any server in two groups of servers, and server A is to the opposite end server Heartbeat packet is sent, carries out timing after sending, if reaching preset time threshold, server A does not receive the transmission of opposite end server Response message, server A sends special line to the receiving unit 32 and detects message, and special line detection message includes the clothes The message for special line failure used in device A of being engaged in;Or,
Server A sends the Internet packets survey meter ping packet to the opposite end server, and the server A sends present count The response message that the opposite end server is sent is not received by after purpose ping packet, server A is sent out to the receiving unit 32 Special line is sent to detect message, the special line detection message includes the message of special line failure used in the server A.
Further, which further includes acquiring unit 35, allocation unit 36 and creating unit 37;
Acquiring unit 35 is used to obtain the performance parameter information of connected Servers-all;
The Servers-all is divided by allocation unit 36 for the performance parameter information according to the Servers-all First group of server and second group of server;
Creating unit 37 for creating unique mapping relations of first group of server and the first IP address, and creates second Unique mapping relations of group server and the second IP address.
Optionally, if judging unit 33 judges primary special line and spare special line all fault-frees, and an at least server hair Raw failure, then the allocation unit 36, which thinks highly of all Non-Defected Services, is newly assigned as two groups of servers, and to redistributing One group of server sends the first configuration message, sends the second configuration message to the second group of server redistributed;
If the judging unit 33 judges primary special line fault-free, spare special line failure, then first transmission unit 31 The first configuration message is sent to all Non-Defected Service devices;
If the judging unit 33 judges primary special line failure, spare special line fault-free, then first transmission unit 33 The second configuration message is sent to all Non-Defected Service devices.
The embodiment of the invention provides a kind of special line communication devices, by sending configuration message, so that one group of server Opposite end server is accessed by the first IP address, another group of server accesses opposite end server by the second IP address, in local Be provided in routing the first IP address and primary special line unique mapping relations and the second IP address and spare special line it is unique Mapping relations;When local routing receives the access message that destination address is the first IP address, by being accessed between primary special line Message is sent to opposite end server, when local routing receives the access message that destination address is the second IP address, by second IP address conversion is the first IP address, and is sent to opposite end server for message is accessed by spare special line, to solve master The problem of standby special line cannot use simultaneously.
Example IV
Fig. 5 is the schematic diagram for the special line communication terminal device that the embodiment of the present invention four provides.As shown in figure 5, the embodiment Special line communication terminal device 4 include: processor 40, memory 41 and be stored in the memory 41 and can be at the place The computer program 42 run on reason device 40, such as special line communication program.The processor 40 executes the computer program 42 Step in the above-mentioned each special line communication embodiment of the method for Shi Shixian, such as described in step 101 shown in Fig. 2 to 102 or Fig. 3 Step 201 to 205.Alternatively, the processor 40 is realized when executing the computer program 42 in above-mentioned each Installation practice The function of each module/unit, such as the function of module 31 to 32 shown in Fig. 4.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the special line communication terminal device 4 is described.
The special line communication terminal device 4 can be desktop PC, notebook, palm PC and cloud server etc. Calculate equipment.The special line communication terminal device may include, but be not limited only to, processor 40, memory 41.Those skilled in the art Member is appreciated that Fig. 4 is only the example of special line communication terminal device 4, does not constitute the limit to special line communication terminal device 4 It is fixed, it may include perhaps combining certain components or different components, such as described special than illustrating more or fewer components Line communication terminal device can also include input-output equipment, network access equipment, bus etc..
The processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 41 can be the internal storage unit of the special line communication terminal device 4, such as special line communication end The hard disk or memory of end equipment 4.The memory 41 is also possible to the External memory equipment of the special line communication terminal device 4, Such as the plug-in type hard disk being equipped on the special line communication terminal device 4, intelligent memory card (Smart Media Card, SMC), Secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 41 may be used also With the internal storage unit both including the special line communication terminal device 4 or including External memory equipment.The memory 41 is used Other programs and data needed for storing the computer program and the special line communication terminal device.The memory 41 It can be also used for temporarily storing the data that has exported or will export.
The embodiment of the present invention also provides a kind of computer readable storage medium, and the computer-readable recording medium storage has Computer program, the computer program realize the step of special line communication method described in any of the above-described embodiment when being executed by processor Suddenly.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the essence of corresponding technical solution is departed from the spirit and scope of the technical scheme of various embodiments of the present invention, it should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of special line communication method, which is characterized in that this method is applied to a kind of communication system, and the communication system includes control Device processed, the controller are connected with two groups of servers, and two groups of servers are connected with local routing, and the local routing passes through Primary special line and spare special line are connected with opposite end server, this method comprises:
The controller sends the first configuration message to first group of server, indicates first group of server using the first IP address as mesh Address access opposite end server, wherein first IP address be the opposite end server IP address;
The controller sends the second configuration message to second group of server, indicates second group of server using the second IP address as mesh Address access opposite end server;
The local routing receives the access message that first group of server is sent, according to the first IP address in the routing table pre-seted With unique mapping relations of primary special line, it is described right that the access message that first group of server is sent is sent to by primary special line Hold server;
The local routing receives the access message that second group of server is sent, according to the second IP address in the routing table pre-seted With unique mapping relations of spare special line, the destination address in the access message of second group of server transmission is converted into the first IP Address, and the access message that second group of server is sent is sent to by the opposite end server by spare special line.
2. special line communication method according to claim 1, which is characterized in that first group of server includes at least two Server, second group of server include at least two-server, this method further include:
The controller receives the primary special line that first group of server is sent and detects message, and the primary special line detection message is institute State the message of primary special line fault-free or the primary special line failure;
The controller receives the spare special line that second group of server is sent and detects message, and the spare special line detection message is institute State the message of spare special line fault-free or the spare special line failure;
The controller detects message according to the primary special line, judges whether the primary special line breaks down;
The controller detects message according to the spare special line, judges whether the spare special line breaks down.
3. special line communication method according to claim 2, which is characterized in that judge whether the primary special line breaks down Include:
If the primary special line detection message that the Servers-all in first group of server is sent is the primary special line failure, The primary special line failure is then judged, if the primary special line detection that at least one server is sent in first group of server disappears Breath is the primary special line fault-free, then judges the primary special line fault-free, is sent in first group of server primary special The server of line fault detection message is failed server.
4. special line communication method according to claim 2, which is characterized in that judge whether the spare special line breaks down Include:
If the spare special line detection message that the Servers-all in second group of server is sent is the spare special line failure, The spare special line failure is then judged, if the spare special line detection that at least one server is sent in second group of server disappears Breath is the spare special line fault-free, then judges the spare special line fault-free, is sent in second group of server spare special The server of line fault detection message is failed server.
5. according to the described in any item special line communication methods of claim 2-4, which is characterized in that this method further include:
The controller sends broadcast message to first group of server and/or second group of server, and the broadcast message is used Primary special line is detected in request first group of server and/or for requesting second group of server to detect spare special line;
The controller receives the primary special line detection message that first group of server is sent and/or second group of server is sent Spare special line detect message;Or,
The controller receives the primary special line detection message and/or reception that first group of server is sent according to prefixed time interval Second group of server detects message according to the spare special line that the prefixed time interval is sent.
6. according to the described in any item special line communication methods of claim 2-4, which is characterized in that server A is two groups of clothes Any server being engaged in device, this method further include:
Server A sends heartbeat packet to the opposite end server, carries out timing after sending, if reaching preset time threshold, clothes Business device A does not receive the response message of opposite end server transmission, and server A sends special line to the controller and detects message, institute State the message that special line detection message includes special line failure used in the server A;Or,
Server A sends the Internet packets survey meter ping packet to the opposite end server, and the server A sends preset number The response message that the opposite end server is sent is not received by after ping packet, server A sends special line inspection to the controller Message is surveyed, the special line detection message includes the message of special line failure used in the server A.
7. special line communication method according to claim 1, which is characterized in that this method further include:
The controller obtains the performance parameter information of connected Servers-all;
The Servers-all is divided into described first group according to the performance parameter information of the Servers-all by the controller Server and second group of server;
Unique mapping relations of the controller creation first group of server and the first IP address, and create second group of server and Unique mapping relations of second IP address.
8. according to the described in any item special line communication methods of claim 2-4, which is characterized in that this method further include:
If the controller judges primary special line and spare special line all fault-frees, and an at least server fail, then institute It states controller and thinks highly of all Non-Defected Services and be newly assigned as two groups of servers, and send the to the one group of server redistributed One configuration message sends the second configuration message to the second group of server redistributed;
If the controller judges primary special line fault-free, spare special line failure, then the controller is to all Non-Defected Services Device sends the first configuration message;
If the controller judges primary special line failure, spare special line fault-free, then the controller is to all Non-Defected Services Device sends the second configuration message.
9. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In by the controller in any one of such as claim 1 to 8 of realization the method when the computer program is executed by processor Performed step.
10. a kind of terminal device, which is characterized in that the terminal device includes memory, processor, is stored on the memory There is the computer program that can be run on the processor, the processor realizes lower step when executing the computer program:
The first configuration message is sent to first group of server, first group of server of instruction is accessed by purpose address of the first IP address Opposite end server, wherein first IP address is the IP address of opposite end server;
The second configuration message is sent to second group of server, second group of server of instruction is accessed by purpose address of the second IP address Opposite end server, so that local routing receives the access message that first group of server is sent, according in the routing table pre-seted Unique mapping relations of first IP address and primary special line send out the access message that first group of server is sent by primary special line It send to the opposite end server;Or local routing is made to receive the access message that second group of server is sent, according to what is pre-seted Unique mapping relations of second IP address and spare special line in routing table, the mesh in access message that second group of server is sent Address conversion be the first IP address, and by spare special line the access message that second group of server is sent is sent to it is described right Hold server.
CN201810868941.5A 2018-08-02 2018-08-02 Special line communication method, computer readable storage medium and terminal equipment Active CN109347743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810868941.5A CN109347743B (en) 2018-08-02 2018-08-02 Special line communication method, computer readable storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810868941.5A CN109347743B (en) 2018-08-02 2018-08-02 Special line communication method, computer readable storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN109347743A true CN109347743A (en) 2019-02-15
CN109347743B CN109347743B (en) 2022-04-12

Family

ID=65291535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810868941.5A Active CN109347743B (en) 2018-08-02 2018-08-02 Special line communication method, computer readable storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN109347743B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191067A (en) * 2019-05-24 2019-08-30 深圳前海微众银行股份有限公司 Private line network access control method, device, equipment and readable storage medium storing program for executing
CN111565133A (en) * 2020-04-24 2020-08-21 广州虎牙科技有限公司 Private line switching method and device, electronic equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020057079A (en) * 2000-12-30 2002-07-11 엘지전자 주식회사 Method for supporting general ip telephone system in nat based private network
CN102938732A (en) * 2012-11-08 2013-02-20 浙江宇视科技有限公司 Method and device for improving double-tunnel reliability
CN103944746A (en) * 2013-01-23 2014-07-23 杭州华三通信技术有限公司 Hot standby method and device
CN106330542A (en) * 2016-08-23 2017-01-11 哈尔滨海能达科技有限公司 Access method, control device, system and equipment for remote backup switch
CN106332212A (en) * 2016-08-23 2017-01-11 北京邮电大学 Data transmission method and data transmission device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020057079A (en) * 2000-12-30 2002-07-11 엘지전자 주식회사 Method for supporting general ip telephone system in nat based private network
CN102938732A (en) * 2012-11-08 2013-02-20 浙江宇视科技有限公司 Method and device for improving double-tunnel reliability
CN103944746A (en) * 2013-01-23 2014-07-23 杭州华三通信技术有限公司 Hot standby method and device
CN106330542A (en) * 2016-08-23 2017-01-11 哈尔滨海能达科技有限公司 Access method, control device, system and equipment for remote backup switch
CN106332212A (en) * 2016-08-23 2017-01-11 北京邮电大学 Data transmission method and data transmission device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191067A (en) * 2019-05-24 2019-08-30 深圳前海微众银行股份有限公司 Private line network access control method, device, equipment and readable storage medium storing program for executing
CN110191067B (en) * 2019-05-24 2023-04-18 深圳前海微众银行股份有限公司 Private line network access control method, device, equipment and readable storage medium
CN111565133A (en) * 2020-04-24 2020-08-21 广州虎牙科技有限公司 Private line switching method and device, electronic equipment and computer readable storage medium
CN111565133B (en) * 2020-04-24 2021-12-03 广州虎牙科技有限公司 Private line switching method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN109347743B (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN105024855B (en) Distributed type assemblies manage system and method
US8793351B2 (en) Automated configuration of new racks and other computing assets in a data center
CN108924272A (en) A kind of port resource distribution method and device
CN112015544A (en) Load balancing method, device and equipment of k8s cluster and storage medium
WO2019210580A1 (en) Access request processing method, apparatus, computer device, and storage medium
CN102891868A (en) Load balancing method and device for distributed system
CN106982244B (en) Method and device for realizing message mirroring of dynamic flow under cloud network environment
CN108282385B (en) Port test method and communication equipment
CN109921925B (en) Dial testing method and device
CN105554074A (en) NAS resource monitoring system and monitoring method based on RPC communication
US10425273B2 (en) Data processing system and data processing method
CN102437933A (en) Fault tolerance system and method of server
CN103036702B (en) A kind of N+1 backup method of cross-network segment and device
US9838475B2 (en) Connectivity analysis and a mass storage system capable of connectivity analysis
CN104301140A (en) Service request responding method, device and system
CN109347743A (en) A kind of special line communication method, computer readable storage medium and terminal device
CN108235800B (en) Network fault detection method, control center equipment and computer storage medium
CN108683561B (en) Site state detection method and device
CN113242299A (en) Disaster recovery system, method, computer device and medium for multiple data centers
CN103995901A (en) Method for determining data node failure
CN104702439A (en) Network node monitoring method and device
Smart The big picture
CN111245948A (en) DHT network connection method, electronic device, and medium
US10367711B2 (en) Protecting virtual computing instances from network failures
CN113296911B (en) Cluster calling method, cluster calling device, electronic 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
GR01 Patent grant
GR01 Patent grant