CN105553832A - Message sending and receiving method and device - Google Patents

Message sending and receiving method and device Download PDF

Info

Publication number
CN105553832A
CN105553832A CN201510997710.0A CN201510997710A CN105553832A CN 105553832 A CN105553832 A CN 105553832A CN 201510997710 A CN201510997710 A CN 201510997710A CN 105553832 A CN105553832 A CN 105553832A
Authority
CN
China
Prior art keywords
message
transmitted
relevant parameter
key
transfer
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
CN201510997710.0A
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510997710.0A priority Critical patent/CN105553832A/en
Publication of CN105553832A publication Critical patent/CN105553832A/en
Priority to PCT/CN2016/111561 priority patent/WO2017107963A1/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/234Monitoring or handling of messages for tracking messages

Abstract

The invention provides a message sending and receiving method and device. The message sending method comprises the following steps: generating a message to be transmitted in sending equipment, wherein a target address is carried in the message to be transmitted; obtaining a related parameter of the message to be transmitted, and generating a corresponding identifier ID for the message to be transmitted by utilizing the related parameter; adding the corresponding identifier ID in the message to be transmitted; and sending the message to be transmitted added with the ID to a destination by utilizing the sending equipment. By means of the technical scheme, the transmission path of each transmitted message can be grasped through a record generated by the additional ID of the message to be transmitted on each node; and the transmission state in the message transmission process can be known.

Description

Message sending, receiving method and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of message sending, receiving method and device.
Background technology
Along with developing rapidly of the communication technology and network technology, create the application tool of a large amount of Message Transmission class, such as, news release ordering system, there is Three role in this system, be respectively the producer (producer), agency (broker), consumer (consumer).Producer gives out information to certain topic, and consumer subscribes to the message of certain topic, and then once there be the new message about certain topic, broker can pass to the consumer subscribing to it.
In prior art, when message is carried out in transmittance process between producer, broker, consumer three, the bang path of message can not be grasped, the state of Message Transmission cannot be understood.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the message sending, receiving method solved the problem at least in part and device.
Based on one aspect of the present invention, provide a kind of message method, comprising:
In transmitting apparatus, generate message to be transmitted, wherein, in described message to be transmitted, carry destination address;
Obtain the relevant parameter of described message to be transmitted, utilize described relevant parameter to be the mark ID of described its correspondence of message generation to be transmitted;
Corresponding mark ID is added in described message to be transmitted;
The transmission of described transmitting apparatus is utilized to add the message to be transmitted of ID to described destination.
Alternatively, obtain the relevant parameter of described message to be transmitted, specifically comprise:
The following relevant parameter one of at least obtaining described message to be transmitted: the IP address of described transmitting apparatus, MAC Address, destination address, transmitting time stamp.
Alternatively, utilize described relevant parameter to be the ID of described its correspondence of message generation to be transmitted, specifically comprise:
Utilize preset rules that the multiple relevant parameters obtained are sorted and adjusted, to generate the ID of its correspondence.
Alternatively, the multiple relevant parameters obtained sort and adjust by the described preset rules that utilizes, and comprising:
Multiple relevant parameter is arranged in a predetermined order;
Blank character and/or interval field are set between each relevant parameter.
Alternatively, in described message to be transmitted, add corresponding mark ID, specifically comprise:
Corresponding ID is added at the head of described message to be transmitted; Or,
Corresponding ID is added at the afterbody of described message to be transmitted.
Alternatively, also comprise:
In the key-value store list of described transmitting apparatus, store the relevant parameter of described message to be transmitted, wherein, the ID of described message to be transmitted is as storage key, and the conduct at least partially of particular value or its relevant parameter stores value.
Alternatively, the key-value store list after this being upgraded is uploaded to distributed memory system, is upgraded the former key-value store list it storing described message to be transmitted by described distributed memory system.
Based on another aspect of the present invention, additionally provide a kind of message receival method, comprising:
The message transfer of receiving belt mark ID, wherein, described ID generates according to the relevant parameter of described message transfer;
Obtain the ID of described message transfer, and resolve with the relevant parameter obtaining described message transfer;
The ID of described message transfer and described relevant parameter is recorded in receiving equipment.
Alternatively, described relevant parameter comprise following one of at least:
Send the IP address of the transmitting apparatus of described message transfer, MAC Address, destination address, transmitting time stamp;
The IP address of described receiving equipment, MAC Address, time of reception stamp.
Alternatively, in receiving equipment, record the ID of described message transfer and described relevant parameter, specifically comprise:
To store the relevant parameter of described message transfer in key-value store list in described receiving equipment, wherein, the ID of described message transfer is as storage key, and the conduct at least partially of particular value or its relevant parameter stores value.
Alternatively, the key-value store list after this being upgraded is uploaded to distributed memory system, is upgraded the former key-value store list it storing described message transfer by described distributed memory system.
Based on another aspect of the present invention, additionally provide a kind of message dispensing device, be arranged in the transmitting apparatus of message, comprise:
Message generating module, is suitable for generating message to be transmitted in described transmitting apparatus, wherein, carries destination address in described message to be transmitted;
Identifier generation module, is suitable for the relevant parameter obtaining described message to be transmitted, utilizes described relevant parameter to be the mark ID of described its correspondence of message generation to be transmitted;
Add module, be suitable in described message to be transmitted, add corresponding mark ID;
Sending module, is suitable for utilizing the transmission of described transmitting apparatus to add the message to be transmitted of ID to described destination.
Alternatively, described identifier generation module is also suitable for:
The following relevant parameter one of at least obtaining described message to be transmitted: the IP address of described transmitting apparatus, MAC Address, destination address, transmitting time stamp.
Alternatively, described identifier generation module is also suitable for:
Utilize preset rules that the multiple relevant parameters obtained are sorted and adjusted, to generate the ID of its correspondence.
Alternatively, described identifier generation module is also suitable for:
Multiple relevant parameter is arranged in a predetermined order;
Blank character and/or interval field are set between each relevant parameter.
Alternatively, described interpolation module is also suitable for:
Corresponding ID is added at the head of described message to be transmitted; Or,
Corresponding ID is added at the afterbody of described message to be transmitted.
Alternatively, also comprise:
Memory module, is suitable for the relevant parameter storing described message to be transmitted in the key-value store list of described transmitting apparatus, and wherein, the ID of described message to be transmitted is as storage key, and the conduct at least partially of particular value or its relevant parameter stores value.
Alternatively, also comprise:
Transmission module on first, is suitable for the key-value store list after this being upgraded and is uploaded to distributed memory system, upgraded the former key-value store list it storing described message to be transmitted by described distributed memory system.
Based on another aspect of the present invention, additionally provide a kind of message receiving apparatus, be arranged at the receiving equipment of message, comprise:
Receiver module, be suitable for the message transfer of receiving belt mark ID, wherein, described ID generates according to the relevant parameter of described message transfer;
Acquisition module, is suitable for the ID obtaining described message transfer, and resolves with the relevant parameter obtaining described message transfer;
Logging modle, is suitable in receiving equipment, record the ID of described message transfer and described relevant parameter.
Alternatively, described relevant parameter comprise following one of at least:
Send the IP address of the transmitting apparatus of described message transfer, MAC Address, destination address, transmitting time stamp;
The IP address of described receiving equipment, MAC Address, time of reception stamp.
Alternatively, described logging modle is also suitable for:
To store the relevant parameter of described message to be transmitted in key-value store list in described receiving equipment, wherein, the ID of described message to be transmitted is as storage key, and the conduct at least partially of its particular value or its relevant parameter stores value.
Alternatively, also comprise:
Transmission module on second, is suitable for the key-value store list after this being upgraded and is uploaded to distributed memory system, upgraded the former key-value store list it storing described message transfer by described distributed memory system.
Adopt the method in the embodiment of the present invention, after message generation to be transmitted, be not be sent to destination immediately, but utilize the relevant parameter of message to be transmitted, generate a mark ID, and the ID of generation is added into message to be transmitted, make ID become a part for message to be transmitted, then the message to be transmitted with ID is sent.Because ID has become a part for message to be transmitted, make in each node of message process to be transmitted, all can generate the record of corresponding ID.The record that the ID added by message to be transmitted is generated at each node, can grasp the bang path of every bar message transfer, understands the transmit mode in message transfer transmitting procedure.There are abnormal conditions in message transfer process of transmitting if occur, such as, Transmission, or message transfer is lost, inquire about in each node and whether there is ID corresponding to message transfer, determine this message transfer at which node occurs further abnormal, therefore, by the method that the embodiment of the present invention provides, be convenient to the node that user's fast finding goes out the appearance abnormal conditions in transmitting procedure.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
According to hereafter by reference to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will understand above-mentioned and other objects, advantage and feature of the present invention more.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the handling process schematic diagram of message method according to an embodiment of the invention;
Fig. 2 shows the handling process schematic diagram of message receival method according to an embodiment of the invention;
Fig. 3 shows the structural representation of message dispensing device according to an embodiment of the invention;
Fig. 4 shows the another kind of structural representation of message dispensing device according to an embodiment of the invention;
Fig. 5 shows the structural representation of message receiving apparatus according to an embodiment of the invention; And
Fig. 6 shows the another kind of structural representation of message receiving apparatus according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
For solving the problems of the technologies described above, embodiments provide a kind of message method.Fig. 1 shows the handling process schematic diagram of message method according to an embodiment of the invention.See Fig. 1, the method at least comprises the following steps S102 to step S108.
First, the embodiment of the present invention performs step S102, generates message to be transmitted, wherein, carry destination address in message to be transmitted in transmitting apparatus.
After generating message to be transmitted, perform step S104, obtain the relevant parameter of message to be transmitted, utilize relevant parameter to be the mark ID of its correspondence of message generation to be transmitted.
After generating ID corresponding to message to be transmitted, perform step S106, in message transfer, add corresponding mark ID.
Finally, perform step S108, utilize transmitting apparatus transmission to add the message to be transmitted of ID to destination.
Adopt the method in the embodiment of the present invention, after message generation to be transmitted, be not be sent to destination immediately, but utilize the relevant parameter of message to be transmitted, generate a mark (ID), and the ID of generation is added into message to be transmitted, make ID become a part for message to be transmitted, then the message to be transmitted with ID is sent.Because ID has become a part for message to be transmitted, make in each node of message process to be transmitted, all can generate the record of corresponding ID.The record that the ID added by message to be transmitted is generated at each node, can grasp the bang path of every bar message transfer, understands the transmit mode in message transfer transmitting procedure.There are abnormal conditions in message transfer process of transmitting if occur, such as, Transmission, or message transfer is lost, inquire about in each node and whether there is ID corresponding to message transfer, determine this message transfer at which node occurs further abnormal, therefore, by the method that the embodiment of the present invention provides, be convenient to the node that user's fast finding goes out the appearance abnormal conditions in transmitting procedure.
Each message to be transmitted has uniqueness relative to other message to be transmitted, and ID is equivalent to the identity of message to be transmitted, in order to each message to be transmitted can be distinguished, therefore, need the ID that each message to be transmitted is corresponding unique, utilize the relevant parameter with uniqueness to generate corresponding ID as far as possible, make ID corresponding to each message to be transmitted also have uniqueness.After ID corresponding to message to be transmitted has uniqueness, the record that the ID that message to be transmitted is added generates at each node also has uniqueness, is more conducive to the bang path grasping every bar message transfer, understands the transmit mode in message transfer transmitting procedure.
In a preferred embodiment of the invention, ID generates according to the relevant parameter of message to be transmitted, and wherein, the relevant parameter of message to be transmitted at least comprises one of following: the IP address of transmitting apparatus, MAC Address, destination address, transmitting time stamp.
It should be noted that, Internet protocol address (InternetProtocolAddress, be called for short IP address), be a kind of unified address format that IP agreement provides, it be each network on the Internet and each host assignment logical address.Media access address (MediaAccessControl, be called for short MAC), or be called physical address, hardware address, is used for the position of define grid equipment, representing the symbol of each website on the Internet.Draw thus, main frame has a unique MAC Address, and each network site has the IP address that is specific to it, and IP address and MAC Address all have uniqueness.
In order to make the ID of generation have uniqueness, the relevant parameter with uniqueness is generated corresponding ID by the embodiment of the present invention, such as, and the IP address of transmitting apparatus, MAC Address, transmitting time stamp.
In a preferred embodiment of the invention, utilize preset rules that the relevant parameter of the message multiple to be transmitted obtained is sorted and adjusted, generate corresponding ID.Wherein, multiple relevant parameter at least comprises the relevant parameter that has uniqueness, such as, and the IP address, MAC Address, transmitting time stamp etc. of transmitting apparatus.Particularly, the generation step of the ID that message to be transmitted is corresponding, for be arranged in a predetermined order by multiple relevant parameter, then arranges blank character and/or interval field between each relevant parameter.Such as, the relevant parameter generating ID corresponding to message to be transmitted is the IP address of transmitting apparatus, transmitting time stamp, and wherein, IP address is 192.168.1.1, and transmitting time stamp is 10:00 on December 20th, 2015.The predefined procedure that these two relevant parameters are stabbed in IP address, transmitting time is IP address, transmitting time stamp, and arranges plus sige between these two relevant parameters, then the ID generated is 192.168.1.1+2015 10:00 on December 20.If transmitting apparatus generates new message to be transmitted, ID corresponding to new message to be transmitted is 192.168.1.1+2015 10:20 on December 20.The address of different transmitting apparatus is separated according to the IP address area in the ID of message to be transmitted, different message to be transmitted in same transmitting apparatus is distinguished according to the transmitting time stamp in the ID of message to be transmitted, the ID of message generation to be transmitted is made to have uniqueness, the record that the ID that message to be transmitted is added generates at each node also has uniqueness, is more conducive to the bang path grasping every bar message transfer.
It should be noted that, the number generating multiple relevant parameters of ID can be selected arbitrarily, and the blank character arranged between each relevant parameter also can be colon, branch etc., and in addition, each relevant parameter that ID comprises also can be selected to arrange interval field and connect.Be only an example about the exemplifying of ID that message to be transmitted is corresponding in the embodiment of the present invention, any restriction is not caused to the present invention.
After the ID generation that message to be transmitted is corresponding, be added in message to be transmitted, particularly, added corresponding ID at the head of message to be transmitted, or, add corresponding ID at the afterbody of message to be transmitted.The point of addition of message to be transmitted performs according to host-host protocol, is convenient to after in transmitting procedure, recipient receives message transfer, can identify and parse corresponding ID.
After the ID generated is added into corresponding message to be transmitted, message to be transmitted with ID is sent, now, the relevant parameter of message to be transmitted is stored in key-value (key-value) store list of transmitting apparatus, wherein, key row in key-value store list store the ID of message to be transmitted, and the value row storage particular value in key-value store list or its relevant parameter are at least partially.
Particularly, if include all relevant parameters of message to be transmitted in the ID generated, key row in key-value store list store the ID of message to be transmitted, in order to save memory space, value row in key-value store list can store insignificant particular value (such as 0 false F), to meet the storage format of key-value store list.If include the part relevant parameter of message to be transmitted in the ID generated, value row in key-value store list can store the relevant parameter do not comprised in corresponding ID, or the value row in key-value store list can store the part in the relevant parameter do not comprised in corresponding ID, and this part relevant parameter specifically can be selected according to actual conditions.Such as, message to be transmitted comprises 10 relevant parameters, if include 4 relevant parameters of message to be transmitted in the ID generated, now, the value row in key-value store list can store 6 relevant parameters do not comprised in corresponding ID, or, value row in key-value store list can store 2 in 6 relevant parameters do not comprised in corresponding ID, wherein, the number of the relevant parameter in the embodiment of the present invention, only as specifically exemplifying, does not cause any restriction to the present invention.
After storage completes, key-value store list is uploaded to distributed memory system.Wherein, distributed memory system, data scatter is stored in multiple stage independently on equipment, distributed network storage system adopts extendible system configuration, multiple stage storage server is utilized to share storage load, utilize location server to locate storage information, it not only increases the reliability of system, availability and access efficiency, is also easy to expansion.
If transmitting apparatus generates new message to be transmitted, correspondingly, for the ID that this message generation to be transmitted is corresponding, after this message to be transmitted with ID sends, the relevant parameter of the message to be transmitted this sent is stored in the key-value store list of transmitting apparatus.Because key-value store list adds the information of ID and relevant parameter, the key-value store list after this being upgraded is uploaded to distributed memory system, is upgraded the former key-value store list it storing message to be transmitted by distributed memory system.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of message receival method.Fig. 2 shows the handling process schematic diagram of message receival method according to an embodiment of the invention.See Fig. 2, the method at least comprises the following steps S202 to step S206.
First, the embodiment of the present invention performs step S202, and the message transfer of receiving belt mark ID, wherein, ID generates according to the relevant parameter of message transfer.
After receiving message transfer, perform step S204, obtain the ID of message transfer, and resolve with the relevant parameter obtaining message transfer.
Finally, perform step S206, in receiving equipment, record ID and the relevant parameter of message transfer.
Adopt the method that the embodiment of the present invention provides, after the message transfer of receiving equipment receiving belt ID, obtain the ID of message transfer, and record the ID of message transfer, namely at the record receiving link generation message transfer, be convenient to the bang path that user grasps every bar message transfer, understand the transmit mode in message transfer transmitting procedure.
After receiving equipment receives the message to be transmitted with ID, in a preferred embodiment of the invention, the ID of message transfer is not only recorded in receiving equipment, also to record the IP address of transmitting apparatus, MAC Address, destination address, transmitting time stamp, and the IP address of receiving equipment, MAC Address, time of reception stamp.
The ID of the message transfer of record and relevant parameter are stored in the key-value store list of receiving equipment, wherein, key row in key-value store list store the ID of message to be transmitted, and the conduct at least partially that the value row in key-value store list store particular value or its relevant parameter stores value.Store ID and the relevant parameter of message to be transmitted in the key-value store list of receiving equipment, be equivalent to carry out record in reception link to message transfer.
Particularly, if include all relevant parameters of message to be transmitted in the ID generated, key row in the key-value store list of receiving equipment store the ID of message to be transmitted, in order to save memory space, value row in key-value store list can store insignificant particular value (such as, 0 false F), to meet the storage format of key-value store list.If include the part relevant parameter of message to be transmitted in the ID generated, value row in key-value store list can store the relevant parameter do not comprised in corresponding ID, or the value row in key-value store list can store the part in the relevant parameter do not comprised in corresponding ID, and this part relevant parameter specifically can be selected according to actual conditions.Such as, message to be transmitted comprises 10 relevant parameters, if include 4 relevant parameters of message to be transmitted in the ID generated, now, value row in key-value store list can store 6 relevant parameters do not comprised in corresponding ID, or, value row in key-value store list can store 2 in 6 relevant parameters do not comprised in corresponding ID, wherein, the number of the relevant parameter related in the embodiment of the present invention, only as specifically exemplifying, does not cause any restriction to the present invention.
After receiving equipment completes storage, key-value store list is uploaded to distributed memory system.If receiving equipment receives message transfer again, correspondingly, ID corresponding for message transfer and relevant parameter are stored in the key-value store list of receiving equipment.Key-value store list due to receiving equipment adds the information of ID and relevant parameter, key-value store list after this being upgraded is uploaded to distributed memory system, is override the former key-value store list uploaded of the receiving equipment that it stores by distributed memory system.
Need addedly, message transfer sends out from source address, before arriving destination address, in transmitting procedure, meeting is by some intermediate link, such as, and router, message transfer, through router, also needs to resolve message transfer, and is recorded by ID corresponding for message transfer.
To sum up, ID corresponding to message transfer is all have recorded in the sending link of message transfer, intermediate link, reception link, the ID record formed by each link, can grasp the bang path of every bar message transfer, understands the transmit mode in message transfer transmitting procedure.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of message dispensing device.Fig. 3 shows the structural representation of message dispensing device according to an embodiment of the invention.See Fig. 3, this device at least comprises:
Message generating module 310, is suitable in transmitting apparatus, generate message to be transmitted, wherein, carries destination address in message to be transmitted;
Identifier generation module 320, is coupled with message generating module 310, is suitable for the relevant parameter obtaining message to be transmitted, utilizes relevant parameter to be the mark ID of its correspondence of message generation to be transmitted;
Add module 330, be coupled with identifier generation module 320, be suitable in message to be transmitted, add corresponding mark ID;
Sending module 340, is coupled with interpolation module 330, is suitable for utilizing transmitting apparatus transmission to add the message to be transmitted of ID to destination.
In a preferred embodiment of the invention, identifier generation module 320 is also suitable for:
The following relevant parameter one of at least obtaining message to be transmitted: the IP address of transmitting apparatus, MAC Address, destination address, transmitting time stamp.
In a preferred embodiment of the invention, identifier generation module 320 is also suitable for:
Utilize preset rules that the multiple relevant parameters obtained are sorted and adjusted, to generate the ID of its correspondence.
In a preferred embodiment of the invention, identifier generation module 320 is also suitable for:
Multiple relevant parameter is arranged in a predetermined order;
Blank character and/or interval field are set between each relevant parameter.
In a preferred embodiment of the invention, see Fig. 4, message dispensing device also comprises:
Memory module 350, be coupled with sending module 340, be suitable for the relevant parameter storing message to be transmitted in the key-value store list of transmitting apparatus, wherein, the ID of message to be transmitted is as storage key, and the conduct at least partially of particular value or its relevant parameter stores value.
In a preferred embodiment of the invention, see Fig. 4, message dispensing device also comprises:
Transmission module 360 on first, is coupled with memory module 350, is suitable for the key-value store list after this being upgraded and is uploaded to distributed memory system, upgraded the former key-value store list it storing message to be transmitted by distributed memory system.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of message receiving apparatus, is arranged at the receiving equipment of message.Fig. 5 shows the structural representation of message receiving apparatus according to an embodiment of the invention.See Fig. 5, this device at least comprises:
Receiver module 510, be suitable for the message transfer of receiving belt mark ID, wherein, ID generates according to the relevant parameter of message transfer;
Acquisition module 520, is coupled with receiver module 510, is suitable for the ID obtaining message transfer, and resolves with the relevant parameter obtaining message transfer;
Logging modle 530, is coupled with acquisition module 520, is suitable in receiving equipment, record message transfer ID and relevant parameter.
In a preferred embodiment of the invention, relevant parameter comprise following one of at least:
Send the IP address of the transmitting apparatus of message transfer, MAC Address, destination address, transmitting time stamp;
The IP address of receiving equipment, MAC Address, time of reception stamp.
In a preferred embodiment of the invention, logging modle 530 is also suitable for:
To store the relevant parameter of message to be transmitted in key-value store list in receiving equipment, wherein, the ID of message to be transmitted is as storage key, and the conduct at least partially of particular value or its relevant parameter stores value.
In a preferred embodiment of the invention, see Fig. 6, message receiving apparatus also comprises:
Transmission module 540 on second, is coupled with logging modle 530, is suitable for the key-value store list after this being upgraded and is uploaded to distributed memory system, upgraded the former key-value store list it storing message transfer by distributed memory system.
To sum up, the message sending, receiving method adopting the embodiment of the present invention to provide and device can reach following beneficial effect:
Adopt the method in the embodiment of the present invention, after message generation to be transmitted, be not be sent to destination immediately, but utilize the relevant parameter of message to be transmitted, generate a mark ID, and the ID of generation is added into message to be transmitted, make ID become a part for message to be transmitted, then the message to be transmitted with ID is sent.Because ID has become a part for message to be transmitted, make in each node of message process to be transmitted, all can generate the record of corresponding ID.The record that the ID added by message to be transmitted is generated at each node, can grasp the bang path of every bar message transfer, understands the transmit mode in message transfer transmitting procedure.There are abnormal conditions in message transfer process of transmitting if occur, such as, Transmission, or message transfer is lost, inquire about in each node and whether there is ID corresponding to message transfer, determine this message transfer at which node occurs further abnormal, therefore, by the method that the embodiment of the present invention provides, be convenient to the node that user's fast finding goes out the appearance abnormal conditions in transmitting procedure.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although to comprise in other embodiment some included feature instead of further feature in this some embodiments, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in detail in the claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that microprocessor or digital signal processor (DSP) can be used in practice to realize sending according to the message of the embodiment of the present invention, the some or all functions of some or all parts in receiving system.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
So far, those skilled in the art will recognize that, although multiple exemplary embodiment of the present invention is illustrate and described herein detailed, but, without departing from the spirit and scope of the present invention, still can directly determine or derive other modification many or amendment of meeting the principle of the invention according to content disclosed by the invention.Therefore, scope of the present invention should be understood and regard as and cover all these other modification or amendments.
Based on one aspect of the present invention, also disclose: A1, a kind of message method, comprising:
In transmitting apparatus, generate message to be transmitted, wherein, in described message to be transmitted, carry destination address;
Obtain the relevant parameter of described message to be transmitted, utilize described relevant parameter to be the mark ID of described its correspondence of message generation to be transmitted;
Corresponding mark ID is added in described message to be transmitted;
The transmission of described transmitting apparatus is utilized to add the message to be transmitted of ID to described destination.
A2, method according to A1, wherein, obtain the relevant parameter of described message to be transmitted, specifically comprise:
The following relevant parameter one of at least obtaining described message to be transmitted: the IP address of described transmitting apparatus, MAC Address, destination address, transmitting time stamp.
A3, method according to A2, wherein, utilize described relevant parameter to be the ID of described its correspondence of message generation to be transmitted, specifically comprise:
Utilize preset rules that the multiple relevant parameters obtained are sorted and adjusted, to generate the ID of its correspondence.
A4, method according to A3, wherein, the multiple relevant parameters obtained sort and adjust by the described preset rules that utilizes, and comprising:
Multiple relevant parameter is arranged in a predetermined order;
Blank character and/or interval field are set between each relevant parameter.
A5, method according to A1, wherein, in described message to be transmitted, add corresponding mark ID, specifically comprise:
Corresponding ID is added at the head of described message to be transmitted; Or,
Corresponding ID is added at the afterbody of described message to be transmitted.
A6, method according to any one of A1 to A5, wherein, also comprise:
In the key-value store list of described transmitting apparatus, store the relevant parameter of described message to be transmitted, wherein, the ID of described message to be transmitted is as storage key, and the conduct at least partially of particular value or its relevant parameter stores value.
A7, method according to A6, wherein, the key-value store list after this being upgraded is uploaded to distributed memory system, is upgraded the former key-value store list of the described message to be transmitted of storage it on by described distributed memory system.
Based on another aspect of the present invention, also disclose B8, a kind of message receival method, comprising:
The message transfer of receiving belt mark ID, wherein, described ID generates according to the relevant parameter of described message transfer;
Obtain the ID of described message transfer, and resolve with the relevant parameter obtaining described message transfer;
The ID of described message transfer and described relevant parameter is recorded in receiving equipment.
B9, method according to B8, wherein, described relevant parameter comprise following one of at least:
Send the IP address of the transmitting apparatus of described message transfer, MAC Address, destination address, transmitting time stamp;
The IP address of described receiving equipment, MAC Address, time of reception stamp.
B10, method according to B8 or B9, wherein, record the ID of described message transfer and described relevant parameter, specifically comprise in receiving equipment:
To store the relevant parameter of described message transfer in key-value store list in described receiving equipment, wherein, the ID of described message transfer is as storage key, and the conduct at least partially of particular value or its relevant parameter stores value.
B11, method according to B10, wherein, the key-value store list after this being upgraded is uploaded to distributed memory system, is upgraded the former key-value store list of the described message transfer of storage it on by described distributed memory system.
Based on another aspect of the present invention, also disclose: C12, a kind of message dispensing device, be arranged in the transmitting apparatus of message, comprise:
Message generating module, is suitable for generating message to be transmitted in described transmitting apparatus, wherein, carries destination address in described message to be transmitted;
Identifier generation module, is suitable for the relevant parameter obtaining described message to be transmitted, utilizes described relevant parameter to be the mark ID of described its correspondence of message generation to be transmitted;
Add module, be suitable in described message to be transmitted, add corresponding mark ID;
Sending module, is suitable for utilizing the transmission of described transmitting apparatus to add the message to be transmitted of ID to described destination.
C13, device according to C12, wherein, described identifier generation module is also suitable for:
The following relevant parameter one of at least obtaining described message to be transmitted: the IP address of described transmitting apparatus, MAC Address, destination address, transmitting time stamp.
C14, device according to C13, wherein, described identifier generation module is also suitable for:
Utilize preset rules that the multiple relevant parameters obtained are sorted and adjusted, to generate the ID of its correspondence.
C15, device according to C14, wherein, described identifier generation module is also suitable for:
Multiple relevant parameter is arranged in a predetermined order;
Blank character and/or interval field are set between each relevant parameter.
C16, device according to C12, wherein, described interpolation module is also suitable for:
Corresponding ID is added at the head of described message to be transmitted; Or,
Corresponding ID is added at the afterbody of described message to be transmitted.
C17, device according to any one of C12 to C16, wherein, also comprise:
Memory module, is suitable for the relevant parameter storing described message to be transmitted in the key-value store list of described transmitting apparatus, and wherein, the ID of described message to be transmitted is as storage key, and the conduct at least partially of particular value or its relevant parameter stores value.
C18, device according to C17, wherein, also comprise:
Transmission module on first, is suitable for the key-value store list after this being upgraded and is uploaded to distributed memory system, upgraded the former key-value store list it storing described message to be transmitted by described distributed memory system.
Based on another aspect of the present invention, also disclose: D19, a kind of message receiving apparatus, be arranged at the receiving equipment of message, comprise:
Receiver module, be suitable for the message transfer of receiving belt mark ID, wherein, described ID generates according to the relevant parameter of described message transfer;
Acquisition module, is suitable for the ID obtaining described message transfer, and resolves with the relevant parameter obtaining described message transfer;
Logging modle, is suitable in receiving equipment, record the ID of described message transfer and described relevant parameter.
D20, device according to D19, wherein, described relevant parameter comprise following one of at least:
Send the IP address of the transmitting apparatus of described message transfer, MAC Address, destination address, transmitting time stamp;
The IP address of described receiving equipment, MAC Address, time of reception stamp.
D21, device according to D19 or D20, wherein, described logging modle is also suitable for:
To store the relevant parameter of described message to be transmitted in key-value store list in described receiving equipment, wherein, the ID of described message to be transmitted is as storage key, and the conduct at least partially of particular value or its relevant parameter stores value.
D22, device according to D21, wherein, also comprise:
Transmission module on second, is suitable for the key-value store list after this being upgraded and is uploaded to distributed memory system, upgraded the former key-value store list it storing described message transfer by described distributed memory system.

