CN110381113A - A kind of method for service selection and system - Google Patents
A kind of method for service selection and system Download PDFInfo
- Publication number
- CN110381113A CN110381113A CN201910504767.0A CN201910504767A CN110381113A CN 110381113 A CN110381113 A CN 110381113A CN 201910504767 A CN201910504767 A CN 201910504767A CN 110381113 A CN110381113 A CN 110381113A
- Authority
- CN
- China
- Prior art keywords
- information
- services
- service
- version
- terminal
- 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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of method for service selection and system, method includes: to establish to be connected to the network based on server address;Export logging request;Logging request is verified, by then determining information on services and version information according to logging request;Pending service and/or output feedback information are selected according to information on services and version information.System is for executing method.The present invention is by establishing network connection based on server address;Export logging request;Logging request is verified, by then determining information on services and version information according to logging request;Pending service and/or output feedback information are selected according to information on services and version information, different service or the corresponding feedback information of output can be selected by information on services and version information, the complexity interacted between terminal and server is advantageously reduced, the efficiency of operation and the maintenance of server is improved.
Description
Technical field
The present invention relates to network technique field, especially a kind of method for service selection and system.
Background technique
Server, also referred to as servomechanism are to provide the equipment of the service of calculating.By server, it is able to carry out relative to common
The increasingly complex calculating of computer advantageously reduces terminal, the i.e. computation burden of common computer.
Due to the type of pending data and the variation of processing data method, a variety of processing services are provided in server
To adapt to various needs;, there is service of the same race in increasing for the type for the processing service being capable of providing with server,
The case where multiple versions, difference service, different editions.
The technology of multi-version compatibility, which largely uses, at present carries version number on URL, therefore, the different version in server-side
This corresponds to different arithmetic logics, and this mode code is more chaotic, and deployment influence face is wider.And when terminal access server,
The property for needing the software version according to terminal itself executes different cut-in methods, at this point, server needs to be arranged a variety of connect
The process for entering terminal, being unable to reasonable arrangement these access process, to lead to the problem of service release compatible, is unfavorable for server
Operation and maintenance.
Summary of the invention
The embodiment of the present invention is intended to solve at least some of the technical problems in related technologies.For this purpose, this
One purpose of inventive embodiments is to provide a kind of method for service selection and system.
The technical scheme adopted by the invention is that:
In a first aspect, the embodiment of the present invention provides a kind of method for service selection, comprising: establish network based on server address
Connection;Export logging request;Logging request is verified, by then determining information on services and version information according to logging request;According to
Information on services and version information select pending service and/or output feedback information.
It is preferably based on socket or http and establishes network connection.
Preferably, it is described according to information on services and version information output feedback information include: destination server there is no
Service with the information on services returns to correct server address;There are the clothes for matching the information on services in destination server
The corresponding service of version information is not present in business, returns to version prompt information.
Preferably, the terminal includes sim Ka Chi, adjuster pond and mobile phone.
Preferably, when establishing network connection by http, pending service is selected according to information on services and version information
And/or output feedback information includes: to determine corresponding adapter coupling servers according to information on services and version information, adapter coupling servers from
The destination server obtains information on services and version information, selects pending service and/or output feedback information.
Second aspect, the embodiment of the present invention provide a kind of service selection system, including terminal and destination server, wherein
Terminal is based on server address and establishes network connection;Terminal exports logging request;Destination server verifies logging request, by then
Information on services and version information are determined according to logging request;Destination server is pending according to information on services and version information selection
Service and/or output feedback information.
Preferably, terminal is based on socket or http and establishes network connection.
Preferably, destination server according to information on services and version information output feedback information include: destination server not
In the presence of the service for matching the information on services, correct server address is returned;Destination server, which exists, matches the service letter
The corresponding service of version information is not present in the service of breath, returns to version prompt information.
Preferably, the terminal includes sim Ka Chi, adjuster pond and mobile phone.
Preferably, when terminal establishes network connection by http, destination server is selected according to information on services and version information
Selecting pending service and/or output feedback information includes: to determine corresponding switched service according to information on services and version information
Device, adapter coupling servers obtain information on services and version information from the destination server, select pending service and/or output
Feedback information.
The beneficial effect of the embodiment of the present invention is:
The embodiment of the present invention is by establishing network connection based on server address;Export logging request;Logging request is verified,
By then determining information on services and version information according to logging request;Pending clothes are selected according to information on services and version information
Business and/or output feedback information can select different service or output corresponding anti-by information on services and version information
Feedforward information advantageously reduces the complexity interacted between terminal and server, improves the efficiency of operation and the maintenance of server.
Detailed description of the invention
Fig. 1 is a kind of flow chart of embodiment of method for service selection.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.
The technical term being related to:
Agreement: the abbreviation of network protocol, network protocol are one group of agreements that communication computer both sides must defer to jointly.Such as
How connection, how mutually identification etc. are established.This agreement is only abided by, can just be in communication with each other exchange between computer.
Transmission Control Protocol: TCP (Transmission Control Protocol) is a kind of connection-oriented, reliable, base
In the transport layer communication protocol of byte stream, defined by the RFC 793 of IETF.In simplified computer network osi model, it is complete
At function specified by the 4th layer of transport layer, User Datagram Protocol (UDP) is another important transport protocol in same layer.
In internet protocol suite (Internet protocol suite), TCP layer be located at IP layers on, under application layer in
Interbed.Be frequently necessary to the reliable, connection as pipeline between the application layer of different hosts, but IP layer do not provide as
Stream mechanism, and it is to provide insecure packet switch.
Socket: two programs on network realize the exchange of data, this connection by a two-way communication connection
One end be known as a socket.
The equipment that Simpool:simpool is used to integrate sim card, a simpool are at most inserted into 256 sim cards, can be right
These cards are managed, monitor.In addition it can identify the Encryption Algorithm of sim card, for replying the authentication request of terminal.
Cat pond: (outer literary fame: ModemPOOL) is exactly to set a considerable amount of Modem using special dial request access
It is standby to link together, the equipment of multiple subscriber dialing connections can be received simultaneously, corresponding service device is considered as a kind of special
Terminal.
Embodiment 1.
A kind of method for service selection as shown in Figure 1, comprising:
S1, network connection is established based on server address;
S2, output logging request;
S3, verifying logging request, by then determining information on services and version information according to logging request;
S4, pending service and/or output feedback information are selected according to information on services and version information.
Specifically, terminal, including sim Ka Chi, adjuster pond (cat pond) and mobile phone, itself is stored with server address,
It can establish the data transmission relations between terminal and server by server address.
Terminal exports logging request, and server is received and verified logging request, specifically illustrated in a manner of socket, that is, established
Socket long connection;(connection is based on Transmission Control Protocol, so the successful reply that terminal only receives server just represents
Socket is created successfully, otherwise all thinks failure.)
After socket is created successfully, terminal can initiate logging request to server, and login includes: username (user's surname
Name), password (user password), proto_ver (protocol version), fields, the server such as sw_ver (software version) receive
Afterwards, it can be compared version is corresponded in protocol version and software version and server, unanimously, then login successfully;Wherein, software
Version includes information on services and version information, is respectively used to the type of the software for illustrating that service either executes service and corresponding
Version distinguishes the different editions of same class service the purpose is to distinguish the type for not proposing service.
It first passes through address name and password is verified, can also additionally be verified by agreement matching, when passing through
After verifying, then the information of logging request terminal software version is extracted to carry out the processing of next step.
The service that can be provided in server is limited, and therefore, inevitably will appear destination server that terminal is connected not
A possibility that correctly service can be provided.
At this point, terminal indicates the service needed for itself by information on services, if destination server cannot support this to take
Business, then the address of the server of specified services can be provided by, which exporting, returns to terminal, and prompts: login failure, version is inconsistent, asks
Login service device IP is XXX, i.e., there is no the services for matching the information on services for destination server, with returning to correct server
Location, for example, destination server be capable of providing A, B, C service, and other server be capable of providing C, D, E service, then when terminal to
When destination server application D is serviced, destination server can inform the address for being capable of providing the server of D service.
Terminal indicates the service needed for itself by information on services, and destination server can support this to service, still, eventually
The version information at end does not adapt to current server, i.e., the access that the version of the software of terminal itself cannot meet server is wanted
It asks or when service that server itself is capable of providing does not meet the demand of terminal, exports version prompt information.Version prompt letter
Breath is upgraded including prompt terminal or prompt terminal switches other service requests.
Different from the service that the matching information on services is not present in destination server, there are destination servers to be capable of providing certain
The case where a kind of service, but the service of this kind provided by destination server, there are the limitations of version.That is A service includes 1/2/
3/4 version, destination server can only provide wherein 3 versions, and demanding terminal is other version.
After logining successfully, server carries out subsequent point of card, takes the processes such as mirror image, authentication.Then it is slow to will be updated the machine for terminal
The server address stored in area is rushed, logs in next time and directly logs in destination server.
Destination server can cache the user information of terminal, socket information, each version information, and change User Status is
It has been logged in that, if login failure, server directly disconnects socket and deletes all information of the user, and terminal receives login failure
Feedback when, also will disconnect socket connection.
Terminal can also send web request by the page, at this point, terminal needs can support browser, i.e. web terminal, web terminal
With server interaction using http agreement, and the connection of this agreement is all short connection, therefore for the simultaneous of web terminal version
Appearance is different.With the parameter version of version number behind the request that web terminal is initiated, to web server, (i.e. target is taken
Business device) after by conversion find corresponding access server IP address, then pass through http request transmission service request, access service
Device (i.e. adapter coupling servers) realizes the access of multi version service according to service request.
When establishing network connection by http, corresponding adapter coupling servers are determined according to information on services and version information,
Adapter coupling servers obtain information on services and version information from the destination server, select pending service and/or output anti-
Feedforward information.Adapter coupling servers are switched to by destination server, can be realized multi version.
Whether the present embodiment technology directly carries version information in logging request, itself support to take by server judgement
Business, then result is replied to terminal, in this way, terminal can be convenient access server, the processing stream of server
Journey is also succinct.What the technology being directed to used has protobuf agreement, tcp socket long link, mysql storage configuration etc.,
Belong to disclosed technology, the present embodiment is without further explaining.
Embodiment 2
The embodiment of the present invention provides a kind of service selection system, including terminal and destination server, wherein terminal is based on clothes
Network connection is established in business device address;Terminal exports logging request;Destination server verifies logging request, by then being asked according to login
Ask determining information on services and version information;Destination server according to information on services and version information select pending service and/
Or output feedback information.
It is to be illustrated to preferable implementation of the invention, but the invention is not limited to the implementation above
Example, those skilled in the art can also make various equivalent variations on the premise of without prejudice to spirit of the invention or replace
It changes, these equivalent deformations or replacement are all included in the scope defined by the claims of the present application.
Claims (10)
1. a kind of method for service selection characterized by comprising
It is established and is connected to the network based on server address;
Export logging request;
Logging request is verified, by then determining information on services and version information according to logging request;
Pending service and/or output feedback information are selected according to information on services and version information.
2. method for service selection according to claim 1, which is characterized in that establish network based on socket or http and connect
It connects.
3. method for service selection according to claim 1, which is characterized in that described defeated according to information on services and version information
Feedback information includes: out
Destination server returns to correct server address there is no the service for matching the information on services;
There is the service for matching the information on services in destination server, the corresponding service of version information is not present, and returns to version and mentions
Show information.
4. method for service selection according to claim 1, which is characterized in that the terminal includes sim Ka Chi, adjuster pond
And mobile phone.
5. method for service selection according to claim 1, which is characterized in that when establishing network connection by http, according to
Information on services and version information select pending service and/or output feedback information includes:
Determine that corresponding adapter coupling servers, adapter coupling servers are obtained from the destination server according to information on services and version information
Information on services and version information select pending service and/or output feedback information.
6. a kind of service selection system, which is characterized in that including terminal and destination server, wherein
Terminal is based on server address and establishes network connection;
Terminal exports logging request;
Destination server verifies logging request, by then determining information on services and version information according to logging request;
Destination server selects pending service and/or output feedback information according to information on services and version information.
7. service selection system according to claim 6, which is characterized in that terminal is based on socket or http and establishes network
Connection.
8. service selection system according to claim 6, which is characterized in that destination server is according to information on services and version
Information exports feedback information
Destination server returns to correct server address there is no the service for matching the information on services;
There is the service for matching the information on services in destination server, the corresponding service of version information is not present, and returns to version and mentions
Show information.
9. service selection system according to claim 6, which is characterized in that the terminal includes sim Ka Chi, adjuster pond
And mobile phone.
10. service selection system according to claim 6, which is characterized in that when terminal establishes network connection by http,
Destination server selects pending service according to information on services and version information and/or output feedback information includes:
Determine that corresponding adapter coupling servers, adapter coupling servers are obtained from the destination server according to information on services and version information
Information on services and version information select pending service and/or output feedback information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910504767.0A CN110381113A (en) | 2019-06-12 | 2019-06-12 | A kind of method for service selection and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910504767.0A CN110381113A (en) | 2019-06-12 | 2019-06-12 | A kind of method for service selection and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110381113A true CN110381113A (en) | 2019-10-25 |
Family
ID=68250099
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910504767.0A Pending CN110381113A (en) | 2019-06-12 | 2019-06-12 | A kind of method for service selection and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110381113A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103347029A (en) * | 2013-07-19 | 2013-10-09 | 北京高森明晨信息科技有限公司 | Method, terminal, server and system for service data interaction |
CN104601592A (en) * | 2015-01-31 | 2015-05-06 | 华为技术有限公司 | Method for accessing cloud service and access device |
CN107172060A (en) * | 2017-06-06 | 2017-09-15 | 武汉票据交易中心有限公司 | A kind of login method of client container |
CN107493251A (en) * | 2016-06-12 | 2017-12-19 | 深圳市斑点猫信息技术有限公司 | A kind of method and terminal for logging in destination server |
-
2019
- 2019-06-12 CN CN201910504767.0A patent/CN110381113A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103347029A (en) * | 2013-07-19 | 2013-10-09 | 北京高森明晨信息科技有限公司 | Method, terminal, server and system for service data interaction |
CN104601592A (en) * | 2015-01-31 | 2015-05-06 | 华为技术有限公司 | Method for accessing cloud service and access device |
CN107493251A (en) * | 2016-06-12 | 2017-12-19 | 深圳市斑点猫信息技术有限公司 | A kind of method and terminal for logging in destination server |
CN107172060A (en) * | 2017-06-06 | 2017-09-15 | 武汉票据交易中心有限公司 | A kind of login method of client container |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9805090B1 (en) | System and method for processing database queries | |
US8402132B2 (en) | Method, system and device for device capabilities exchange | |
CN106254560A (en) | Information transferring method and device | |
CN103166998B (en) | user information correlation method, system and server | |
CN105450582A (en) | Business processing method, terminal, server and system | |
EP1122918B1 (en) | Method and apparatus for tracking a transaction across a multi-hop network | |
CN107634948A (en) | Method for interchanging data and system | |
US20050060390A1 (en) | Method and system for plug and play installation of network entities in a mobile wireless internet | |
CN105827624A (en) | Identity verifying system | |
CN1595890B (en) | Virtual connectivity with subscribe-notify service | |
CN101312469B (en) | Method and system for terminal displaying ordering service | |
CN114157537A (en) | System and method for realizing multi-source heterogeneous data access by general equipment gateway | |
CN103001962B (en) | Business support method and system | |
CN103973648A (en) | Application data push method, device and system | |
CN112134744B (en) | Management method of nodes in distributed management system | |
CN106302856B (en) | A kind of method and system shortening Android intelligence POS exchange hour | |
CN115086276B (en) | Address management method, device, equipment and system | |
CN110381113A (en) | A kind of method for service selection and system | |
WO2005053229A1 (en) | Apparatus for mediating in management orders | |
CN103179565B (en) | Based on security information interaction system and the method for thin terminal pattern | |
US10979287B2 (en) | Method and apparatus for receiving a solution when configuration function verification fails in a terminal | |
CN114172958A (en) | Private computing node, system, method, apparatus, and storage medium | |
KR100694871B1 (en) | Gateway system for mobile services on the open cellular network, and service method thereof | |
CN114650304B (en) | Authentication and authorization method and device | |
US20240179142A1 (en) | Method and apparatus for account association, and 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: 20191025 |