CN105871698B - A kind of management method and system of instant messaging service - Google Patents
A kind of management method and system of instant messaging service Download PDFInfo
- Publication number
- CN105871698B CN105871698B CN201610373292.2A CN201610373292A CN105871698B CN 105871698 B CN105871698 B CN 105871698B CN 201610373292 A CN201610373292 A CN 201610373292A CN 105871698 B CN105871698 B CN 105871698B
- Authority
- CN
- China
- Prior art keywords
- service
- instant messaging
- cryptographic hash
- client
- messaging service
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/06—Message adaptation to terminal or network requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/18—Commands or executable codes
Abstract
A kind of management method of instant messaging service, this method are at least acquired from the registration information that instant messaging service client is sent:User account, user password, instant messaging service name, client release, client terminal type and logging state information, information collected is generated into cryptographic Hash by hash function respectively again, service identifiers as instant messaging service after the cryptographic Hash reconfigures, the management to instant messaging service is realized according to the service identifiers, compatibility, the scalability of network service are improved, realizes the unified management to instant messaging service.
Description
Technical field
The present invention relates to computer network and the communications fields.More particularly, to a kind of manager of instant messaging service
Method and system.
Background technique
As the rapid development and people of information network technique are to the growing of communication requirement, network service is constantly gushed
Now (such as:Email, Online Video, e-commerce and instant messaging etc.).In numerous service of information network, instant messaging
(Instant Messaging, IM) service rapid development, its convenience, real-time, cheapness etc. are doomed to make its beyond tradition
It is main stream communication means that communication mode, which forms,.Instant messaging can be described as after Email (Electronic Mail, E-
Mail), after World Wide Web (World Wide Web, WWW), the most application of lethality on internet.Relative to tradition
The communication modes such as phone, E-mail for, instant messaging not only saves money, but also efficiency is very high.
Due to the rise of instant message applications, " content " for being able to carry out instant intercommunication is just expanded to by voice rapidly comprehensively
Image, text, data etc., but " multi-functional " is not also whole intensions of instant messaging, can cross over internet, hand
Multiple platforms such as machine, fixed-line telephone carry out communication and are only where the value in instant messaging future.The content of instant intercommunication is not only
Voice further includes image, data, data etc.;Terminal device not only can be computer, can also be mobile phone;Instant message applications
Version not only have PC (Personal Computer) version, there are also mobile phone version, webpage versions etc..Generally speaking, instant message applications
The communication that user carries out any mode with anyone whenever and wherever possible may be implemented,
" multi-functional " of instant messaging service, " super convenient ", although user experience can be promoted largely,
This will certainly also carry out certain burden to Netowrk tape.Make a general survey of these network services, it can be seen that there are implementations between service
It is different, service type is different, service orientation terminal not parity problem, cause instant messaging service to be difficult to be uniformly controlled management.
To solve the above problems, proposing the service of Pervasive Service in integrated identification network system and key technology [1]
Mark is theoretical, establishes corresponding parsing mapping model, and mechanism and mechanism is uniformly processed in the service layer of creation based on this, mentions
For Pervasive Service.In integrated identification network new model, virtual service module and virtual connection module are introduced in service layer.It is empty
Quasi- service module can solve unified service object's scheduling, provides the controllable of service and manages, to support a variety of services provide can
Energy.Key is to introduce the concept of service identifiers (Service IDentifier, SID), is carried out to the service of various network supports
Unified classified description, on this basis design service be uniformly processed mechanism (including service registration, service-seeking, service foundation
Deng).
Under integrated identification network background, it has been proposed that generated about web page resources and the specific service of service mark
Mechanism generates the SID of the web page resources using uniform resource locator (Uniform Resource Locator, URL).
But do not go deep into also for how to realize instant messaging service homogeneous classification description and the design handled and study.Current net
Network resource uses the naming method centered on host, and the upper webpage of Internet and other resources use URL, before each URL
Half part indicates host domain name, and latter half indicates position of the resource in current hosts.Internet resources and service why can
URL is enough used, is because their positions in a network are fixed and invariable, each file on internet has unique one
A URL, the information that it includes point out how the position of file and browser should handle it.
But it is directed to instant messaging service, it is no longer applicable in if still using this mode of URL.Main cause has following
Several points:(1) only account is fixed and invariable instant communication user, but state when each registration service can change, than
Such as, the client release number of login, the terminal type logged in etc. will be different.(2) instant messaging provides end to end
Instant conversational services, this service can change with the variation of User Status.For example, user's logging state is turned by presence
To be offline, the software version number that user logs in changes, and the terminal type that user logs in switches etc., it can all lead to Instant Messenger
Interrogate the change of service.In summary two o'clock reason, it is necessary to be directed to instant messaging own characteristic, to determine service identifiers, and utilize
Service identifiers completion efficiently manages the unification of instant messaging service.
Patent document [2] proposes the unified description of a kind of Internet resources and service, mainly for the service of internet
It with the lookup of resource, proposes based on ontology describing, the unified description that resource and service are got up by attribute relationship,
Resource and the unified of service are searched with realizing.The present invention includes:It is mutual comprising local area network and wide area network and wireless network
Networking, committed step are:Define the level of the class of ontology;Defined attribute;User registers its resource provided to registration center
And service;User terminal inquires Internet resources.The Internet resources and service that client is needed to obtain from network by the present invention
Formal unification is done, based on this registration and inquiry that resource and service uniformly may be implemented.
The disadvantages of this solution is:
(1) program does not account for the uncertain feature of instant messaging service login state.The unification proposed in the program
Service describing method relies primarily on the position uniqueness and invariance of service and resource, aligns the resource in a certain network site
Unique device mark description is carried out, and it is managed by the service identifiers.But only account is solid to instant communication user
Fixed constant, state when each registration service is likely to change, for example, the client release number logged in, logging in
Terminal type etc. will be different.When the either element (including logging state, login client release number etc.) in User Status
When changing, the instant messaging service of the user's registration will be different.
(2) program does not account for the characteristics of instant messaging service instantaneity.Instant messaging provides end to end i.e.
When conversational services, when the either element (including logging state, log in client release number etc.) in User Status changes,
This service can change with the variation of User Status.But the service describing method proposed in this programme is just for static state
Service.
Patent document [3] provides a kind of network naming mechanism and name analytic mapping system, belongs to network technique field.This
The naming mechanism of invention issues data or service request by data, service publisher or requestor first;Then it is born by relay layer
Duty extracts the metamessage of data or service;A character string is obtained using hash algorithm, which is used to identify to be extracted
Data or service.Name resolution system of the invention applies a Three Tiered Network Architecture --- and maintenance level realizes layer and relaying
Layer is realized, is mapped using the parsing of the name of above-mentioned rule name, to substitute the name resolution mapping system of existing DNS
System has effectively achieved network name parsing mapping.The present invention realizes data kimonos by data and the Uniform Name of service
The Unify legislation of business, and name resolving process is realized with Three Tiered Network Architecture, to have effectively achieved name resolution mapping, drop
The waste of low Internet resources.
The disadvantages of this solution is:The program does not illustrate the concrete composition element of name when network service name, mentions
The resource in network is actively discovered using web crawlers means, then webpage information is analyzed, for network data, is extracted
Out position information extracts Service provider information for service, is then believed by the member that relay layer is responsible for extracting data or service
Breath.It but is specifically which content is not further elaborated for Service provider information.
Patent document [4] be related to instant messaging technical field more particularly to a kind of instant messaging service implementation method and
Its system.The present invention is the implementation method and its system of a kind of instant messaging service, and the preparatory user for each region is distributively
Area's code and language version information carry out identity to instant communication user using area code and the instant messaging number of each user and test
Card, enables a user to log-in instant communication service system, and after user logins successfully, records the language version of the user
This information, using the language version information of the record, carries out code conversion and text to display content in user interaction process
Translation, to realize interconnecting between different zones user.Using the present invention, enable to each user that can use
Its known Language Interface is exchanged with language with other users, so that the exchange between user is no longer influenced by region and language
Limitation, to substantially increase the service quality of instant messaging service.
The disadvantages of this solution is:Although proposing the Explore of Unified Management Ideas for instant messaging service in the program,
Using this method, client type, client release number and terminal type cannot distinguish between each instant messaging service.
The program is more laid particular emphasis on solve the problems, such as different geographical between speech habits, between different zones, since different language is practised
It is used, there are the different sayings to identical things, for example, continent is known as pineapple, and is then known as pineapple, such saying in Taiwan
It is inconsistent, can when the user of different zones interconnects, be user exchange manufacture certain difficulty.Use the party
Although case is able to solve the problem of speech habits, but prior problem --- there is no solve for service identifiers unified management.
Bibliography:
[1] Su Wei, Liu Qi, Zhang Hongke integrated identification network system and key technology [J] ZTE Corporation technology,
2011,17 (2):1-4.
[2] unified description of a kind of Internet resources and service, the patent No.:CN200710121749.1
[3] a kind of network naming mechanism and name analytic mapping system, the patent No.:CN200910092501.6
[4] a kind of implementation method and its system of instant messaging service, the patent No.:CN200510071191.1
Summary of the invention
The purpose of the present invention is to provide the management method and system of a kind of instant messaging service, solve it is above-mentioned at least one
Problem.
In order to achieve the above objectives, the present invention adopts the following technical solutions:
A kind of management method of instant messaging service, includes the following steps:
Step a:The collecting part information from the registration information that instant messaging service client is sent, the partial information is extremely
Include less:User account, user password, instant messaging service name, client release, client terminal type and login shape
State;Wherein, logging state is dummy status;
Step b:Information collected is generated into cryptographic Hash by hash function respectively, the cryptographic Hash is reconfigured,
Service identifiers as instant messaging service;
Step c:Store the service identifiers;
Step d:When user logs in, the partial information is acquired, the information of acquisition is generated into Kazakhstan by hash function respectively
The cryptographic Hash is reconfigured the new demand servicing mark as instant messaging service, according in stored service identifiers by uncommon value
User account and user password cryptographic Hash authenticate login;
Step e:It authenticates successfully, then detects instant messaging service name, client release and visitor in latest services mark
Instant messaging service name, client release and client are whole in family end terminal type cryptographic Hash and the service identifiers stored
Hold type cryptographic Hash whether consistent;
Step f:If consistent, presence cryptographic Hash in new demand servicing mark is replaced into the service identifiers stored
Middle off-line state cryptographic Hash;
Step j:If it is inconsistent, storage new demand servicing mark;
Step h:Authentification failure, then refusal is this time logged in and is required;
Step i:Manage instant messaging service;
Wherein, the management instant messaging service includes:
According to instant messaging service name cryptographic Hash in the service identifiers of storage, distinguishes and lead between different instant messaging services
Letter agreement difference simultaneously guarantees system compatible variety classes instant messaging service;
According to user account cryptographic Hash in the service identifiers of storage, realizes the inquiry of instant messaging object and establish Instant Messenger
News service;
According to client release cryptographic Hash in the service identifiers of storage, realize that identical type instant messaging services different clients
Hold the instant messaging service between version;
According to client terminal type cryptographic Hash in the service identifiers of storage, the difference of identical instant messaging service is realized eventually
Instant messaging service between end;
Step j:Judge whether client has been off according to client heartbeat message;
Step k:If it is, determining the client off-line, off-line state cryptographic Hash is replaced to the login shape stored
State cryptographic Hash;
Step l:If it is not, then going to step j.
Preferably, using service identifiers described in centralization or distributed storage mode storage.
Preferably, the cryptographic Hash that user account generates is stored in first character section, the cryptographic Hash storage that user password generates
In second field.
A kind of management system of instant messaging service, including information acquisition unit, service identifiers generation unit, service identifiers
Storage unit, login authentication unit, service managing unit and judging unit;
Information acquisition unit collecting part information from the registration or log-on message that client is sent, will be collected
Information generates cryptographic Hash by hash function and is used as service identifiers after reconfiguring the cryptographic Hash;The partial information is extremely
Include less:User account, user password, instant messaging service name, client release, client terminal type and login shape
State;Wherein, when registration, the logging state is dummy status;
The information of acquisition is generated cryptographic Hash by hash function by the service identifiers generation unit respectively, by the Hash
Value reconfigures, the service identifiers as instant messaging service;
The service identifiers storage unit stores the service identifiers;Wherein, the cryptographic Hash that user account generates is stored in
First character section, the cryptographic Hash that user password generates are stored in second field;
The login authentication unit is used for when users log on, according to user account and user in stored service identifiers
Cryptographic Hash authenticates login;If authenticated successfully, allows this time to log in requirement, if authentification failure, refuse
It this time logs in and requires;
The service identifiers management instant messaging clothes that the service managing unit is stored based on the service identifiers storage unit
Business;
The judging unit is used to judge whether client has been off according to client heartbeat message;If it is, will
Off-line state is converted into cryptographic Hash and replaces the logging state cryptographic Hash stored;If it is not, then continuing to judge.
Preferably, the login authentication unit further comprises update module, for detecting latest services after logining successfully
In mark in instant messaging service name, client release and client terminal type cryptographic Hash and the service identifiers stored
Whether instant messaging service name, client release and client terminal type cryptographic Hash are consistent;If consistent, will newly take
Off-line state cryptographic Hash in the service identifiers that the replacement of presence cryptographic Hash has stored in business mark;If it is inconsistent, storage
The new demand servicing mark.
Preferably, the service managing unit includes:
Discriminating module distinguishes different instant messagings according to instant messaging service name cryptographic Hash in the service identifiers of storage
Communication protocol difference and guarantee system compatible variety classes instant messaging service between service;
Enquiry module realizes the inquiry of instant messaging object simultaneously according to user account cryptographic Hash in the service identifiers of storage
Establish Communications service;
Version unified modules realize identical type Instant Messenger according to client release cryptographic Hash in the service identifiers of storage
Instant messaging service between news service different clients version
Terminal unified modules realize identical Instant Messenger according to client terminal type cryptographic Hash in the service identifiers of storage
Interrogate the instant messaging service between the different terminals of service.
Preferably, the service identifiers storage unit storage mode is distributed or centralization.
Beneficial effects of the present invention are as follows:
To the user account of instant messaging service, user password, instant messaging service name, client release, client
Terminal type and logging state are identified, compatibility, the scalability of network service are improved, and are realized to instant messaging service
Unified management.
Detailed description of the invention
Specific embodiments of the present invention will be described in further detail with reference to the accompanying drawing.
Fig. 1 shows the method for the invention step.
Fig. 2 shows cryptographic Hash generating process schematic diagrames of the present invention.
Fig. 3 shows cryptographic Hash storage mode schematic diagram of the present invention.
Fig. 4 shows system structure diagram of the present invention.
Specific embodiment
In order to illustrate more clearly of the present invention, the present invention is done further below with reference to preferred embodiments and drawings
It is bright.Similar component is indicated in attached drawing with identical appended drawing reference.It will be appreciated by those skilled in the art that being had below
The content of body description is illustrative and be not restrictive, and should not be limited the scope of the invention with this.
As shown in Figure 1, a kind of management method of instant messaging service includes the following steps:
Step a:The collecting part information from the registration information that instant messaging service client is sent, the partial information is extremely
Include less:User account, user password, instant messaging service name, client release, client terminal type and login shape
State;Wherein, logging state is dummy status.
Step b:Information collected is generated into cryptographic Hash by hash function respectively, the cryptographic Hash is reconfigured,
Service identifiers as instant messaging service.
Step c:Using service identifiers described in centralization or distributed storage mode storage;Wherein, user account generates
Cryptographic Hash is stored in first character section, and the cryptographic Hash that user password generates is stored in second field.
Step d:When user logs in, the partial information is acquired, the information of acquisition is generated into Kazakhstan by hash function respectively
The cryptographic Hash is reconfigured the new demand servicing mark as instant messaging service, according in stored service identifiers by uncommon value
User account and user password cryptographic Hash authenticate login.
Step e:It authenticates successfully, then detects instant messaging service name, client release and visitor in latest services mark
Instant messaging service name, client release and client are whole in family end terminal type cryptographic Hash and the service identifiers stored
Hold type cryptographic Hash whether consistent.
Step f:If consistent, presence cryptographic Hash in new demand servicing mark is replaced into the service identifiers stored
Middle off-line state cryptographic Hash.
Step j:If it is inconsistent, storage new demand servicing mark.
Step h:Authentification failure, then refusal is this time logged in and is required.
Step i:Instant messaging service is managed, including:
According to instant messaging service name cryptographic Hash in the service identifiers of storage, distinguishes and lead between different instant messaging services
Letter agreement difference simultaneously guarantees system compatible variety classes instant messaging service.
According to user account cryptographic Hash in the service identifiers of storage, realizes the inquiry of instant messaging object and establish Instant Messenger
News service.
According to client release cryptographic Hash in the service identifiers of storage, realize that identical type instant messaging services different clients
Hold the instant messaging service between version.
According to client terminal type cryptographic Hash in the service identifiers of storage, the difference of identical instant messaging service is realized eventually
Instant messaging service between end.
Step j:Judge whether client has been off according to client heartbeat message.
Step k:If it is, determining the client off-line, off-line state cryptographic Hash is replaced to the login shape stored
State cryptographic Hash.
Step l:If it is not, then going to step j.
As shown in Fig. 2, at least six group informations of acquisition generate cryptographic Hash by hash function one by one, the cryptographic Hash of generation is again
The service identifiers as the instant messaging service are combined, and are stored using centralization or distributed storage mode.
Specifically, the user account of acquisition, user password, instant messaging service name, client release, client terminal
Each group in type and logging state information generates one group of character string by hash function respectively, and the process of service identifiers can
It is indicated by following:
ZSID=< Φ (U1),Φ(U2),Φ(C1),Φ(C2),Φ(T1),Φ(T2) >
Wherein, ZSIDInstant messaging service identifiers are represented, Φ indicates hash function, by the hexa-atomic information group energy of hash algorithm
Enough mappings obtain service identifiers.U1,U2,C1,C2,T1,T2Respectively represent user account, user password, instant communication client name
Title, client release, client terminal type and logging state.
The set of the character string is exactly the service identifiers of the instant messaging service, using hash function from plaintext to ciphertext
Can not inverse mapping characteristic, guarantee the safety of service identifiers.
As shown in figure 3, storing the service identifiers using centralization or distributed storage mode.
As shown in figure 4, a kind of management system of instant messaging service, including information acquisition unit, service identifiers generate list
Member, service identifiers storage unit, login authentication unit, service managing unit and judging unit;
Information acquisition unit collecting part information from the registration or log-on message that client is sent, will be collected
Information generates cryptographic Hash by hash function and is used as service identifiers after reconfiguring the cryptographic Hash;The partial information is extremely
Include less:User account, user password, instant messaging service name, client release, client terminal type and login shape
State;Wherein, when registration, the logging state is dummy status.
The information of acquisition is generated cryptographic Hash by hash function by the service identifiers generation unit respectively, by the Hash
Value reconfigures, the service identifiers as instant messaging service.
The service identifiers storage unit stores the service identifiers using distributed or centralized fashion;Wherein, user
The cryptographic Hash that account generates is stored in first character section, and the cryptographic Hash that user password generates is stored in second field.
The login authentication unit is used for when users log on, according to user account and user in stored service identifiers
Cryptographic Hash authenticates login, if authenticated successfully, allows this time to log in requirement, if authentification failure, refuse
It this time logs in and requires;It further comprises update module, for detecting instant messaging clothes in latest services mark after logining successfully
Business title, client release and client terminal type cryptographic Hash and instant messaging Service name in the service identifiers stored
Whether title, client release and client terminal type cryptographic Hash are consistent;If consistent, by new demand servicing identify in threadiness
Off-line state cryptographic Hash in the service identifiers that the replacement of state cryptographic Hash has stored;If it is inconsistent, storing the new demand servicing mark.
The service identifiers management instant messaging clothes that the service managing unit is stored based on the service identifiers storage unit
Business;It includes:
Discriminating module distinguishes different instant messagings according to instant messaging service name cryptographic Hash in the service identifiers of storage
Communication protocol difference and guarantee system compatible variety classes instant messaging service between service;
Enquiry module realizes the inquiry of instant messaging object simultaneously according to user account cryptographic Hash in the service identifiers of storage
Establish Communications service;
Version unified modules realize identical type Instant Messenger according to client release cryptographic Hash in the service identifiers of storage
Instant messaging service between news service different clients version;
Terminal unified modules realize identical Instant Messenger according to client terminal type cryptographic Hash in the service identifiers of storage
Interrogate the instant messaging service between the different terminals of service.
The judging unit is used to judge whether client has been off according to client heartbeat message;If it is, will
Off-line state is converted into cryptographic Hash and replaces the logging state cryptographic Hash stored;If it is not, then continuing to judge.
It needs to be explained further, after the heartbeat message is log-in instant communication service, what client was regularly sent
Heartbeat packet, the heartbeat packet be used to server prove that the client is still online, if in the specified time of setting, server
Not receiving client heartbeat message, then to regard client offline.
<Registering and logging process embodiments>
Wechat user carries out user's registration by wechat 6.3.15 client in mobile phone terminal, fills the information such as account number cipher
Registration is clicked afterwards, and registration information at least acquires user account, user password, instant messaging clothes to information acquisition unit based on the received
Business title (wechat), client release (6.3.15), client terminal type (mobile phone) and logging state;Service identifiers generate
Information collected is generated cryptographic Hash by hash function by unit, service identifiers is used as after reconfiguring, and the service is marked
Knowledge is sent to service identifiers storage unit, and service identifiers storage unit stores the service identifiers, wherein logging state is empty shape
State.
After the completion of registration, user is logged in mobile phone terminal by wechat 6.3.15 client, information acquisition unit according to
Received log-on message at least acquires user account, user password, instant messaging service name (wechat), client release
(6.3.15), client terminal type (mobile phone) and logging state, service identifiers generation unit pass through information collected
Hash function generates cryptographic Hash, identifies after reconfiguring as new demand servicing, user in login authentication unit judges new demand servicing mark
The cryptographic Hash one whether cryptographic Hash that account and user password generate generates with the user account and user password stored when registration
It causes, if unanimously, allowing this time to log in, if it is inconsistent, refusal this time logs in.
After logining successfully, instant messaging service name, client release and client terminal in detection new demand servicing mark
Communications service title, client release and client terminal type cryptographic Hash in type cryptographic Hash and the service identifiers stored
It is whether consistent;If consistent, by latest services identify in the service identifiers that have stored of presence cryptographic Hash replacement it is offline
State cryptographic Hash;If it is inconsistent, storing new demand servicing mark.
Service managing unit is managed wechat user according to stored service identifiers, completes the Instant Messenger of wechat
Communication function.
<Instant messaging service management system embodiment>
User A is logged in the end PC QQ client, and information acquisition unit is based on the received in service identifiers management system
Log-on message at least acquires QQ user account, QQ user password, instant messaging service name (QQ), client release, client
Information collected is generated Hash by hash function by terminal type (PC) and logging state, service identifiers generation unit
Value identifies after reconfiguring as new demand servicing, and user account and user password are raw in the login authentication unit judges service identifiers
At cryptographic Hash whether with registration or it is last log in when the cryptographic Hash that generates of the user account that stores and user password it is consistent, such as
Fruit is consistent, then allows this time to log in, if it is inconsistent, refusal this time logs in.
After logining successfully, in login authentication unit update module by new demand servicing identify in instant messaging service name, client
End version and client terminal type cryptographic Hash and Communications service title in the service identifiers that have stored, client release and
Client terminal type cryptographic Hash is matched;If matching is consistent, by latest services identify in presence cryptographic Hash replace
Change off-line state cryptographic Hash in the service identifiers stored;If it is inconsistent, storing new demand servicing mark.
The user A being online sends the account information of communication object B, service managing unit to service management system
Enquiry module service identifiers inquiry is carried out according to user B account in the memory unit, by the online of all party B-subscribers searched
Service identifiers return to user A, if there is only offline service marks in the memory unit, return to user's B information off-line;
If there is no user B information then return search failure information give user A, inquired after being successfully found the service identifiers of party B-subscriber
Module further also sets up A and communicates with B, guarantees instant communication function.
The discriminating module of service managing unit determines instant messaging service QQ's according to instant messaging service name, i.e. QQ
Communication protocol and adjusting system makes it be compatible with described instant messaging service QQ;Version unified modules guarantee user A and B in client
When version difference, it is still able to normal communication;Terminal unified modules guarantee user A and B in client terminal type difference still
It is old being capable of normal communication.
The discriminating module of service managing unit, support various communications protocols, e.g., UDP, HTTP etc., and according to service identifiers
The cryptographic Hash of middle instant messaging service name distinguishes communication protocol, and a kind of instant message applications is fixed complete using a kind of communication protocol
At communication, e.g., QQ uses udp protocol.As long as can determine that the instant messaging service is logical using which kind of by instant messaging title
Believe agreement.And the communication between user A, B is completed according to the communication protocol of discriminating module identification.
Version unified modules support a variety of client releases, and according to client release Hash in the service identifiers of storage
Value and the client release cryptographic Hash of communication other side's storage, are compared.It is directly communicated if the two is identical, if not
Together, then the side that version unified modules can select version low, completes the transmitting of information.
Terminal unified modules, according to client terminal type cryptographic Hash, terminal in the service identifiers of the communication two party of storage
Unified modules can support multiple terminal type, be compared in terminal unified modules according to communication two party terminal type cryptographic Hash
It is right, if unified, can directly be communicated;If it is different, the terminal type that terminal unified modules are supported according to communication two party
Carry out information transmitting.
For example, discriminating module, version unified modules, terminal unified modules collect corresponding information respectively, user A's is
When Communications service entitled QQ, client release number be V6.2.1, the instant messaging service name of terminal type PC, user B
It is V6.2.2 for QQ, client release number, terminal type is mobile phone.
After discriminating module determines that instant messaging service name is QQ, determine that the communication protocol of both sides is udp protocol, and use
The communication of udp protocol completion both sides.After the identification of version unified modules, determine that both sides' version is inconsistent, then the meeting of version unified modules
The side for selecting version low, completes the transmitting of information.In this example, the version number V6.2.2 of party B-subscriber can be selected, completes the logical of both sides
News.When terminal unified modules identify the terminal type difference of both sides, information transmitting can be carried out according to the terminal type that both sides support.
After the user logs, judgment module determines to use according to the heartbeat message that user client is sent in service managing unit
Family logging state;When judging result be it is no, active client is then considered as off-line state by judgment module, and by the Kazakhstan of off-line state
Uncommon value replaces with presence cryptographic Hash, it should be noted that online and offline cryptographic Hash is directly stored in judgment module, nothing
It need to generate again.
Obviously, the above embodiment of the present invention be only to clearly illustrate example of the present invention, and not be pair
The restriction of embodiments of the present invention may be used also on the basis of the above description for those of ordinary skill in the art
To make other variations or changes in different ways, all embodiments can not be exhaustive here, it is all to belong to this hair
The obvious changes or variations that bright technical solution is extended out are still in the scope of protection of the present invention.
Claims (5)
1. a kind of management method of instant messaging service, which is characterized in that include the following steps:
Step a:The collecting part information from the registration information that instant messaging service client is sent, the partial information are at least wrapped
It includes:User account, user password, instant messaging service name, client release, client terminal type and logging state;
Wherein, logging state is dummy status;
Step b:Information collected is generated into cryptographic Hash by hash function respectively, the cryptographic Hash is reconfigured, as
The service identifiers of instant messaging service;
Step c:Store the service identifiers;
Step d:When user logs in, the partial information is acquired, the information of acquisition is generated into cryptographic Hash by hash function respectively,
The cryptographic Hash is reconfigured into the new demand servicing mark as instant messaging service, according to user's account in stored service identifiers
Number and user password cryptographic Hash login is authenticated;
Step e:If authenticated successfully, instant messaging service name, client release and visitor in latest services mark are detected
Communications service title, client release and client terminal class in family end terminal type cryptographic Hash and the service identifiers stored
Whether type cryptographic Hash is consistent;
Step f:If consistent, by the replacement of presence cryptographic Hash has stored in new demand servicing mark service identifiers from
Linear state cryptographic Hash;
Step g:If it is inconsistent, storing the new demand servicing mark;
Step h:If authentification failure, refusal is this time logged in and is required;
Step i:Manage instant messaging service;
Wherein, the management instant messaging service includes:
According to instant messaging service name cryptographic Hash in the service identifiers of storage, communication protocols between different instant messaging services are distinguished
View difference simultaneously guarantees system compatible variety classes instant messaging service;
According to user account cryptographic Hash in the service identifiers of storage, realizes the inquiry of instant messaging object and establish Communications service;
According to client release cryptographic Hash in the service identifiers of storage, realize that identical type instant messaging services different clients version
Instant messaging service between this;
According to client terminal type cryptographic Hash in the service identifiers of storage, realize identical instant messaging service different terminals it
Between instant messaging service;
Step j:Judge whether client has been off according to client heartbeat message;
Step k:If it is, determining the client off-line, the logging state that the replacement of off-line state cryptographic Hash has stored is breathed out
Uncommon value;
Step l:If it is not, then going to step j.
2. the method according to claim 1, wherein being taken using described in centralization or distributed storage mode storage
Business mark.
3. according to the method described in claim 2, it is characterized in that, the cryptographic Hash that user account generates is stored in first character
Section, the cryptographic Hash that user password generates are stored in second field.
4. a kind of management system of instant messaging service, which is characterized in that generated including information acquisition unit, service identifiers single
Member, service identifiers storage unit, login authentication unit, service managing unit and judging unit;
Information acquisition unit collecting part information from the registration or log-on message that client is sent, the partial information is extremely
Include less:User account, user password, instant messaging service name, client release, client terminal type and login shape
State;Wherein, when registration, the logging state is dummy status;
The information of acquisition is generated cryptographic Hash by hash function by the service identifiers generation unit respectively, by the cryptographic Hash weight
Combination nova, the service identifiers as instant messaging service;
The service identifiers storage unit stores the service identifiers;Wherein, the cryptographic Hash that user account generates is stored in first
A field, the cryptographic Hash that user password generates are stored in second field;
The login authentication unit is used for when users log on, according to user account and user password in stored service identifiers
Cryptographic Hash authenticates login;If authenticated successfully, allow this time to log in requirement, if authentification failure, refusal is this time
It logs in and requires;
The service managing unit manages instant messaging service based on the service identifiers that the service identifiers storage unit stores;
The judging unit is used to judge whether client has been off according to client heartbeat message;If it is, by offline
Condition conversion is cryptographic Hash and replaces the logging state cryptographic Hash stored;If it is not, then continuing to judge;
The login authentication unit further comprises update module, for detecting Instant Messenger in latest services mark after logining successfully
News service name, client release and client terminal type cryptographic Hash and instant messaging service in the service identifiers stored
Whether title, client release and client terminal type cryptographic Hash are consistent;If consistent, by new demand servicing identify in it is online
Off-line state cryptographic Hash in the service identifiers that the replacement of state cryptographic Hash has stored;If it is inconsistent, storing the new demand servicing mark
Know;
The service managing unit includes:
Discriminating module distinguishes different instant messaging services according to instant messaging service name cryptographic Hash in the service identifiers of storage
Between communication protocol difference and guarantee system compatible variety classes instant messaging service;
Enquiry module realizes the inquiry of instant messaging object and foundation according to user account cryptographic Hash in the service identifiers of storage
Communications service;
Version unified modules realize identical type instant messaging clothes according to client release cryptographic Hash in the service identifiers of storage
Instant messaging service between different clients version of being engaged in;
Terminal unified modules realize identical instant messaging clothes according to client terminal type cryptographic Hash in the service identifiers of storage
Instant messaging service between the different terminals of business.
5. system according to claim 4, which is characterized in that the service identifiers storage unit storage mode is distribution
Or centralization.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610373292.2A CN105871698B (en) | 2016-05-31 | 2016-05-31 | A kind of management method and system of instant messaging service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610373292.2A CN105871698B (en) | 2016-05-31 | 2016-05-31 | A kind of management method and system of instant messaging service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105871698A CN105871698A (en) | 2016-08-17 |
CN105871698B true CN105871698B (en) | 2018-11-23 |
Family
ID=56642801
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610373292.2A Active CN105871698B (en) | 2016-05-31 | 2016-05-31 | A kind of management method and system of instant messaging service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105871698B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107147643A (en) * | 2017-05-10 | 2017-09-08 | 武汉票据交易中心有限公司 | A kind of client login method |
CN110879713B (en) * | 2018-09-06 | 2023-06-20 | 山东华软金盾软件股份有限公司 | Android terminal strong encryption plug-in thermal update management method |
CN110674493B (en) * | 2019-09-29 | 2021-05-14 | 重庆市筑智建信息技术有限公司 | BIM system login verification method and system |
CN110717170B (en) * | 2019-10-09 | 2023-08-11 | 江苏重华数字科技有限公司 | Fingerprint login system, method and device of BIM system |
CN114338574B (en) * | 2021-12-07 | 2024-01-30 | 哈尔滨工业大学 | Instant messaging method, management node and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866934A (en) * | 2005-05-20 | 2006-11-22 | 腾讯科技(深圳)有限公司 | Instant communication service realizing method and its system |
CN101662510A (en) * | 2009-09-16 | 2010-03-03 | 北京交通大学 | Network naming mechanism and name analytic mapping system |
CN101867514A (en) * | 2010-05-10 | 2010-10-20 | 北京交通大学 | Method for implementing fusion of network middleware |
-
2016
- 2016-05-31 CN CN201610373292.2A patent/CN105871698B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866934A (en) * | 2005-05-20 | 2006-11-22 | 腾讯科技(深圳)有限公司 | Instant communication service realizing method and its system |
CN101662510A (en) * | 2009-09-16 | 2010-03-03 | 北京交通大学 | Network naming mechanism and name analytic mapping system |
CN101867514A (en) * | 2010-05-10 | 2010-10-20 | 北京交通大学 | Method for implementing fusion of network middleware |
Non-Patent Citations (2)
Title |
---|
M-Label A naming scheme for services in future networks;Wei Quan等;《Cloud Computing and Intelligent Systems (CCIS), 2012 IEEE 2nd International Conference》;20121130;第792-794页 * |
未来网络资源命名与分发机理研究;权伟;《中国优秀博士学位论文全文数据库信息科技辑》;20150415;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN105871698A (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105871698B (en) | A kind of management method and system of instant messaging service | |
CN104506510B (en) | Method and device for equipment authentication and authentication service system | |
CN101127606B (en) | Method and device for transmitting data object | |
CN102833235B (en) | Identity card management device | |
CN107251528B (en) | Method and apparatus for providing data originating within a service provider network | |
CN103188207B (en) | A kind of cross-domain single sign-on realization method and system | |
CN101997759B (en) | Service implementation method and service system | |
CN106254560A (en) | Information transferring method and device | |
JP2013196036A (en) | Service request device, service request method, and service request program | |
WO2017036289A1 (en) | Data access method and device | |
CN103023856A (en) | Single sign-on method, single sign-on system, information processing method and information processing system | |
JP5817728B2 (en) | Condition matching system, condition matching link device, and condition matching processing method | |
KR101506594B1 (en) | Method and system for subscriber to log in internet content provider(icp) website in identity/location separation network and login device thereof | |
CN104093081A (en) | On-line instant chat system based on digital television and implementation method | |
JP2009217522A (en) | System and method for providing personal attribute information | |
JP5589034B2 (en) | Information distribution system, authentication linkage method, apparatus, and program thereof | |
CN108377217A (en) | A kind of real-time communication method and device | |
CN101247369A (en) | User information expression method, instant communication system and equipment in instant communication | |
JP2007035053A (en) | Method for maintaining session between different-terminals | |
CN113572844A (en) | Industrial internet identification analysis method | |
CN102158477A (en) | Communication system and information interaction method | |
KR101096334B1 (en) | System for transmitting customer-fit web page and control method thereof, mobile communication corporation server comprised in the system and control method thereof | |
CN105100107B (en) | The method and apparatus of agent client account certification | |
EP1644841A1 (en) | Method and system of providing access point data associated with a network access point | |
CN104038482A (en) | Multi-circuit circuit selection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |