CN106572069A - Network access control method and server server - Google Patents
Network access control method and server server Download PDFInfo
- Publication number
- CN106572069A CN106572069A CN201510658803.0A CN201510658803A CN106572069A CN 106572069 A CN106572069 A CN 106572069A CN 201510658803 A CN201510658803 A CN 201510658803A CN 106572069 A CN106572069 A CN 106572069A
- Authority
- CN
- China
- Prior art keywords
- machine room
- layer
- server
- user terminal
- corresponding relation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/104—Grouping of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/107—Network architectures or network communication protocols for network security for controlling access to devices or network resources wherein the security policies are location-dependent, e.g. entities privileges depend on current location or allowing specific operations only from locally connected terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention relates to a network access control method. According to the method, a request of a user terminal for accessing to a layer of an application program is received by a server, a target terminal corresponding to the layer is determined, a machine room corresponding to the terminal terminal is determined by the server according to corresponding relationships between the user terminal and machine rooms, if the determined machine room is not a machine room of the server, the service request of the layer is sent by the server to the determined machine room, so corresponding operation is performed at the machine room corresponding to the target terminal corresponding to each layer of the application program, and the performing application program and the data to be processed by the application program are guaranteed to stay in one same machine room, nearest service is provided for a user, system efficiency is improved, delay is reduced, and data consistency is guaranteed as one same user data is changed in one same machine room.
Description
Technical field
The application is related to field of computer technology, more particularly to a kind of method for network access control and server.
Background technology
The Internet is developed rapidly so that customer volume is in explosive growth, traditional server list ground deployment way
The access request of the Global Subscriber of magnanimity cannot have been met, and because server list ground deployment way is accessed
Postpone than larger, thus mostly adopt the global mode disposed more of server at present for the user of different regions
Service is provided.
The server whole world adopted in prior art is disposed in data processing method more, visit of the user to webpage
Asking can be allocated to certain machine room, and the access request of user is rung by the application program of the machine room
Should and process, and when application program needs the data for using other machine rooms in processing procedure, then can be to
The machine room request that data are located sends data to this machine room, then the data for sending over is entered in this machine room
Row is processed.
Data processing method is disposed in the server whole world of prior art more, because the access request of user can quilt
It is randomly assigned certain machine room, it is impossible to user is realized to service nearby, prolonging for access request process is increased
Late, system effectiveness is reduced;Simultaneously as application program is when the data processing of other machine rooms is pointed to,
Need to send data from the machine room that data are located and processed to this machine room, thus result in the delay of process
And may cause the loss of data.
In sum, prior art is present cannot realize that machine room is serviced nearby user's offer, and user accesses please
Process is asked to postpone length, system effectiveness is low, and the problem of loss of data easily occurs.
The content of the invention
The application provides a kind of method for network access control and server, to solve present in prior art
Cannot realize that machine room provides user to service nearby, user access request process postpones length, and system effectiveness is low,
And easily there is the problem of loss of data.
On the one hand, a kind of method for network access control that the embodiment of the present application is provided, including:
After a layer of the server in user terminal requests access application, this layer of corresponding target is determined
Terminal;
The server determines the corresponding machine of the target terminal according to user terminal and the corresponding relation of machine room
Room;
If it is determined that the machine room be not machine room that the server is located, then the server is by the layer
Service request is sent to the machine room of determination;
Wherein, the corresponding machine room of user terminal is that user terminal described in current distance is nearest in the corresponding relation
Machine room.
The embodiment of the present application, server is received after a layer of user terminal requests access application, really
Determine this layer of corresponding target terminal, then server determines mesh according to user terminal and the corresponding relation of machine room
The corresponding machine room of mark terminal, however, it is determined that the machine room for going out is not the machine room that the server is located, then server should
The service request of layer is sent to the machine room for determining, it is achieved thereby that in the corresponding target terminal of each layer of application program
Corresponding operation is performed in corresponding machine room, hereby it is ensured that the application program being carrying out and application program
Data to be processed improve system effectiveness in same machine room, delay are reduced, simultaneously because same
The data of user are changed in same machine room, it is ensured that the concordance of data.
Optionally, the server determines the target terminal according to user terminal and the corresponding relation of machine room
After corresponding machine room, also include:
If it is determined that the machine room be machine room that the server is located, then the server is right by the layer
The request of the user terminal is processed.
Optionally, the layer include it is following in it is part or all of:HttpServer(HyperText Transfer
Protocol Server, hypertext transfer protocol server) layer, service layer, message layer, database layer.
The method can carry out judging the corresponding mesh of data to be processed before each layer of application performs operation
Whether the machine room corresponding to mark terminal is identical with the machine room that book server is located, if differing, by correct
Machine room is correspondingly processed, hereby it is ensured that each layer is when carrying out data processing, the machine being all located in data
Room is processed, hereby it is ensured that data are changed in same machine room, it is ensured that the concordance of data, together
When it is also less postpone, improve system effectiveness.
Optionally, if the layer is HttpServer layers, the target terminal is request access application
User terminal;If the layer is any one in service layer, message layer, database layer, the mesh
Mark terminal is that the layer needs the corresponding user terminal of data to be processed.
Due to the ground floor to be called in HttpServer layer user terminal access application programs, therefore pass through
The target terminal that this layer judges is exactly the user terminal of the application program for accessing;And service layer, message layer, number
According to storehouse layer in processing data, target terminal is then the user terminal according to corresponding to data to be processed, is led to
Said method is crossed, can be to distributing the different methods for judging user terminal between different layers, with good spirit
Activity and practicality.
Optionally, according to the new corresponding relation for receiving, renewal is being currently used the server
The corresponding relation;
Wherein, the new corresponding relation is to obtain in the cycle or obtain when other machine rooms break down;If
What the new corresponding relation was obtained when other machine rooms break down, then the corresponding user of the failure machine room
The backup machine room of terminal correspondence failure machine room in the new corresponding relation.
Due to server can be in all machine rooms certain machine room break down after, can be in correspondence failure machine room
User terminal correspond to again to the backup machine room of failure machine room, reacquire newest user terminal and machine
The mapping table in room, thus can ensure that the accuracy of user terminal and machine room corresponding relation, improves and is
System efficiency.
Optionally, the server determines the target terminal according to user terminal and the corresponding relation of machine room
Corresponding machine room, including:
The server determines the target end using the corresponding relation of the user terminal in partition table and machine room
Hold corresponding machine room;
Wherein, the partition table is identical in each machine room.
On the other hand, a kind of server that the embodiment of the present application is provided, including:
First determining unit, for a layer in user terminal requests access application after, it is determined that should
The corresponding target terminal of layer;
Second determining unit, for according to the corresponding relation of user terminal and machine room, determining the target terminal
Corresponding machine room;
Processing unit, for if it is determined that the machine room be not machine room that the server is located, then will be described
The service request of layer is sent to the machine room of determination;
Wherein, the corresponding machine room of the corresponding relation user terminal is that user terminal described in current distance is nearest
Machine room.
Optionally, the processing unit, is additionally operable to:
If it is determined that the machine room be machine room that the server is located, then by the layer to user's end
The request at end is processed.
Optionally, the layer include it is following in it is part or all of:
Hypertext transfer protocol server HttpServer layers, service layer, message layer, database layer.
Optionally, if the layer is HttpServer layers, the target terminal is request access application
User terminal;
If the layer is any one in service layer, message layer, database layer, the target terminal is
The layer needs the corresponding user terminal of data to be processed.
Optionally, the processing unit is additionally operable to:
According to the new corresponding relation for receiving, the corresponding relation being being currently used is updated;
Wherein, the new corresponding relation is to obtain in the cycle or obtain when other machine rooms break down;If
What the new corresponding relation was obtained when other machine rooms break down, then the corresponding user of the failure machine room
The backup machine room of terminal correspondence failure machine room in the new corresponding relation.
Optionally, second determining unit, specifically for:
Determine the corresponding machine of the target terminal using the corresponding relation of the user terminal in partition table and machine room
Room;
Wherein, the partition table is identical in each machine room.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present application, below will be to institute in embodiment description
The accompanying drawing that needs are used is briefly introduced, it should be apparent that, drawings in the following description are only the application's
Some embodiments, for one of ordinary skill in the art, in the premise for not paying creative labor
Under, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is the embodiment of the present application method for network access control schematic flow sheet;
Fig. 2 is the embodiment of the present application partition table distribution schematic diagram;
Fig. 3 is the embodiment of the present application application call layer schematic diagram;
Fig. 4 processes schematic diagram when breaking down for the embodiment of the present application machine room;
Fig. 5 is the embodiment of the present application method for network access control detailed maps;
The server that Fig. 6 is provided for the embodiment of the present application.
Specific embodiment
In order that the purpose of the application, technical scheme and advantage are clearer, below in conjunction with accompanying drawing to this Shen
Please be described in further detail, it is clear that described embodiment is only the application some embodiments,
Rather than the embodiment of whole.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out all other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
The embodiment of the present application, server is received after a layer of user terminal requests access application, really
Determine this layer of corresponding target terminal, then server determines mesh according to user terminal and the corresponding relation of machine room
The corresponding machine room of mark terminal, however, it is determined that the machine room for going out is not the machine room that the server is located, then server should
The service request of layer is sent to the machine room for determining, it is achieved thereby that in the corresponding target terminal of each layer of application program
Corresponding operation is performed in corresponding machine room, hereby it is ensured that the application program being carrying out and application program
Data to be processed have been provided the user and serviced nearby in same machine room, improve system effectiveness, are subtracted
It is little to postpone, simultaneously because the data of same user are changed in same machine room, it is ensured that the concordance of data.
The embodiment of the present application is described in further detail with reference to Figure of description.
As shown in figure 1, the embodiment of the present application method for network access control schematic flow sheet, including:
After the layer of step 101, server in user terminal requests access application, the layer is determined
Corresponding target terminal;
Step 102, server determine that target terminal is corresponding according to user terminal and the corresponding relation of machine room
Machine room;
Step 103, if it is determined that machine room be not machine room that the server is located, then server is by the layer
Service request be sent to the machine room of determination.
In above-mentioned steps 101, user terminal can be computer, mobile phone, panel computer, personal digital assistant
Etc. can be with the equipment of access server, user terminal can ask access application, server to receive use
After the application program access request of family terminal, before corresponding layer is processed, need to judge to be processed asking
Ask or whether data belong to the process of this machine room, first have to be that the request institute is right according to data validation to be processed
The target terminal answered, the target terminal can be that computer, mobile phone, panel computer, personal digital assistant etc. can
With the equipment of access server.
In above-mentioned steps 102, specifically, the server according to user terminal and the corresponding relation of machine room,
Determine the corresponding machine room of the target terminal, including:The server using the user terminal in partition table and
The corresponding relation of machine room determines the corresponding machine room of the target terminal;Wherein, the partition table is in each machine room
In be all identical.The corresponding relation of user terminal and machine room, the partition table are represented by partition table
It is identical that the partition table retained in each machine room, therefore each machine room is issued after being determined in advance.This point
Area's table can be analyzed based on big data and determined, user terminal and the user terminal are contained in partition table
Corresponding relation between corresponding nearest machine room, for example, have 3 machine rooms around user terminal 1,
It is respectively machine room A, machine room B, machine room C, wherein machine room A is closest with user terminal 1, then is dividing
The corresponding machine room of user terminal 1 described in area's table is A.Furthermore it is possible to distribute one for each user terminal
Individual user terminal identification user_id, identification number and the user terminal of a user terminal are one-to-one
Relation, after corresponding relations of the user terminal identification user_id with nearest machine room is established, with partition table
Form distribute to all of machine room, thus a identical partition table that is all stored with all machine rooms, this point
The corresponding relation of user terminal and nearest machine room is identified in area's table, as shown in Fig. 2 being the embodiment of the present application
Partition table distribution schematic diagram, based on the analysis of big data, can generate partition table and regeneration block table, and
Nearest partition table after by generation or renewal is sent to all of machine room, the wherein corresponding machine room of user terminal 1
A, the corresponding machine room A of user terminal 2, user terminal n correspondence machine room B, user_id1 are user terminal 1
User terminal identification number, user_id2 for user terminal 2 user terminal identification number, user_idn is use
The user terminal identification number of family terminal n, by this method, can make all machine rooms all be stored with a identical
Partition table, the corresponding relation of user terminal and machine room is stored in the partition table.By the partition table, can
Determine the machine room corresponding to target terminal.
In step 103, according in step 102, however, it is determined that machine room be not machine that the server is located
Room, then server the service request of the layer is sent to the machine room of determination.
Optionally, the layer include it is following in it is part or all of:HttpServer layers, service layer, message
Layer, database layer.
Each layer is introduced respectively below.
First, the layer is HttpServer layers:
HttpServer layers are used for access network user, are that web station system externally provides the entrance of service, and carry
The packaging of parsing and returned content for http protocol.
2nd, the layer is service layer:
Service layer is used for the service logic of processing system, and HttpServer layers dress user is linked into after system, meeting
Transfer to service layer to process the request of user to complete, service layer typically can interact with database layer, complete
The change or reading of data in data base, message layer can also call service layer's processing business logic.
3rd, the layer is message layer:
Message layer is used for the service logic of asynchronization processing system, and HttpSever layers can be by subscriber access system
Afterwards, transfer to asynchronous message layer processing business logic, and after layer process that need not wait for the arrival of news terminates by please
Result is asked to return to user.Message layer typically can be interacted with database layer, complete data in data base
Change is read.Service layer also can message call layer processing business logic.
4th, the layer is database layer:
Database layer is used for lasting storage service data, is divided into relevant database, non-relational database etc.
Deng.Business datum after persistently storage write or change, it is ensured that the result of system, it is ensured that system
Run well.
Optionally, if the layer is HttpServer layers, the target terminal is request access application
User terminal;
If the layer is any one in service layer, message layer, database layer, the target terminal is
The layer needs the corresponding user terminal of data to be processed.
HttpServer layers will first determine the corresponding mesh of request to be processed before user terminal requests are processed
Whether the machine room corresponding to mark terminal is the machine room that book server is located, because HttpServer layers are to apply journey
The sequence ground floor to be called, therefore the user terminal of initiation application requests is target terminal.Such as Fig. 3
It is shown, it is the embodiment of the present application application call layer schematic diagram, wherein, user terminal to server is initiated
Application requests, application program request call HttpServer layers successively, service layer and/or message layer, number
According to storehouse layer, wherein before calling per layer, invoked layer all can judge request to be processed according to partition table
Or whether the machine room corresponding to the corresponding target terminal of data is the machine room that book server is located, if it is not, then
User terminal identification number according to corresponding to the machine room determined, by the service of the equivalent layer of application call
Request is sent to the machine room of determination and is processed.Wherein, because HttpServer layers are that application program will be called
Ground floor, application program first pass through DNS (Domain Name System, domain name system) parsing
To nearest machine room, then carry out subsequently further processing, current DNS technologies can accomplish to application
The access request of program is done and is parsed nearby, but this probability for parsing nearby not 100%, do not accomplish
100% cannot just ensure data consistency, thus before calling HttpServer layers to process request, need to sentence
Whether the disconnected corresponding machine room of user terminal for initiating request is identical with the machine room that book server is located, if it is not,
Then HttpServer layers are called to carry out accordingly in the machine room determined by the application program in the machine room determined
Process.
By said method, the service request of application program is parsed to nearest machine room in DNS needs
When calling HttpServer layers, first according to subregion table search user terminal and machine room in HttpServer layers
Corresponding relation, however, it is determined that the corresponding machine room of access user terminal for going out application program be not book server correspondence
Machine room, then show that mistake occurs in this dns resolution, not by the service request of application program parse to
Nearest machine room, then server by HttpServer layers need perform service request send to correct machine room
Processed.
If additionally, the layer is any one in service layer, message layer, database layer, the target
Terminal is that the layer needs the corresponding user terminal of data to be processed.Call service layer, message layer or
During arbitrary layered data processing in database layer, if the machine corresponding to the corresponding target terminal of data to be processed
When room is not the machine room that book server is located, then show this layer of book server data to be processed not in this service
On device, therefore directly can process the data in the machine room that the data are located.If application program is in this service
Device calls a wherein layered data processing, then after being routed to correct machine room, also by the service of the correct machine room
The application program of device is continued with identical layer, and for example, current application program is just calling in the server service
Layered data processing, then after being routed to correct machine room, by application program in the server of correct machine room
Service layer is called to carry out processing data.Additionally, application program calls equivalent layer in the server of correct machine room
Before processing data, can also carry out again judging the machine corresponding to the corresponding target terminal of data to be processed
Whether room is the correct machine room confirmed, thus can further assure that is located in pending data
Machine room processes the data.
It is achieved thereby that performing in the machine room corresponding to the corresponding target terminal of each layer of application program corresponding
Operation, hereby it is ensured that the application program being carrying out is in same machine room with application program data to be processed
In, provide the user and serviced nearby, system effectiveness is improve, delay is reduced, simultaneously because same use
The data at family are changed in same machine room, it is ensured that the concordance of data.
Optionally, the server determines the target terminal according to user terminal and the corresponding relation of machine room
After corresponding machine room, however, it is determined that the machine room be machine room that the server is located, then the server
Processed by request of the layer to the user terminal.
The method that the embodiment of the present application is provided, server receives the one of user terminal requests access application
After individual layer, this layer of corresponding target terminal is determined, then server is closed according to the correspondence of user terminal and machine room
System, determines the corresponding machine room of target terminal, however, it is determined that the machine room for going out is not the machine room that the server is located, then
Server by the service request of this layer send to determine machine room, however, it is determined that the machine room be the server
The machine room at place, then state request of the server by the layer to the user terminal and process, also,
Proceed to process in identical layer by the application program of correct machine room after correct machine room is determined,
Thus the method realizes that user terminal is serviced in nearest machine room, it is achieved thereby that servicing nearby, reduce
Data processing or the delay of service request, improve systematic function, simultaneously as realize service nearby,
So as to ensure that same data are changed in same machine room, thus the concordance of data is also ensure that, improve
System effectiveness and the correctness of data processing.
Further, since the mobility of user terminal, or machine room breaks down, thus result in user terminal with
The corresponding relation of machine room may change, so that periodically or occasionally to user terminal and machine
The corresponding relation in room is updated.
Optionally, server updates the institute being being currently used according to the new corresponding relation for receiving
State corresponding relation;Wherein, the new corresponding relation is to obtain or when other machine rooms break down in the cycle
Obtain;If what the new corresponding relation was obtained when other machine rooms break down, the failure machine room pair
The backup machine room of the user terminal answered correspondence failure machine room in the new corresponding relation.
Such as, when user terminal there occurs movement, then the nearest machine room corresponding to user terminal it may happen that
Change, if the nearest machine room corresponding to user terminal there occurs change, needs to user terminal and machine room
Corresponding relation is redefined.For example, at present corresponding machine room is C to user terminal user_idx,
Because user there occurs movement, when causing user to pass through user terminal user_idx access applications, recently
Machine room become machine room D, then in user terminal and the machine room corresponding relation after updating, user terminal
User_idx corresponds to machine room D again.For another example, because natural disaster or other reasons, cause certain machine
Room there occurs failure or disaster, as shown in figure 4, process when breaking down for the embodiment of the present application machine room showing
It is intended to, wherein, cause machine room failure after disaster occurs, the partition table of other normal machine rooms is carried out first
Update, the corresponding user terminal of failure machine room in partition table corresponded to the backup machine room of failure machine room again,
So as to form new corresponding relation, then switch DNS, the domain name of parsing to failure machine room is parsed again
To the backup machine room of failure machine room.
Said method breaks down or during disaster in machine room, can be by regeneration block table, then will be newest
Partition table is sent to other normal machine rooms, and normal machine room can realize the visit of user terminal by nearest partition table
Ask request, thus the method that the embodiment of the present application is provided has good long-distance disaster ability, can allow failure
The access of the user in machine room is unaffected, improves system anti-disaster ability, improves Consumer's Experience.In addition,
Can also artificially regularly update partition table, such as per hour, daily, or re-establish one weekly
Secondary user terminal and the corresponding relation of machine room, then re-establish partition table concurrent according to newest corresponding relation
All of machine room is given, so can ensure that offer is farthest serviced nearby.
It is described in detail with application scheme below.
As shown in figure 5, be the embodiment of the present application method for network access control detailed maps, including:
Step 501, dns resolution are to nearest machine room.
Step 502, judge that dns resolution is whether correct, if then going to step 503, otherwise go to step
504。
Can determine whether the corresponding machine room of user terminal is this clothes according to user terminal and the corresponding relation of machine room
The machine room that business device is located, if so, then shows that dns resolution is correct, otherwise shows dns resolution mistake, and
The access request of user terminal is not parsed to nearest machine room.
Step 503, HttpServer layers process service request.
Step 504, correct machine room HttpServer layers process service request.
Step 505, whether data to be processed are judged in book server, it is no if then going to step 506
Then go to step 507.
According to the machine room whether application program is located in service layer's data to be processed in book server, if so,
Then in book server process, the machine room that data to be processed are located otherwise is gone to, processed in service layer.
For example, when seller needs to change order status in transaction system, because the data to be changed are to buy
In the server of the machine room that family is located, it is therefore desirable to which being routed in the server of the machine room at buyer place carries out phase
Ground modification is answered, thus can ensure that data are changed in same machine room, it is ensured that the concordance of data.
Step 506, service layered data processing.
Step 507, in the service layered data processing of correct machine room.
Step 508, whether data to be processed are judged in book server, it is no if then going to step 509
Then go to step 510.
According to the machine room whether application program is located in message layer data to be processed in book server, if so,
Then in book server process, the machine room that data to be processed are located otherwise is gone to, processed in message layer.
Processed.
Step 509, message layered data processing.
Step 510, in the message layered data processing of correct machine room.
Step 511, whether data to be processed are judged in book server, it is no if then going to step 512
Then go to step 513.
According to the machine room whether application program is located in database layer data to be processed in book server, if
It is, then in book server process, otherwise to go to the machine room that data to be processed are located, carries out in database layer
Process.Processed.
Step 512, database layer processing data.
Step 513, in the database layer processing data of correct machine room.
Based on identical technology design, the embodiment of the present application also provides a kind of server, and the server can perform
Said method embodiment.The server that the embodiment of the present application is provided is as shown in Figure 6.
First determining unit 601, for a layer in user terminal requests access application after, really
Fixed this layer of corresponding target terminal;
Second determining unit 602, for according to the corresponding relation of user terminal and machine room, determining the target
The corresponding machine room of terminal;
Processing unit 603, for if it is determined that the machine room be not machine room that the server is located, then will
The service request of the layer is sent to the machine room of determination;
Wherein, the corresponding machine room of the corresponding relation user terminal is that user terminal described in current distance is nearest
Machine room.
Optionally, the processing unit 603, is additionally operable to:
If it is determined that the machine room be machine room that the server is located, then by the layer to user's end
The request at end is processed.
Optionally, the layer include it is following in it is part or all of:
Hypertext transfer protocol server HttpServer layers, service layer, message layer, database layer.
Optionally, if the layer is HttpServer layers, the target terminal is request access application
User terminal;
If the layer is any one in service layer, message layer, database layer, the target terminal is
The layer needs the corresponding user terminal of data to be processed.
Optionally, the processing unit 603 is additionally operable to:
According to the new corresponding relation for receiving, the corresponding relation being being currently used is updated;
Wherein, the new corresponding relation is to obtain in the cycle or obtain when other machine rooms break down;If
What the new corresponding relation was obtained when other machine rooms break down, then the corresponding user of the failure machine room
The backup machine room of terminal correspondence failure machine room in the new corresponding relation.
Optionally, second determining unit 602, specifically for:
Determine the corresponding machine of the target terminal using the corresponding relation of the user terminal in partition table and machine room
Room;
Wherein, the partition table is identical in each machine room.
The application is produced with reference to the method according to the embodiment of the present application, equipment (system) and computer program
The flow chart and/or block diagram of product is describing.It should be understood that can by computer program instructions flowchart and
/ or block diagram in each flow process and/or square frame and flow chart and/or the flow process in block diagram and/
Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedded
The processor of formula datatron or other programmable data processing devices is producing a machine so that by calculating
The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one
The device of the function of specifying in individual flow process or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable datas process to set
In the standby computer-readable memory for working in a specific way so that in being stored in the computer-readable memory
Instruction produce and include the manufacture of command device, command device realization is in one flow process or multiple of flow chart
The function of specifying in one square frame of flow process and/or block diagram or multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing devices, made
Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place
Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of specifying in flow process or one square frame of multiple flow processs and/or block diagram or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know base
This creative concept, then can make other change and modification to these embodiments.So, appended right will
Ask and be intended to be construed to include preferred embodiment and fall into having altered and changing for the application scope.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this Shen to the application
Spirit and scope please.So, if the application these modification and modification belong to the application claim and
Within the scope of its equivalent technologies, then the application is also intended to comprising these changes and modification.
Claims (12)
1. a kind of method for network access control, it is characterised in that include:
After a layer of the server in user terminal requests access application, this layer of corresponding target is determined
Terminal;
The server determines the corresponding machine of the target terminal according to user terminal and the corresponding relation of machine room
Room;
If it is determined that the machine room be not machine room that the server is located, then the server is by the layer
Service request is sent to the machine room of determination;
Wherein, the corresponding machine room of user terminal is that user terminal described in current distance is nearest in the corresponding relation
Machine room.
2. the method for claim 1, it is characterised in that the server according to user terminal and
The corresponding relation of machine room, after determining the corresponding machine room of the target terminal, also includes:
If it is determined that the machine room be machine room that the server is located, then the server is right by the layer
The request of the user terminal is processed.
3. the method for claim 1, it is characterised in that the layer include it is following in part or
All:
Hypertext transfer protocol server HttpServer layers, service layer, message layer, database layer.
4. method as claimed in claim 3, it is characterised in that if the layer is HttpServer layers,
Then the target terminal is the user terminal for asking access application;
If the layer is any one in service layer, message layer, database layer, the target terminal is
The layer needs the corresponding user terminal of data to be processed.
5. the method as described in Claims 1 to 4 is arbitrary, it is characterised in that the method also includes:
The server is according to the new corresponding relation for receiving, and it is described right that renewal is being currently used
Should be related to;
Wherein, the new corresponding relation is to obtain in the cycle or obtain when other machine rooms break down;If
What the new corresponding relation was obtained when other machine rooms break down, then the corresponding user of the failure machine room
The backup machine room of terminal correspondence failure machine room in the new corresponding relation.
6. the method as described in Claims 1 to 4 is arbitrary, it is characterised in that the server is according to user
The corresponding relation of terminal and machine room, determines the corresponding machine room of the target terminal, including:
The server determines the target end using the corresponding relation of the user terminal in partition table and machine room
Hold corresponding machine room;
Wherein, the partition table is identical in each machine room.
7. a kind of server, it is characterised in that include:
First determining unit, for a layer in user terminal requests access application after, it is determined that should
The corresponding target terminal of layer;
Second determining unit, for according to the corresponding relation of user terminal and machine room, determining the target terminal
Corresponding machine room;
Processing unit, for if it is determined that the machine room be not machine room that the server is located, then will be described
The service request of layer is sent to the machine room of determination;
Wherein, the corresponding machine room of the corresponding relation user terminal is that user terminal described in current distance is nearest
Machine room.
8. server as claimed in claim 7, it is characterised in that the processing unit, is additionally operable to:
If it is determined that the machine room be machine room that the server is located, then by the layer to user's end
The request at end is processed.
9. server as claimed in claim 7, it is characterised in that the layer include it is following in part
Or all:
Hypertext transfer protocol server HttpServer layers, service layer, message layer, database layer.
10. server as claimed in claim 9, it is characterised in that if the layer is HttpServer layers,
Then the target terminal is the user terminal for asking access application;
If the layer is any one in service layer, message layer, database layer, the target terminal is
The layer needs the corresponding user terminal of data to be processed.
11. servers as described in claim 7~10 is arbitrary, it is characterised in that the processing unit is also
For:
According to the new corresponding relation for receiving, the corresponding relation being being currently used is updated;
Wherein, the new corresponding relation is to obtain in the cycle or obtain when other machine rooms break down;If
What the new corresponding relation was obtained when other machine rooms break down, then the corresponding user of the failure machine room
The backup machine room of terminal correspondence failure machine room in the new corresponding relation.
12. servers as described in claim 7~10 is arbitrary, it is characterised in that described second determines list
Unit, specifically for:
Determine the corresponding machine of the target terminal using the corresponding relation of the user terminal in partition table and machine room
Room;
Wherein, the partition table is identical in each machine room.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510658803.0A CN106572069A (en) | 2015-10-12 | 2015-10-12 | Network access control method and server server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510658803.0A CN106572069A (en) | 2015-10-12 | 2015-10-12 | Network access control method and server server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106572069A true CN106572069A (en) | 2017-04-19 |
Family
ID=58508658
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510658803.0A Pending CN106572069A (en) | 2015-10-12 | 2015-10-12 | Network access control method and server server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106572069A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107682271A (en) * | 2017-09-28 | 2018-02-09 | 北京奇安信科技有限公司 | The generation method and device of a kind of route lines |
CN109618023A (en) * | 2019-01-11 | 2019-04-12 | 福建天泉教育科技有限公司 | A kind of method and terminal detecting cell phone network |
CN109635020A (en) * | 2018-10-29 | 2019-04-16 | 阿里巴巴集团控股有限公司 | A kind of processing method of business, device, equipment and system |
CN110213365A (en) * | 2019-05-30 | 2019-09-06 | 掌阅科技股份有限公司 | User access request processing method and electronic equipment based on user partition |
CN112737968A (en) * | 2020-12-31 | 2021-04-30 | 北京大米科技有限公司 | Traffic processing method and device, readable storage medium and electronic equipment |
CN115118652A (en) * | 2022-07-18 | 2022-09-27 | 中信百信银行股份有限公司 | Route distribution method, device and equipment and storage medium |
WO2023160551A1 (en) * | 2022-02-28 | 2023-08-31 | 北京有竹居网络技术有限公司 | Request processing method, and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035660A (en) * | 2009-09-24 | 2011-04-27 | ***通信集团公司 | Internet data center (IDC) network-based service processing method, equipment and system |
CN103023903A (en) * | 2012-12-11 | 2013-04-03 | 北京奇虎科技有限公司 | Data transmission method and server |
CN103023902A (en) * | 2012-12-11 | 2013-04-03 | 北京奇虎科技有限公司 | Data transmission method and system |
-
2015
- 2015-10-12 CN CN201510658803.0A patent/CN106572069A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035660A (en) * | 2009-09-24 | 2011-04-27 | ***通信集团公司 | Internet data center (IDC) network-based service processing method, equipment and system |
CN103023903A (en) * | 2012-12-11 | 2013-04-03 | 北京奇虎科技有限公司 | Data transmission method and server |
CN103023902A (en) * | 2012-12-11 | 2013-04-03 | 北京奇虎科技有限公司 | Data transmission method and system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107682271A (en) * | 2017-09-28 | 2018-02-09 | 北京奇安信科技有限公司 | The generation method and device of a kind of route lines |
CN109635020A (en) * | 2018-10-29 | 2019-04-16 | 阿里巴巴集团控股有限公司 | A kind of processing method of business, device, equipment and system |
CN109618023A (en) * | 2019-01-11 | 2019-04-12 | 福建天泉教育科技有限公司 | A kind of method and terminal detecting cell phone network |
CN110213365A (en) * | 2019-05-30 | 2019-09-06 | 掌阅科技股份有限公司 | User access request processing method and electronic equipment based on user partition |
CN110213365B (en) * | 2019-05-30 | 2021-02-26 | 掌阅科技股份有限公司 | User access request processing method based on user partition and electronic equipment |
CN112737968A (en) * | 2020-12-31 | 2021-04-30 | 北京大米科技有限公司 | Traffic processing method and device, readable storage medium and electronic equipment |
WO2023160551A1 (en) * | 2022-02-28 | 2023-08-31 | 北京有竹居网络技术有限公司 | Request processing method, and device |
CN115118652A (en) * | 2022-07-18 | 2022-09-27 | 中信百信银行股份有限公司 | Route distribution method, device and equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106572069A (en) | Network access control method and server server | |
CN103905503B (en) | Data access method, dispatching method, equipment and system | |
CN109697133A (en) | ID generation method, apparatus and system | |
US9699276B2 (en) | Data distribution method and system and data receiving apparatus | |
CN105259806B (en) | Controller upgrade method and system and master controller and from controller | |
CN110166524B (en) | Data center switching method, device, equipment and storage medium | |
CN105808736A (en) | List data updating method, apparatus and system | |
CN105335512B (en) | Data query method and device | |
CN101799847A (en) | Method and system for equipment changing of webpage game role | |
CN106933550A (en) | Global information is obtained, processed and update method, device and system | |
CN108021586A (en) | A kind of page generation method and device | |
CN112698925B (en) | Container mixed operation processing method of server cluster | |
CN107003949A (en) | The system and method synchronous for the internal memory of multiple nucleus system | |
CN110933170A (en) | Multi-device linkage control method and device of ZigBee gateway and storage medium | |
CN109992415A (en) | A kind of container dispatching method and scheduling system | |
CN110489356B (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN109309858B (en) | Display method, device, equipment and medium of mutually exclusive icon | |
CN110287025A (en) | A kind of resource allocation methods, device and equipment | |
CN111176715A (en) | Information calling method and server | |
CN107038176B (en) | Method, device and equipment for rendering web graph page | |
CN104394198A (en) | A global scheduling method based on an ESB | |
CN105791146B (en) | The method, apparatus and system that user side equipment is interacted with configuration server | |
CN114265869A (en) | Data message forwarding method and device, storage medium and electronic equipment | |
CN109800229B (en) | Data access method and related equipment | |
CN115202856A (en) | Resource allocation system, method, apparatus, computer device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170419 |