[go: up one dir, main page]

CN105871698A - Management method and system of instant communication service - Google Patents

Management method and system of instant communication service Download PDF

Info

Publication number
CN105871698A
CN105871698A CN201610373292.2A CN201610373292A CN105871698A CN 105871698 A CN105871698 A CN 105871698A CN 201610373292 A CN201610373292 A CN 201610373292A CN 105871698 A CN105871698 A CN 105871698A
Authority
CN
China
Prior art keywords
service
instant messaging
cryptographic hash
client
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610373292.2A
Other languages
Chinese (zh)
Other versions
CN105871698B (en
Inventor
权伟
张宏科
周华春
刘亚娜
赵允
富建国
刘宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jiaotong University
Original Assignee
Beijing Jiaotong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jiaotong University filed Critical Beijing Jiaotong University
Priority to CN201610373292.2A priority Critical patent/CN105871698B/en
Publication of CN105871698A publication Critical patent/CN105871698A/en
Application granted granted Critical
Publication of CN105871698B publication Critical patent/CN105871698B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-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/18Commands or executable codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种即时通讯服务的管理方法,该方法从即时通讯服务客户端发送的注册信息中至少采集:用户账号、用户密码、即时通讯服务名称、客户端版本、客户端终端类型以及登录状态信息,再将所采集的信息通过哈希函数分别生成哈希值,所述哈希值重新组合后作为即时通讯服务的服务标识,根据所述服务标识实现对即时通讯服务的管理,提高网络服务的兼容性、可扩展性,实现对即时通讯服务的统一管理。

A management method for an instant messaging service, which collects at least: user account number, user password, instant messaging service name, client version, client terminal type, and login status information from registration information sent by an instant messaging service client, and then Generate hash values from the collected information through a hash function, and recombine the hash values as the service identifier of the instant messaging service, realize the management of the instant messaging service according to the service identifier, and improve the compatibility of network services , scalability, to achieve unified management of instant messaging services.

Description

一种即时通讯服务的管理方法与系统Management method and system for instant messaging service

技术领域 technical field

本发明涉及计算机网络及通信领域。更具体地,涉及一种即时通讯服务的管理方法与系统。 The invention relates to the field of computer network and communication. More specifically, it relates to a management method and system for instant messaging services.

背景技术 Background technique

随着信息网络技术的飞速发展以及人们对通信需求的日益增长,网络服务不断涌现(如:电子邮件、在线视频、电子商务以及即时通讯等)。在众多信息网络服务中,即时通讯(Instant Messaging,IM)服务飞速发展,它的便捷性、实时性、廉价性等注定使其超越传统通信方式而成为主流通信手段。即时通讯可以说是继电子邮件(Electronic Mail,E-mail)、环球信息网(World Wide Web,WWW)之后,互联网上最具杀伤力的应用。相对于传统的电话、E-mail等通信方式来说,即时通讯不仅节省费用,而且效率非常高。 With the rapid development of information network technology and people's increasing demand for communication, network services (such as: email, online video, e-commerce and instant messaging, etc.) continue to emerge. Among the many information network services, Instant Messaging (IM) service is developing rapidly. Its convenience, real-time performance and low cost are destined to surpass the traditional communication methods and become the mainstream communication means. Instant messaging can be said to be the most lethal application on the Internet after Electronic Mail (E-mail) and World Wide Web (WWW). Compared with traditional communication methods such as telephone and E-mail, instant messaging not only saves costs, but also is very efficient.

由于即时通讯软件的兴起,能够进行即时互通的“内容”正迅速由语音全面扩展到图像、文字、数据等方面,不过“多功能”还不是即时通讯的全部内涵,能够跨越互联网、手机、固定电话等多个平台进行通信才是即时通讯未来的价值所在。即时互通的内容不仅是语音,还包括图像、资料、数据等;终端设备不仅可以是电脑,还可以是手机;即时通讯软件的版本不仅有PC(Personal Computer)版,还有手机版、网页版等。总的来说,即时通讯软件可以实现用户随时随地和任何人进行任何方式的沟通, Due to the rise of instant messaging software, the "content" capable of instant intercommunication is rapidly expanding from voice to image, text, data, etc. The future value of instant messaging lies in communication on multiple platforms such as telephones. The content of instant communication is not only voice, but also images, data, data, etc.; the terminal device can be not only a computer, but also a mobile phone; the version of instant messaging software not only has a PC (Personal Computer) version, but also a mobile version and a web version Wait. In general, instant messaging software enables users to communicate with anyone anytime, anywhere.

即时通讯服务的“多功能”、“超便捷”,虽然能够很大程度上提升用户体验,但是,这也势必会给网络带来一定的负担。纵观这些网络服务,可以看出服务之间存在实现方式不同、服务类型不同、服务面向终端不同等问题,导致即时通讯服务难于统一控制管理。 Although the "multi-function" and "ultra-convenience" of the instant messaging service can greatly improve the user experience, it will inevitably bring a certain burden to the network. Looking at these network services, it can be seen that there are problems such as different implementation methods, different service types, and different service terminals among services, which makes it difficult to control and manage instant messaging services in a unified manner.

为解决上述问题,一体化标识网络体系及关键技术[1]中提出了普适服务的服务标识理论,建立了相应的解析映射模型,并以此为基础创建服务层统一处理机制和机理,提供普适服务。在一体化标识网络新模型中,服务层中引入虚拟服务模块和虚拟连接模块。虚拟服务模块可以解决统一的服务对象调度,提供服务的可控可管,为支持多种服务提供可能。关键是引入服务标识(Service IDentifier,SID)的概念,对各种网络支持的服务进行统一的分类描述,在此基 础上设计服务统一处理机制(包括服务注册、服务查询、服务建立等)。 In order to solve the above problems, the service identification theory of pervasive services is proposed in the integrated identification network system and key technologies [1], and the corresponding analytical mapping model is established, and based on this, the unified processing mechanism and mechanism of the service layer are created to provide Universal service. In the new model of the integrated identification network, a virtual service module and a virtual connection module are introduced into the service layer. The virtual service module can solve unified service object scheduling, provide controllable and manageable services, and provide the possibility to support multiple services. The key is to introduce the concept of service identifier (Service IDentifier, SID) to uniformly classify and describe various network-supported services, and then design a unified service processing mechanism (including service registration, service query, service establishment, etc.) on this basis.

在一体化标识网络背景下,已经提出了关于网页资源与服务的具体服务标识生成机制,即使用统一资源定位符(Uniform Resource Locator,URL)来生成该网页资源的SID。但是,针对如何实现即时通讯服务统一分类描述和处理的设计和研究还未深入。当前的网络资源采用以主机为中心的命名方式,Internet上网页和其他资源采用URL,每个URL的前半部分表示主机域名,后半部分表示资源在当前主机中的位置。网络资源和服务之所以能够使用URL,是因为它们在网络中的位置是固定不变的,互联网上的每个文件都有唯一的一个URL,它包含的信息指出文件的位置以及浏览器应该如何处理它。 In the context of the integrated identification network, a specific service identification generation mechanism for web resources and services has been proposed, that is, a Uniform Resource Locator (Uniform Resource Locator, URL) is used to generate the SID of the web resource. However, the design and research on how to realize the unified classification, description and processing of instant messaging services have not been in-depth. Current network resources adopt a host-centric naming method. Web pages and other resources on the Internet use URLs. The first half of each URL indicates the domain name of the host, and the second half indicates the location of the resource on the current host. Web resources and services can use URLs because their location on the network is fixed. Every file on the Internet has a unique URL, which contains information indicating where the file is and how the browser should view it. deal with it.

但是针对即时通讯服务,如果仍然采用URL这种方式就不再适用。主要原因有以下几点:(1)即时通讯用户仅账号是固定不变的,但是每次注册服务时的状态会有所改变,比如,登录的客户端版本号、登录的终端类型等会有所不同。(2)即时通讯提供的是端到端的即时会话服务,这种服务会随着用户状态的变化而变化。例如,用户登录状态由在线状态转为离线,用户登录的软件版本号改变,用户登录的终端类型发生切换等等,都会导致即时通讯服务的改变。综合上述两点原因,必须针对即时通讯自身特点,来确定服务标识,并利用该服务标识完成对即时通讯服务的统一高效管理。 However, for instant messaging services, if the URL is still used, this method is no longer applicable. The main reasons are as follows: (1) Only the account number of instant messaging users is fixed, but the status will change each time they register for the service. different. (2) Instant messaging provides an end-to-end instant conversation service, which changes with changes in user status. For example, the user's login status changes from online to offline, the software version number of the user's login changes, and the terminal type of the user's login changes, etc., all of which will lead to changes in the instant messaging service. Combining the above two reasons, it is necessary to determine the service identification according to the characteristics of instant messaging itself, and use the service identification to complete the unified and efficient management of instant messaging services.

专利文献[2]提出一种网络资源与服务的统一描述方法,主要针对互联网的服务和资源的查找,提出以本体描述为基础,将资源和服务通过属性联系起来的统一描述方法,以实现对资源和服务的统一查找。本发明包括:包含局域网和广域网以及移动通讯网的互联网,其关键步骤是:定义本体的类的层次;定义属性;用户向注册中心注册其提供的资源和服务;用户端对网络资源进行查询。本发明将客户需要从网络上获得的网络资源和服务做了形式上的统一,基于这种统一可以实现资源和服务的注册和查询。 Patent document [2] proposes a unified description method for network resources and services, mainly for the search of Internet services and resources, and proposes a unified description method based on ontology description, linking resources and services through attributes, so as to realize the Unified lookup of resources and services. The present invention includes: the Internet including local area network, wide area network and mobile communication network, and its key steps are: defining the class hierarchy of the ontology; defining attributes; users registering the resources and services they provide with the registration center; and the user end inquiring about network resources. The present invention unifies the network resources and services that customers need to obtain from the network in form, and based on this unification, the registration and query of resources and services can be realized.

该方案的缺点为: The disadvantages of this scheme are:

(1)该方案没有考虑即时通讯服务登录状态不确定的特点。该方案中提出的统一服务描述方法主要依靠服务与资源的位置唯一性和不变性,对位于某一网络位置中的资源进行唯一服务标识描述,并通过该服务标识对其进行管理。但是,即时通讯用户仅账号是固定不变的,每次注册服务时的状态都有可能发生变化,比如,登录的客户端版本号、登录的终端类型等会有所不同。当用户状态中的任一元素(包括登录状态、登录客户端版本号等)发生变化时,该用户注册的即时通讯服务就会不同。 (1) This scheme does not take into account the uncertain characteristics of instant messaging service login status. The unified service description method proposed in this scheme mainly relies on the location uniqueness and invariance of services and resources, and describes resources located in a certain network location with a unique service identifier, and manages them through the service identifier. However, only the account number of the instant messaging user is fixed, and the status may change each time the service is registered. For example, the version number of the client terminal to log in, the terminal type to log in, etc. will be different. When any element in the user status (including login status, login client version number, etc.) changes, the instant messaging service registered by the user will be different.

(2)该方案没有考虑即时通讯服务即时性的特点。即时通讯提供的是端到端的即时会话服务,当用户状态中的任一元素(包括登录状态、登录客户端版本号等)发生变化时,这种服务会随着用户状态的变化而变化。但是,本方案中提出的服务描述方法只针对静态服务。 (2) This scheme does not consider the immediacy characteristics of instant messaging services. Instant messaging provides an end-to-end instant session service. When any element in the user status (including login status, login client version number, etc.) changes, this service will change with the change of the user status. However, the service description method proposed in this scheme is only for static services.

专利文献[3]提供一种网络命名机制与名字解析映射系统,属于网络技术领域。本发明的命名机制首先由数据、服务发布者或请求者发出数据或服务请求;然后由中继层负责提取数据或服务的元信息;再经过哈希算法得到一个字符串,该字符串用来标识所提取的数据或服务。本发明的名字解析系统应用一个三层网络结构——维护层、实现层和中继层来实现,利用上述规则命名的名字的解析映射,从而替代现有的DNS的名字解析映射系统,有效地实现了网络名字解析映射。本发明通过数据和服务的统一命名来实现数据和服务的统一描述,并用三层网络结构实现名字解析处理,从而有效地实现了名字解析映射,降低网络资源的浪费。 Patent document [3] provides a network naming mechanism and a name resolution mapping system, belonging to the field of network technology. In the naming mechanism of the present invention, the data or service publisher or requester first sends a data or service request; then the relay layer is responsible for extracting the metadata of the data or service; and then a string is obtained through a hash algorithm, which is used for Identify the extracted data or services. The name resolution system of the present invention uses a three-layer network structure—maintenance layer, implementation layer and relay layer to realize, utilizes the resolution mapping of the names named by the above rules, thereby replacing the existing DNS name resolution mapping system, effectively Implemented network name resolution mappings. The invention realizes the unified description of the data and the service through the unified naming of the data and the service, and uses a three-layer network structure to realize the name resolution processing, thereby effectively realizing the name resolution mapping and reducing the waste of network resources.

该方案的缺点为:该方案没有说明网络服务命名时该名字的具体组成要素,提到利用网络爬虫手段主动发现网络中的资源,然后对网页信息进行分析,对于网络数据,提取出位置信息,对于服务提取出服务提供者信息,然后由中继层负责提取数据或服务的元信息。但是针对服务提供者信息具体是哪些内容并没有进行进一步的阐述。 The disadvantages of this solution are: the solution does not specify the specific components of the name when naming the network service, and mentions the use of web crawlers to actively discover resources in the network, and then analyze the web page information, and extract the location information for network data. For the service, the service provider information is extracted, and then the relay layer is responsible for extracting the meta information of the data or service. However, there is no further elaboration on the specific content of the service provider information.

专利文献[4]涉及即时通讯技术领域,尤其涉及一种即时通讯服务的实现方法及其系统。本发明为一种即时通讯服务的实现方法及其系统,预先为各个区域的用户分配地区码和语言版本信息,利用地区码和各个用户的即时通讯号码对即时通讯用户进行身份验证,从而使得用户能够登录即时通讯服务系统,并在用户登录成功后,记录该用户的语言版本信息,在用户交互过程中,利用该记录的语言版本信息,对显示内容进行编码转换和文字翻译,从而实现不同区域用户之间的互联互通。利用本发明,能够使得每个用户都能够使用其熟悉的语言界面和语言同其他用户进行交流,使得用户之间的交流不再受到地域和语言的限制,从而大大提高了即时通讯服务的服务质量。 Patent document [4] relates to the technical field of instant messaging, in particular to a method and system for implementing instant messaging services. The present invention is an instant messaging service implementation method and system thereof, which pre-assigns area codes and language version information to users in each area, uses the area codes and the instant messaging numbers of each user to perform identity verification on instant messaging users, so that users Be able to log in to the instant messaging service system, and record the user's language version information after the user logs in successfully. During the user interaction process, use the recorded language version information to perform code conversion and text translation for the displayed content, so as to realize different regions. Interconnection between users. Utilizing the present invention, each user can communicate with other users using their familiar language interface and language, so that the communication between users is no longer restricted by region and language, thereby greatly improving the service quality of instant messaging services .

该方案的缺点为:该方案中虽然提出了针对即时通讯服务的统一管理方法,但是使用该方法,各个即时通讯服务之间不能区分客户端类型、客户端版本号、以及终端类型。该方案更加侧重于解决不同地域间语言习惯的问题,在不同区域之间,由于不同的语言习惯,存在对相同事物的不同说法,例如,大陆称为菠萝,而在台湾地区则称为凤梨,此种说法的不一致,会在不同区域的用户进行互 联互通时,为用户的交流制造一定困难。使用该方案虽然能够解决语言习惯的问题,但是更重要的问题——服务标识统一管理并没有解决。 The disadvantage of this scheme is that although this scheme proposes a unified management method for instant messaging services, using this method, the client type, client version number, and terminal type cannot be distinguished among various instant messaging services. This program focuses more on solving the problem of language habits between different regions. Due to different language habits, there are different ways of saying the same thing in different regions. For example, the mainland is called pineapple, while it is called pineapple in Taiwan. The inconsistency of such statements will create certain difficulties for user communication when users in different regions are interconnected. Although using this solution can solve the problem of language habits, the more important problem - unified management of service identification has not been solved.

参考文献: references:

[1]苏伟,刘琪,张宏科.一体化标识网络体系及关键技术[J].中兴通讯技术,2011,17(2):1-4. [1] Su Wei, Liu Qi, Zhang Hongke. Integrated Identification Network System and Key Technologies [J]. ZTE Technology, 2011, 17(2):1-4.

[2]一种网络资源与服务的统一描述方法,专利号:CN200710121749.1 [2] A unified description method for network resources and services, patent number: CN200710121749.1

[3]一种网络命名机制与名字解析映射系统,专利号:CN200910092501.6 [3] A network naming mechanism and name resolution mapping system, patent number: CN200910092501.6

[4]一种即时通讯服务的实现方法及其系统,专利号:CN200510071191.1 [4] A method and system for realizing instant messaging service, patent number: CN200510071191.1

发明内容 Contents of the invention

本发明的目的在于提供一种即时通讯服务的管理方法与系统,解决上述至少一个问题。 The purpose of the present invention is to provide a management method and system for instant messaging services, which can solve at least one of the above problems.

为达到上述目的,本发明采用下述技术方案: To achieve the above object, the present invention adopts the following technical solutions:

一种即时通讯服务的管理方法,包括以下步骤: A management method for an instant messaging service, comprising the following steps:

步骤a:从即时通讯服务客户端发送的注册信息中采集部分信息,所述部分信息至少包括:用户账号、用户密码、即时通讯服务名称、客户端版本、客户端终端类型以及登录状态;其中,登录状态为空状态; Step a: collect some information from the registration information sent by the instant messaging service client, the partial information at least includes: user account, user password, instant messaging service name, client version, client terminal type, and login status; wherein, The login state is an empty state;

步骤b:将所采集的信息通过哈希函数分别生成哈希值,将所述哈希值重新组合,作为即时通讯服务的服务标识; Step b: generating hash values from the collected information through a hash function, and recombining the hash values as service identifiers of the instant messaging service;

步骤c:存储所述服务标识; Step c: storing the service identifier;

步骤d:用户登录时,采集所述部分信息,将采集的信息通过哈希函数分别生成哈希值,将所述哈希值重新组合作为即时通讯服务的新服务标识,根据已存储的服务标识中用户账号和用户密码哈希值对登录进行认证; Step d: When the user logs in, collect the part of the information, generate a hash value for the collected information through a hash function, and recombine the hash value as a new service identifier of the instant messaging service, according to the stored service identifier User account and user password hash value to authenticate login;

步骤e:认证成功,则检测最新服务标识中即时通讯服务名称、客户端版本以及客户端终端类型哈希值与已储存的服务标识中即时通讯服务名称、客户端版本以及客户端终端类型哈希值是否一致; Step e: If the authentication is successful, check the hash value of the instant messaging service name, client version and client terminal type in the latest service identification and the instant messaging service name, client version and client terminal type hash in the stored service identification Whether the value is consistent;

步骤f:如果一致,则将所述新服务标识中在线状态哈希值替换已储存的服务标识中离线状态哈希值; Step f: If they are consistent, replace the online status hash value in the new service ID with the offline status hash value in the stored service ID;

步骤j:如果不一致,则储存新服务标识; Step j: if inconsistent, store the new service identifier;

步骤h:认证失败,则拒绝此次登录要求; Step h: If the authentication fails, the login request is rejected;

步骤i:管理即时通讯服务; Step i: manage the instant messaging service;

其中,所述管理即时通讯服务包括: Wherein, the management instant messaging service includes:

根据储存的服务标识中即时通讯服务名称哈希值,区分不同即时通讯服务之间通信协议差异并保证系统兼容不同种类即时通讯服务; According to the hash value of the instant messaging service name in the stored service identification, distinguish the differences in communication protocols between different instant messaging services and ensure that the system is compatible with different types of instant messaging services;

根据储存的服务标识中用户账号哈希值,实现即时通讯对象的查询并建立即时通讯服务; According to the hash value of the user account in the stored service identification, realize the query of the instant messaging object and establish the instant messaging service;

根据储存的服务标识中客户端版本哈希值,实现相同种类即时通讯服务不同客户端版本之间的即时通讯服务; Realize instant messaging services between different client versions of the same type of instant messaging service according to the hash value of the client version in the stored service identifier;

根据储存的服务标识中客户端终端类型哈希值,实现相同即时通讯服务的不同终端之间的即时通讯服务; Realize the instant messaging service between different terminals of the same instant messaging service according to the hash value of the client terminal type in the stored service identifier;

步骤j:根据客户端心跳信息判断客户端是否已经离线; Step j: Determine whether the client is offline according to the heartbeat information of the client;

步骤k:如果是,则判定所述客户端离线,将离线状态哈希值替换已储存的登录状态哈希值; Step k: If yes, then determine that the client is offline, and replace the stored login state hash value with the offline state hash value;

步骤l:如果否,则转到步骤j。 Step l: If no, go to step j.

优选的,采用集中式或分布式存储模式储存所述服务标识。 Preferably, the service identifier is stored in a centralized or distributed storage mode.

优选的,用户账号生成的哈希值储存在第一个字段,用户密码生成的哈希值储存在第二个字段。 Preferably, the hash value generated by the user account is stored in the first field, and the hash value generated by the user password is stored in the second field.

一种即时通讯服务的管理系统,包括信息采集单元、服务标识生成单元、服务标识存储单元、登录认证单元、服务管理单元以及判断单元; A management system for instant messaging services, including an information collection unit, a service identification generation unit, a service identification storage unit, a login authentication unit, a service management unit, and a judgment unit;

所述信息采集单元从客户端发送的注册或登录信息中采集部分信息,将所采集的信息通过哈希函数生成哈希值并将所述哈希值重新组合后作为服务标识;所述部分信息至少包括:用户账号、用户密码、即时通讯服务名称、客户端版本、客户端终端类型以及登录状态;其中,注册时,所述登录状态为空状态; The information collection unit collects part of the information from the registration or login information sent by the client, generates a hash value from the collected information through a hash function and reassembles the hash value as a service identifier; the part of information At least include: user account, user password, instant messaging service name, client version, client terminal type, and login status; wherein, when registering, the login status is empty;

所述服务标识生成单元将采集的信息通过哈希函数分别生成哈希值,将所述哈希值重新组合,作为即时通讯服务的服务标识; The service identification generation unit generates hash values respectively through the hash function for the collected information, and recombines the hash values as the service identification of the instant messaging service;

所述服务标识存储单元储存所述服务标识;其中,用户账号生成的哈希值储存在第一个字段,用户密码生成的哈希值储存在第二个字段; The service identifier storage unit stores the service identifier; wherein, the hash value generated by the user account is stored in the first field, and the hash value generated by the user password is stored in the second field;

所述登录认证单元用于当用户登录时,根据已存储的服务标识中用户账号和用户密码哈希值对登录进行认证;如果认证成功,则允许此次登录要求,如果认证失败,则拒绝此次登录要求; The login authentication unit is used to authenticate the login according to the user account number and user password hash value in the stored service identification when the user logs in; if the authentication is successful, the login request is allowed, and if the authentication fails, the login request is rejected. login request;

所述服务管理单元基于所述服务标识存储单元储存的服务标识管理即时通讯服务; The service management unit manages the instant messaging service based on the service identification stored in the service identification storage unit;

所述判断单元用于根据客户端心跳信息判断客户端是否已经离线;如果 是,则将离线状态转化为哈希值并替换已储存的登录状态哈希值;如果否,则继续判断。 The judging unit is used to judge whether the client is offline according to the heartbeat information of the client; if yes, convert the offline state into a hash value and replace the stored login state hash value; if not, continue to judge.

优选的,所述登录认证单元进一步包括更新模块,用于登录成功后检测最新服务标识中即时通讯服务名称、客户端版本以及客户端终端类型哈希值与已储存的服务标识中即时通讯服务名称、客户端版本以及客户端终端类型哈希值是否一致;如果一致,则将新服务标识中在线状态哈希值替换已储存的服务标识中离线状态哈希值;如果不一致,则储存所述新服务标识。 Preferably, the login authentication unit further includes an update module, configured to detect the hash value of the instant messaging service name, client version, and client terminal type in the latest service identification and the instant messaging service name in the stored service identification after the login is successful. , the client version, and the client terminal type hash values are consistent; if they are consistent, replace the online status hash value in the new service ID with the offline status hash value in the stored service ID; if they are inconsistent, store the new service ID Service ID.

优选的,所述服务管理单元包括: Preferably, the service management unit includes:

区分模块,根据储存的服务标识中即时通讯服务名称哈希值,区分不同即时通讯服务之间通信协议差异并保证系统兼容不同种类即时通讯服务; The distinguishing module, according to the hash value of the instant messaging service name in the stored service identification, distinguishes the communication protocol difference between different instant messaging services and ensures that the system is compatible with different types of instant messaging services;

查询模块,根据储存的服务标识中用户账号哈希值,实现即时通讯对象的查询并建立通讯服务; The query module realizes the query of the instant messaging object and establishes the communication service according to the hash value of the user account in the stored service identifier;

版本统一模块,根据储存的服务标识中客户端版本哈希值,实现相同种类即时通讯服务不同客户端版本之间的即时通讯服务 The version unification module realizes the instant messaging service between different client versions of the same type of instant messaging service according to the hash value of the client version in the stored service identification

终端统一模块,根据储存的服务标识中客户端终端类型哈希值,实现相同即时通讯服务的不同终端之间的即时通讯服务。 The terminal unification module realizes the instant messaging service between different terminals of the same instant messaging service according to the hash value of the client terminal type stored in the service identification.

优选的,所述服务标识存储单元存储方式为分布式或集中式。 Preferably, the storage mode of the service identification storage unit is distributed or centralized.

本发明的有益效果如下: The beneficial effects of the present invention are as follows:

对即时通讯服务的用户账号、用户密码、即时通讯服务名称、客户端版本、客户端终端类型以及登录状态进行识别,提高网络服务的兼容性、可扩展性,实现对即时通讯服务的统一管理。 Identify the user account, user password, instant messaging service name, client version, client terminal type and login status of the instant messaging service, improve the compatibility and scalability of network services, and realize the unified management of instant messaging services.

附图说明 Description of drawings

下面结合附图对本发明的具体实施方式作进一步详细的说明。 The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings.

图1示出本发明所述方法步骤。 Figure 1 shows the method steps according to the invention.

图2示出本发明所述哈希值生成过程示意图。 FIG. 2 shows a schematic diagram of the hash value generation process of the present invention.

图3示出本发明所述哈希值存储方式示意图。 Fig. 3 shows a schematic diagram of the hash value storage method of the present invention.

图4示出本发明所述系统结构示意图。 Fig. 4 shows a schematic structural diagram of the system of the present invention.

具体实施方式 detailed description

为了更清楚地说明本发明,下面结合优选实施例和附图对本发明做进一步的说明。附图中相似的部件以相同的附图标记进行表示。本领域技术人员 应当理解,下面所具体描述的内容是说明性的而非限制性的,不应以此限制本发明的保护范围。 In order to illustrate the present invention more clearly, the present invention will be further described below in conjunction with preferred embodiments and accompanying drawings. Similar parts in the figures are denoted by the same reference numerals. It should be understood by those skilled in the art that the content specifically described below is illustrative rather than restrictive, and should not limit the protection scope of the present invention with this.

如图1所示,一种即时通讯服务的管理方法包括以下步骤: As shown in Figure 1, a management method for an instant messaging service includes the following steps:

步骤a:从即时通讯服务客户端发送的注册信息中采集部分信息,所述部分信息至少包括:用户账号、用户密码、即时通讯服务名称、客户端版本、客户端终端类型以及登录状态;其中,登录状态为空状态。 Step a: collect some information from the registration information sent by the instant messaging service client, the partial information at least includes: user account, user password, instant messaging service name, client version, client terminal type, and login status; wherein, Login state is empty state.

步骤b:将所采集的信息通过哈希函数分别生成哈希值,将所述哈希值重新组合,作为即时通讯服务的服务标识。 Step b: Generate hash values from the collected information through a hash function, and recombine the hash values as service identifiers of the instant messaging service.

步骤c:采用集中式或分布式存储模式储存所述服务标识;其中,用户账号生成的哈希值储存在第一个字段,用户密码生成的哈希值储存在第二个字段。 Step c: store the service identifier in a centralized or distributed storage mode; wherein, the hash value generated by the user account is stored in the first field, and the hash value generated by the user password is stored in the second field.

步骤d:用户登录时,采集所述部分信息,将采集的信息通过哈希函数分别生成哈希值,将所述哈希值重新组合作为即时通讯服务的新服务标识,根据已存储的服务标识中用户账号和用户密码哈希值对登录进行认证。 Step d: When the user logs in, collect the part of the information, generate a hash value for the collected information through a hash function, and recombine the hash value as a new service identifier of the instant messaging service, according to the stored service identifier The login is authenticated by the user account and user password hash value.

步骤e:认证成功,则检测最新服务标识中即时通讯服务名称、客户端版本以及客户端终端类型哈希值与已储存的服务标识中即时通讯服务名称、客户端版本以及客户端终端类型哈希值是否一致。 Step e: If the authentication is successful, check the hash value of the instant messaging service name, client version and client terminal type in the latest service identification and the instant messaging service name, client version and client terminal type hash in the stored service identification Are the values consistent.

步骤f:如果一致,则将所述新服务标识中在线状态哈希值替换已储存的服务标识中离线状态哈希值。 Step f: If they are consistent, replace the online status hash value in the new service ID with the offline status hash value in the stored service ID.

步骤j:如果不一致,则储存新服务标识。 Step j: If inconsistent, store the new service ID.

步骤h:认证失败,则拒绝此次登录要求。 Step h: If the authentication fails, the login request is rejected.

步骤i:管理即时通讯服务,包括: Step i: Manage instant messaging services, including:

根据储存的服务标识中即时通讯服务名称哈希值,区分不同即时通讯服务之间通信协议差异并保证系统兼容不同种类即时通讯服务。 According to the hash value of the instant messaging service name stored in the service identification, the communication protocol differences between different instant messaging services are distinguished and the system is compatible with different types of instant messaging services.

根据储存的服务标识中用户账号哈希值,实现即时通讯对象的查询并建立即时通讯服务。 According to the hash value of the user account in the stored service identifier, the query of the instant messaging object is realized and the instant messaging service is established.

根据储存的服务标识中客户端版本哈希值,实现相同种类即时通讯服务不同客户端版本之间的即时通讯服务。 According to the hash value of the client version in the stored service identification, the instant messaging service between different client versions of the same type of instant messaging service is realized.

根据储存的服务标识中客户端终端类型哈希值,实现相同即时通讯服务的不同终端之间的即时通讯服务。 The instant messaging service between different terminals of the same instant messaging service is realized according to the hash value of the client terminal type stored in the service identification.

步骤j:根据客户端心跳信息判断客户端是否已经离线。 Step j: Determine whether the client is offline according to the heartbeat information of the client.

步骤k:如果是,则判定所述客户端离线,将离线状态哈希值替换已储存 的登录状态哈希值。 Step k: If yes, then determine that the client is offline, and replace the stored login state hash value with the offline state hash value.

步骤l:如果否,则转到步骤j。 Step l: If no, go to step j.

如图2所示,采集的至少六组信息逐一通过哈希函数生成哈希值,生成的哈希值再组合作为该即时通讯服务的服务标识,并采用集中式或分布式存储模式进行存储。 As shown in Figure 2, at least six sets of collected information are generated through a hash function one by one to generate a hash value, and the generated hash value is combined as the service identifier of the instant messaging service, and stored in a centralized or distributed storage mode.

具体的,采集的用户账号、用户密码、即时通讯服务名称、客户端版本、客户端终端类型以及登录状态信息中的每一组通过哈希函数分别生成一组字符串,服务标识的过程可通过下述进行表示: Specifically, each group of the collected user account, user password, instant messaging service name, client version, client terminal type, and login status information generates a set of strings through a hash function, and the process of service identification can be passed Expressed as follows:

ZSID=<Φ(U1),Φ(U2),Φ(C1),Φ(C2),Φ(T1),Φ(T2)> Z SID =<Φ(U 1 ),Φ(U 2 ),Φ(C 1 ),Φ(C 2 ),Φ(T 1 ),Φ(T 2 )>

其中,ZSID代表即时通讯服务标识,Φ表示哈希函数,经过哈希算法六元信息组能够映射得到服务标识。U1,U2,C1,C2,T1,T2分别代表用户账号、用户密码、即时通讯客户端名称、客户端版本、客户端终端类型以及登录状态。 Among them, Z SID represents the instant messaging service identifier, Φ represents the hash function, and the service identifier can be obtained by mapping the six-element information group through the hash algorithm. U 1 , U 2 , C 1 , C 2 , T 1 , and T 2 represent user account, user password, instant messaging client name, client version, client terminal type, and login status, respectively.

所述字符串的集合就是该即时通讯服务的服务标识,利用哈希函数从明文到密文不可逆映射的特性,保证服务标识的安全性。 The set of the character strings is the service identification of the instant messaging service, and the security of the service identification is ensured by utilizing the irreversible mapping property of the hash function from plaintext to ciphertext.

如图3所示,采用集中式或分布式存储模式存储所述服务标识。 As shown in FIG. 3, the service identifier is stored in a centralized or distributed storage mode.

如图4所示,一种即时通讯服务的管理系统,包括信息采集单元、服务标识生成单元、服务标识存储单元、登录认证单元、服务管理单元以及判断单元; As shown in Figure 4, a management system for instant messaging services includes an information collection unit, a service identification generation unit, a service identification storage unit, a login authentication unit, a service management unit and a judgment unit;

所述信息采集单元从客户端发送的注册或登录信息中采集部分信息,将所采集的信息通过哈希函数生成哈希值并将所述哈希值重新组合后作为服务标识;所述部分信息至少包括:用户账号、用户密码、即时通讯服务名称、客户端版本、客户端终端类型以及登录状态;其中,注册时,所述登录状态为空状态。 The information collection unit collects part of the information from the registration or login information sent by the client, generates a hash value from the collected information through a hash function and reassembles the hash value as a service identifier; the part of information At least include: user account, user password, instant messaging service name, client version, client terminal type, and login status; wherein, during registration, the login status is empty.

所述服务标识生成单元将采集的信息通过哈希函数分别生成哈希值,将所述哈希值重新组合,作为即时通讯服务的服务标识。 The service identification generation unit generates hash values through the hash function on the collected information, and reassembles the hash values as the service identification of the instant messaging service.

所述服务标识存储单元采用分布式或集中式方式储存所述服务标识;其中,用户账号生成的哈希值储存在第一个字段,用户密码生成的哈希值储存在第二个字段。 The service identifier storage unit stores the service identifier in a distributed or centralized manner; wherein, the hash value generated by the user account is stored in the first field, and the hash value generated by the user password is stored in the second field.

所述登录认证单元用于当用户登录时,根据已存储的服务标识中用户账号和用户密码哈希值对登录进行认证,如果认证成功,则允许此次登录要求,如果认证失败,则拒绝此次登录要求;其进一步包括更新模块,用于登录成功后检测最新服务标识中即时通讯服务名称、客户端版本以及客户端终端类 型哈希值与已储存的服务标识中即时通讯服务名称、客户端版本以及客户端终端类型哈希值是否一致;如果一致,则将新服务标识中在线状态哈希值替换已储存的服务标识中离线状态哈希值;如果不一致,则储存所述新服务标识。 The login authentication unit is used to authenticate the login according to the user account number and user password hash value in the stored service identification when the user logs in. If the authentication is successful, the login request is allowed, and if the authentication fails, the login request is rejected. Second login requirements; it further includes an update module, which is used to detect the instant messaging service name, client version, and client terminal type hash value in the latest service identification and the instant messaging service name, client terminal type in the stored service identification after the login is successful. Whether the version and the client terminal type hash value are consistent; if they are consistent, replace the offline state hash value in the stored service identification with the online status hash value in the new service identification; if they are not consistent, store the new service identification.

所述服务管理单元基于所述服务标识存储单元储存的服务标识管理即时通讯服务;其包括: The service management unit manages the instant messaging service based on the service identification stored in the service identification storage unit; it includes:

区分模块,根据储存的服务标识中即时通讯服务名称哈希值,区分不同即时通讯服务之间通信协议差异并保证系统兼容不同种类即时通讯服务; The distinguishing module, according to the hash value of the instant messaging service name in the stored service identification, distinguishes the communication protocol difference between different instant messaging services and ensures that the system is compatible with different types of instant messaging services;

查询模块,根据储存的服务标识中用户账号哈希值,实现即时通讯对象的查询并建立通讯服务; The query module realizes the query of the instant messaging object and establishes the communication service according to the hash value of the user account in the stored service identifier;

版本统一模块,根据储存的服务标识中客户端版本哈希值,实现相同种类即时通讯服务不同客户端版本之间的即时通讯服务; The version unification module implements the instant messaging service between different client versions of the same type of instant messaging service according to the hash value of the client version in the stored service identification;

终端统一模块,根据储存的服务标识中客户端终端类型哈希值,实现相同即时通讯服务的不同终端之间的即时通讯服务。 The terminal unification module realizes the instant messaging service between different terminals of the same instant messaging service according to the hash value of the client terminal type stored in the service identification.

所述判断单元用于根据客户端心跳信息判断客户端是否已经离线;如果是,则将离线状态转化为哈希值并替换已储存的登录状态哈希值;如果否,则继续判断。 The judging unit is used to judge whether the client is offline according to the heartbeat information of the client; if yes, convert the offline state into a hash value and replace the stored login state hash value; if not, continue to judge.

需要进一步解释的是,所述心跳信息为登录即时通讯服务后,客户端定时发送的心跳包,所述心跳包用于向服务器证明该客户端仍旧在线,如果设置的指定时间内,服务器没有收到客户端心跳信息则视客户端已离线。 It needs to be further explained that the heartbeat information is the heartbeat packet sent by the client at regular intervals after logging in to the instant messaging service. The heartbeat packet is used to prove to the server that the client is still online. If the client heartbeat information is received, the client is considered to be offline.

<注册和登录过程实施例> <Example of registration and login process>

微信用户在手机端通过微信6.3.15客户端进行用户注册,填写好账号密码等信息后点击注册,信息采集单元根据接收的注册信息至少采集用户账号、用户密码、即时通讯服务名称(微信)、客户端版本(6.3.15)、客户端终端类型(手机)以及登录状态;服务标识生成单元将所采集的信息通过哈希函数生成哈希值,重新组合后作为服务标识,并将该服务标识传送至服务标识存储单元,服务标识存储单元存储该服务标识,其中,登录状态为空状态。 WeChat users register as users on the mobile phone through the WeChat 6.3.15 client, fill in the account password and other information and click Register, and the information collection unit collects at least the user account number, user password, instant messaging service name (WeChat), and Client version (6.3.15), client terminal type (mobile phone) and login status; the service identification generation unit generates a hash value from the collected information through a hash function, reassembles it as a service identification, and converts the service identification The service identifier is transmitted to the service identifier storage unit, and the service identifier storage unit stores the service identifier, wherein the login state is an empty state.

注册完成后,用户在手机端通过微信6.3.15客户端进行登录,信息采集单元根据接收的登录信息至少采集用户账号、用户密码、即时通讯服务名称(微信)、客户端版本(6.3.15)、客户端终端类型(手机)以及登录状态,服务标识生成单元将所采集的信息通过哈希函数生成哈希值,重新组合后作为新服务标识,登录认证单元判断新服务标识中用户账号和用户密码生成的哈 希值是否与注册时存储的用户账号和用户密码生成的哈希值一致,如果一致,则允许此次登录,如果不一致,则拒绝此次登录。 After the registration is completed, the user logs in through the WeChat 6.3.15 client on the mobile phone, and the information collection unit collects at least the user account, user password, instant messaging service name (WeChat), and client version (6.3.15) based on the received login information. , client terminal type (mobile phone) and login status, the service identification generation unit generates the hash value through the hash function through the collected information, and reassembles it as a new service identification, and the login authentication unit judges the user account number and user ID in the new service identification Whether the hash value generated by the password is consistent with the hash value generated by the user account and user password stored during registration, if they are consistent, the login is allowed, and if they are inconsistent, the login is rejected.

登录成功后,检测新服务标识中即时通讯服务名称、客户端版本以及客户端终端类型哈希值与已储存的服务标识中通讯服务名称、客户端版本以及客户端终端类型哈希值是否一致;如果一致,则将最新服务标识中在线状态哈希值替换已储存的服务标识中离线状态哈希值;如果不一致,则储存该新服务标识。 After the login is successful, check whether the hash value of the instant messaging service name, client version, and client terminal type in the new service ID is consistent with the hash value of the communication service name, client version, and client terminal type in the stored service ID; If they are consistent, the online status hash value in the latest service ID is replaced with the offline status hash value in the stored service ID; if not, the new service ID is stored.

服务管理单元根据所储存的服务标识对该微信用户进行管理,完成微信的即时通讯功能。 The service management unit manages the WeChat user according to the stored service identification, and completes the instant messaging function of WeChat.

<即时通讯服务管理系统实施例> <Example of Instant Messaging Service Management System>

用户A在PC端QQ客户端进行登录,服务标识管理系统中信息采集单元根据接收的登录信息至少采集QQ用户账号、QQ用户密码、即时通讯服务名称(QQ)、客户端版本、客户端终端类型(PC)以及登录状态,服务标识生成单元将所采集的信息通过哈希函数生成哈希值,重新组合后作为新服务标识,登录认证单元判断该服务标识中用户账号和用户密码生成的哈希值是否与注册或上一次登录时存储的用户账号和用户密码生成的哈希值一致,如果一致,则允许此次登录,如果不一致,则拒绝此次登录。 User A logs in at the QQ client on the PC side, and the information collection unit in the service identification management system collects at least the QQ user account number, QQ user password, instant messaging service name (QQ), client version, and client terminal type according to the received login information (PC) and login status, the service identification generation unit generates a hash value through the hash function through the collected information, and reassembles it as a new service identification, and the login authentication unit judges the hash generated by the user account number and user password in the service identification Whether the value is consistent with the hash value generated by the user account and user password stored during registration or last login. If they are consistent, this login is allowed, and if they are inconsistent, this login is rejected.

登录成功后,登录认证单元中更新模块将新服务标识中即时通讯服务名称、客户端版本以及客户端终端类型哈希值与已储存的服务标识中通讯服务名称、客户端版本以及客户端终端类型哈希值进行匹配;如果匹配一致,则将最新服务标识中在线状态哈希值替换已储存的服务标识中离线状态哈希值;如果不一致,则储存该新服务标识。 After the login is successful, the update module in the login authentication unit compares the hash value of the instant messaging service name, client version and client terminal type in the new service identification with the communication service name, client version and client terminal type in the stored service identification The hash values are matched; if the match is consistent, the online status hash value in the latest service ID is replaced with the offline status hash value in the stored service ID; if they are inconsistent, the new service ID is stored.

处于在线状态的用户A向服务管理系统发送通讯对象B的账号信息,服务管理单元的查询模块根据用户B账号在存储单元中进行服务标识查询,将搜索到的所有B用户的在线服务标识均返回给用户A,如果在存储单元中仅存在离线服务标识,则返回用户B离线信息;如果不存在用户B的信息则返回查找失败信息给用户A,成功找到B用户的服务标识后查询模块进一步还建立A与B通信,保证即时通讯功能。 User A who is in the online state sends the account information of the communication object B to the service management system, and the query module of the service management unit performs service identification query in the storage unit according to the user B account number, and returns all the searched online service identifications of B users For user A, if there is only an offline service ID in the storage unit, then return the offline information of user B; if there is no information about user B, then return the search failure information to user A, after successfully finding the service ID of user B, the query module further returns Establish communication between A and B to ensure the instant messaging function.

服务管理单元的区分模块根据即时通讯服务名称,即QQ,确定即时通讯服务QQ的通信协议并调整系统使其兼容所述即时通讯服务QQ;版本统一模块保证用户A和B在客户端版本不同时,仍旧能够正常通信;终端统一模块保证用户A和B在客户端终端类型不同时仍旧能够正常通信。 The distinguishing module of the service management unit determines the communication protocol of the instant messaging service QQ according to the instant messaging service name, i.e. QQ, and adjusts the system to make it compatible with the instant messaging service QQ; the version unification module ensures that users A and B have different client versions , can still communicate normally; the terminal unified module ensures that users A and B can still communicate normally when the types of client terminals are different.

服务管理单元的区分模块,支持多种通信协议,如,UDP、HTTP等,并根据服务标识中即时通讯服务名称的哈希值区分通信协议,一种即时通讯软件固定使用一种通信协议完成通讯,如,QQ使用UDP协议。只要通过即时通讯名称即可确定该即时通讯服务使用何种通信协议。并按照区分模块识别的通信协议完成用户A、B之间的通讯。 The distinguishing module of the service management unit supports a variety of communication protocols, such as UDP, HTTP, etc., and distinguishes the communication protocols according to the hash value of the instant messaging service name in the service identification. An instant messaging software uses a fixed communication protocol to complete the communication , For example, QQ uses the UDP protocol. The communication protocol used by the instant messaging service can be determined only through the instant messaging name. And complete the communication between users A and B according to the communication protocol identified by the distinguishing module.

版本统一模块,支持多种客户端版本,并根据储存的服务标识中客户端版本哈希值以及通讯对方存储的客户端版本哈希值,进行比对。如果两者相同直接进行通讯,如果不同,则版本统一模块会选择版本低的一方,完成信息的传递。 The version unification module supports multiple client versions, and compares them according to the hash value of the client version stored in the service identification and the hash value of the client version stored by the communication partner. If the two are the same, communicate directly; if they are different, the version unification module will select the one with the lower version to complete the information transmission.

终端统一模块,根据储存的通讯双方的服务标识中客户端终端类型哈希值,终端统一模块可支持多种终端类型,在终端统一模块中根据通讯双方终端类型哈希值进行比对,如果统一,可以直接进行通讯;如果不同,终端统一模块根据通讯双方支持的终端类型进行信息传递。 The terminal unification module, according to the hash value of the client terminal type in the service identification of the stored communication parties, the terminal unification module can support multiple terminal types, and compares in the terminal unification module according to the terminal type hash values of both communication parties , can communicate directly; if they are different, the terminal unified module transmits information according to the terminal types supported by both communication parties.

例如,区分模块、版本统一模块、终端统一模块分别采集到相应的信息,用户A的即时通讯服务名称为QQ、客户端版本号为V6.2.1,终端类型为PC,用户B的即时通讯服务名称为QQ、客户端版本号为V6.2.2,终端类型为手机。 For example, the distinguishing module, version unifying module, and terminal unifying module respectively collect corresponding information. User A’s instant messaging service name is QQ, client version number is V6.2.1, terminal type is PC, and user B’s instant messaging service name is It is QQ, the client version number is V6.2.2, and the terminal type is mobile phone.

区分模块确定即时通讯服务名称为QQ后,确定双方的通信协议为UDP协议,并使用UDP协议完成双方的通讯。版本统一模块识别后,确定双方版本不一致,则版本统一模块会选择版本低的一方,完成信息的传递。本例中,会选择B用户的版本号V6.2.2,完成双方的通讯。终端统一模块识别双方的终端类型不同时,会根据双方支持的终端类型进行信息传递。 After the distinguishing module determines that the name of the instant messaging service is QQ, it determines that the communication protocol between the two parties is the UDP protocol, and uses the UDP protocol to complete the communication between the two parties. After the identification by the version unification module, it is determined that the versions of the two parties are inconsistent, and the version unification module will select the party with a lower version to complete the information transmission. In this example, the version number V6.2.2 of user B will be selected to complete the communication between the two parties. When the terminal unified module recognizes that the terminal types of the two parties are different, it will transmit information according to the terminal types supported by both parties.

在用户登录后,服务管理单元中判断模块根据用户客户端发送的心跳信息判定用户登录状态;当判断结果为否,判断模块则将当前客户端视为离线状态,并将离线状态的哈希值替换为在线状态哈希值,需要说明的是在线和离线哈希值直接存储于判断模块中,无需再次生成。 After the user logs in, the judging module in the service management unit judges the user login status according to the heartbeat information sent by the user client; It is replaced by the hash value of the online state. It should be noted that the online and offline hash values are directly stored in the judging module without regenerating.

显然,本发明的上述实施例仅仅是为清楚地说明本发明所作的举例,而并非是对本发明的实施方式的限定,对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动,这里无法对所有的实施方式予以穷举,凡是属于本发明的技术方案所引伸出的显而易见的变化或变动仍处于本发明的保护范围之列。 Apparently, the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, and are not intended to limit the implementation of the present invention. Those of ordinary skill in the art can also make It is impossible to exhaustively list all the implementation modes here, and any obvious changes or changes derived from the technical solutions of the present invention are still within the scope of protection of the present invention.

Claims (7)

1. the management method of an instant messaging service, it is characterised in that comprise the following steps:
Step a: collecting part information from the log-on message that instant messaging service client sends, described portion Point information at least includes: user account, user cipher, instant messaging service name, client release, Client terminal type and logging status;Wherein, logging status is dummy status;
Step b: the information gathered is generated cryptographic Hash, by described cryptographic Hash weight respectively by hash function Combination nova, as the service identifiers of instant messaging service;
Step c: store described service identifiers;
Step d: when user logs in, gathers described partial information, the information of collection is divided by hash function Do not generate cryptographic Hash, described cryptographic Hash is reconfigured the new service identifiers as instant messaging service, root According to user account in the service identifiers stored and user cipher cryptographic Hash, login is authenticated;
Step e: if certification success, then instant messaging service name, client in detection latest services mark Hold version and client terminal type cryptographic Hash and Communications service title, visitor in the service identifiers stored Family end version and client terminal type cryptographic Hash are the most consistent;
Step f: if consistent, then presence cryptographic Hash replacement in described new service identifiers has been stored Off-line state cryptographic Hash in service identifiers;
Step g: if it is inconsistent, store described new service identifiers;
Step h: if authentification failure, then refuse this time to log in requirement;
Step i: management instant messaging service;
Wherein, described management instant messaging service includes:
According to instant messaging service name cryptographic Hash in the service identifiers stored, distinguish different instant messaging clothes Communication protocol difference ensure that system compatible variety classes instant messaging services between business;
According to user account cryptographic Hash in the service identifiers stored, it is achieved the inquiry of instant messaging object is also built Vertical Communications service;
According to client release cryptographic Hash in the service identifiers stored, it is achieved identical type instant messaging services Instant messaging service between different clients version;
According to client terminal type cryptographic Hash in the service identifiers stored, it is achieved identical instant messaging service Different terminals between instant messaging service;
Step j: judge whether client has been off according to client heartbeat message;
Step k: if it is, judge described client off-line, replaces off-line state cryptographic Hash and stores Logging status cryptographic Hash;
Step l: if it is not, then forward step j to.
Method the most according to claim 1, it is characterised in that use centralized or distributed storage Service identifiers described in mode storage.
Method the most according to claim 2, it is characterised in that the cryptographic Hash storage that user account generates There is first character section, the cryptographic Hash that user cipher generates is stored in second field.
4. the management system of an instant messaging service, it is characterised in that include information acquisition unit, clothes Business identification generation unit, service identifiers memory element, login authentication unit, service managing unit and sentence Disconnected unit;
Collecting part information registration that described information acquisition unit sends from client or log-on message, will The information gathered generates cryptographic Hash by hash function and described cryptographic Hash is reconfigured rear as service Mark;Described partial information at least includes: user account, user cipher, instant messaging service name, Client release, client terminal type and logging status;Wherein, during registration, described logging status For dummy status;
The information of collection is generated cryptographic Hash by hash function by described service identifiers signal generating unit respectively, will Described cryptographic Hash reconfigures, as the service identifiers of instant messaging service;
Service identifiers described in described service identifiers cell stores;Wherein, the Hash that user account generates Value is stored in first character section, and the cryptographic Hash that user cipher generates is stored in second field;
Described login authentication unit is for when users log on, according to user's account in the service identifiers stored Number and user cipher cryptographic Hash login is authenticated;If certification success, then allow this time to log in requirement, If authentification failure, then refuse this time to log in requirement;
The management of described service managing unit service identifiers based on described service identifiers cell stores is instant Communications service;
According to client heartbeat message, described judging unit is for judging whether client has been off;If It is then off-line state to be converted into cryptographic Hash and replaces the logging status cryptographic Hash stored;If it does not, Then continue to judge.
System the most according to claim 4, it is characterised in that described login authentication unit is further Including more new module, after being used for logining successfully, detect instant messaging service name, visitor in latest services mark Family end version and client terminal type cryptographic Hash and instant messaging Service name in the service identifiers stored Title, client release and client terminal type cryptographic Hash are the most consistent;If consistent, then will newly take In business mark, presence cryptographic Hash replaces off-line state cryptographic Hash in the service identifiers stored;If no Unanimously, then described new service identifiers is stored.
System the most according to claim 4, it is characterised in that described service managing unit includes:
Discriminating module, according to instant messaging service name cryptographic Hash in the service identifiers stored, distinguishes difference Communication protocol difference ensure that system compatible variety classes instant messaging services between instant messaging service;
Enquiry module, according to user account cryptographic Hash in the service identifiers stored, it is achieved instant messaging object Inquiry and set up Communications service;
Version unified modules, according to client release cryptographic Hash in the service identifiers stored, it is achieved mutually of the same race Instant messaging service between class instant messaging service different clients version;
Terminal unified modules, according to client terminal type cryptographic Hash in the service identifiers stored, it is achieved phase With the instant messaging service between the different terminals of instant messaging service.
System the most according to claim 4, it is characterised in that described service identifiers memory element is deposited Storage mode is distributed or centralized.
CN201610373292.2A 2016-05-31 2016-05-31 A kind of management method and system of instant messaging service Active CN105871698B (en)

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 true CN105871698A (en) 2016-08-17
CN105871698B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147643A (en) * 2017-05-10 2017-09-08 武汉票据交易中心有限公司 A kind of client login method
CN110674493A (en) * 2019-09-29 2020-01-10 重庆市筑智建信息技术有限公司 BIM system login verification method and system
CN110717170A (en) * 2019-10-09 2020-01-21 重庆市筑智建信息技术有限公司 BIM system fingerprint login system, method and device
CN110879713A (en) * 2018-09-06 2020-03-13 山东华软金盾软件股份有限公司 Android-end strong encryption plug-in hot update management method
CN114338574A (en) * 2021-12-07 2022-04-12 哈尔滨工业大学 Instant messaging method, management node and system

Citations (3)

* Cited by examiner, † Cited by third party
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 北京交通大学 A Realization Method of Converged Network Middleware

Patent Citations (3)

* Cited by examiner, † Cited by third party
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 北京交通大学 A Realization Method of Converged Network Middleware

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEI QUAN等: "M-Label A naming scheme for services in future networks", 《CLOUD COMPUTING AND INTELLIGENT SYSTEMS (CCIS), 2012 IEEE 2ND INTERNATIONAL CONFERENCE》 *
权伟: "未来网络资源命名与分发机理研究", 《中国优秀博士学位论文全文数据库信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147643A (en) * 2017-05-10 2017-09-08 武汉票据交易中心有限公司 A kind of client login method
CN110879713A (en) * 2018-09-06 2020-03-13 山东华软金盾软件股份有限公司 Android-end strong encryption plug-in hot update management method
CN110879713B (en) * 2018-09-06 2023-06-20 山东华软金盾软件股份有限公司 Android terminal strong encryption plug-in thermal update management method
CN110674493A (en) * 2019-09-29 2020-01-10 重庆市筑智建信息技术有限公司 BIM system login verification method and system
CN110717170A (en) * 2019-10-09 2020-01-21 重庆市筑智建信息技术有限公司 BIM system fingerprint login system, method and device
CN110717170B (en) * 2019-10-09 2023-08-11 江苏重华数字科技有限公司 Fingerprint login system, method and device of BIM system
CN114338574A (en) * 2021-12-07 2022-04-12 哈尔滨工业大学 Instant messaging method, management node and system
CN114338574B (en) * 2021-12-07 2024-01-30 哈尔滨工业大学 Instant messaging method, management node and system

Also Published As

Publication number Publication date
CN105871698B (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN105871698B (en) A kind of management method and system of instant messaging service
CN102833235B (en) Identity card management device
US8751586B2 (en) Domain name control based social website account authentication
US7840699B2 (en) Name resolution server and packet transfer device
CN101237426B (en) Friend addition device and method
KR20190114023A (en) Device identifier dependent operation processing of packet based data communication
US20110055911A1 (en) Business validation based social website account authentication
CN102571857B (en) Method and system for realizing logging in XMPP (Xmlbased Messaging and Presence Protocol) server
CN102769529A (en) Dnssec signing server
CN103647701B (en) The control method and device of instantaneous communication system message forwarding
CN103685584B (en) A kind of anti-Domain Hijacking method and system based on tunneling technique
CN102394885A (en) Information classification protection automatic verification method based on data stream
CN102801742A (en) XMPP (Extensible Messaging and Presence Protocol)-based messaging system and method
CN106453414A (en) Third party login authentication method and system, proxy server and client
JP2007509574A (en) System and method for name resolution
JP5589034B2 (en) Information distribution system, authentication linkage method, apparatus, and program thereof
CN102647432A (en) Authentication information transmission method, device and authentication middleware
CN102629919B (en) In order to add the method for contact person, client and system in instant messaging
KR101506594B1 (en) Method and system for subscriber to log in internet content provider(icp) website in identity/location separation network and login device thereof
CN105721274B (en) Method and device for integrating multiple instant messaging
CN107241422A (en) It is a kind of in real time by the method for external user and subscriber group information with stepping Apache Ranger
JP2007035053A (en) Session holding method between different terminals
JP5137201B2 (en) User authentication type reverse proxy device, data relay method thereof, and program thereof
JP3690599B2 (en) E-mail delivery refusal method and program enabling computer to execute the method
CN110677417A (en) Anti-crawler system and method

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