CN104468805A - Message routing device and method - Google Patents

Message routing device and method Download PDF

Info

Publication number
CN104468805A
CN104468805A CN201410770738.6A CN201410770738A CN104468805A CN 104468805 A CN104468805 A CN 104468805A CN 201410770738 A CN201410770738 A CN 201410770738A CN 104468805 A CN104468805 A CN 104468805A
Authority
CN
China
Prior art keywords
message
session
routing
node
many tenants
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
CN201410770738.6A
Other languages
Chinese (zh)
Other versions
CN104468805B (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.)
Yonyou Software Co Ltd
Original Assignee
Yonyou Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yonyou Software Co Ltd filed Critical Yonyou Software Co Ltd
Priority to CN201410770738.6A priority Critical patent/CN104468805B/en
Publication of CN104468805A publication Critical patent/CN104468805A/en
Application granted granted Critical
Publication of CN104468805B publication Critical patent/CN104468805B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The invention provides a message routing device. The message routing device comprises a multi-tenant session identifier generation unit, a message routing unit, a distributed cache unit and a distributed service call unit, wherein the multi-tenant session identifier generation unit is used for generating multi-tenant session identifiers, so that data transmission of instant communication messages is conducted between different domains and different nodes of a cluster; the message routing unit is used for sending the transmitted instant communication messages from one section to another section in a multi-tenant sharing architecture mode; the distributed cache unit is used for caching session routing tables and domain routing tables in a distributed mode; the distributed service call unit is used for finding out a remote network node from the session routing tables and the domain routing tables cached in the distributed mode, and routing the messages to the corresponding nodes or the nodes in the corresponding domains through distributed remote calling. The invention further provides a message routing method. According to the technical scheme, on the basis of an existing message routing mode, message routing of a multi-object type is completed by fully using a single-object type, and universal and unified routing thinking of message routing in which the multi-object type participates is established.

Description

Message routing apparatus and method
Technical field
The present invention relates to technical field of data processing, particularly, relate to a kind of message routing apparatus and a kind of message route method.
  
Background technology
Along with the Internet mobile is intelligent, the unification of HTML5 standard, the Internet APP, mobile APP, enterprise's application, online game, hand trip etc. need the function embedding instant messaging, make person to person, enterprise with client, communication instant between enterprise with enterprise, cooperate and share.At present, the Internet firm only having minority large possesses technology and the operation team of instant messaging, and R&D costs and technical threshold higher, be mainly concerned with that large data store, height is concurrent, data security, High Availabitity are easily expanded, the large key technology such as data analysis and excavation.Make a general survey of internet instant communication field, and instant messaging application present situation, this is especially more chaotic in enterprise instant communication technology and operation at present, mainly there is following problem:
(1) different enterprise message communication data is just isolated with simple account, cannot macroscopically to message according to multiple dimension statistics and analysis.
(2) message is according to simple clustered node equity route; Cannot realize not Message routing between same area, deployment way cannot meet enterprise group's multiple domain complex scene.
(3) message according to enterprise and can not be applied in route between different cluster of domain and node.
(4) under vulnerable network environment, Message routing arrival rate cannot ensure.
(5) research and develop voluntarily, technical threshold is higher, and the cycle is longer; Instant communication protocol and technological frame although increase income, transformation difficulty is larger
(6) support that the even larger online user of millions is highly reliable, high concurrent services aggregated structure difficulty is larger;
What kind of framework is adopted to meet instant communication message route between clustered node not same area or subdomain, meet application scenarios complicated and changeable, and can apply for thousands upon thousands the Internets and enterprise instant messaging and message push service that low cost is provided, be the foothold of the program and problem to be solved.
Therefore, need a kind of new Message routing technology, on existing Message routing mode basis, the Message routing that single object type completes multi-object type can be made full use of, set up general, the unified route thinking of the Message routing that multi-object type participates in.
  
Summary of the invention
The present invention is just based on the problems referred to above, propose a kind of new Message routing technology, on existing Message routing mode basis, the Message routing that single object type completes multi-object type can be made full use of, set up general, the unified route thinking of the Message routing that multi-object type participates in.
In view of this, the present invention proposes a kind of message routing apparatus, comprising: many tenants session identification generation unit, for generating many tenants session identification, making instant communication message in cluster not transfer of data between same area and node; Message routing unit, under many tenants share framework pattern, the instant communication message of transmission is sent to other one section from one section, and message is route between network server node, carries out many tenants cloud instant communication information cluster route; Distributed caching unit, for distributed caching session routing table and territory routing table, can find the network node of its correspondence according to session or territory; Distributed Services call unit, for from the session routing table of distributed caching and territory route in table, find out remote network node, called by distributed remote, route messages to the node in corresponding node or corresponding domain.In this technical scheme, may be used for high in the clouds instant messaging, realize the Message routing of enterprise high in the clouds instant messaging many tenants share framework.
In technique scheme, preferably, described many tenants session identification generation unit, specifically comprises: identifier generation module, for the many tenants session identification SID generated; Message transmission module, for according to the many tenants session identification SID generated, sends message to client.In this technical scheme, the Internet and enterprise immediate communication message data model can be built, from enterprise and application dimension to data isolation, with different grain size macroscopically to whole enterprise instant communication message data analysis, excavation and prediction.
In technique scheme, preferably, described Message routing unit, specifically comprises: mark conversation module, for based on the many tenants session identification SID generated, sends the message treating route; Clustered node conversation module, for the message that sends by load balancing to arbitrary clustered node, this clustered node carries out Message routing according to routing policy; Clustered node searches module, if be local domain for routing policy, take out and accept many tenants session identification of client from distributed caching, according to the session identification of recipient at local routing in tablesearch session; Node link block, if for routing policy from selection remote domain, then by message dilivery in remote domain cluster; Subdomain message routing module, if for routing policy from selection subdomain, this Message routing to the external module under this subdomain.In this technical scheme, the Message routing of instant communication information between cluster of domain and node can be realized, architecturally can meet complicated application scenarios, reach cluster and application infinite expanding.
In technique scheme, preferably, many tenants session identification that described many tenants session identification generation unit generates, the basis realizing many tenants cloud instant messaging share framework, many tenants session identification by user ID, corporate identify, application identities, territory, subdomain, that equipment is formed in complete or collected works' group node is unique; Also be the bottom data structure foundation of instant communication information data isolation, basic data model can be provided for top service; And/or described clustered node conversation module is carried out according to routing policy in the operation of Message routing, and described routing policy comprises: local domain, subdomain, remote domain; And/or described clustered node searches the session identification of module according to recipient at local routing in tablesearch the operation of session, comprise further: if can find out session, then message is delivered in session; If at local routing in tablefor finding session, then from distributed caching, search the clustered node at this session place, if find this clustered node of cluster, then call many tenants remote call service, send a message to this clustered node, from this clustered node, find out session, deliver message by session; And/or message dilivery to the operation in remote domain cluster, comprises by described node link block further: from the territory route of distributed caching in tablego out corresponding clustered node according to domain lookup, if clustered node exists, then message routes messages to corresponding clustered node by many tenants remote call service, and this clustered node is responsible for route again; If in buffer memory territory route in tablesearch the clustered node less than correspondence, then set up S2S domain node and connect, then territory route is added in this territory in table, be responsible for route again by territory clustered node.
In technique scheme, preferably, described Distributed Services call unit, specifically comprises: node checks module, for from the session routing table of distributed caching and territory route in table, find out remote network node; Message call and routing module, for being called by distributed remote, route messages to the remote network node in corresponding remote network node or corresponding domain.In this technical scheme, many tenants cloud instant messaging share framework can be realized, for thousands of internet, applications and enterprise provide cloud instant messaging and message push service.
According to a further aspect of the invention, also proposed a kind of message route method, comprising: step 202: generate many tenants session identification, make instant communication message in cluster not transfer of data between same area and node; Step 204: under many tenants share framework pattern, the instant communication message of transmission is sent to other one section from one section, and message is route between network server node, carries out many tenants cloud instant communication information cluster route; Step 206: after many tenants cloud instant communication information cluster route, distributed caching session routing table and territory routing table, can find the network node of its correspondence according to session or territory; Step 208: from session routing table and the territory route of distributed caching in table, find out remote network node, called by distributed remote, route messages to the node in corresponding node or corresponding domain.In this technical scheme, may be used for high in the clouds instant messaging, realize the Message routing of enterprise high in the clouds instant messaging many tenants share framework.
In technique scheme, preferably, described step 202, specifically comprises: step 302: many tenants session identification SID of generation; Step 304: according to the many tenants session identification SID generated, sends message to client.In this technical scheme, the Internet and enterprise immediate communication message data model can be built, from enterprise and application dimension to data isolation, with different grain size macroscopically to whole enterprise instant communication message data analysis, excavation and prediction.
In technique scheme, preferably, described step 204, specifically comprises: step 402: based on the many tenants session identification SID generated, and sends the message treating route; Step 404: the message of transmission is by load balancing to arbitrary clustered node, and this clustered node carries out Message routing according to routing policy; Step 406: if routing policy is local domain, takes out and accepts many tenants session identification of client from distributed caching, according to the session identification of recipient at local routing in tablesearch session; Step 408: if routing policy from selection remote domain, then by message dilivery in remote domain cluster; Step 410: if routing policy is from selection subdomain, this Message routing to the external module under this subdomain.In this technical scheme, the Message routing of instant communication information between cluster of domain and node can be realized, architecturally can meet complicated application scenarios, reach cluster and application infinite expanding.
In technique scheme, preferably, many tenants session identification that described step 202 generates is the basis realizing many tenants cloud instant messaging share framework, many tenants session identification by user ID, corporate identify, application identities, territory, subdomain, that equipment is formed in complete or collected works' group node is unique; Also be the bottom data structure foundation of instant communication information data isolation, basic data model can be provided for top service; And/or described step 404 is carried out in the operation of Message routing according to routing policy, and described routing policy comprises: local domain, subdomain, remote domain; And/or, described step 406 according to the session identification of recipient at local routing in tablesearch the operation of session, comprise further: if can find out session, then message is delivered in session; If at local routing in tablefor finding session, then from distributed caching, search the clustered node at this session place, if find this clustered node of cluster, then call many tenants remote call service, send a message to this clustered node, from this clustered node, find out session, deliver message by session; And/or message dilivery to the operation in remote domain cluster, comprises by described step 408 further: from the territory route of distributed caching in tablego out corresponding clustered node according to domain lookup, if clustered node exists, then message routes messages to corresponding clustered node by many tenants remote call service, and this clustered node is responsible for route again; If in buffer memory territory route in tablesearch the clustered node less than correspondence, then set up S2S domain node and connect, then territory route is added in this territory in table, be responsible for route again by territory clustered node.
In technique scheme, preferably, described step 208, specifically comprises: step 502: from session routing table and the territory route of distributed caching in table, find out remote network node; Step 504: called by distributed remote, routes messages to the remote network node in corresponding remote network node or corresponding domain.In this technical scheme, many tenants cloud instant messaging share framework can be realized, for thousands of internet, applications and enterprise provide cloud instant messaging and message push service.
By above technical scheme, on existing Message routing mode basis, the Message routing that single object type completes multi-object type can be made full use of, set up general, the unified route thinking of the Message routing that multi-object type participates in.
  
