CN107809384A - The route distribution method of terminal device, device, electronic equipment, storage medium - Google Patents

The route distribution method of terminal device, device, electronic equipment, storage medium Download PDF

Info

Publication number
CN107809384A
CN107809384A CN201711058284.XA CN201711058284A CN107809384A CN 107809384 A CN107809384 A CN 107809384A CN 201711058284 A CN201711058284 A CN 201711058284A CN 107809384 A CN107809384 A CN 107809384A
Authority
CN
China
Prior art keywords
network segments
class network
assignment table
route assignment
routing server
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
CN201711058284.XA
Other languages
Chinese (zh)
Other versions
CN107809384B (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.)
Ctrip Travel Network Technology Shanghai Co Ltd
Original Assignee
Ctrip Travel Network Technology Shanghai 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 Ctrip Travel Network Technology Shanghai Co Ltd filed Critical Ctrip Travel Network Technology Shanghai Co Ltd
Priority to CN201711058284.XA priority Critical patent/CN107809384B/en
Publication of CN107809384A publication Critical patent/CN107809384A/en
Application granted granted Critical
Publication of CN107809384B publication Critical patent/CN107809384B/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/54Organization of routing tables
    • 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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Abstract

The present invention provides a kind of route distribution method of terminal device, device, electronic equipment, storage medium, and method includes:Step S110:The gateway of each C classes network segment is scanned, judges whether each gateway currently runs;Step S120:For the C class network segments of gateway operation, the C class network segments are scanned, obtain movable IP quantity and access IP quantity in the C class network segments;Step S130:Route assignment table is updated, C class network segments name, movable IP quantity, access IP quantity and flag bit are stored in route assignment table;Step S140:Each routing server is scanned, obtains the C class network segments that each routing server is currently accessed;Step S150:The IP quantity being currently accessed by each routing server of route assignment table renewal of renewal;Step S160:The IP quantity being currently accessed according to each routing server, flag bit in route assignment table is indicated that the C class network segments to be allocated are distributed into routing server.Method and device provided by the invention realizes that the dynamic routing of terminal device allocates management of.

Description

The route distribution method of terminal device, device, electronic equipment, storage medium
Technical field
The present invention relates to Computer Applied Technology field, more particularly to a kind of management method of terminal device, device, electronics Equipment, storage medium.
Background technology
Desktop terminal management refers to the personal computer terminal for being used for individual office and business operation inside enterprises and institutions; Reach tens thousand of in the quantity of large enterprise's desktop terminal equipment, to system requirements high concurrent, high availability, expansible and reliability Strong lightweight management server.
Commercial product in the market, the universal product, autgmentability is poor, and daily management is complicated;To up to ten thousand equipment High concurrent data-handling capacity is poor, and client protection is weaker, and validity is relatively low, can not carry out multi-site routing management, and Company can not be combined and have system progress data interaction analysis and route assignment by oneself.
The content of the invention
The defects of present invention is in order to overcome above-mentioned prior art to exist, there is provided a kind of route distribution method of terminal device, Device, electronic equipment, storage medium, to realize that the dynamic routing of terminal device allocates management of.
According to an aspect of the present invention, there is provided a kind of route distribution method of terminal device, including:Step S110:Sweep The gateway of each C classes network segment is retouched, judges whether each gateway currently runs;Step S120:For the C class network segments of gateway operation, scanning The C class network segments, obtain movable IP quantity and access IP quantity in the C class network segments;Step S130:Route assignment table is updated, it is described C class network segments name, movable IP quantity, access IP quantity and flag bit are stored in route assignment table, including:Step S131:Described In route assignment table, the mark for the C class network segments that gateway is not currently running and movable IP quantity and/or access IP quantity are 0 is set Position, the C classes network segment is deleted from the route assignment table with instruction;Step S132:In the route assignment table, for work Dynamic IP quantity and access IP quantity are not 0, and the C class network segments being not stored in the route assignment table, by the C class network segments Name, movable IP quantity, access IP quantity are inserted in the route assignment table, and set the flag bit of the C class network segments, to indicate the C The class network segment is to be allocated;Step S133:It is not 0 for movable IP quantity and access IP quantity in the route assignment table, and The C class network segments being stored in the route assignment table, update movable IP quantity and access the IP quantity of the C class network segments;Step S140:Each routing server is scanned, obtains the C class network segments that each routing server is currently accessed;Step S150:As described in renewal Route assignment table updates the IP quantity that each routing server is currently accessed;Step S160:It is currently accessed according to each routing server IP quantity, flag bit in the route assignment table is indicated that the C class network segments to be allocated are distributed into the routing server, and In the route assignment table, the flag bit of the allocated C class network segments is set, distributed the C class network segments with instruction so that point After matching somebody with somebody, the difference for the IP quantity being currently accessed in each routing server between any two routing servers is not more than 256.
Alternatively, the step S110 includes:The gateway of each C classes network segment of periodic scan, judge each gateway it is current whether Operation, wherein, before the gateway of each C classes network segment is scanned every time, the flag bit of each C classes network segment in the route assignment table refers to Show that those C class network segments have all distributed.
Alternatively, the step S150 includes:The one or more C classes network segments being currently accessed according to each routing server, The change of the access IP quantity or movable IP quantity of one or more C classes network segments is obtained by the route assignment table of renewal Value;Calculate the access IP quantity of one or more C classes network segments or the changing value sum of movable IP quantity;By the one or more The changing value sum of the access IP quantity of the C class network segments or movable IP quantity be added with the IP quantity that routing server is currently accessed with The IP quantity that renewal routing server is currently accessed.
Alternatively, step S160 includes:S161:The IP quantity being currently accessed according to each routing server is right from small to large Each routing server is ranked up;S162:Judge to indicate C class nets to be allocated in the route assignment table with the presence or absence of flag bit Section, if in the presence of, perform step S163, if being not present, terminate;S163:Flag bit instruction in the route assignment table is treated The C class network segments of access IP quantity or movable IP quantity maximum are distributed to the route that sorting position is first in the C class network segments of distribution Server, and the IP quantity that the routing server is currently accessed is updated, in the route assignment table, the allocated C is set The flag bit of the class network segment, the C class network segments are distributed with instruction, then performed step S161.
Alternatively, the step S163 includes:By the access IP numbers of the C class network segment of the current distribution to the routing server Amount or movable IP quantity are added with the IP quantity that routing server is currently accessed to update the IP numbers that routing server is currently accessed Amount.
Alternatively, the C classes network segment is corresponding with a VLAN.
Alternatively, each routing server is provided with fire wall, described that flag bit instruction in the route assignment table is to be allocated The C class network segments distribute to the routing server and include:So that the fire wall of the routing server allows the route point Indicate that the C class network segments to be allocated access the routing server with flag bit in table.
Alternatively, the step S131 to step S133 is pressed:Step S131 to step S133;Step S133 is to step S131;Step S132, step S131, step S133;Step S132, any order in step S133, step S131 performs Or the step S131 to step S133 is synchronously performed.
According to another aspect of the invention, a kind of route assignment device of terminal device is also provided, including:First scanning mould Block, for scanning the gateway of each C classes network segment, judge whether each gateway currently runs;Data obtaining module, for being transported for gateway The capable C class network segments, the C class network segments are scanned, obtain movable IP quantity and access IP quantity in the C class network segments;Update module, it is used for Route assignment table is updated, C class network segments name, movable IP quantity, access IP quantity and flag bit, bag are stored in the route assignment table Include:First update module, in the route assignment table, setting gateway is not currently running and movable IP quantity and/or standard Enter the flag bit for the C class network segments that IP quantity is 0, deleted the C classes network segment from the route assignment table with instruction;Second renewal Module, for not being 0 for movable IP quantity and access IP quantity, and be not stored in described in the route assignment table The C class network segments in route assignment table, the C class network segments name, movable IP quantity, access IP quantity are inserted in the route assignment table, And the flag bit of the C class network segments is set, to indicate that the C class network segments are to be allocated;3rd update module, in the route assignment It is not 0 for movable IP quantity and access IP quantity in table, and the C class network segments being stored in the route assignment table, renewal Movable IP quantity and access the IP quantity of the C class network segments;Second scan module, for scanning each routing server, obtain each road The C class network segments being currently accessed by server;Quantity update module, taken for each route of route assignment table renewal by renewal The IP quantity that business device is currently accessed;Distribute module, for the IP quantity being currently accessed according to each routing server, by the route Flag bit indicates that the C class network segments to be allocated are distributed into the routing server in allocation table, and in the route assignment table, The flag bit of the allocated C class network segments is set, distributed the C class network segments with instruction so that after distribution, in each routing server The difference for the IP quantity being currently accessed between any two routing servers is not more than 256.
According to another aspect of the invention, a kind of electronic equipment is also provided, the electronic equipment includes:Processor;Storage Medium, is stored thereon with computer program, and the computer program performs step as described above when being run by the processor.
According to another aspect of the invention, a kind of storage medium is also provided, computer journey is stored with the storage medium Sequence, the computer program perform step as described above when being run by processor.
Compared with prior art, the scanning of the invention by the C network segments, according to scan data Dynamic Maintenance route assignment table, and The distribution of routing server can be carried out according to route assignment table, the IP quantity accessed by any two routing servers does not surpass 256 (the maximum IP quantity of a C class network segment) are crossed, and then cause routing server load balancing.
Brief description of the drawings
Its example embodiment is described in detail by referring to accompanying drawing, above and other feature and advantage of the invention will become It is more obvious.
Fig. 1 shows the flow chart of the route distribution method of terminal device according to embodiments of the present invention.
Fig. 2 shows the schematic diagram of the route assignment system of terminal device according to embodiments of the present invention.
Fig. 3 to Fig. 5 shows the data of scanning according to embodiments of the present invention and the schematic diagram of route assignment table.
Fig. 6 shows the schematic diagram of the route assignment device of terminal device according to embodiments of the present invention.
Fig. 7 schematically shows a kind of computer-readable recording medium schematic diagram in disclosure exemplary embodiment.
Fig. 8 schematically shows a kind of electronic equipment schematic diagram in disclosure exemplary embodiment.
Embodiment
Example embodiment is described more fully with referring now to accompanying drawing.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, these embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in one or more embodiments in any suitable manner.
In addition, accompanying drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical accompanying drawing mark in figure Note represents same or similar part, thus will omit repetition thereof.Some block diagrams shown in accompanying drawing are work( Can entity, not necessarily must be corresponding with physically or logically independent entity.These work(can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
In order to solve the defects of prior art, realize that the dynamic routing of terminal device allocates management of, the present invention provides a kind of The route distribution method of terminal device, device, electronic equipment, storage medium.
First, with reference to figure 1, Fig. 1 shows the flow of the route distribution method of terminal device according to embodiments of the present invention Figure.Fig. 1 shows 6 steps altogether:
Step S110:The gateway of each C classes network segment is scanned, judges whether each gateway currently runs.
In various embodiments of the present invention, a C classes network segment configures a gateway, and a corresponding VLAN.Virtual local area Net (VLAN) is one group of equipment and user in logic, and these equipment and user are not limited by physical location, can basis The factors such as function, department and application organize them, and mutual communication just looks like them one in the same network segment Sample, therefore referred to as VLAN.
At one in the specific implementation, step S110 can judge that each gateway is current with the gateway of each C classes network segment of periodic scan Whether run.Before the gateway of each C classes network segment is scanned every time, in the route assignment table that each embodiment of the present invention is safeguarded The flag bit of each C classes network segment indicates that those C class network segments have all distributed.
Step S120:For the C class network segments of gateway operation, the C class network segments are scanned, obtain movable IP numbers in the C class network segments Amount and access IP quantity.Movable IP quantity is networking activity number of devices in a gateway.Access IP quantity is to configure in a gateway Access equipment number of devices.In certain embodiments, the multiple IP of equipment component configuration, the then IP that above-mentioned IP quantity refers to The quantity of location.
Step S130:Route assignment table is updated, C class network segments name, movable IP quantity, access are stored in the route assignment table IP quantity and flag bit.
Specifically, step S130 includes 3 steps:
Step S131:In the route assignment table, setting gateway is not currently running and movable IP quantity and/or access IP quantity is the flag bit of the 0 C class network segments, is deleted the C classes network segment from the route assignment table with instruction.It is appreciated that Access IP quantity for 0 and movable IP quantity be 0 when, then the C class network segments are possible to have movable IP after showing, but do not have currently There is movable IP.Specifically, using movable IP quantity or access IP quantity, (for access IP quantity for 0, then movable IP quantity is certain 0), for example, if the scan period is shorter in step S110, can only to judge activity IP quantity for 0 depending on concrete operations;If The scan period is longer in step S110, then can determine whether access IP quantity is 0.
Step S132:It is not 0 for movable IP quantity and access IP quantity, and do not store up in the route assignment table The C class network segments in the route assignment table be present, the C class network segments name, movable IP quantity, access IP quantity are inserted into the route point With in table, and the flag bit of the C class network segments is set, to indicate that the C class network segments are to be allocated.
Step S133:It is not 0 for movable IP quantity and access IP quantity, and store in the route assignment table The C class network segments in the route assignment table, update movable IP quantity and access the IP quantity of the C class network segments.
Above-mentioned 3 steps can be performed by any order or above-mentioned 3 steps can perform parallel.
Step S140:Each routing server is scanned, obtains the C class network segments that each routing server is currently accessed.
Step S150:The IP quantity being currently accessed by each routing server of route assignment table renewal of renewal.
Specifically, the step S150 includes:The one or more C classes nets being currently accessed according to each routing server Section, the change of the access IP quantity or movable IP quantity of one or more C classes network segments is obtained by the route assignment table of renewal Change value.Calculate the access IP quantity of one or more C classes network segments or the changing value sum of movable IP quantity.By this or more The IP quantity that the changing value sum of the access IP quantity of the individual C classes network segment or movable IP quantity is currently accessed with routing server is added To update the IP quantity that routing server is currently accessed.
Step S160:The IP quantity being currently accessed according to each routing server, flag bit in the route assignment table is referred to Show that the C class network segments to be allocated are distributed into the routing server, and in the route assignment table, the allocated C classes are set The flag bit of the network segment, the C class network segments are distributed with instruction so that after distribution, any two route services in each routing server The difference for the IP quantity being currently accessed between device is not more than 256.
Specifically, each routing server is provided with fire wall, described to indicate to treat point by flag bit in the route assignment table The C class network segments matched somebody with somebody, which are distributed to the routing server, to be included:So that the fire wall of the routing server allows the route Flag bit indicates that the C class network segments to be allocated access the routing server in allocation table.
In certain embodiments, step S160 may include steps of:
S161:The IP quantity being currently accessed according to each routing server, is ranked up to each routing server from small to large.
S162:Judge to indicate the C class network segments to be allocated in the route assignment table with the presence or absence of flag bit, if in the presence of, Step S163 is performed, if being not present, is terminated.
S163:Flag bit in the route assignment table is indicated to access IP quantity or movable IP in the C class network segments to be allocated The maximum C class network segments of quantity, which are distributed to sorting position, is first routing server, and updates the routing server and be currently accessed IP quantity, in the route assignment table, the flag bit of the allocated C class network segments is set, with indicate by the C classes network segment Distribution, then perform step S161.
Further, the step S163 includes:By the access IP of the C class network segment of the current distribution to the routing server Quantity or movable IP quantity are added with the IP quantity that routing server is currently accessed to update the IP that routing server is currently accessed Quantity.
Fig. 2 shows the schematic diagram of the route assignment system of terminal device according to embodiments of the present invention.
Route assignment system includes multiple C classes network segments 210 and server cluster 220.
Each C classes network segment includes multiple terminal devices 211 and a gateway (not shown).Server cluster includes route point With device 221 and routing server 222.For routing server 222 equipped with fire wall, fire wall, which is used to configure, permits access route The C class network segments of server 222.Route assignment device 221 safeguards route assignment table.Specifically, route assignment device 221 scans Each C classes network segment obtains the network information of the C class network segments, and updates route assignment table according to the network information, will newly be inserted into road It is assigned to by the C class network segments of allocation table on routing server 222, and deletes the current inactive C class network segments.
Each equipment cocoa in server cluster 220 realizes service end to terminal by disposing salt master softwares The remote operation of equipment 211.Remote management security can be ensured by configuration encryption key between each equipment.Each route Server 222 can realize that vlan manages by Linux system fire wall.Route assignment device 221 may be configured with weight management, shape State monitoring mechanism, VLAN automatic distributor systems and cluster management console are to realize systematically High Availabitity and load balancing machine System.Each terminal device 211 is realized by salt minion task managements, status file and fail over (failover) mechanism Authentication management and feedback of the information with routing server 222.Route assignment device 221 can realize multisystem by api interfaces Docking and the reception of remote task.
Server cluster 220 uses two layers of compressed structure, more routing servers 222 and reachable terminal device up to ten thousand 211 interconnections.Route assignment device 221 is collected by network vlan and condition managing information, writes automatic route assignment supervisor System, is distributed automatically according to proportioning mechanism such as the state of routing server 222, the quantity of active terminal equipment 211 and server weights The management vlan of each terminal device 211, realizes load balancing.
Illustrate the specific embodiment of the present invention below by Fig. 3 to Fig. 5.
In the present embodiment, before scanning each C classes network segment, route assignment table is as shown in figure 3, flag bit 1 represents each C classes network segment Distribute.In the scanning of each C classes network segment, movable the IP quantity and access IP quantity of each C classes network segment are as shown in Figure 4.
According to Fig. 4,192.168.1.* C classes network segment IP quantity and access IP quantity are all 0, then update route assignment table So that 192.168.1.* IP quantity and access IP quantity are 2 all for 0 and its flag bit, represent that the C class network segments are to be deleted, As shown in Figure 5.
192.168.2.* C classes network segment IP quantity and access IP quantity is respectively 65 and 70, with route assignment shown in Fig. 3 Quantity in table is different, then updates route assignment table and make it that 192.168.2.* IP quantity and access IP quantity are respectively 65 Hes 70, its flag bit is not modified, as shown in Figure 5.
192.168.3.* the C classes network segment is simultaneously not stored in the route assignment table shown in Fig. 3, by 192.168.3.* C The IP quantity and access IP quantity of the class network segment are respectively 65 and 70 insertion route assignment tables, and make it that its flag bit is 0, and representing should The C class network segments are to be allocated, as shown in Figure 5.
Remaining network segment is unchanged.
In the present embodiment, including two routing servers, wherein, routing server 1 accesses the C class network segments before scanning 192.168.0.*, 192.168.1.*, 192.168.2.*, routing server 2 access the C class network segments before scanning 192.168.4.*, 192.168.1.*, 192.168.5.*, it is standard (in other realities using access IP quantity according to Fig. 3 Apply in example, it is also possible to obtain IP quantity is standard), the IP quantity of access routing server 1 is 145, access routing server 2 IP quantity is 92.
After being scanned through, the route assignment table according to Fig. 5, the IP that each routing server is currently accessed is updated first Quantity, because access IP quantity updates in the C class network segments 192.168.1.* and 192.168.2.*, therefore, access routing server 1 IP quantity be updated to 105, the IP quantity for accessing routing server 2 is constant.According to IP quantity from small to large to routing server 1 Sequence, acquisition clooating sequence are routing server 2, routing server 1.
According to flag bit, C class network segment 192.168.3.* to be allocated are determined, C class network segments 192.168.3.* is accessed and arranged The routing server 2 that sequence order is first, the IP quantity of access routing server 2 are updated to 138.If subsequently also have to be allocated The C class network segments, then according to the IP quantity of the access routing server 2 of renewal, rearrangement, for example, now, clooating sequence is route Server 1, routing server 2.That is, the next C classes network segment will be assigned in routing server 1.In the assignment procedure, it is necessary to ensure The difference of access IP quantity in each route service between any two routing servers is no more than 256, and (i.e. a C classes network segment is maximum IP quantity), thus, it is ensured that each routing server load balancing.
After C class network segments 192.168.3.* is assigned, it is 1 to update C class network segments 192.168.3.* in route assignment table, Represent C class network segments 192.168.3.* distributed, and by flag bit be 2 C class network segment 192.168.1.* from route assignment table Delete.
It is only schematical description embodiments of the invention above, the present invention is not so limited.
Referring to Fig. 6, Fig. 6 shows the signal of the route assignment device of terminal device according to embodiments of the present invention Figure.
, the route assignment device 400 of terminal device includes the first scan module 410, data obtaining module 420, renewal mould Block 430, the second scan module 440, quantity update module 450 and distribute module 460.
First scan module 410 is used for the gateway for scanning each C classes network segment, judges whether each gateway currently runs.Information obtains Modulus block 420 is used for the C class network segments for gateway operation, scans the C class network segments, obtain in the C class network segments movable IP quantity and Access IP quantity.Update module 430 is used to update route assignment table, and C class network segments name, movable IP are stored in the route assignment table Quantity, access IP quantity and flag bit.Update module 430 includes the first update module 431, the second update module 432, the depth of the night New module 433.First update module 431 is used in the route assignment table, and setting gateway is not currently running and movable IP numbers Amount and/or access IP quantity are the flag bit of the 0 C class network segments, are deleted the C classes network segment from the route assignment table with instruction Remove.Second update module 432 is used in the route assignment table, is not 0 for movable IP quantity and access IP quantity, and The C class network segments being not stored in the route assignment table, the C class network segments name, movable IP quantity, access IP quantity are inserted into the road By in allocation table, and the flag bit of the C class network segments is set, to indicate that the C class network segments are to be allocated.3rd update module 433 is used for It is not 0 for movable IP quantity and access IP quantity, and be stored in the route assignment table in the route assignment table The C class network segments, update movable IP quantity and access the IP quantity of the C class network segments.Second scan module 440 is used to scan each route Server, obtain the C class network segments that each routing server is currently accessed.Quantity update module 450 is used for the route by renewal Allocation table updates the IP quantity that each routing server is currently accessed.Distribute module 460 is used to currently be connect according to each routing server The IP quantity entered, flag bit in the route assignment table is indicated that the C class network segments to be allocated are distributed into the routing server, And in the route assignment table, the flag bit of the allocated C class network segments is set, the C class network segments have been distributed with instruction so that After distribution, the difference for the IP quantity being currently accessed in each routing server between any two routing servers is not more than 256.
Fig. 6 is only to schematically show modules, it will be understood that the software module or reality that these modules can be virtual The hardware module on border, merging, fractionation and its increase of complementary modul block of these modules are all within protection scope of the present invention.
In an exemplary embodiment of the disclosure, a kind of computer-readable recording medium is additionally provided, is stored thereon with meter Calculation machine program, it can realize that electronic prescription described in any one above-mentioned embodiment circulates when the program is by such as computing device The step of processing method.In some possible embodiments, various aspects of the invention are also implemented as a kind of program production The form of product, it includes program code, and when described program product is run on the terminal device, described program code is used to make institute State terminal device perform described in this specification above-mentioned electronic prescription circulation processing method part according to the various examples of the present invention The step of property embodiment.
With reference to shown in figure 7, the program product for being used to realize the above method according to the embodiment of the present invention is described 800, it can use portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as run on PC.However, the program product not limited to this of the present invention, in this document, readable storage medium storing program for executing can be with Be it is any include or the tangible medium of storage program, the program can be commanded execution system, device either device use or It is in connection.
Described program product can use any combination of one or more computer-readable recording mediums.Computer-readable recording medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any combination above.The more specifically example of readable storage medium storing program for executing is (non exhaustive List) include:It is electrical connection, portable disc, hard disk, random access memory (RAM) with one or more wires, read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The computer-readable recording medium can include believing in a base band or as the data that a carrier wave part is propagated Number, wherein carrying readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetism Signal, optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any beyond readable storage medium storing program for executing Computer-readable recording medium, the computer-readable recording medium can send, propagate either transmit for being used by instruction execution system, device or device or Person's program in connection.The program code included on readable storage medium storing program for executing can be transmitted with any appropriate medium, bag Include but be not limited to wireless, wired, optical cable, RF etc., or above-mentioned any appropriate combination.
Can being combined to write the program operated for performing the present invention with one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., include routine Procedural programming language-such as " C " language or similar programming language.Program code can be fully in tenant Perform on computing device, partly performed in tenant's equipment, the software kit independent as one performs, is partly calculated in tenant Its upper side point is performed or performed completely in remote computing device or server on a remote computing.It is remote being related to In the situation of journey computing device, remote computing device can pass through the network of any kind, including LAN (LAN) or wide area network (WAN) tenant's computing device, is connected to, or, it may be connected to external computing device (such as utilize ISP To pass through Internet connection).
In an exemplary embodiment of the disclosure, a kind of electronic equipment is also provided, the electronic equipment can include processor, And the memory of the executable instruction for storing the processor.Wherein, the processor is configured to via described in execution The step of executable instruction is to perform the circulation processing method of electronic prescription described in any one above-mentioned embodiment.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be implemented as following form, i.e.,:It is complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.), or hardware and software, can unite here Referred to as " circuit ", " module " or " system ".
The electronic equipment 600 according to the embodiment of the invention is described referring to Fig. 8.The electronics that Fig. 8 is shown Equipment 600 is only an example, should not bring any restrictions to the function and use range of the embodiment of the present invention.
As shown in figure 8, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap Include but be not limited to:At least one processing unit 610, at least one memory cell 620, (including the storage of connection different system component Unit 620 and processing unit 610) bus 630, display unit 640 etc..
Wherein, the memory cell is had program stored therein code, and described program code can be held by the processing unit 610 OK so that the processing unit 610 perform described in the above-mentioned electronic prescription circulation processing method part of this specification according to this The step of inventing various illustrative embodiments.For example, the step of processing unit 610 can perform as shown in fig. 1.
The memory cell 620 can include the computer-readable recording medium of volatile memory cell form, such as random access memory Unit (RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
The memory cell 620 can also include program/practical work with one group of (at least one) program module 6205 Tool 6204, such program module 6205 includes but is not limited to:Operating system, one or more application program, other programs Module and routine data, the realization of network environment may be included in each or certain combination in these examples.
Bus 630 can be to represent the one or more in a few class bus structures, including memory cell bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 600 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, the equipment communication that can also enable tenant to be interacted with the electronic equipment 600 with one or more, and/or with causing Any equipment that the electronic equipment 600 can be communicated with one or more of the other computing device (such as router, modulation /demodulation Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with By network adapter 660 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, Such as internet) communication.Network adapter 660 can be communicated by bus 630 with other modules of electronic equipment 600.Should Understand, although not shown in the drawings, can combine electronic equipment 600 uses other hardware and/or software module, including it is but unlimited In:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number According to backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can be realized by software, can also be realized by way of software combines necessary hardware.Therefore, according to the disclosure The technical scheme of embodiment can be embodied in the form of software product, the software product can be stored in one it is non-volatile Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are to cause a calculating Equipment (can be personal computer, server or network equipment etc.) performs the above-mentioned electronics according to disclosure embodiment Prescription circulation processing method.
Compared with prior art, the scanning of the invention by the C network segments, according to scan data Dynamic Maintenance route assignment table, and The distribution of routing server can be carried out according to route assignment table, the IP quantity accessed by any two routing servers does not surpass 256 (the maximum IP quantity of a C class network segment) are crossed, and then cause routing server load balancing.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by appended Claim is pointed out.

Claims (11)

  1. A kind of 1. route distribution method of terminal device, it is characterised in that including:
    Step S110:The gateway of each C classes network segment is scanned, judges whether each gateway currently runs;
    Step S120:For the C class network segments of gateway operation, scan the C class network segments, obtain in the C class network segments movable IP quantity and Access IP quantity;
    Step S130:Route assignment table is updated, C class network segments name, movable IP quantity, access IP numbers are stored in the route assignment table Amount and flag bit, including:
    Step S131:In the route assignment table, setting gateway is not currently running and movable IP quantity and/or access IP numbers The flag bit of the C class network segments for 0 is measured, is deleted the C classes network segment from the route assignment table with instruction;
    Step S132:It is not 0 for movable IP quantity and access IP quantity, and be not stored in the route assignment table The C class network segments in the route assignment table, the C class network segments name, movable IP quantity, access IP quantity are inserted into the route assignment table In, and the flag bit of the C class network segments is set, to indicate that the C class network segments are to be allocated;
    Step S133:It is not 0 for movable IP quantity and access IP quantity, and be stored in institute in the route assignment table The C class network segments in route assignment table are stated, update movable IP quantity and access the IP quantity of the C class network segments;
    Step S140:Each routing server is scanned, obtains the C class network segments that each routing server is currently accessed;
    Step S150:The IP quantity being currently accessed by each routing server of route assignment table renewal of renewal;
    Step S160:The IP quantity being currently accessed according to each routing server, flag bit instruction in the route assignment table is treated The C class network segments of distribution are distributed into the routing server, and in the route assignment table, set the allocated C class network segments Flag bit, with instruction the C class network segments have been distributed so that after distribution, in each routing server any two routing servers it Between the difference of IP quantity that is currently accessed be not more than 256.
  2. 2. route distribution method as claimed in claim 1, it is characterised in that the step S110 includes:
    The gateway of each C classes network segment of periodic scan, judges whether each gateway currently runs, wherein, each C classes network segment is being scanned every time Gateway before, the flag bit of each C classes network segment in the route assignment table indicates that those C class network segments have all distributed.
  3. 3. management method as claimed in claim 1, it is characterised in that the step S150 includes:
    The one or more C classes network segments being currently accessed according to each routing server, being obtained by the route assignment table of renewal should The changing value of the access IP quantity of one or more C classes network segments or movable IP quantity;
    Calculate the access IP quantity of one or more C classes network segments or the changing value sum of movable IP quantity;
    The changing value sum and routing server of the access IP quantity of one or more C classes network segments or movable IP quantity is current The IP quantity of access is added to update the IP quantity that routing server is currently accessed.
  4. 4. management method as claimed in claim 1, it is characterised in that step S160 includes:
    S161:The IP quantity being currently accessed according to each routing server, is ranked up to each routing server from small to large;
    S162:Judge to indicate the C class network segments to be allocated with the presence or absence of flag bit in the route assignment table, if in the presence of performing Step S163, if being not present, terminate;
    S163:Flag bit in the route assignment table is indicated to access IP quantity or movable IP quantity in the C class network segments to be allocated The maximum C class network segments, which are distributed to sorting position, is first routing server, and updates the IP that the routing server is currently accessed Quantity, in the route assignment table, the flag bit of the allocated C class network segments is set, divided the C class network segments with instruction Match somebody with somebody, then perform step S161.
  5. 5. management method as claimed in claim 4, it is characterised in that the step S163 includes:
    The access IP quantity of the C class network segment of the current distribution to the routing server or movable IP quantity are worked as with routing server The IP quantity of preceding access is added to update the IP quantity that routing server is currently accessed.
  6. 6. the management method as described in any one of claim 1 to 5, it is characterised in that the C classes network segment and one VLAN pairs Should.
  7. 7. the management method as described in any one of claim 1 to 5, it is characterised in that each routing server is provided with fire wall, institute Stating to distribute the C class network segments to be allocated of flag bit instruction in the route assignment table to the routing server includes:
    So that the fire wall of the routing server allows flag bit in the route assignment table to indicate that the C class network segments to be allocated connect Enter the routing server.
  8. 8. the management method as described in any one of claim 1 to 5, it is characterised in that the step S131 to step S133 is pressed: Step S131 to step S133;Step S133 to step S131;Step S132, step S131, step S133;Step S132, walk Any order in rapid S133, step S131 is performed or the step S131 to step S133 is synchronously performed.
  9. A kind of 9. route assignment device of terminal device, it is characterised in that including:
    First scan module, for scanning the gateway of each C classes network segment, judge whether each gateway currently runs;
    Data obtaining module, for the C class network segments run for gateway, the C class network segments are scanned, it is movable in the C class network segments to obtain IP quantity and access IP quantity;
    Update module, for updating route assignment table, C class network segments name, movable IP quantity, access are stored in the route assignment table IP quantity and flag bit, including:
    First update module, in the route assignment table, set gateway be not currently running and movable IP quantity and/or Access IP quantity is the flag bit of the 0 C class network segments, is deleted the C classes network segment from the route assignment table with instruction;
    Second update module, for not being 0 for movable IP quantity and access IP quantity in the route assignment table, and The C class network segments being not stored in the route assignment table, the C class network segments name, movable IP quantity, access IP quantity are inserted into the road By in allocation table, and the flag bit of the C class network segments is set, to indicate that the C class network segments are to be allocated;
    3rd update module, for not being 0 for movable IP quantity and access IP quantity in the route assignment table, and The C class network segments being stored in the route assignment table, update movable IP quantity and access the IP quantity of the C class network segments;
    Second scan module, for scanning each routing server, obtain the C class network segments that each routing server is currently accessed;
    Quantity update module, the IP quantity being currently accessed for each routing server of route assignment table renewal by renewal;
    Distribute module, for the IP quantity being currently accessed according to each routing server, flag bit in the route assignment table is referred to Show that the C class network segments to be allocated are distributed into the routing server, and in the route assignment table, the allocated C classes are set The flag bit of the network segment, the C class network segments are distributed with instruction so that after distribution, any two route services in each routing server The difference for the IP quantity being currently accessed between device is not more than 256.
  10. 10. a kind of electronic equipment, it is characterised in that the electronic equipment includes:
    Processor;
    Storage medium, computer program is stored thereon with, such as right is performed when the computer program is run by the processor It is required that the step described in 1 to 8 any one.
  11. 11. a kind of storage medium, it is characterised in that computer program, the computer program are stored with the storage medium The step as described in any one of claim 1 to 8 is performed when being run by processor.
CN201711058284.XA 2017-11-01 2017-11-01 Route distribution method and device of terminal equipment, electronic equipment and storage medium Active CN107809384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711058284.XA CN107809384B (en) 2017-11-01 2017-11-01 Route distribution method and device of terminal equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711058284.XA CN107809384B (en) 2017-11-01 2017-11-01 Route distribution method and device of terminal equipment, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107809384A true CN107809384A (en) 2018-03-16
CN107809384B CN107809384B (en) 2020-05-29

Family

ID=61591147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711058284.XA Active CN107809384B (en) 2017-11-01 2017-11-01 Route distribution method and device of terminal equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107809384B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442425A (en) * 2007-11-22 2009-05-27 华为技术有限公司 Gateway management method, address distribution method and apparatus, system
CN102833261A (en) * 2012-09-05 2012-12-19 国家电网公司 Improved network topology structure of directory service system
CN103501356A (en) * 2013-09-18 2014-01-08 中安消技术有限公司 Network address configuration method and system of network camera
CN104320353A (en) * 2014-11-19 2015-01-28 中国联合网络通信集团有限公司 User address managing method and device
US20150281172A1 (en) * 2012-12-19 2015-10-01 Huawei Technologies Co., Ltd. Method, relay agent, and system for acquiring internet protocol address in network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442425A (en) * 2007-11-22 2009-05-27 华为技术有限公司 Gateway management method, address distribution method and apparatus, system
CN102833261A (en) * 2012-09-05 2012-12-19 国家电网公司 Improved network topology structure of directory service system
US20150281172A1 (en) * 2012-12-19 2015-10-01 Huawei Technologies Co., Ltd. Method, relay agent, and system for acquiring internet protocol address in network
CN103501356A (en) * 2013-09-18 2014-01-08 中安消技术有限公司 Network address configuration method and system of network camera
CN104320353A (en) * 2014-11-19 2015-01-28 中国联合网络通信集团有限公司 User address managing method and device

Also Published As

Publication number Publication date
CN107809384B (en) 2020-05-29

Similar Documents

Publication Publication Date Title
US20200274875A1 (en) Method for virtual machine to access physical server in cloud computing system, apparatus, and system
CN105530246B (en) The methods, devices and systems of Virtual Machine Manager
US9654928B2 (en) Tracking information technology (IT) assets
CN104272699B (en) For being connected to the method and system of cloud virtual machine based on certificate
CN104639406B (en) Relationship modeling computer network topologies are used based on dynamic
CN106575243A (en) Hypervisor-hosted virtual machine forensics
US9858797B2 (en) Tracking information technology (IT) assets
CN104412228A (en) Live migration protocols and cluster server failover protocols
JP2018133084A (en) System for optimizing distribution of processing of automated process
CN102938721A (en) Apparatus and method for a dynamically extensible virtual switch
CN105989275B (en) Method and system for certification
CN107707622A (en) A kind of method, apparatus and desktop cloud controller for accessing desktop cloud virtual machine
US20140351409A1 (en) Monitoring client information in a shared environment
CN105074665A (en) Migration tool for implementing desktop virtualization
CN106104486A (en) Method and system for the volume of safe transmission in cloud
WO2014208909A1 (en) Simulation device and distribution simulation system
US11907766B2 (en) Shared enterprise cloud
JP2021513179A (en) Blockchain-based consent management system and method
CN112348302A (en) Extensible workflow engine with stateless coordinator
Pătraşcu et al. Logging framework for cloud computing forensic environments
CN111061617A (en) Cloud computing-based space-based network networking simulation test system
CN112764943A (en) Information processing method, system, electronic device, and computer-readable storage medium
CN114595467A (en) Multi-stage protection for data center objects
KR20200006845A (en) Method for managing block chain and apparatus therefor
CN107809384A (en) The route distribution method of terminal device, device, electronic equipment, 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