Claims (10)

1. a message method, comprising:
In transmitting apparatus, generate message to be transmitted, wherein, in described message to be transmitted, carry destination address;
Obtain the relevant parameter of described message to be transmitted, utilize described relevant parameter to be the mark ID of described its correspondence of message generation to be transmitted;
Corresponding mark ID is added in described message to be transmitted;
The transmission of described transmitting apparatus is utilized to add the message to be transmitted of ID to described destination.
2. method according to claim 1, wherein, obtains the relevant parameter of described message to be transmitted, specifically comprises:
The following relevant parameter one of at least obtaining described message to be transmitted: the IP address of described transmitting apparatus, MAC Address, destination address, transmitting time stamp.
3. method according to claim 2, wherein, utilizes described relevant parameter to be the ID of described its correspondence of message generation to be transmitted, specifically comprises:
Utilize preset rules that the multiple relevant parameters obtained are sorted and adjusted, to generate the ID of its correspondence.
4. method according to claim 3, wherein, the multiple relevant parameters obtained sort and adjust by the described preset rules that utilizes, and comprising:
Multiple relevant parameter is arranged in a predetermined order;
Blank character and/or interval field are set between each relevant parameter.
5. method according to claim 1, wherein, in described message to be transmitted, add corresponding mark ID, specifically comprise:
Corresponding ID is added at the head of described message to be transmitted; Or,
Corresponding ID is added at the afterbody of described message to be transmitted.
6. the method according to any one of claim 1 to 5, wherein, also comprises:
In the key-value store list of described transmitting apparatus, store the relevant parameter of described message to be transmitted, wherein, the ID of described message to be transmitted is as storage key, and the conduct at least partially of particular value or its relevant parameter stores value.
7. method according to claim 6, wherein, the key-value store list after this being upgraded is uploaded to distributed memory system, is upgraded the former key-value store list it storing described message to be transmitted by described distributed memory system.
8. a message receival method, comprising:
The message transfer of receiving belt mark ID, wherein, described ID generates according to the relevant parameter of described message transfer;
Obtain the ID of described message transfer, and resolve with the relevant parameter obtaining described message transfer;
The ID of described message transfer and described relevant parameter is recorded in receiving equipment.
9. a message dispensing device, is arranged in the transmitting apparatus of message, comprises:
Message generating module, is suitable for generating message to be transmitted in described transmitting apparatus, wherein, carries destination address in described message to be transmitted;
Identifier generation module, is suitable for the relevant parameter obtaining described message to be transmitted, utilizes described relevant parameter to be the mark ID of described its correspondence of message generation to be transmitted;
Add module, be suitable in described message to be transmitted, add corresponding mark ID;
Sending module, is suitable for utilizing the transmission of described transmitting apparatus to add the message to be transmitted of ID to described destination.
10. a message receiving apparatus, is arranged at the receiving equipment of message, comprises:
Receiver module, be suitable for the message transfer of receiving belt mark ID, wherein, described ID generates according to the relevant parameter of described message transfer;
Acquisition module, is suitable for the ID obtaining described message transfer, and resolves with the relevant parameter obtaining described message transfer;
Logging modle, is suitable in receiving equipment, record the ID of described message transfer and described relevant parameter.
CN201510997710.0A 2015-12-25 2015-12-25 Message sending and receiving method and device Pending CN105553832A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510997710.0A CN105553832A (en) 2015-12-25 2015-12-25 Message sending and receiving method and device
PCT/CN2016/111561 WO2017107963A1 (en) 2015-12-25 2016-12-22 Message sending and receiving method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510997710.0A CN105553832A (en) 2015-12-25 2015-12-25 Message sending and receiving method and device