Accompanying drawing explanation
figure1 frame showing message routing apparatus according to an embodiment of the invention figure;
figure2 flow processs showing message route method according to an embodiment of the invention figure;
figure3 flow processs showing many tenants session identification generation unit according to an embodiment of the invention figure;
figure4 flow processs showing Message routing unit according to an embodiment of the invention figure;
figure5 flow processs showing Distributed Services call unit according to an embodiment of the invention figure;
figure6 show according to an embodiment of the invention based on the logical relation of the method for many tenants cloud instant communication information cluster route figure;
figure7 show the flow process explaining many tenants cloud instant communication information cluster route according to an embodiment of the invention figure.
  
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with attached figurewith embodiment, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not by the restriction of following public specific embodiment.
figure1 frame showing message routing apparatus according to an embodiment of the invention figure.
As figureshown in 1, message routing apparatus 100 according to an embodiment of the invention, comprising: many tenants session identification generation unit 102, for generating many tenants session identification, makes instant communication message in cluster not transfer of data between same area and node; Message routing unit 104, under many tenants share framework pattern, the instant communication message of transmission is sent to other one section from one section, and message is route between network server node, carries out many tenants cloud instant communication information cluster route; Distributed caching unit 106, for distributed caching session routing table and territory routing table, can find the network node of its correspondence according to session or territory; Distributed Services call unit 108, for from the session routing table of distributed caching and territory route in table, find out remote network node, called by distributed remote, route messages to the node in corresponding node or corresponding domain.In this technical scheme, may be used for high in the clouds instant messaging, realize the Message routing of enterprise high in the clouds instant messaging many tenants share framework.
In technique scheme, preferably, many tenants session identification generation unit 102, specifically comprises: identifier generation module 1022, for the many tenants session identification SID generated; Message transmission module 1024, for according to the many tenants session identification SID generated, sends message to client.In this technical scheme, the Internet and enterprise immediate communication message data model can be built, from enterprise and application dimension to data isolation, with different grain size macroscopically to whole enterprise instant communication message data analysis, excavation and prediction.
In technique scheme, preferably, Message routing unit 104, specifically comprises: mark conversation module 1042, for based on the many tenants session identification SID generated, sends the message treating route; Clustered node conversation module 1044, for the message that sends by load balancing to arbitrary clustered node, this clustered node carries out Message routing according to routing policy; Clustered node searches module 1046, if be local domain for routing policy, take out and accept many tenants session identification of client from distributed caching, according to the session identification of recipient at local routing in tablesearch session; Node link block 1048, if for routing policy from selection remote domain, then by message dilivery in remote domain cluster; Subdomain message routing module 1050, if for routing policy from selection subdomain, this Message routing to the external module under this subdomain.In this technical scheme, the Message routing of instant communication information between cluster of domain and node can be realized, architecturally can meet complicated application scenarios, reach cluster and application infinite expanding.
In technique scheme, preferably, many tenants session identification that many tenants session identification generation unit 102 generates, the basis realizing many tenants cloud instant messaging share framework, many tenants session identification by user ID, corporate identify, application identities, territory, subdomain, that equipment is formed in complete or collected works' group node is unique; Also be the bottom data structure foundation of instant communication information data isolation, basic data model can be provided for top service; And/or clustered node conversation module 1044 is carried out in the operation of Message routing according to routing policy, and routing policy comprises: local domain, subdomain, remote domain; And/or clustered node searches the session identification of module 1046 according to recipient at local routing in tablesearch the operation of session, comprise further: if can find out session, then message is delivered in session; If at local routing in tablefor finding session, then from distributed caching, search the clustered node at this session place, if find this clustered node of cluster, then call many tenants remote call service, send a message to this clustered node, from this clustered node, find out session, deliver message by session; And/or message dilivery to the operation in remote domain cluster, comprises by node link block 1048 further: from the territory route of distributed caching in tablego out corresponding clustered node according to domain lookup, if clustered node exists, then message routes messages to corresponding clustered node by many tenants remote call service, and this clustered node is responsible for route again; If in buffer memory territory route in tablesearch the clustered node less than correspondence, then set up S2S domain node and connect, then territory route is added in this territory in table, be responsible for route again by territory clustered node.
In technique scheme, preferably, Distributed Services call unit 108, specifically comprises: node checks module 1082, for from the session routing table of distributed caching and territory route in table, find out remote network node; Message call and routing module 1084, for being called by distributed remote, route messages to the remote network node in corresponding remote network node or corresponding domain.In this technical scheme, many tenants cloud instant messaging share framework can be realized, for thousands of internet, applications and enterprise provide cloud instant messaging and message push service.
figure2 flow processs showing message route method according to an embodiment of the invention figure.
As figureshown in 2, message route method according to an embodiment of the invention, comprising: step 202: generate many tenants session identification, makes instant communication message in cluster not transfer of data between same area and node; Step 204: under many tenants share framework pattern, the instant communication message of transmission is sent to other one section from one section, and message is route between network server node, carries out many tenants cloud instant communication information cluster route; Step 206: after many tenants cloud instant communication information cluster route, distributed caching session routing table and territory routing table, can find the network node of its correspondence according to session or territory; Step 208: from session routing table and the territory route of distributed caching in table, find out remote network node, called by distributed remote, route messages to the node in corresponding node or corresponding domain.In this technical scheme, may be used for high in the clouds instant messaging, realize the Message routing of enterprise high in the clouds instant messaging many tenants share framework.
In technique scheme, preferably, as figureshown in 3, step 202, specifically comprises: step 302: many tenants session identification SID of generation; Step 304: according to the many tenants session identification SID generated, sends message to client.In this technical scheme, the Internet and enterprise immediate communication message data model can be built, from enterprise and application dimension to data isolation, with different grain size macroscopically to whole enterprise instant communication message data analysis, excavation and prediction.
In technique scheme, preferably, as figureshown in 4, step 204, specifically comprises: step 402: based on the many tenants session identification SID generated, and sends the message treating route; Step 404: the message of transmission is by load balancing to arbitrary clustered node, and this clustered node carries out Message routing according to routing policy; Step 406: if routing policy is local domain, takes out and accepts many tenants session identification of client from distributed caching, according to the session identification of recipient at local routing in tablesearch session; Step 408: if routing policy from selection remote domain, then by message dilivery in remote domain cluster; Step 410: if routing policy is from selection subdomain, this Message routing to the external module under this subdomain.In this technical scheme, the Message routing of instant communication information between cluster of domain and node can be realized, architecturally can meet complicated application scenarios, reach cluster and application infinite expanding.
In technique scheme, preferably, many tenants session identification that step 202 generates is the basis realizing many tenants cloud instant messaging share framework, many tenants session identification by user ID, corporate identify, application identities, territory, subdomain, that equipment is formed in complete or collected works' group node is unique; Also be the bottom data structure foundation of instant communication information data isolation, basic data model can be provided for top service; And/or step 404 is carried out in the operation of Message routing according to routing policy, and routing policy comprises: local domain, subdomain, remote domain; And/or, step 406 according to the session identification of recipient at local routing in tablesearch the operation of session, comprise further: if can find out session, then message is delivered in session; If at local routing in tablefor finding session, then from distributed caching, search the clustered node at this session place, if find this clustered node of cluster, then call many tenants remote call service, send a message to this clustered node, from this clustered node, find out session, deliver message by session; And/or message dilivery to the operation in remote domain cluster, comprises by step 408 further: from the territory route of distributed caching in tablego out corresponding clustered node according to domain lookup, if clustered node exists, then message routes messages to corresponding clustered node by many tenants remote call service, and this clustered node is responsible for route again; If in buffer memory territory route in tablesearch the clustered node less than correspondence, then set up S2S domain node and connect, then territory route is added in this territory in table, be responsible for route again by territory clustered node.
In technique scheme, preferably, as figureshown in 5, step 208, specifically comprises: step 502: from session routing table and the territory route of distributed caching in table, find out remote network node; Step 504: called by distributed remote, routes messages to the remote network node in corresponding remote network node or corresponding domain.In this technical scheme, many tenants cloud instant messaging share framework can be realized, for thousands of internet, applications and enterprise provide cloud instant messaging and message push service.
Technical scheme of the present invention, relates to a kind of method for routing and device of the instant communication information based on the many tenants in high in the clouds; Can be used for high in the clouds instant messaging, by technical scheme of the present invention, realize the Message routing of enterprise high in the clouds instant messaging many tenants share framework.
Based on the shortcoming that prior art exists, technical scheme of the present invention proposes a kind of technical scheme based on many tenants cloud instant communication information cluster route.Technical scheme of the present invention, solves the problems referred to above preferably, is characterized in:
(1) with enterprise, application, tissue, user-center, build the Internet and enterprise immediate communication message data model, from enterprise and application dimension to data isolation, with different grain size macroscopically to whole enterprise instant communication message data analysis, excavation and prediction.
(2) realize the Message routing of instant communication information between cluster of domain and node, architecturally can meet complicated application scenarios, reach cluster and application infinite expanding.
(3) realize many tenants cloud instant messaging share framework, for thousands of internet, applications and enterprise provide cloud instant messaging and message push service.
In order to realize above-mentioned target, the technical scheme based on many tenants cloud instant communication information cluster route that technical solution of the present invention proposes, mainly comprises four unit: session many tenants session identification generation unit, Message routing unit, distributed caching unit, Distributed Services call unit.The logical relation of technical solution of the present invention figureas figureshown in 6.
(i) many tenants session identification generation unit
Many tenants session identification is the basis realizing many tenants cloud instant messaging share framework, many tenants session identification by user ID, corporate identify, application identities, territory, subdomain, that equipment is formed in complete or collected works' group node is unique.Also be the bottom data structure foundation of instant communication information data isolation, for top service provides basic data model.Make instant communication message in cluster not transfer of data between same area and node.
Many tenants session identification, is called for short SID, is formulated:
SID = Userkey.appkey.etpkey@domain/resource。
Many tenants session identification unit comprises following assembly:
1, user ID: instant communication system user account number
2, corporate identify: instant communicating system enterprise account
3, application identities: instant communicating system application account
4, territory: instant communicating system cluster or sub-cluster mark
5, equipment: terminal type
(ii) Message routing unit
Under many tenants share framework pattern, instant communication message is sent to other one section from one section, and message needs route between network server node.How to allow message safety be routed to reliably key points that correct clustered node or subdomain clustered node are the instant messagings of many combination clouds.This wherein relates to local node, remote node, territory or subdomain node how route messages.
Many tenants cloud instant communication information cluster routing step is described below:
1, client sends message to another client, and client many tenants session identification generation unit generates many tenants session identification SID, and sends message.
2, message is by load balancing to arbitrary clustered node, and this clustered node does Message routing according to routing policy, and routing policy comprises: local domain, subdomain, remote domain.
If 3 routing policies are local domains, take out from distributed caching and accept many tenants session identification of client, according to the session identification of recipient first in local reason in tablesearch, if can find out session, then message is delivered in session; If at local routing in tablefor finding session, then from distributed caching, search the clustered node at this session place, if find this clustered node of cluster, then call many tenants remote call service, send a message to this clustered node, from this clustered node, find out session, deliver message by session.
If 4 routing policies are from selection remote domain, then description messages can be delivered in remote domain cluster.First from the territory reason of distributed caching in tablego out corresponding clustered node according to domain lookup, if clustered node exists, then message routes messages to corresponding clustered node by many tenants remote call service, and this clustered node is responsible for route again; If in buffer memory territory route in tablesearch the clustered node less than correspondence, then set up S2S domain node and connect, then territory route is added in this territory in table, be responsible for route again by territory clustered node.
If 5 routing policies are from selection subdomain, can this message reason to the external module under this subdomain.
figure7 explain many tenants cloud instant communication information cluster route flow process in detail.
(iii) distributed caching unit
Distributed caching unit caches session routing table and territory routing table, can find the network node of its correspondence according to session or territory.
(iv) Distributed Services call unit
From session routing table and the territory route of distributed caching in tablefinding out remote network node, by crossing distributed far call device, routing messages to the node in corresponding node or corresponding domain.
Technical scheme of the present invention, with enterprise, application, tissue, user for data model, realizes the route of enterprise's high in the clouds many tenants share framework instant communication information.Adopt technical scheme of the present invention, realize the Message routing not between same area on the one hand; Another aspect to data isolation, realizes Virtual Organization's application with enterprise, application, tissue.Difference with the prior art part:
(1) with enterprise, application, tissue, user-center, build the Internet and enterprise immediate communication message data model, from enterprise and application dimension to data isolation, with different grain size macroscopically to whole enterprise instant communication message data analysis, excavation and prediction.
(2) realize the Message routing of instant communication information between cluster of domain and node, architecturally can meet complicated application scenarios, reach cluster and application infinite expanding.
(3) realize many tenants cloud instant messaging share framework, for thousands of internet, applications and enterprise provide cloud instant messaging and message push service.
More than in conjunction with attached figuredescribe technical scheme of the present invention in detail, consider in correlation technique there is no easy, the unified solution for complicated type metadata route.Existing Message routing cannot complete the message routing process that complicated type participates in.Therefore, the present invention proposes a kind of message routing apparatus and a kind of message route method, on existing Message routing mode basis, the Message routing that single object type completes multi-object type can be made full use of, set up general, the unified route thinking of the Message routing that multi-object type participates in.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a message routing apparatus, is characterized in that, comprising:
Many tenants session identification generation unit, for generating many tenants session identification, makes instant communication message in cluster not transfer of data between same area and node;
Message routing unit, under many tenants share framework pattern, the instant communication message of transmission is sent to other one section from one section, and message is route between network server node, carries out many tenants cloud instant communication information cluster route;
Distributed caching unit, for distributed caching session routing table and territory routing table, can find the network node of its correspondence according to session or territory;
Distributed Services call unit, for from the session routing table and territory routing table of distributed caching, is found out remote network node, is called by distributed remote, route messages to the node in corresponding node or corresponding domain.
2. message routing apparatus according to claim 1, is characterized in that, described many tenants session identification generation unit, specifically comprises:
Identifier generation module, for the many tenants session identification SID generated;
Message transmission module, for according to the many tenants session identification SID generated, sends message to client.
3. message routing apparatus according to claim 1 and 2, is characterized in that, described Message routing unit, specifically comprises:
Mark conversation module, for based on the many tenants session identification SID generated, sends the message treating route;
Clustered node conversation module, for the message that sends by load balancing to arbitrary clustered node, this clustered node carries out Message routing according to routing policy;
Clustered node searches module, if be local domain for routing policy, from distributed caching, take out the many tenants session identification accepting client, the session identification according to recipient searches session in local routing table;
Node link block, if for routing policy from selection remote domain, then by message dilivery in remote domain cluster;
Subdomain message routing module, if for routing policy from selection subdomain, this Message routing to the external module under this subdomain.
4. message routing apparatus according to claim 3, it is characterized in that, many tenants session identification that described many tenants session identification generation unit generates, the basis realizing many tenants cloud instant messaging share framework, many tenants session identification by user ID, corporate identify, application identities, territory, subdomain, that equipment is formed in complete or collected works' group node is unique; Also be the bottom data structure foundation of instant communication information data isolation, basic data model can be provided for top service;
And/or,
Described clustered node conversation module is carried out according to routing policy in the operation of Message routing, and described routing policy comprises: local domain, subdomain, remote domain;
And/or,
Described clustered node searches the operation that the session identification of module according to recipient searches session in local routing table, comprises further:
If can find out session, then message is delivered in session; If for finding session in local routing table, from distributed caching, then search the clustered node at this session place, if find this clustered node of cluster, then call many tenants remote call service, send a message to this clustered node, from this clustered node, find out session, deliver message by session;
And/or,
Message dilivery to the operation in remote domain cluster, comprises by described node link block further:
From the territory routing table of distributed caching, go out corresponding clustered node according to domain lookup, if clustered node exists, then message routes messages to corresponding clustered node by many tenants remote call service, and this clustered node is responsible for route again; If search the clustered node less than correspondence in the routing table of buffer memory territory, then set up S2S domain node and connect, then this territory is added in the routing table of territory, be responsible for route again by territory clustered node.
5. message routing apparatus according to claim 1 and 2, is characterized in that, described Distributed Services call unit, specifically comprises:
Node checks module, for from the session routing table and territory routing table of distributed caching, finds out remote network node;
Message call and routing module, for being called by distributed remote, route messages to the remote network node in corresponding remote network node or corresponding domain.
6. a message route method, is characterized in that, comprising:
Step 202: generate many tenants session identification, makes instant communication message in cluster not transfer of data between same area and node;
Step 204: under many tenants share framework pattern, the instant communication message of transmission is sent to other one section from one section, and message is route between network server node, carries out many tenants cloud instant communication information cluster route;
Step 206: after many tenants cloud instant communication information cluster route, distributed caching session routing table and territory routing table, can find the network node of its correspondence according to session or territory;
Step 208: from the session routing table and territory routing table of distributed caching, find out remote network node, called by distributed remote, route messages to the node in corresponding node or corresponding domain.
7. message route method according to claim 6, is characterized in that, described step 202, specifically comprises:
Step 302: many tenants session identification SID of generation;
Step 304: according to the many tenants session identification SID generated, sends message to client.
8. the message route method according to claim 6 or 7, is characterized in that, described step 204, specifically comprises:
Step 402: based on the many tenants session identification SID generated, sends the message treating route;
Step 404: the message of transmission is by load balancing to arbitrary clustered node, and this clustered node carries out Message routing according to routing policy;
Step 406: if routing policy is local domain, from distributed caching, take out the many tenants session identification accepting client, the session identification according to recipient searches session in local routing table;
Step 408: if routing policy from selection remote domain, then by message dilivery in remote domain cluster;
Step 410: if routing policy is from selection subdomain, this Message routing to the external module under this subdomain.
9. message route method according to claim 8, it is characterized in that, many tenants session identification that described step 202 generates, the basis realizing many tenants cloud instant messaging share framework, many tenants session identification by user ID, corporate identify, application identities, territory, subdomain, that equipment is formed in complete or collected works' group node is unique; Also be the bottom data structure foundation of instant communication information data isolation, basic data model can be provided for top service;
And/or,
Described step 404 is carried out in the operation of Message routing according to routing policy, and described routing policy comprises: local domain, subdomain, remote domain;
And/or,
Described step 406 searches the operation of session according to the session identification of recipient in local routing table, comprises further:
If can find out session, then message is delivered in session; If for finding session in local routing table, from distributed caching, then search the clustered node at this session place, if find this clustered node of cluster, then call many tenants remote call service, send a message to this clustered node, from this clustered node, find out session, deliver message by session;
And/or,
Message dilivery to the operation in remote domain cluster, comprises by described step 408 further:
From the territory routing table of distributed caching, go out corresponding clustered node according to domain lookup, if clustered node exists, then message routes messages to corresponding clustered node by many tenants remote call service, and this clustered node is responsible for route again; If search the clustered node less than correspondence in the routing table of buffer memory territory, then set up S2S domain node and connect, then this territory is added in the routing table of territory, be responsible for route again by territory clustered node.
10. the message route method according to claim 6 or 7, is characterized in that, described step 208, specifically comprises:
Step 502: from the session routing table and territory routing table of distributed caching, find out remote network node;
Step 504: called by distributed remote, routes messages to the remote network node in corresponding remote network node or corresponding domain.
CN201410770738.6A 2014-12-12 2014-12-12 Message routing apparatus and method Active CN104468805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410770738.6A CN104468805B (en) 2014-12-12 2014-12-12 Message routing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410770738.6A CN104468805B (en) 2014-12-12 2014-12-12 Message routing apparatus and method

