CN110351190A - Route control method, device and computer equipment - Google Patents

Route control method, device and computer equipment Download PDF

Info

Publication number
CN110351190A
CN110351190A CN201910521785.XA CN201910521785A CN110351190A CN 110351190 A CN110351190 A CN 110351190A CN 201910521785 A CN201910521785 A CN 201910521785A CN 110351190 A CN110351190 A CN 110351190A
Authority
CN
China
Prior art keywords
routing
change
information table
instruction
route information
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
CN201910521785.XA
Other languages
Chinese (zh)
Other versions
CN110351190B (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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910521785.XA priority Critical patent/CN110351190B/en
Publication of CN110351190A publication Critical patent/CN110351190A/en
Application granted granted Critical
Publication of CN110351190B publication Critical patent/CN110351190B/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/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables

Abstract

The invention discloses a kind of route control methods, this method comprises: receiving the routing change request that user sends;Obtain the routing change information in the routing change request;The route information table in redis unit is subjected to adaptability change according to the routing change information, wherein in the storage resource for the system cache that the redis unit is set to the gateway server;Receive business datum transfer-request;The route information table after change is obtained according to preset route information table calling rule, and is transferred according to the route information table after the change to the business datum.The present invention also provides a kind of route control device, computer equipment and computer readable storage mediums.The process that route control method, device, computer equipment and computer readable storage medium provided by the invention need to restart server when can be avoided more new routing information ensure that the lasting progress of business.

Description

Route control method, device and computer equipment
Technical field
The present invention relates to route technology field more particularly to a kind of route control method, device, computer equipment and calculating Machine readable storage medium storing program for executing.
Background technique
In the prior art, service server pays much attention to the safety of data while the service of offer, therefore, Usually before business datum is sent to service server, service server is transferred to by gateway server.Gateway server Configured with routing iinformation, routing iinformation be used to for the different business datums received being forwarded to different service server or Different port and path under service server.In general different business datums corresponds to different service server or not Same port and path, even if section may also can be forwarded to different business services to same business datum in different times Device carries out business data processing.Therefore, it is necessary to frequently change the routing iinformation of gateway server.Currently, routing iinformation is generally all It is to be written to as configuration information in the gateway server system file, change routing iinformation is then needed new routing iinformation It reconfigures in the system file of the gateway server, restarts the gateway server then to complete configuration process.Cause This, the update of routing iinformation influences whether the smooth progress of business.
Summary of the invention
In view of this, the present invention proposes a kind of user's route control method, device, computer equipment and computer-readable deposits Storage media can obtain the routing change letter in the routing change request after receiving the routing change request that user sends It ceases, redis in the storage resource for the system cache that then will be set to the gateway server according to the routing change information Route information table in unit carries out adaptability change;Then according to preset routing after receiving business datum transfer-request Information table calling rule obtains the route information table after the change in redis unit, and according to the routing iinformation after the change Table transfers to the business datum.It needs to carry out server when in the above manner, can be avoided more new routing information The process restarted ensure that the lasting progress of business.
Firstly, to achieve the above object, the present invention provides a kind of route control method, this method is applied to gateway service Device, which comprises
Receive the routing change request that user sends;Obtain the routing change information in the routing change request;According to Route information table in redis unit is carried out adaptability change by the routing change information, wherein the redis unit is set It is placed in the storage resource of the system cache of the gateway server;Receive business datum transfer-request;According to preset routing Information table calling rule obtains the route information table after change, and according to the route information table after the change to the business number According to transferring.
Optionally, the routing change information includes routing change instruction and routing change entry;Wherein, the routing variable More instruction includes: that at least one of instruction, the newly-increased instruction of routing and routing replacement instruction are deleted in routing;The routing change item Mesh includes: change routing label, change routing IP and change routed port.
Optionally, described " route information table in redis unit to be carried out by adaptability change according to the routing change information More " the step of includes: after the routing change in the acquisition routing change information instructs, when routing change instruction is routing It, then will be in the route information table in the redis unit according to the change number of the routing change item now when deleting instruction The routing iinformation of reference numeral finds out and executes deletion;When routing change instruction instruction newly-increased for routing, then will The change routing label of the routing change item now, change routing IP and change routed port are directly added to the redis In route information table in unit;When routing change instruction is routes replacement instruction, then according to the routing change item Now change number finds out the routing iinformation of reference numeral in the route information table in the redis unit, then Replace with the change routing label of the routing change item now, change routing IP and change routed port replacement.
Optionally, the route information table calling rule include: after receiving business datum transfer-request call described in When default route information table in the configuration information of the background system of gateway server, then switchs to execute and call the redis mono- Then route information table in member transfers to the business datum according to the route information table.
In addition, to achieve the above object, the present invention also provides a kind of route control device, described device includes:
Receiving module, for receiving the routing change request of user's transmission;Module is obtained, for obtaining the routing Routing change information in change request;Change module, for according to the routing change information by the routing in redis unit Information table carries out adaptability change, wherein the redis unit is set to the storage money of the system cache of the gateway server In source;Receiving module is also used to receive business datum transfer-request;Interconnecting module, for according to preset route information table tune Route information table after being changed with Rule, and the business datum is turned according to the route information table after the change It connects.
Optionally, the routing change information includes routing change instruction and routing change entry;Wherein, the routing variable More instruction includes: that at least one of instruction, the newly-increased instruction of routing and routing replacement instruction are deleted in routing;The routing change item Mesh includes: change routing label, change routing IP and change routed port.
Optionally, the change module is also used to: after obtaining the routing change instruction in the routing change information, working as institute Stating routing change and instructing is then to be numbered according to the change of the routing change item now by the redis when routing to delete instruction The routing iinformation of reference numeral finds out and executes deletion in route information table in unit;When routing change instruction is When routing increases instruction newly, then the change routing label by the routing change item now, change route IP and change routed port It is directly added in the route information table in the redis unit;When routing change instruction is routes replacement instruction, then It is numbered according to the change of the routing change item now by the routing of reference numeral in the route information table in the redis unit Information searching comes out, and then replaces with the change routing label of the routing change item now, change routing IP and change routing Port replacement.
Optionally, the route information table calling rule includes: to need to be implemented after receiving business datum transfer-request When calling the route information table in the configuration information of the background system of the gateway server, then switch to execute described in calling Then route information table in redis unit transfers to the business datum according to the route information table.
Further, the present invention also proposes a kind of computer equipment, and the computer equipment includes memory, processor, The computer program that can be run on the processor is stored on the memory, the computer program is by the processor It realizes when execution such as the step of above-mentioned route control method.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with computer program, and the computer program can be executed by least one processor so that it is described extremely A few processor is executed such as the step of above-mentioned route control method.
Compared to the prior art, route control method proposed by the invention, device, computer equipment and computer-readable Storage medium can obtain the routing change in the routing change request after receiving the routing change request that user sends Information, in the storage resource for the system cache that then will be set to the gateway server according to the routing change information Route information table in redis unit carries out adaptability change;Then according to default after receiving business datum transfer-request Route information table calling rule obtain the route information table after the change in redis unit, and according to the road after the change It is transferred by information table to the business datum.In the above manner, needing when can be avoided more new routing information to service The process that device is restarted ensure that the lasting progress of business.
Detailed description of the invention
Fig. 1 is the schematic diagram of the optional hardware structure of computer equipment one of the present invention;
Fig. 2 is the program module schematic diagram of one embodiment of route control device of the present invention;
Fig. 3 is the flow diagram of one embodiment of route control method of the present invention.
Appended drawing reference:
Computer equipment 1
Memory 11
Processor 12
Network interface 13
Route control device 200
Receiving module 201
Obtain module 202
Change module 203
Conversion module 204
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
As shown in fig.1, being the schematic diagram of the optional hardware structure of computer equipment 1 one of the present invention.
In the present embodiment, the computer equipment 1 may include, but be not limited only to, and company can be in communication with each other by system bus Connect memory 11, processor 12, network interface 13.
The computer equipment 1 connects network (Fig. 1 is not marked) by network interface 13, arrives other ends by network connection End equipment such as mobile terminal (Mobile Terminal), mobile phone (Mobile Telephone), user equipment (User Equipment, UE), mobile phone (handset) and portable equipment (portable equipment), the end PC and business datum clothes Business device etc..The network can be intranet (Intranet), internet (Internet), global system for mobile communications (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), 4G network, 5G network, bluetooth (Bluetooth), Wi-Fi, speech path network Deng wirelessly or non-wirelessly network.
It should be pointed out that Fig. 1 illustrates only the computer equipment 1 with component 11-13, it should be understood that simultaneously All components shown realistic are not applied, the implementation that can be substituted is more or less component.
Wherein, the memory 11 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), it is static with Machine accesses memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable Read memory (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 11 can be the meter Calculate the internal storage unit of machine equipment 1, such as the hard disk or memory of the computer equipment 1.In further embodiments, described to deposit Reservoir 11 is also possible to the External memory equipment of the computer equipment 1, such as the plug-in type that the computer equipment 1 is equipped with is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, the memory 11 can also both include the internal storage unit of the computer equipment 1 or wrap Include its External memory equipment.In the present embodiment, the memory 11 is installed on the behaviour of the computer equipment 1 commonly used in storage Make system and types of applications software, such as the program code of route control device 200 etc..In addition, the memory 11 can be with For temporarily storing the Various types of data that has exported or will export.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is commonly used in the control meter The overall operation of machine equipment 1 is calculated, such as executes data interaction or the relevant control of communication and processing etc..In the present embodiment, institute It states processor 12 and is used to run the program code stored in the memory 11 or processing data, such as run the routing Control device 200 etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in The computer equipment 1 and other terminal devices such as mobile terminal, mobile phone, user equipment, mobile phone and portable equipment, PC Communication connection is established between end and business datum server etc..
In the present embodiment, when installing in the computer equipment 1 and run route control device 200, when the routing When control device 200 is run, enough connects and obtained in the routing change request after receiving the routing change request that user sends Routing change information, the storage of the system cache of the gateway server then will be set to according to the routing change information Route information table in resource in redis unit carries out adaptability change;Then the root after receiving business datum transfer-request Route information table after obtaining the change in redis unit according to preset route information table calling rule, and according to the change Route information table afterwards transfers to the business datum.In the above manner, needs when can be avoided more new routing information To the process that server is restarted, the lasting progress of business ensure that.
So far, oneself is through describing the application environment of each embodiment of the present invention and the hardware configuration and function of relevant device in detail Energy.In the following, above-mentioned application environment and relevant device will be based on, each embodiment of the invention is proposed.
Firstly, the present invention proposes a kind of route control device 200.
As shown in fig.2, being the Program modual graph of 200 1 embodiment of route control device of the present invention.
In the present embodiment, the route control device 200 includes a series of computer journey being stored on memory 11 The route test function of various embodiments of the present invention may be implemented when the computer program instructions are executed by processor 12 in sequence instruction Energy.In some embodiments, the specific operation realized based on the computer program instructions each section, route control device 200 can be divided into one or more modules.For example, the route control device 200, which can be divided into, to be connect in Fig. 2 It receives module 201, obtain module 202, change module 203 and conversion module 204.Wherein:
The receiving module 201, for receiving the routing change request of user's transmission.
The acquisition module 202, for obtaining the routing change information in the routing change request.
In the present embodiment, business datum is sent to before service server, and a gateway service is often arranged in enterprise Device is transferred, and gateway server is stored with route information table, and the route information table includes routing iinformation, the routing iinformation The IP address of the first service server of database of first business datum is stored including the first business datum to be linked into With data port numbers.That is, the routing iinformation is assorted for describing pass through the different business datums received Port and path are forwarded, for example, service server M is stored with about type-A business for type-A business datum Database, then, the gateway server needs the type-A business datum received being forwarded to service server M.And business The access interface of the type-A service database stored on server M is port 88, and the IP address of service server M is 106.10.1.10, therefore, in route information table, then the routing iinformation of corresponding A type service are as follows: 106.10.1.10:88.By In the change of business event or the change of business scale, it will usually so that the quantity or business of corresponding service server The port (i.e. service database position) of server storage service database changes, therefore, the route information table In routing iinformation also can corresponding variation frequent occurrence.
Specifically, when user needs to increase certain service servers in service server cluster, reduces, migrates When, then need adaptively to carry out gateway server the update of routing iinformation.Therefore, the receiving module 201 receives user Routing iinformation change request, then the module 202 that obtains obtains routing change letter in routing iinformation change request Breath, wherein the routing change information includes routing change instruction and routing change entry;Wherein, the routing change instruction It include: that at least one of instruction, the newly-increased instruction of routing and routing replacement instruction are deleted in routing;The routing change entry packet It includes: change routing label, change routing IP and change routed port.
The change module 203, for being carried out the route information table in redis unit according to the routing change information Adaptability change, wherein in the storage resource for the system cache that the redis unit is set to the gateway server.
It in the prior art, is written to routing iinformation in the system configuration information on the backstage of gateway server.So Afterwards after receiving the transfer-request of business datum, the gateway server then first calls routing letter from system configuration information Table is ceased, business datum switching is then carried out according to the route information table.New routing iinformation is being reconfigured into the system When system configuration information, need to carry out Server Restart, the system configuration information after restarting can just come into force.In the present embodiment, it is A redis will be arranged in the duration of guarantee business, the route control device 200 in advance in the memory of the gateway server Unit stores route information table, and the redis unit is a kind of storage system for supporting plurality of data structures, can be used for caching, The scenes such as event publication or subscription, high-speed queue.In the present embodiment, the route control system is in advance in the gateway service Certain storage resource is preset in the memory of device as redis unit, for example, presetting 50M storage money in internal storage location Source is as redis unit.Certainly, the route control device 200 needs pre- change route information table calling rule, the routing Information table calling rule includes: that the backstage for calling the gateway server is needed to be implemented after receiving business datum transfer-request When route information table in the configuration information of system, then switch to execute the route information table called in the redis unit, then It is transferred according to the route information table to the business datum.
In the present embodiment, the change module 203 is after obtaining the routing change instruction in the routing change information, It include: when routing change instruction deletes instruction for routing to the process that the route information table in redis unit changes When, then it is numbered according to the change of the routing change item now by reference numeral in the route information table in the redis unit Routing iinformation find out and execute deletion;When routing change instruction instruction newly-increased for routing, then by the routing The change routing label of item now is changed, change routing IP and change routed port are directly added in the redis unit In route information table;When routing change instruction is routes replacement instruction, then the change according to the routing change item now More number finds out the routing iinformation of reference numeral in the route information table in the redis unit, then replaces with institute State the change routing label of routing change item now, change routing IP and change routed port replacement.
In the present embodiment, when routing iinformation change request includes that instruction is deleted in routing, then it is corresponding, it is described Routing change item now, only exists change routing label, and change routing IP and change routed port in addition is sky;Therefore, institute It states route control system and the routing iinformation for corresponding to the change routing label in the redis unit is then subjected to delete operation. When in routing iinformation change request including the newly-increased instruction of routing or replacement instruction, then the route control system is then It can be according to the newly-increased instruction of the routing or replacement instruction adaptively by change routing IP and change in the routing change entry More routed port is newly-increased or is substituted into the change routing label that the routing change entry is corresponded in the redis unit Under routing iinformation in.For example, in route information table the business datum of corresponding A type service routing iinformation are as follows: IP address 106.10.1.10 port 88;After service database of the user to type-A business migrates, new routing iinformation is IP Address 106.10.1.20, port 50;So, include such as in the routing change request that the user sends: " routing replacement refers to It enables: number type-A business, IP address 106.10.1.20, port 50 ".
Therefore, described after the routing change information for obtaining module 202 in the acquisition routing change request Change module 203 then according to the routing change information adaptively find out by route information table corresponding in redis unit into Row adaptability is changed to facilitate subsequent calling.
The receiving module 201, is also used to receive business datum transfer-request.
The interconnecting module 204, for obtaining the routing iinformation after change according to preset route information table calling rule Table, and transferred according to the route information table after the change to the business datum.
Specifically, mono- to redis according to the routing change information in routing iinformation change request when the change module 203 After route information table in member carries out table more, then after the receiving module 201 receives business datum transfer-request, The interconnecting module 204 then obtains the route information table after change according to preset route information table calling rule, and according to institute Route information table after stating change transfers to the business datum.
It will be recalled from above that the computer equipment 1 can obtain institute after receiving the routing change request that user sends The routing change information in routing change request is stated, the gateway server then will be set to according to the routing change information System cache storage resource in route information table in redis unit carry out adaptability change;Then business number is being received According to the routing iinformation after the change obtained after transfer-request according to preset route information table calling rule in redis unit Table, and transferred according to the route information table after the change to the business datum.In the above manner, can be avoided more The process restarted to server is needed when new routing information, ensure that the lasting progress of business.
In addition, the present invention also proposes a kind of route control method, the method is applied to computer equipment.
As shown in fig.3, being the flow diagram of one embodiment of route control method of the present invention.In the present embodiment, root According to different demands, the execution sequence of the step in flow chart shown in Fig. 3 be can change, and certain steps can be omitted.
Step S500 receives the routing change request that user sends, obtains the routing change in the routing change request Information.
In the present embodiment, business datum is sent to before service server, and a gateway service is often arranged in enterprise Device is transferred, and gateway server is stored with route information table, and the route information table includes routing iinformation, the routing iinformation The IP address of the first service server of database of first business datum is stored including the first business datum to be linked into With data port numbers.That is, the routing iinformation is assorted for describing pass through the different business datums received Port and path are forwarded, for example, service server M is stored with about type-A business for type-A business datum Database, then, the gateway server needs the type-A business datum received being forwarded to service server M.And business The access interface of the type-A service database stored on server M is port 88, and the IP address of service server M is 106.10.1.10, therefore, in route information table, then the routing iinformation of corresponding A type service are as follows: 106.10.1.10:88.By In the change of business event or the change of business scale, it will usually so that the quantity or business of corresponding service server The port (i.e. service database position) of server storage service database changes, therefore, the route information table In routing iinformation also can corresponding variation frequent occurrence.
Specifically, when user needs to increase certain service servers in service server cluster, reduces, migrates When, then need adaptively to carry out gateway server the update of routing iinformation.Therefore, the computer equipment receives user's Routing iinformation change request, then the computer equipment obtains the routing change information in the routing iinformation change request, Wherein, the routing change information includes routing change instruction and routing change entry;Wherein, the routing change instruction packet Include: at least one of instruction, the newly-increased instruction of routing and routing replacement instruction are deleted in routing;The routing change entry includes: Change routing label, change routing IP and change routed port.
Route information table in redis unit is carried out adaptability change according to the routing change information by step S502, Wherein, in the storage resource for the system cache that the redis unit is set to the gateway server.
It in the prior art, is written to routing iinformation in the system configuration information on the backstage of gateway server.So Afterwards after receiving the transfer-request of business datum, the gateway server then first calls routing letter from system configuration information Table is ceased, business datum switching is then carried out according to the route information table.New routing iinformation is being reconfigured into the system When system configuration information, need to carry out Server Restart, the system configuration information after restarting can just come into force.In the present embodiment, it is A redis unit will be arranged in the duration of guarantee business, the computer equipment in advance in the memory of the gateway server Route information table is stored, the redis unit is a kind of storage system for supporting plurality of data structures, can be used for caching, event The scenes such as publication or subscription, high-speed queue.In the present embodiment, the route control system is in advance in the gateway server Certain storage resource is preset in memory as redis unit, for example, presetting 50M storage resource work in internal storage location For redis unit.Certainly, the computer equipment needs pre- change route information table calling rule, the route information table tune It include: to need to be implemented that the background system of the gateway server is called to match after receiving business datum transfer-request with rule When route information table in confidence breath, then switch to execute the route information table called in the redis unit, then according to Route information table transfers to the business datum.
In the present embodiment, the computer equipment is after obtaining the routing change instruction in the routing change information, It include: when routing change instruction deletes instruction for routing to the process that the route information table in redis unit changes When, then it is numbered according to the change of the routing change item now by reference numeral in the route information table in the redis unit Routing iinformation find out and execute deletion;When routing change instruction instruction newly-increased for routing, then by the routing The change routing label of item now is changed, change routing IP and change routed port are directly added in the redis unit In route information table;When routing change instruction is routes replacement instruction, then the change according to the routing change item now More number finds out the routing iinformation of reference numeral in the route information table in the redis unit, then replaces with institute State the change routing label of routing change item now, change routing IP and change routed port replacement.
In the present embodiment, when routing iinformation change request includes that instruction is deleted in routing, then it is corresponding, it is described Routing change item now, only exists change routing label, and change routing IP and change routed port in addition is sky;Therefore, institute It states route control system and the routing iinformation for corresponding to the change routing label in the redis unit is then subjected to delete operation. When in routing iinformation change request including the newly-increased instruction of routing or replacement instruction, then the route control system is then It can be according to the newly-increased instruction of the routing or replacement instruction adaptively by change routing IP and change in the routing change entry More routed port is newly-increased or is substituted into the change routing label that the routing change entry is corresponded in the redis unit Under routing iinformation in.For example, in route information table the business datum of corresponding A type service routing iinformation are as follows: IP address 106.10.1.10 port 88;After service database of the user to type-A business migrates, new routing iinformation is IP Address 106.10.1.20, port 50;So, include such as in the routing change request that the user sends: " routing replacement refers to It enables: number type-A business, IP address 106.10.1.20, port 50 ".
Therefore, when the computer equipment is after obtaining the routing change information in routing change request, then into One step is adaptively found out according to the routing change information route information table corresponding in redis unit carrying out adaptability change More to facilitate subsequent calling.
Step S504 receives business datum transfer-request, after obtaining change according to preset route information table calling rule Route information table, and transferred according to the route information table after the change to the business datum.
Specifically, mono- to redis according to the routing change information in routing iinformation change request when the computer equipment After route information table in member carries out table more, then after the computer equipment receives business datum transfer-request, The computer equipment then obtains the route information table after change according to preset route information table calling rule, and according to described Route information table after change transfers to the business datum.
The route control method that the present embodiment is proposed can obtain after receiving the routing change request that user sends Routing change information in the routing change request, then will be set to the gateway service according to the routing change information Route information table in the storage resource of the system cache of device in redis unit carries out adaptability change;Then in the business of reception Routing iinformation after obtaining the change in redis unit after data switch request according to preset route information table calling rule Table, and transferred according to the route information table after the change to the business datum.In the above manner, can be avoided more The process restarted to server is needed when new routing information, ensure that the lasting progress of business.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of route control method is applied to gateway server, which is characterized in that the method includes the steps:
Receive the routing change request that user sends;
Obtain the routing change information in the routing change request;
The route information table in redis unit is subjected to adaptability change according to the routing change information, wherein described Redis unit is set in the storage resource of the system cache of the gateway server;
Receive business datum transfer-request;
The route information table after change is obtained according to preset route information table calling rule, and according to the routing after the change Information table transfers to the business datum.
2. route control method as described in claim 1, which is characterized in that the routing change information includes that routing change refers to It enables and routing change entry;Wherein, the routing change instruction includes: that routing deletion instruction, the newly-increased instruction of routing and routing are replaced Change at least one of instruction;The routing change entry includes: change routing label, change routing IP and change routing end Mouthful.
3. route control method as claimed in claim 2, which is characterized in that described " to be incited somebody to action according to the routing change information Route information table in redis unit carries out adaptability change " the step of include:
After obtaining the routing change instruction in the routing change information, when routing change instruction deletes instruction for routing When, then it is numbered according to the change of the routing change item now by reference numeral in the route information table in the redis unit Routing iinformation find out and execute deletion;
When routing change instruction instruction newly-increased for routing, then the change routing label by the routing change item now, Change routing IP and change routed port are directly added in the route information table in the redis unit;
When routing change instruction is routes replacement instruction, then numbered according to the change of the routing change item now by institute The routing iinformation for stating reference numeral in the route information table in redis unit is found out, and then replaces with the routing change The change routing label of item now, change routing IP and change routed port replacement.
4. route control method as described in claim 1, which is characterized in that the route information table calling rule include: Receive the default route letter in the configuration information for calling the background system of the gateway server after business datum transfer-request When ceasing table, then switch to execute the route information table called in the redis unit, then according to the route information table to described Business datum is transferred.
5. a kind of route control device, which is characterized in that described device includes:
Receiving module, for receiving the routing change request of user's transmission;
Module is obtained, for obtaining the routing change information in the routing change request;
Module is changed, for the route information table in redis unit to be carried out adaptability change according to the routing change information, Wherein, in the storage resource for the system cache that the redis unit is set to the gateway server;
Receiving module is also used to receive business datum transfer-request;
Interconnecting module, for obtaining the route information table after change according to preset route information table calling rule, and according to institute Route information table after stating change transfers to the business datum.
6. route control device as claimed in claim 5, which is characterized in that the routing change information includes that routing change refers to It enables and routing change entry;Wherein, the routing change instruction includes: that routing deletion instruction, the newly-increased instruction of routing and routing are replaced Change at least one of instruction;The routing change entry includes: change routing label, change routing IP and change routing end Mouthful.
7. route control device as claimed in claim 6, which is characterized in that the change module is also used to:
After obtaining the routing change instruction in the routing change information, when routing change instruction deletes instruction for routing When, then it is numbered according to the change of the routing change item now by reference numeral in the route information table in the redis unit Routing iinformation find out and execute deletion;
When routing change instruction instruction newly-increased for routing, then the change routing label by the routing change item now, Change routing IP and change routed port are directly added in the route information table in the redis unit;
When routing change instruction is routes replacement instruction, then numbered according to the change of the routing change item now by institute The routing iinformation for stating reference numeral in the route information table in redis unit is found out, and then replaces with the routing change The change routing label of item now, change routing IP and change routed port replacement.
8. route control device as claimed in claim 5, which is characterized in that the route information table calling rule include: Receive the road needed to be implemented after business datum transfer-request in the configuration information for calling the background system of the gateway server When by information table, then switch to execute the route information table called in the redis unit, then according to the route information table pair The business datum is transferred.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory, processor, on the memory It is stored with the computer program that can be run on the processor, is realized such as when the computer program is executed by the processor The step of claim 1-4 described in any item route control methods.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program can be executed by least one processor, so that at least one described processor executes such as claim The step of route control method described in any one of 1-4.
CN201910521785.XA 2019-06-17 2019-06-17 Routing control method and device and computer equipment Active CN110351190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910521785.XA CN110351190B (en) 2019-06-17 2019-06-17 Routing control method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910521785.XA CN110351190B (en) 2019-06-17 2019-06-17 Routing control method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN110351190A true CN110351190A (en) 2019-10-18
CN110351190B CN110351190B (en) 2022-10-28

Family

ID=68182212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910521785.XA Active CN110351190B (en) 2019-06-17 2019-06-17 Routing control method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN110351190B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881066A (en) * 2017-05-10 2018-11-23 腾讯科技(深圳)有限公司 A kind of method of route requests, access server and storage equipment
CN109039751A (en) * 2018-08-14 2018-12-18 深圳壹账通智能科技有限公司 Configure method, apparatus, computer equipment and the storage medium of routing
CN109617807A (en) * 2018-12-28 2019-04-12 深圳云天励飞技术有限公司 Route information update method, device, gateway and storage medium
CN109857409A (en) * 2019-01-16 2019-06-07 深圳壹账通智能科技有限公司 Data processing method, device and computer equipment based on micro services gateway

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881066A (en) * 2017-05-10 2018-11-23 腾讯科技(深圳)有限公司 A kind of method of route requests, access server and storage equipment
CN109039751A (en) * 2018-08-14 2018-12-18 深圳壹账通智能科技有限公司 Configure method, apparatus, computer equipment and the storage medium of routing
CN109617807A (en) * 2018-12-28 2019-04-12 深圳云天励飞技术有限公司 Route information update method, device, gateway and storage medium
CN109857409A (en) * 2019-01-16 2019-06-07 深圳壹账通智能科技有限公司 Data processing method, device and computer equipment based on micro services gateway

Also Published As

Publication number Publication date
CN110351190B (en) 2022-10-28

Similar Documents

Publication Publication Date Title
KR100932058B1 (en) Peer-to-Peer Handset Communication Systems and Methods
CN107682426B (en) Interface proxy method and application server
CN108681504A (en) Automated testing method, test server and computer readable storage medium
CN111881150A (en) Web application program offline data processing method and device
CN106657433B (en) Naming method and device for physical network card in multi-network snap ring environment
CN110677462A (en) Access processing method, system, device and storage medium for multi-block chain network
CN104834541A (en) Function module mounting method, mounting system and mounting system updating method
CN101969399A (en) Routing method and system for clients to call services
CN105530269A (en) Data exchange method, data exchange system and server
CN108243254A (en) Electronic device, the method and storage medium of the publication of application upgrade version
CN100334547C (en) Data organization in a smart card
CN104793998B (en) Terminal system resource management method and device
CN101616430B (en) Management method of gateway software version and home gateway
CN105577734A (en) Information backup method, device, server and terminal
CN110413292A (en) Light application installation method, mobile terminal and the storage medium of application program
US9854429B2 (en) Mobile terminal configuration method and system
CN111142885B (en) eSIM equipment management method, device, equipment and storage medium
CN110929195B (en) Data caching strategy determining method and device and electronic equipment
CN114745275A (en) Node updating method and device in cloud service environment and computer equipment
CN110351190A (en) Route control method, device and computer equipment
CN108093096B (en) Method for upgrading access link of server, server and storage medium
CN110489138A (en) A kind of application update method, device and storage medium
CN111770487B (en) Access Point Name (APN) information configuration method, equipment and medium
CN100442715C (en) Plan and task realizing method in device management
CN112685613B (en) Resource package query method and device and information processing system

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