CN108718272A - Message routing conversion and device - Google Patents

Message routing conversion and device Download PDF

Info

Publication number
CN108718272A
CN108718272A CN201810441857.5A CN201810441857A CN108718272A CN 108718272 A CN108718272 A CN 108718272A CN 201810441857 A CN201810441857 A CN 201810441857A CN 108718272 A CN108718272 A CN 108718272A
Authority
CN
China
Prior art keywords
message
server
access
forwarded
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810441857.5A
Other languages
Chinese (zh)
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.)
Evergrande Intelligent Technology Co Ltd
Original Assignee
STAR TECHNOLOGY 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 STAR TECHNOLOGY Co Ltd filed Critical STAR TECHNOLOGY Co Ltd
Priority to CN201810441857.5A priority Critical patent/CN108718272A/en
Publication of CN108718272A publication Critical patent/CN108718272A/en
Pending legal-status Critical Current

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/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/33Flow control; Congestion control using forward notification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/252Store and forward 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A kind of message routing conversion of offer of the embodiment of the present invention and device.The method is applied to message route forwarding system, the method includes:First access server receives the message to be forwarded that the first access device is sent, and judges whether to need message to be forwarded being sent to message routing server according to the purpose equipment identification code in message to be forwarded;When not needed, message to be forwarded is directly sent to the second access device corresponding with purpose equipment identification code;When needed, by message to be forwarded through message routing server and and corresponding second access server of purpose equipment identification code be sent to the second access device corresponding with purpose equipment identification code;Wherein, it is returned to the first access device after sending successfully and forwards successful prompting message.Thus, it is possible to realize point-to-point communication, and after being successfully transmitted message to corresponding purpose access device, sending the access device of the message can obtain forwarding successfully return message.

Description

Message routing conversion and device
Technical field
The present invention relates to fields of communication technology, in particular to a kind of message routing conversion and device.
Background technology
Internet of Things is not merely a kind of network, but a new ecological environment.In Internet of Things, it will be permitted by network More equipment link together, and can be controlled other smart machines by terminal device.Current mobile Internet is just In the starting stage, reliable network guarantee can not be many times provided.Currently, Internet of Things industry mainly uses message queue Publish/subscribe model is to solve the problems, such as this.
For example, the model includes smart mobile phone, publication and Subscriber and terminal device, smart mobile phone to publication and Subscriber subscribes to theme message, and terminal device will connect to Subscriber issuing subject message, publication and Subscriber The message of receipts is stored, then theme message is pushed to the smart mobile phone for being transmitted across and subscribing to theme message.The above process is patrolled It is volume more complicated, it can only be realized in such a way that theme is mutually subscribed to, and cannot achieve point-to-point communication;Meanwhile even if hair The message of cloth is received by smart mobile phone, and terminal device can not also know the message.
Invention content
In order to overcome above-mentioned deficiency in the prior art, the embodiment of the present invention to be designed to provide a kind of message routing turn Forwarding method and device can realize point-to-point communication, and after message successfully forwarded, send connecing for message to be forwarded Message forwarding successfully return message can be obtained by entering equipment.
First embodiment of the invention provides a kind of message routing conversion, is applied to message route forwarding system, described System includes access device, access server and the message routing server of communication connection, wherein the message routing server It is communicated to connect by the access server and the access device, the method includes:
First access server receives the message to be forwarded that the first access device is sent, and according in the message to be forwarded Purpose equipment identification code judge whether to need the message to be forwarded being sent to the message routing server;
The message to be forwarded need not be sent to the message routing services by first access server in judgement When device, the message to be forwarded is directly sent to the second access device corresponding with the purpose equipment identification code, and to institute It states the first access device and returns to the successful prompting message of forwarding;
First access server judgement need the forwarding message is sent to the message routing server when, The message to be forwarded is sent to the message routing server;
The message routing server connects the message to be forwarded through corresponding with the purpose equipment identification code second Enter server and be sent to the second access device corresponding with the purpose equipment identification code, and through first access server to First access device, which returns, forwards successful prompting message.
Second embodiment of the invention provides a kind of message routing conversion, is applied to message route forwarding system, described System includes access device, access server and the message routing server of communication connection, wherein the message routing server It is communicated to connect by the access server and the access device, the method includes:
Message to be forwarded is sent to the message routing server by the first access device through the first access server, In, the message to be forwarded includes purpose equipment identification code;
The message to be forwarded is sent to corresponding with the purpose equipment identification code by the message routing server Two access servers;
The message to be forwarded is sent to corresponding with the purpose equipment identification code by second access server Two access devices, and through the message routing server and the first access server to first access device return forwarding at The prompting message of work(.
Third embodiment of the invention provides a kind of message routing forwarding device, is applied to access server, the access clothes Business device is communicated to connect with access device and message routing server, and described device includes:
First receiving module, the message to be forwarded sent for receiving the first access device, and to be forwarded disappeared according to described Purpose equipment identification code in breath judges whether to need the message to be forwarded being sent to the message routing server;
First forwarding module, for need not the message to be forwarded be sent to the message routing server in judgement When, the message to be forwarded is directly sent to the second access device corresponding with the purpose equipment identification code, and to described First access device, which returns, forwards successful prompting message;
First forwarding module is additionally operable to need the forwarding message being sent to the message routing services in judgement When device, the message to be forwarded is sent to the message routing server, with will be described by the message routing server Message to be forwarded is sent to the second access device corresponding with the purpose equipment identification code, and is returned to first access device Prompting message is sent out in revolution successful.
Fourth embodiment of the invention provides a kind of message routing forwarding device, is applied to message routing server, described to disappear It ceases routing server to communicate to connect with access server, described device includes:
Second receiving module, for receiving the message to be forwarded that the first access device is sent through the first access server, In, the message to be forwarded includes purpose equipment identification code;
Second forwarding module, for the message to be forwarded to be sent to and the purpose equipment identification code corresponding second Access server, to be sent to the message to be forwarded and the purpose equipment identification code pair through second access server The second access device answered;
Second forwarding module is additionally operable to the successful prompting message of forwarding that second access server returns being sent to First access server is set so that the prompting message is sent to first access through first access server It is standby.
In terms of existing technologies, the invention has the advantages that:
A kind of message routing conversion of offer of the embodiment of the present invention and device.The method is applied to message routing forwarding System, the system comprises the access device of communication connection, access server and message routing servers, wherein the message Routing server is communicated to connect by the access server and the access device.First access device sends out message to be forwarded Give the first access server, wherein the message to be forwarded includes purpose equipment identification code.First access server After receiving the message to be forwarded, judge whether to need to send out the message to be forwarded according to the purpose equipment identification code Give the message routing server.The message to be forwarded need not be sent to the message routing server in judgement When, the message to be forwarded is directly sent to and the purpose equipment identification code corresponding second by first access server Access device, and returned to first access device and forward successful prompting message.It is needed the forwarding message in judgement When being sent to the message routing server, the message to be forwarded is sent to the message road by first access server By server.The message routing server after receiving the message to be forwarded, by the message to be forwarded be sent to Corresponding second access server of the purpose equipment identification code, by the message to be forwarded through second access server It is sent to the second access device corresponding with the purpose equipment identification code, and through first access server to described first Access device, which returns, forwards successful prompting message.Thus, it is possible to realize point-to-point communication, and message is being successfully forwarded to right After the purpose access device answered, sending the access device of the message can obtain forwarding successfully return message.
To enable the above objects, features, and advantages of invention to be clearer and more comprehensible, present pre-ferred embodiments cited below particularly, and The appended attached drawing of cooperation, is described in detail below.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the block diagram of message route forwarding system provided in an embodiment of the present invention.
Fig. 2 is one of the flow diagram for the message routing conversion that first embodiment of the invention provides.
Fig. 3 is the flow diagram for the sub-step that step S120 includes in Fig. 2.
Fig. 4 is the flow diagram for the sub-step that step S150 includes in Fig. 2.
Fig. 5 is the two of the flow diagram for the message routing conversion that first embodiment of the invention provides.
Fig. 6 is the flow diagram for the sub-step that step S110 includes in Fig. 5.
Fig. 7 is the flow diagram for the message routing conversion that second embodiment of the invention provides.
Fig. 8 is the block diagram for the message routing forwarding device that third embodiment of the invention provides.
Fig. 9 is the block diagram for the message routing forwarding device that fourth embodiment of the invention provides.
Icon:10- message route forwarding systems;The first access devices of 100-;The first access servers of 200-;300- message Routing server;The second access servers of 400-;The second access devices of 500-;600- message routing forwarding devices;610- first Receiving module;The first forwarding modules of 620-;The second receiving modules of 630-;The second forwarding modules of 640-.
Specific implementation mode
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing The every other embodiment obtained under the premise of going out creative work, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Below in conjunction with the accompanying drawings, it elaborates to some embodiments of the present invention.In the absence of conflict, following Feature in embodiment and embodiment can be combined with each other.
Fig. 1 is please referred to, Fig. 1 is the block diagram for the message route forwarding system 10 that first embodiment of the invention provides. The message route forwarding system 10 may include multiple message routing servers 300, multiple access devices and multiple accesses clothes Business device.The system can provide the distributed Push Service of lightweight grade, and can by parallel expansion access server and The mode of message routing server 300 (that is, increasing the quantity of access server and message routing server 300) increases system Processing capacity.Wherein, access device can be by logging in the access server being directly connected to and the message routing server 300 Into row data communication, and then realize that the data for the access device being directly connected to from different access servers communicate.Access device is also It can be communicated with other access devices realization for being connected to same access server by logging in the access server being directly connected to. Thus, it can be achieved that point-to-point communication.
In the present embodiment, in a message forwarding process, as shown in Figure 1, the message route forwarding system 10 wraps Include the first access device 100, the first access server 200, message routing server 300, the second access server 400 and second Access device 500.First access device 100 is successively via first access server 200, message routing server 300 and second access server 400 and Fig. 1 second access devices 500 shown in solid realize point-to-point communication.Alternatively, It is connected on same access server with second access device 500 shown in dotted lines in Figure 1 in the first access device 100 When, first access device 100 can directly pass through first access server 200 and second access device 500 Realize point-to-point communication.Wherein, herein first access device 100, the first access server 200, the second access service Device 400 and the second access device 500 refer to that the identity in a message forwarding process is different, are forwarded certainly in other message In the process, first access device, 100 and second access device, 500 corresponding practical access device is variable, and described first connects Enter server 200 and 400 corresponding practical access server of the second access server is variable, the message routing server 300 Corresponding real messages routing server also can be changed.
First embodiment
Please refer to Fig. 2, Fig. 2 be the message routing conversion that first embodiment of the invention provides flow diagram it One.The method is applied to the message route forwarding system 10 in Internet of Things, and the message route forwarding system 10 includes communication Access device, access server and the message routing server 300 of connection.Wherein, the message routing server 300 passes through institute Access server is stated to communicate to connect with the access device.Below by taking the realization process of message forwarding as an example, to message road It is described in detail by the detailed process of retransmission method.
Step S120, the message to be forwarded that the first access server 200 the first access device 100 of reception is sent, and according to Purpose equipment identification code in the message to be forwarded judges whether to need the message to be forwarded being sent to the message road By server 300.
In the present embodiment, due between access device cannot directly into row data communication, first access is set The message to be forwarded is sent to first access server 200 connected to it by standby 100 first.The first access clothes Device 200 be engaged in after receiving the message to be forwarded, needs to judge that purpose access device corresponding with the message to be forwarded is It is no to be connect with itself, then carry out subsequent step.Wherein, the message to be forwarded includes purpose equipment identification code, i.e. purpose connects Enter the equipment mark code of equipment.Wherein, equipment mark code is the unique mark of access device, be may be, but not limited to, and the world is moved Dynamic EIC equipment identification code (International Mobile Equipment Identity, IMEI), Universally Unique Identifier (Universally Unique Identifier, UUID) etc..The message to be forwarded is Internet of Things network information.
Optionally, the equipment mark for recording connected access device is stored in first access server 200 Know the first routing table of code, first access server 200 can judge whether to need institute according to first routing table It states message to be forwarded and is sent to the message routing server 300.
Fig. 3 is please referred to, Fig. 3 is the flow diagram for the sub-step that step S120 includes in Fig. 2.Step S120 may include Sub-step S121, sub-step S122 and sub-step S123.
Sub-step S121, first access server 200 according to the purpose equipment identification code the first via by It is searched in table.
When the first via finds the purpose equipment identification code in, sub-step S122 is executed.When described When cannot find the purpose equipment identification code in the first routing table, sub-step S123 is executed.
The message to be forwarded need not be sent to described by sub-step S122, the judgement of the first access server 200 Message routing server 300.
Sub-step S123, the judgement of the first access server 200 need the message to be forwarded being sent to described disappear Cease routing server 300.
In the present embodiment, first access server 200 waits for after receiving the message to be forwarded according to described The purpose equipment identification code in forwarding message is searched in first routing table.If in first routing table The purpose equipment identification code is found, indicates purpose access device corresponding with the purpose equipment identification code and described first Access server 200 is directly connected to, that is, first access device, 100 and second access device 500 and same access server It is directly connected to.That is, first access server 200, which can directly transmit the message to be forwarded, gives described wait for Corresponding second access device 500 of message is forwarded, therefore, if first access server 200 is in first routing table The purpose equipment identification code is found, then can be determined that need not be sent to the message to be forwarded the message routing clothes Business device 300.
If the purpose equipment identification code cannot be found in first routing table, indicate and the purpose equipment mark Know the corresponding purpose access device of code not to be directly connected to first access server 200, that is, first access device 100, the second access device 500 is directly connected to from different access servers respectively.In this case, the first access clothes Being engaged in, device 200 cannot directly with the message to be forwarded, corresponding second access device 500 communicates, therefore, if described first The purpose equipment identification code is found in routing table, first access server 200 then can be determined that needs are waited for described Forwarding message is sent to the message routing server 300, to be forwarded to be disappeared described by the message routing server 300 Breath sends purpose access device corresponding with the purpose equipment identification code.
The message to be forwarded need not be sent to described by step S130, first access server 200 in judgement When message routing server 300, directly the message to be forwarded is sent to and the purpose equipment identification code corresponding second Access device 500, and returned to first access device 100 and forward successful prompting message.
In the present embodiment, first routing table further includes the IP of access device corresponding with the equipment mark code The message to be forwarded need not be sent to the message routing server by location, first access server 200 in judgement When 300, the message to be forwarded is directly sent to the step of the second access device corresponding with the purpose equipment identification code 500 Suddenly include:
When finding the purpose equipment identification code in first routing table, first access server 200 obtains The purpose IP address of purpose access device corresponding with the purpose equipment identification code is obtained, and the message to be forwarded is sent to Second access device corresponding with the purpose IP address of purpose access device 500.
Optionally, in first routing table, equipment mark code and the handle of each access device correspond, In, the handle may include the IP address of corresponding access device, corresponding with the equipment mark code in first routing table Access device be directly connected to the first access server 200.First access server 200 is in first routing table After finding the purpose equipment mark code, corresponding purpose handle can be obtained, then waited for described according to purpose handle Forwarding message, which directly transmits, gives corresponding second access device of the purpose handle 500.
Judge that the message to be forwarded has succeeded by access device as a purpose in first access server 200 After second access device 500 receives, first access server 200 is returned to first access device 100 and is forwarded Successful prompt message.Wherein, first access server 200 judges the message to be forwarded successful mode can be with It is, but is not limited to, first access server 200 receives the reception that second access device 500 returns and successfully disappears Breath.
Step S140, first access server 200 need the forwarding message being sent to the message in judgement When routing server 300, the message to be forwarded is sent to the message routing server 300.
In the present embodiment, the access service being connect with second access device 500 in first access device 100 When device difference, the message to be forwarded is then sent to the message routing server 300 by first access server 200, The message to be forwarded to be sent to and the purpose equipment identification code corresponding second through the message routing server 300 Access device 500.
Step S150, the message routing server 300 pass through the message to be forwarded and the purpose equipment identification code Corresponding second access server 400 is sent to the second access device 500 corresponding with the purpose equipment identification code, and through institute It states the first access server 200 and returns to the successful prompting message of forwarding to first access device 100.
Fig. 4 is please referred to, Fig. 4 is the flow diagram for the sub-step that step S150 includes in Fig. 2.Step S150 may include Sub-step S151, sub-step S152 and sub-step S153.
Sub-step S151, the message routing server 300 obtain and the purpose equipment according to the third routing table The purpose IP address of the corresponding purpose access server of identification code, and the message to be forwarded is sent to the destination IP address Corresponding second access server 400.
In the present embodiment, the device identification for recording access device is stored in the message routing server 300 The third routing table of code and the IP address correspondence of access server.The message routing server 300 is described in receiving After the message to be forwarded that first access server 200 is sent, according to the purpose equipment mark in the message to be forwarded Know code to be searched in the third routing table, to obtain purpose access server corresponding with the purpose equipment identification code Purpose IP address.The message routing server 300 is waited for according to the purpose IP address of the purpose access server by described Forwarding message is sent to the second access server 400 as the purpose access server.
Optionally, if the message routing server 300 cannot find the purpose equipment in third routing Identification code indicates that the message routing server 300 cannot be communicated through an access server with purpose access device, the message Routing server 300 then returns to carrying for retransmission failure by first access server 200 to first access device 100 Show information.
In the embodiment of the present embodiment, the message routing server 300 can be an individual server, have Receive the abilities such as message, processing message and storage third routing table.The message routing server 300 can also be logical by two The server of letter forms, and one of server is used to store, such as cache routing message, is deposited to third routing report Storage;Another server is for receiving and handling message etc..
Sub-step S152, second access server 400 is according to the purpose equipment identification code in the secondary route It is searched in table.
Sub-step S153, when finding the purpose equipment identification code in the secondary route table, described second connects Enter server 400 and obtain the purpose IP address of purpose access device corresponding with the purpose equipment identification code, and is waited for described Forwarding message is sent to second access device corresponding with the purpose IP address of purpose access device 500.
In the present embodiment, it is stored in second access server 400 for recording connected access device The secondary route table of equipment mark code and IP address.Second access server 400 is being received by message routing clothes It is engaged in after the message to be forwarded that device 300 is sent, according to the purpose equipment identification code in the message to be forwarded described It is searched in secondary route table.If finding the purpose equipment identification code, second access server 400 and mesh are indicated Access device be directly connected to, second access server 400 can directly by the message to be forwarded be sent to it is described Second access device 500 of the corresponding access device as a purpose of purpose equipment identification code.
Optionally, the secondary route table is similar with first routing table, each to access in the secondary route table The equipment mark code of equipment is corresponded with handle, access device corresponding with the equipment mark code in the secondary route table with Second access server 400 is directly connected to.Second access server 400 finds the mesh in the secondary route table Equipment mark code after, corresponding purpose handle can be obtained, it is then according to purpose handle that the message to be forwarded is direct It is sent to second access device corresponding with the purpose handle 500.
Also, after determining that second access device 500 receives the message to be forwarded, second access service Device 400 sends to first access device 100 through the message routing server 300 and the first access server 200 and forwards Successful prompting message.
Realize point-to-point communication through the above way as a result, and logic is simple;Meanwhile after the completion of message forwards, If forwarding successfully, is returned to the access device for sending the message and forward successful prompting message;If retransmission failure, to transmission The access device of the message returns to the prompting message of retransmission failure, so that the access device for sending the message is known that and disappears Whether breath is successfully sent to purpose access device.
In the present embodiment, the mode for sending the message to be forwarded is transparent transmission.Wherein, the message to be forwarded can wrap The particular content for including purpose equipment identification code and being sent.Optionally, the message format to be forwarded is as follows:
Push indicates that push, sender ID are the equipment mark code for the access device for sending the message to be forwarded, receives Square ID is the equipment mark code for the access device for receiving the message to be forwarded.Include intelligent hand with the message routing system For machine, access server 1, message routing server, access server 2 and smart machine, app2device can indicate intelligence Energy mobile phone is sent to smart machine, and device2app can indicate that smart machine is sent to smart mobile phone.
In message forwarding process, access server and message routing server 300 are all without the concern in content Content only does the channel of data transmission.Specific service parameter is defined by access device, thus when access device changes, is connect Enter server and message routing server 300 all needs not participate in.
Please refer to Fig. 5, Fig. 5 be the message routing conversion that first embodiment of the invention provides flow diagram it Two.The method can also include step S161.
Step S161, when the message to be forwarded cannot be transmitted to second access device 500, first access Server 200 returns to the prompt message of retransmission failure to first access device 100.
In the present embodiment, if because of the influence that cannot find the factors such as purpose access device or network interruption so that institute State message to be forwarded cannot successfully give second access device 500 when, first access device 100 can be received by institute State the prompt message of the retransmission failure of the first access server 200 transmission.
Optionally, the prompt message of retransmission failure can be directly generated by first access server 200, also may be used Being generated and sent to first access server 200 by the message routing server 300, can also be by described Second access server 400 generates and is sent to first access server 200 through the message routing server 300 Deng.Thus, it is possible to ensure after entire message forwarding process, first access device 100 can obtain the message and turn It sends out successfully or the forwarding result of retransmission failure.
Referring once again to Fig. 5, the method can also include step S162.
Step S162, when having equipment to exit in the system, the message routing server 300 is route in the third Routing iinformation corresponding with equipment is exited is deleted in table, to be updated to the third routing table.
In the present embodiment, due in the access device and purpose access device and different accesses for sending message to be forwarded When server is directly connected to, the message routing server 300 is needed according to the third routing table of storage to carry out message Forwarding.Therefore, when having equipment to exit in message route forwarding system 10, the message routing server 300 will move out equipment Corresponding routing iinformation is deleted from the third routing table, to ensure the routing iinformation stored in the third routing table and disappear The actual conditions for ceasing route forwarding system 10 are consistent, and message to be forwarded can normally be forwarded by being further ensured that.Wherein, it moves back It can be access device to go out equipment, can also be access server.
If for example, an access device will exit, the access server being directly connected to the access device is to the message Routing server 300 send the access device information to be exited, the message routing server 300 after receiving the information, Then all routing iinformations corresponding with the access device are deleted in the third routing table.Further, the access Server can also delete the corresponding routing iinformation of the access device in the routing table of itself storage.
If an access server exits, the message routing server 300 will take in third routing table with the access The corresponding all routing iinformations of business device are deleted.Wherein, if the access server is actively to exit, before exit by its own The routing table of storage is deleted;If the access server is passively to exit, first by the road of its own storage after start next time It is deleted by table.
Optionally, if there is new equipment that the message route forwarding system 10, accordingly, the message routing services is added The new corresponding routing iinformation of equipment that is added then is added in the third routing table by device 300.
Referring once again to Fig. 5, the method can also include step S110.
Step S110, the access server send routing registration information to the message routing server 300, to complete Route registration.
Fig. 6 is please referred to, Fig. 6 is the flow diagram for the sub-step that step S110 includes in Fig. 5.Step S110 may include Sub-step S111, sub-step S112, sub-step S113 and sub-step S114.
Sub-step S111, the access device send logging request to the access server.
Wherein, the logging request includes the equipment mark code of the access device, IP address.
Sub-step S112, the access server store the equipment mark code of the access device of reception, IP address In the routing table.
Sub-step S113, the access server will include that the route registration of equipment mark code of the access device is asked It asks and is sent to the message routing server 300.
Sub-step S114, the message routing server 300 by the route registration ask in the access server IP address and the equipment mark code of the access device be stored in the third routing table to complete route registration.
In the present embodiment, access device to access server send logging request, with establish with the access device with Long connection between the access server.The access server will ask after receiving the logging request with the login It asks equipment mark code and IP address of the relevant access device etc. to store in a routing table, optionally, is set in the routing table Standby identification code is corresponded with the handle obtained through the logging request.Wherein, if access server is the first access server 200, which is then the first routing table in the first access server 200;If access server is the second access server 400, which is then the secondary route table in the second access server 400.
The access server is sent out after receiving the logging request of access device to the message routing server 300 Routing registration information is sent, to complete the route registration of the access device.Wherein, may include that this connects in the routing registration information Enter the equipment mark code of equipment.Optionally, the message routing server 300 can obtain directly from the routing registration information It, can also be during receiving the routing registration information to the IP address for the access server for sending the routing registration information Obtain sending the IP address of the access server of the routing registration information.Institute can be obtained in the message routing server 300 as a result, The equipment mark code of access device and the IP address of the corresponding access server are stated, and stores it in the third routing To complete the route registration of the access device in table.
Second embodiment
Fig. 7 is please referred to, Fig. 7 is the flow diagram for the message routing conversion that second embodiment of the invention provides.Institute State method be applied to message route forwarding system 10, the message route forwarding system 10 include communication connection access device, Access server and message routing server 300, wherein the message routing server 300 by the access server with The access device communication connection.Message routing conversion is illustrated below.
Message to be forwarded is sent to the message by step S210, the first access device 100 through the first access server 200 Routing server 300.
Wherein, the message to be forwarded includes purpose equipment identification code.
The message to be forwarded is sent to and the purpose equipment mark by step S220, the message routing server 300 Know corresponding second access server of code 400.
The message to be forwarded is sent to and the purpose equipment mark by step S230, second access server 400 Know corresponding second access device 500 of code, and through the message routing server 300 and the first access server 200 to described First access device 100, which returns, forwards successful prompting message.
In the present embodiment, first access server 200 is receiving waiting for for the transmission of the first access device 100 After forwarding message, can the message to be forwarded be directly sent to the message routing server 300, to pass through the message The message to be forwarded is forwarded by routing server 300;Institute can also cannot be found in the first routing table in judgement When stating equipment mark code, the message to be forwarded is sent to the message routing server 300.Wherein, the first via by Table is stored in first access server 200, the access device connected for recording first access server 200 Equipment mark code.
In the present embodiment, the detailed description about the message routing forwarding device 600 is referred to above in message To the description of message routing server 300 in routing conversion.
3rd embodiment
Fig. 8 is please referred to, Fig. 8 is the block diagram for the message routing forwarding device 600 that third embodiment of the invention provides. The message routing forwarding device 600 is applied to access server, and the access server takes with access device and message routing Business device 300 communicates to connect.The message routing forwarding device 600 includes the first receiving module 610 and the first forwarding module 620.
First receiving module 610, the message to be forwarded for receiving the transmission of the first access device 100, and waited for according to described Purpose equipment identification code in forwarding message judges whether to need the message to be forwarded being sent to the message routing services Device 300.
First forwarding module 620, for the message to be forwarded need not to be sent to the message routing clothes in judgement When business device 300, the message to be forwarded is directly sent to the second access device corresponding with the purpose equipment identification code 500, and returned to first access device 100 and forward successful prompting message.
First forwarding module 620 is additionally operable to need the forwarding message being sent to the message routing in judgement When server 300, the message to be forwarded is sent to the message routing server 300, is taken with being route by the message The message to be forwarded is sent to the second access device 500 corresponding with the purpose equipment identification code by business device 300, and to institute It states the first access device 100 and returns to the successful prompting message of forwarding.
In the present embodiment, the detailed description about the message routing forwarding device 600 is referred to first embodiment To the description of access server in message routing conversion.
Fourth embodiment
Fig. 9 is please referred to, Fig. 9 is the block diagram for the message routing forwarding device 600 that fourth embodiment of the invention provides. The message routing forwarding device 600 is applied to message routing server 300, and the message routing server 300 takes with access Business device communication connection.The message routing forwarding device 600 includes the second receiving module 630 and the second forwarding module 640.
Second receiving module 630 waits turning for receiving the first access device 100 through what the first access server 200 was sent Send out message, wherein the message to be forwarded includes purpose equipment identification code.
Second forwarding module 640, it is corresponding with the purpose equipment identification code for being sent to the message to be forwarded Second access server 400 is set with being sent to the message to be forwarded through second access server 400 with the purpose Corresponding second access device of standby identification code 500.
Second forwarding module 640 is additionally operable to the successful prompting message of forwarding for returning to second access server 400 It is sent to first access server 200, it is described to be sent to the prompting message through first access server 200 First access device 100.
In the present embodiment, the detailed description about the message routing forwarding device 600 is referred to above in message To the description of message routing server 300 in routing conversion.
In conclusion a kind of message routing conversion of offer of the embodiment of the present invention and device.The method is applied to disappear Route forwarding system is ceased, the system comprises the access device of communication connection, access server and message routing server, In, the message routing server is communicated to connect by the access server and the access device.First access device will Message to be forwarded is sent to the first access server, wherein the message to be forwarded includes purpose equipment identification code.Described One access server judges whether that needs will be described after receiving the message to be forwarded, according to the purpose equipment identification code Message to be forwarded is sent to the message routing server.The message to be forwarded need not be sent to the message in judgement When routing server, the message to be forwarded is directly sent to and the purpose equipment identification code by first access server Corresponding second access device, and returned to first access device and forward successful prompting message.It is needed institute in judgement Forwarding message is stated when being sent to the message routing server, the message to be forwarded is sent to by first access server The message routing server.The message routing server to be forwarded disappears after receiving the message to be forwarded by described Breath is sent to the second access server corresponding with the purpose equipment identification code, by the message to be forwarded through described second Access server is sent to the second access device corresponding with the purpose equipment identification code, and through first access server It is returned to first access device and forwards successful prompting message.Thus, it is possible to realize point-to-point communication, and successfully turning After sending out message to corresponding purpose access device, sending the access device of the message can obtain forwarding successfully return message.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of message routing conversion, which is characterized in that be applied to message route forwarding system, the system comprises communications Access device, access server and the message routing server of connection, wherein the message routing server passes through the access Server is communicated to connect with the access device, the method includes:
First access server receives the message to be forwarded that the first access device is sent, and according to the mesh in the message to be forwarded Equipment mark code judge whether to need the message to be forwarded being sent to the message routing server;
First access server judgement the message to be forwarded need not be sent to the message routing server when, The message to be forwarded is directly sent to the second access device corresponding with the purpose equipment identification code, and to described first Access device, which returns, forwards successful prompting message;
First access server is when judgement needs the forwarding message being sent to the message routing server, by institute It states message to be forwarded and is sent to the message routing server;
The message routing server takes the message to be forwarded through the second access corresponding with the purpose equipment identification code Business device is sent to the second access device corresponding with the purpose equipment identification code, and through first access server to described First access device, which returns, forwards successful prompting message.
2. according to the method described in claim 1, it is characterized in that, being stored in first access server for recording First routing table of the equipment mark code of the access device of connection, the purpose equipment according in the message to be forwarded identify Code judges whether to need the message to be forwarded being sent to the message routing server, including:
First access server is searched according to the purpose equipment identification code in first routing table;
When the first via finds the purpose equipment identification code in, the first access server judgement does not need The message to be forwarded is sent to the message routing server;
When the purpose equipment identification code cannot be found in first routing table, the first access server judgement It needs the message to be forwarded being sent to the message routing server.
3. according to the method described in claim 2, it is characterized in that, first routing table further includes and the equipment mark code The message to be forwarded need not be sent to institute by the IP address of corresponding access device, first access server in judgement When stating message routing server, the message to be forwarded is directly sent to corresponding with the purpose equipment identification code second and is connect Enter equipment, including:
When finding the purpose equipment identification code in first routing table, first access server obtain with it is described The purpose IP address of the corresponding purpose access device of purpose equipment identification code, and the message to be forwarded is sent to and the mesh Access device corresponding second access device of purpose IP address.
4. according to the method described in claim 2, it is characterized in that, being stored in second access server for recording The equipment mark code of the access device of connection and the secondary route table of IP address are stored in the message routing server and are used for Record the third routing table of the equipment mark code of access device and the IP address correspondence of access server, the message routing Server by the message to be forwarded through the second access server corresponding with the purpose equipment identification code be sent to it is described Corresponding second access device of purpose equipment identification code, including:
The message routing server obtains purpose corresponding with the purpose equipment identification code according to the third routing table and connects Enter the purpose IP address of server, and the message to be forwarded is sent to corresponding second access in the destination IP address Server;
Second access server is searched according to the purpose equipment identification code in the secondary route table;
When finding the purpose equipment identification code in the secondary route table, second access server obtains and institute State the purpose IP address of the corresponding purpose access device of purpose equipment identification code, and by the message to be forwarded be sent to it is described Corresponding second access device of purpose IP address of purpose access device.
5. according to the method described in any one of claim 1-4, which is characterized in that the method further includes:
When the message to be forwarded cannot be transmitted to second access device, first access server is to described first Access device returns to the prompt message of retransmission failure.
6. according to the method described in claim 4, it is characterized in that, the method further includes:
When thering is equipment to exit in the system, the message routing server in the third routing table will with exit equipment Corresponding routing iinformation is deleted, to be updated to the third routing table.
7. according to the method described in claim 4, it is characterized in that, the method further includes:
The access server sends routing registration information to the message routing server, to complete route registration;
The access server sends routing registration information to the message routing server, to complete route registration, including:
The access device sends logging request to the access server, wherein the logging request includes that the access is set Standby equipment mark code, IP address;
The access server stores the equipment mark code of the access device of reception, IP address in the routing table;
The access server will include that the route registration request of equipment mark code of the access device is sent to described disappear Cease routing server;
The message routing server by the route registration ask in the access server IP address and the access The equipment mark code of equipment is stored in the third routing table to complete route registration.
8. a kind of message routing conversion, which is characterized in that be applied to message route forwarding system, the system comprises communications Access device, access server and the message routing server of connection, wherein the message routing server passes through the access Server is communicated to connect with the access device, the method includes:
Message to be forwarded is sent to the message routing server by the first access device through the first access server, wherein institute It includes purpose equipment identification code to state message to be forwarded;
The message to be forwarded is sent to corresponding with the purpose equipment identification code second and connect by the message routing server Enter server;
The message to be forwarded is sent to corresponding with the purpose equipment identification code second and connect by second access server Enter equipment, and forwarding is returned to successfully to first access device through the message routing server and the first access server Prompting message.
9. a kind of message routing forwarding device, which is characterized in that be applied to access server, the access server is set with access The communication connection of standby and message routing server, described device include:
First receiving module, the message to be forwarded for receiving the transmission of the first access device, and according in the message to be forwarded Purpose equipment identification code judge whether to need the message to be forwarded being sent to the message routing server;
First forwarding module, for judgement the message to be forwarded need not be sent to the message routing server when, The message to be forwarded is directly sent to the second access device corresponding with the purpose equipment identification code, and to described first Access device, which returns, forwards successful prompting message;
First forwarding module is additionally operable to need the forwarding message being sent to the message routing server in judgement When, the message to be forwarded is sent to the message routing server, to be waited for described by the message routing server Forwarding message is sent to the second access device corresponding with the purpose equipment identification code, and is returned to first access device Forward successful prompting message.
10. a kind of message routing forwarding device, which is characterized in that be applied to message routing server, the message routing services Device is communicated to connect with access server, and described device includes:
Second receiving module, for receiving the message to be forwarded that the first access device is sent through the first access server, wherein institute It includes purpose equipment identification code to state message to be forwarded;
Second forwarding module, for the message to be forwarded to be sent to the second access corresponding with the purpose equipment identification code Server, it is corresponding with the purpose equipment identification code to be sent to the message to be forwarded through second access server Second access device;
Second forwarding module is additionally operable to the successful prompting message of forwarding that second access server returns being sent to described First access server, the prompting message is sent to first access device through first access server.
CN201810441857.5A 2018-05-10 2018-05-10 Message routing conversion and device Pending CN108718272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810441857.5A CN108718272A (en) 2018-05-10 2018-05-10 Message routing conversion and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810441857.5A CN108718272A (en) 2018-05-10 2018-05-10 Message routing conversion and device

Publications (1)

Publication Number Publication Date
CN108718272A true CN108718272A (en) 2018-10-30

Family

ID=63899664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810441857.5A Pending CN108718272A (en) 2018-05-10 2018-05-10 Message routing conversion and device

Country Status (1)

Country Link
CN (1) CN108718272A (en)

Citations (5)

* 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
CN104980989A (en) * 2015-04-30 2015-10-14 北京海尔广科数字技术有限公司 Signaling forwarding method and related equipment
CN105376147A (en) * 2015-12-18 2016-03-02 Tcl集团股份有限公司 Instant communication message route addressing method, access server and system
WO2017153093A1 (en) * 2016-03-11 2017-09-14 Tridonic Gmbh & Co Kg Building technology device communication system with iot-network devices
CN107404512A (en) * 2016-05-19 2017-11-28 华为技术有限公司 Resource subscription method, resource subscription device and resource subscription Xi System

Patent Citations (5)

* 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
CN104980989A (en) * 2015-04-30 2015-10-14 北京海尔广科数字技术有限公司 Signaling forwarding method and related equipment
CN105376147A (en) * 2015-12-18 2016-03-02 Tcl集团股份有限公司 Instant communication message route addressing method, access server and system
WO2017153093A1 (en) * 2016-03-11 2017-09-14 Tridonic Gmbh & Co Kg Building technology device communication system with iot-network devices
CN107404512A (en) * 2016-05-19 2017-11-28 华为技术有限公司 Resource subscription method, resource subscription device and resource subscription Xi System

Similar Documents

Publication Publication Date Title
CN106230896B (en) A kind of information push method, apparatus and system
KR101731867B1 (en) Method and apparatus for sharing user event between chatbots
RU2420898C2 (en) Optimising communication using scalable peer groups
CN103339901B (en) Terminal in content guiding network environment and the communication means of intermediate node and terminal and intermediate node
EP3734913A1 (en) Communication method and communication apparatus
JP4833995B2 (en) Mobile online game system and communication method between mobile game terminals
EP2088791B1 (en) Method, system and device for increasing multimedia messaging service system capacity
CN101136943B (en) System and method for implementing extended Diameter protocol application
US6694350B2 (en) Information providing system, server, client, information providing method and recording medium
CN101686141B (en) Method and equipment for synchronizing read states
US20230300106A1 (en) Data processing method, network element device and readable storage medium
US20230300726A1 (en) Data processing method and apparatus, network element device, storage medium, and program product
CN101083597A (en) SIP based instant message of mobile self-organizing network
CN104301287B (en) Many-to-many session implementation method, network node, server and system
CN108989218B (en) Data forwarding device and method based on network convergence architecture
CN101425958A (en) Request answering method, apparatus and system in P2P overlapping network
CN114553799B (en) Multicast forwarding method, device, equipment and medium based on programmable data plane
CN112866413A (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN116846959A (en) Message receiving and transmitting method and device based on MQTT protocol
CN107483628B (en) DPDK-based one-way proxy method and system
JP2016178494A (en) Gateway device and communication method
CN108718272A (en) Message routing conversion and device
CN116566897A (en) Addressing routing method, device, equipment and medium
US9077741B2 (en) Establishing communication between entities in a shared network
US11612007B2 (en) Low power dissipation Bluetooth mesh network system and communication method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20190131

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: Hengda Wisdom Technology Co., Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: Star Technology Co., Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20181030

RJ01 Rejection of invention patent application after publication