Publications (2)

Publication Number Publication Date
CN104468805A true CN104468805A (en) 2015-03-25
CN104468805B CN104468805B (en) 2018-08-28

Family

ID=52914157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410770738.6A Active CN104468805B (en) 2014-12-12 2014-12-12 Message routing apparatus and method

Country Status (1)

Country Link
CN (1) CN104468805B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656811A (en) * 2016-12-06 2017-05-10 上海斐讯数据通信技术有限公司 Method and system for processing remote call based on AllJoyn frame
CN107332877A (en) * 2017-06-02 2017-11-07 上海金大师网络科技有限公司 It is route based on message and buffer context removes statusline feelings gateway system
CN107819687A (en) * 2017-11-15 2018-03-20 小草数语(北京)科技有限公司 Fixed route method, apparatus and its equipment
CN108055312A (en) * 2017-12-07 2018-05-18 畅捷通信息技术股份有限公司 Method for routing and its device and computer installation and its readable storage medium storing program for executing
CN108540367A (en) * 2017-03-06 2018-09-14 中国移动通信有限公司研究院 A kind of message treatment method and system
CN111092816A (en) * 2019-11-26 2020-05-01 金蝶软件(中国)有限公司 Gateway dynamic routing method, gateway dynamic routing device, computer equipment and storage medium
CN111917687A (en) * 2019-05-08 2020-11-10 北京京东振世信息技术有限公司 Method and device for circularly pushing reminding message

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1538316A (en) * 2003-04-17 2004-10-20 联想(北京)有限公司 Message intermediate item system possessing level topological structure and message transmission method
US20130041912A1 (en) * 2010-05-07 2013-02-14 Salesforce.Com, Inc Methods and systems for sharing email in a multi-tenant database system
CN103080926A (en) * 2010-03-04 2013-05-01 磁体系统公司 Portability of personal and social information in multi-tenant environment
CN103544319A (en) * 2013-11-06 2014-01-29 浪潮(北京)电子信息产业有限公司 Multi-tenant database sharing method and multi-tenant database as-a-service system
CN103986639A (en) * 2014-03-07 2014-08-13 杭州易和互联软件技术有限公司 Algorithm for realizing message interconnection and interworking among a plurality of independently-deployed instant message systems
US20140273994A1 (en) * 2013-03-15 2014-09-18 Apollo Group, Inc. Multi-tenant message routing and management
CN104067565A (en) * 2012-01-20 2014-09-24 思科技术公司 Connectivity system for multi-tenant access networks

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1538316A (en) * 2003-04-17 2004-10-20 联想(北京)有限公司 Message intermediate item system possessing level topological structure and message transmission method
CN103080926A (en) * 2010-03-04 2013-05-01 磁体系统公司 Portability of personal and social information in multi-tenant environment
US20130041912A1 (en) * 2010-05-07 2013-02-14 Salesforce.Com, Inc Methods and systems for sharing email in a multi-tenant database system
CN104067565A (en) * 2012-01-20 2014-09-24 思科技术公司 Connectivity system for multi-tenant access networks
US20140273994A1 (en) * 2013-03-15 2014-09-18 Apollo Group, Inc. Multi-tenant message routing and management
CN103544319A (en) * 2013-11-06 2014-01-29 浪潮(北京)电子信息产业有限公司 Multi-tenant database sharing method and multi-tenant database as-a-service system
CN103986639A (en) * 2014-03-07 2014-08-13 杭州易和互联软件技术有限公司 Algorithm for realizing message interconnection and interworking among a plurality of independently-deployed instant message systems

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656811A (en) * 2016-12-06 2017-05-10 上海斐讯数据通信技术有限公司 Method and system for processing remote call based on AllJoyn frame
CN108540367A (en) * 2017-03-06 2018-09-14 中国移动通信有限公司研究院 A kind of message treatment method and system
CN107332877A (en) * 2017-06-02 2017-11-07 上海金大师网络科技有限公司 It is route based on message and buffer context removes statusline feelings gateway system
CN107819687A (en) * 2017-11-15 2018-03-20 小草数语(北京)科技有限公司 Fixed route method, apparatus and its equipment
CN108055312A (en) * 2017-12-07 2018-05-18 畅捷通信息技术股份有限公司 Method for routing and its device and computer installation and its readable storage medium storing program for executing
CN108055312B (en) * 2017-12-07 2021-07-09 畅捷通信息技术股份有限公司 Routing method and device thereof, computer device and readable storage medium thereof
CN111917687A (en) * 2019-05-08 2020-11-10 北京京东振世信息技术有限公司 Method and device for circularly pushing reminding message
CN111917687B (en) * 2019-05-08 2023-06-27 北京京东振世信息技术有限公司 Method and device for circularly pushing reminding message
CN111092816A (en) * 2019-11-26 2020-05-01 金蝶软件(中国)有限公司 Gateway dynamic routing method, gateway dynamic routing device, computer equipment and storage medium
CN111092816B (en) * 2019-11-26 2022-02-15 金蝶软件(中国)有限公司 Gateway dynamic routing method, gateway dynamic routing device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN104468805B (en) 2018-08-28