Publications (1)

Publication Number Publication Date
CN105553832A true CN105553832A (en) 2016-05-04

Family

ID=55832771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510997710.0A Pending CN105553832A (en) 2015-12-25 2015-12-25 Message sending and receiving method and device

Country Status (2)

Country Link
CN (1) CN105553832A (en)
WO (1) WO2017107963A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789415A (en) * 2016-12-12 2017-05-31 东软集团股份有限公司 The acquisition method of facility information, apparatus and system
WO2017107963A1 (en) * 2015-12-25 2017-06-29 北京奇虎科技有限公司 Message sending and receiving method and apparatus
CN109040334A (en) * 2018-07-12 2018-12-18 山东师范大学 Static Intranet mapping method, external network server, Intranet communication equipment and system
CN111327687A (en) * 2020-01-21 2020-06-23 香港乐蜜有限公司 Data transmission method and device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108964985B (en) * 2018-06-14 2020-07-28 烽火通信科技股份有限公司 Method for managing virtual client terminal equipment using protocol message
CN111338814A (en) * 2020-02-13 2020-06-26 北京奇艺世纪科技有限公司 Message processing method and device, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436952A (en) * 2007-11-14 2009-05-20 华为技术有限公司 Method for automatically configuring pressing table and network node equipment
CN101789868A (en) * 2000-09-26 2010-07-28 兰代拉·纳特股份公司 An access point for mobile devices in a packet based network and a method and a system for billing in such a network
EP2282460A1 (en) * 2008-06-12 2011-02-09 Huawei Technologies Co., Ltd. Document transmission realizing method, apparatus and user device for message business
CN102571635A (en) * 2012-01-18 2012-07-11 浪潮(北京)电子信息产业有限公司 Message transmission method and equipment
CN103944671A (en) * 2014-05-22 2014-07-23 中国地质大学(武汉) Method and system for real-time transmission of ultra-wideband airborne data based on multichannel aggregation
CN104935499A (en) * 2015-05-28 2015-09-23 杭州华三通信技术有限公司 Message format conversion method and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8761181B1 (en) * 2013-04-19 2014-06-24 Cubic Corporation Packet sequence number tracking for duplicate packet detection
CN105553832A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Message sending and receiving method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789868A (en) * 2000-09-26 2010-07-28 兰代拉·纳特股份公司 An access point for mobile devices in a packet based network and a method and a system for billing in such a network
CN101436952A (en) * 2007-11-14 2009-05-20 华为技术有限公司 Method for automatically configuring pressing table and network node equipment
EP2282460A1 (en) * 2008-06-12 2011-02-09 Huawei Technologies Co., Ltd. Document transmission realizing method, apparatus and user device for message business
CN102571635A (en) * 2012-01-18 2012-07-11 浪潮(北京)电子信息产业有限公司 Message transmission method and equipment
CN103944671A (en) * 2014-05-22 2014-07-23 中国地质大学(武汉) Method and system for real-time transmission of ultra-wideband airborne data based on multichannel aggregation
CN104935499A (en) * 2015-05-28 2015-09-23 杭州华三通信技术有限公司 Message format conversion method and equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017107963A1 (en) * 2015-12-25 2017-06-29 北京奇虎科技有限公司 Message sending and receiving method and apparatus
CN106789415A (en) * 2016-12-12 2017-05-31 东软集团股份有限公司 The acquisition method of facility information, apparatus and system
CN109040334A (en) * 2018-07-12 2018-12-18 山东师范大学 Static Intranet mapping method, external network server, Intranet communication equipment and system
CN109040334B (en) * 2018-07-12 2021-05-11 山东师范大学 Static intranet mapping method, extranet server, intranet communication equipment and system
CN111327687A (en) * 2020-01-21 2020-06-23 香港乐蜜有限公司 Data transmission method and device, electronic equipment and storage medium
CN111327687B (en) * 2020-01-21 2023-02-21 卓米私人有限公司 Data transmission method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2017107963A1 (en) 2017-06-29

Similar Documents

Publication Publication Date Title
CN105553832A (en) Message sending and receiving method and device
CN105515900A (en) Method and device for acquiring on-line state of terminal
CN111201754A (en) Apparatus for providing a collection of cryptographically protected and filtered and sorted transaction data sets of links of a blockchain
CN103051717A (en) Method, device and equipment for processing http request
CN105337787A (en) Multi-server monitoring method, device and system
CN108234639A (en) A kind of data access method and device based on content distributing network CDN
CN104410680A (en) Method, client terminal, server and system of sharing file/file folder
CN105100349A (en) Method, device and system for synchronizing contact person information in address book
CN105530127A (en) Method for processing network access request by proxy server and proxy server
EP3226518B1 (en) Content delivery across heterogeneous networks
CN104468774A (en) Data presentation method applied to could disk client side and could disk client side
EP3226516B1 (en) Unified data networking across heterogeneous networks
CN105554094A (en) Method and device for data interaction
CN105227673A (en) The data download method of anti-abduction, client, server and system
CN104639497A (en) Remote access configuration method, remote access method, remote access configuration device, remote access device and remote access system
CN104486361A (en) Online game connection building method, game terminal and system
CN102090039B (en) A method of performing data mediation, and an associated computer program product, data mediation device and information system
CN110020243A (en) Querying method, device, Internet of Things server and the storage medium of internet of things data
CN104410679A (en) Method, client terminal, server and system of extracting shared file/file folder
CN104468862A (en) IP address binding method, device and system
CN105138274A (en) Resource obtaining method of cloud disk and resource obtaining device of cloud disk
US20200170078A1 (en) Method for optimizing per message type data exchange between connected objects
CN103501332A (en) Data transmission method, data transmission equipment and network system
CN103647703A (en) Browser communication method and browser terminal
CN108076165A (en) A kind of method, equipment and the system of domain name mapping information management

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160504