Similar Documents

Publication Publication Date Title
CN104468805A (en) Message routing device and method
Wu et al. FCSS: Fog-computing-based content-aware filtering for security services in information-centric social networks
Ahmed et al. Named data networking for software defined vehicular networks
Yue et al. DataClouds: Enabling community-based data-centric services over the Internet of Things
CN104811371B (en) A kind of brand-new instantaneous communication system
CN101656765B (en) Address mapping system and data transmission method of identifier/locator separation network
US8818946B2 (en) Machine to machine (M2M) application server, XDMS server, and methods for M2M applications group management
CN103916311B (en) A kind of information transmission and control method, Apparatus and system
CN103404084B (en) MAC Address forces retransmission unit and method
US10136463B2 (en) Server and data transmission method
CN109756423A (en) The method and apparatus of policy update
CN103618801B (en) Method, equipment and the system of a kind of P2P resource-sharing
US11252126B1 (en) Domain name resolution in environment with interconnected virtual private clouds
CN104065759A (en) Method for improving utilization efficiency of NAT address pool resource and device thereof
CN103098437B (en) Based on call session server and the Message routing system of selection of SIP
Atzori et al. Enhancing identifier/locator splitting through social internet of things
CN109413224B (en) Message forwarding method and device
Ren et al. VICN: a versatile deployment framework for information-centric networks
Yoon et al. BlockONS: Blockchain based object name service
CN102037711B (en) Limiting storage messages in peer to peer network
CN106302110A (en) A kind of social network position sharing method based on secret protection
CN104125310B (en) Message method based on semi-permanent address
CN106685979B (en) Security terminal mark and authentication method and system based on STiP model
CN104836734A (en) Brand new instant messaging routing method and router
CN112104680B (en) Method, device and equipment for determining edge application and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park

Applicant after: Yonyou Network Technology Co., Ltd.

Address before: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park

Applicant before: UFIDA Software Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant