Summary of the invention
The invention provides a kind of processing method and multimedia news service center of Multimedia Message, saved the physical disk space of MMS storage server, improve the service process performance of MMSC.
The present invention also provides a kind of processing method and multimedia news service center of Multimedia Message, has both saved the physical disk space of MMS storage server, the IO operation of having avoided again direct reading matter reason disk to carry out simultaneously, the service process performance of raising MMSC.
A kind of multimedia news service center comprises the processing method of Multimedia Message:
Receive message body and the forwarding control information of the Multimedia Message of service provider SP submission;
Determine the characteristic value of described message body according to the content of described message body;
According to described characteristic value, when confirming not store the message body of same characteristic features value in the physical disk, described message body is stored in the physical disk.
Better, described according to characteristic value, when confirming not store the message body of same characteristic features value in the physical disk, described message body is stored in the physical disk, specifically comprise:
When confirming to have preserved in the buffer memory data segment take described characteristic value as key word of the inquiry, from the data segment that finds, obtain the physical store path of message body, and the physical store path that obtains added in the described forwarding control information and with described forwarding control information be saved in the buffer memory; Otherwise
Described message body is stored in the physical disk, and the definite physical store path of described message body in physical disk, generation is take characteristic value as key word of the inquiry and comprise the data segment in described physical store path and be saved in the buffer memory, and the physical store path of determining added in the described forwarding control information and with described forwarding control information is saved in the buffer memory.
Further, described and will transmit after control information is saved in the buffer memory, described method also comprises:
Determine the stored position information of described forwarding control information in buffer memory;
Generation comprise described stored position information Multimedia Message issue announcement;
According to transmitting the receiving terminal identification information that comprises in the control information, will describedly issue to announce and send to receiving terminal.
Further, described will issue the announcement send to receiving terminal after, described method also comprises:
Receive the Multimedia Message reception request message that described receiving terminal sends, described reception request message comprises the stored position information of described forwarding control information in buffer memory;
From buffer memory, obtain described forwarding control information according to described stored position information;
From described forwarding control information, obtain the physical store path of message body;
Physical store path according to described message body reads out message body from physical disk;
The described message body that reads out is sent to described receiving terminal.
A kind of multimedia news service center comprises:
Buffer unit, for the data segment of preserving take characteristic value as key word of the inquiry and comprise the physical store path of message body, and the forwarding control information of Multimedia Message;
Physical disk is used for preserving the Multimedia Message body;
Receiving element is used for message body and the forwarding control information of the Multimedia Message of reception service provider SP submission;
Caching control unit is used for according to described characteristic value, when confirming not store the message body of same characteristic features value in the physical disk, described message body is stored in the physical disk.
Better, described caching control unit, the concrete characteristic value that is used for determining according to the content of described message body described message body; When confirming to have preserved in the described buffer unit data segment take described characteristic value as key word of the inquiry, from the data segment that finds, obtain the physical store path of message body, and the physical store path that obtains added in the described forwarding control information and will transmit control information be saved in the described buffer unit; Otherwise
Described message body is stored in the described physical disk, and the definite physical store path of described message body in physical disk, generation is take characteristic value as key word of the inquiry and comprise the data segment in described physical store path and be saved in the described buffer unit, and the physical store path of determining added in the described forwarding control information and will transmit control information is saved in the described buffer unit.
A kind of multimedia news service center comprises the processing method of Multimedia Message:
Receive message body and the forwarding control information of the Multimedia Message of service provider SP submission;
Determine the characteristic value of described message body according to the content of described message body;
When confirming to have preserved in the buffer memory data segment take described characteristic value as key word of the inquiry, from the data segment that finds, obtain the first physical store path of message body and message body and be kept at the first stored position information in the internal memory, and the first physical store path of obtaining and the first stored position information added in the described forwarding control information and with described forwarding control information be saved in the buffer memory; Otherwise
Described message body is stored in the physical disk, and the definite first physical store path of described message body in physical disk, and the first physical store path of described message body and message body stored in the internal memory, determine first stored position information of the first physical store path in internal memory of described message body and message body, generation is take characteristic value as key word of the inquiry and comprise described the first physical store path, the data segment of described the first stored position information also is saved in the buffer memory, and the first physical store path of determining and the first stored position information added in the described forwarding control information and will transmit control information is saved in the buffer memory.
Further, described and will transmit after control information is saved in the buffer memory, described method also comprises:
Determine second stored position information of described forwarding control information in buffer memory;
Generation comprise described the second stored position information Multimedia Message issue announcement;
According to transmitting the receiving terminal identification information that comprises in the control information, will describedly issue to announce and send to receiving terminal.
Further, described will issue the announcement send to receiving terminal after, described method also comprises:
Receive the Multimedia Message reception request message that described receiving terminal sends, described reception request message comprises second stored position information of described forwarding control information in buffer memory;
From buffer memory, obtain described forwarding control information according to described the second stored position information;
From described forwarding control information, obtain the first stored position information of message body and the first physical store path of message body;
Find message body and corresponding the second physical store path that is kept at the message body in the internal memory that is stored in the internal memory by described the first stored position information;
When confirming that the first physical store path is consistent with the second physical store path, from internal memory, read out message body, otherwise, from physical disk, read out message body according to the first physical store path of message body;
The described message body that reads out is sent to described receiving terminal.
A kind of multimedia news service center comprises:
Buffer unit, for the data segment of preserving take characteristic value as key word of the inquiry and comprise described the first physical store path, described the first stored position information, and the forwarding control information of Multimedia Message;
Physical disk is used for preserving the Multimedia Message body;
Internal storage location is used for preservation Multimedia Message body and message body in the first physical store path of described physical disk;
Receiving element is used for message body and the forwarding control information of the Multimedia Message of reception service provider SP submission;
Caching control unit, be used for determining according to the content of described message body the characteristic value of described message body, when confirming to have preserved in the described buffer unit data segment take described characteristic value as key word of the inquiry, from the data segment that finds, obtain the first physical store path of message body and message body and be kept at the first stored position information in the described internal storage location, and the first physical store path of obtaining and the first stored position information added in the described forwarding control information and will transmit control information be saved in the described buffer unit; Otherwise
Described message body is stored in the physical disk, and the definite first physical store path of described message body in physical disk, and the first physical store path of described message body and message body stored in the described internal storage location, determine first stored position information of the first physical store path in described internal storage location of described message body and message body, generation is take characteristic value as key word of the inquiry and comprise described the first physical store path, the data segment of described the first stored position information also is saved in the described buffer unit, and and the first physical store path of determining and the first stored position information added in the described forwarding control information and will transmit control information is saved in the described buffer unit.
The invention provides a kind of multimedia news service center to the treatment technology of Multimedia Message, the identical Multimedia Message of message body to the SP submission, in the physical disk of MMS storage server, only store a message body, save the physical disk space of MMS storage server, improved MMSC to the service process performance of Multimedia Message.
The present invention also provides the treatment technology of a kind of multimedia news service center to Multimedia Message, the identical Multimedia Message of message body to the SP submission, in the physical disk of MMS storage server, only store a message body, in internal memory, also only store simultaneously a Multimedia Message body, both saved the physical disk space of MMS storage server, improve MMSC to the service process performance of Multimedia Message, avoid again simultaneously directly reading the IO operation that the physical disk of MMS storage server causes, improved MMSC to the service process performance of Multimedia Message.
Embodiment
Development along with multimedia information value-added service, performance requirement to the multimedia messaging service, MMS treatment system is more and more higher, constantly employs new technology Optimizing Flow, improving the performance of multimedia messaging service, MMS treatment system, is the target that equipment supplier and operator are pursued always.Current multimedia messaging service, MMS meets 80/20 principle in existing network ruuning situation, and namely 80% multimedia messaging service, MMS is to be initiated by 20%SP (ServiceProvider, service provider).And the business that these SP initiate has a typical feature, be exactly message body be identical, only have the recipient address changing.The mobile newspaper service that moves in relatively being typically.For the identical Multimedia Message of such message body, if in the MMS of MMSC storage server a message body of storage, message body that needn't each bar message all will be carried out physical store.So greatly reduce the pressure of MMS storage server, simplify operation flow, greatly elevator system performance.The embodiment of the invention provides the processing method of a kind of MMSC to Multimedia Message, SP is submitted to the message body of message, judge whether it was stored, for the message body of having stored, then do not carry out physical store, the store path of the message body that only need originally store gets final product as the path of this storage.Like this, to the identical Multimedia Message of message body that SP submits to, on the physical disk of MMS storage server, only store a message body, can reduce the physical disk space of MMS storage server, improve the service process performance of MMSC.
As shown in Figure 1, the first multimedia news service center that provides for the embodiment of the invention is to the process flow figure of Multimedia Message, and the specific implementation process is as follows:
S101:MMSC judges whether it is the Multimedia Message that SP submits to, and judged result is yes, execution in step S102, and the determination result is NO, execution in step S109;
Wherein, Multimedia Message comprises the forwarding control information of Multimedia Message body and Multimedia Message.
Does S102:MMSC judge whether this SP has been configured to enable caching function? judged result when being, execution in step S103, when the determination result is NO, execution in step S109;
S103:MMSC determines the characteristic value of message body according to the content of message body;
Wherein, can adopt the MD5 algorithm to calculate the characteristic value of Multimedia Message body, the method for computation of characteristic values has multiple, and the MD5 algorithm is a kind of easy method.
S104:MMSC searches the data segment take described characteristic value as key word of the inquiry in buffer memory;
S105:MMSC judges whether to search successfully, and judged result is yes, execution in step S106, and the determination result is NO, execution in step S107;
S106: if find, illustrate that the Multimedia Message body has stored on the physical disk, this can not need physical store, the physical store path that directly obtains the Multimedia Message body by the data segment that finds, execution in step S110;
S107: if can not find, illustrate that the message body of this submission was not stored in the past, store the Multimedia Message body into physical disk, obtain the physical store path of this Multimedia Message body;
S108: generate take characteristic value as key word of the inquiry and comprise the data segment in described physical store path and be saved in the buffer memory, for the Multimedia Message that follow-up sp submits to, continuation execution in step S110;
S109: store the Multimedia Message body into physical disk, obtain the physical store path of this Multimedia Message body;
S110: the physical store path of Multimedia Message body is added in the forwarding control information of Multimedia Message;
S111: will transmit control information and be saved in the buffer memory;
So far, multimedia news service center is finished the storage to Multimedia Message.Further, also comprise in this processing method:
S112: determine to transmit the stored position information of control information in buffer memory;
S113: generate the announcement that issues of the Multimedia Message comprise this stored position information;
S114: according to transmitting the receiving terminal identification information that comprises in the control information, will issue announcement and send to receiving terminal.
Further, in the above-mentioned steps, in step S102, the determination result is NO also can directly finish.Continue execution in step S109, do not enable caching function even can guarantee this SP, Multimedia Message also can store on the physical disk.
Further, in the above-mentioned steps, in step S101, the determination result is NO also can directly finish.Continue execution in step S109, even can guarantee it is not the Multimedia Message that SP submits to, also can store on the physical disk.
Further, after above-mentioned steps S114, multimedia news service center is to comprising also in the processing method of Multimedia Message that multimedia news service center is to the sending method of Multimedia Message, consult shown in Figure 2, be the sending method flow chart of the first multimedia news service center to Multimedia Message, its detailed process is as follows:
S201: the Multimedia Message that receiving terminal sends receives request message, wherein comprises the stored position information of control information in buffer memory of Multimedia Message;
S202: from buffer memory, obtain the forwarding control information of Multimedia Message according to stored position information;
S203: transmit the physical store path that obtains the Multimedia Message body the control information from this;
S204: the physical store path according to the Multimedia Message body reads out message body from physical disk;
S205: the multimedia message body that will read out sends to terminal.
It is a kind of with the processing method of multimedia news service center to Multimedia Message that the embodiment of the invention also provides, SP is submitted to the message body of message, do you judge whether it was stored? for the message body of having stored, then do not carry out physical store, the store path of the message body that only need originally store gets final product as the path of this storage, simultaneously message body is kept in the internal memory.Like this, the identical Multimedia Message of message body to the SP submission, on the physical disk of MMS storage server, only store a message body, can reduce the physical disk space of MMS storage server, improve the service process performance of MMSC, simultaneously can make terminal when obtaining the Multimedia Message body, directly in internal memory, read the Multimedia Message body, avoid the IO operation that physical disk is carried out.
As shown in Figure 3, the second multimedia news service center that provides for the embodiment of the invention is to the process flow figure of Multimedia Message, and the specific implementation process is as follows:
S301:MMSC judges whether it is the Multimedia Message that SP submits to, and judged result is yes, execution in step S302, and the determination result is NO, execution in step S310;
Does S302:MMSC judge whether this SP has been configured to enable caching function? judged result when being, execution in step S303, when the determination result is NO, execution in step S110;
S303:MMSC determines the characteristic value of described message body according to the content of described message body;
Wherein, adopt the MD5 algorithm to calculate the characteristic value of Multimedia Message body, the method for computation of characteristic values has multiple, and the MD5 algorithm is a kind of easy method;
S304:MMSC searches the data segment take this characteristic value as key word of the inquiry in the buffer memory index;
S305:MMSC judges whether to search successfully, and judged result is yes, execution in step S306, and the determination result is NO, execution in step S307;
S306: if find, illustrate that the Multimedia Message body has stored on the physical disk, this can not need physical store, the physical store path that directly obtains the Multimedia Message body by the data segment in the buffer memory index that finds, and message body is kept at the stored position information in the internal memory, execution in step S311;
S307: if can not find, illustrate that the message body of this submission was not stored in the past, store the Multimedia Message body into physical disk, obtain the physical store path of this Multimedia Message body;
S308: the physical store path of message body and message body is saved in the internal memory, obtains the stored position information of physical store path in internal memory of message body and message body;
S309: generate take characteristic value as key word of the inquiry and comprise the data segment of physics store path and the stored position information in internal memory and be saved in the buffer memory, for the Multimedia Message that follow-up SP submits to, continuation execution in step S311;
S310: store the Multimedia Message body into physical disk, obtain the physical store path of this Multimedia Message body and message body, at this moment, the physical store path of Multimedia Message body and message body is not stored in the internal memory, and the stored position information in internal memory is empty;
S311: with the physical store path of Multimedia Message body, the stored position information in internal memory adds in the forwarding control information of Multimedia Message;
S312: will transmit control information and be saved in the buffer memory;
So far, multimedia news service center is finished the storage to Multimedia Message.Further, also comprise in this processing method:
S313: determine to transmit the stored position information of control information in buffer memory;
S314: generate the announcement that issues of the Multimedia Message comprise this stored position information;
S315: according to transmitting the receiving terminal identification information that comprises in the control information, will issue announcement and send to receiving terminal.
Further, in the above-mentioned steps, in step S302, the determination result is NO also can directly finish.Continue execution in step S310, do not enable caching function even can guarantee this SP, the Multimedia Message body also can store on the physical disk.
Further, in the above-mentioned steps, in step S301, the determination result is NO also can directly finish.Continue execution in step S310, even can guarantee it is not the Multimedia Message that SP submits to, also can store on the physical disk.
Further, after above-mentioned steps S314, multimedia news service center is to comprising also in the processing method of Multimedia Message that multimedia news service center is to the sending method of Multimedia Message, consult shown in Figure 4, be the sending method flow chart of the first multimedia news service center to Multimedia Message, its detailed process is as follows:
S401: the Multimedia Message that receiving terminal sends receives request message, wherein comprises the stored position information of control information in buffer memory of Multimedia Message;
S402: from buffer memory, obtain the forwarding control information of Multimedia Message according to this stored position information;
S403: transmit the physical store path of acquisition Multimedia Message body the control information and the stored position information in internal memory from this;
S404: judge that whether this stored position information is empty, judged result is for being execution in step S408, the determination result is NO execution in step S405;
S405: find Multimedia Message body and the corresponding physical store path that is kept at the message body in the internal memory by stored position information;
S406: judge whether the physical store path that is kept at the message body in the internal memory is consistent with the physical store path of the message body that obtains, and the result is yes from transmit control information, execution in step S407, the result is no, execution in step S408;
S407: from internal memory, read out the Multimedia Message body;
S408: according to the physical store path that from transmit control information, obtains the Multimedia Message body, from physical disk, read out the Multimedia Message body by the IO operation;
S409: the Multimedia Message body is sent to terminal, and so far, terminal is finished and is obtained flow process.
Further, if in the processing method of Multimedia Message, do not comprise step S310, then can execution in step S404 in its corresponding sending method.
Further, in step S404, judged result is for being directly to finish.Continue execution in step S408, be not stored in the internal memory even can realize the Multimedia Message body, also can directly from physical disk, read the Multimedia Message body.
Further, in above-mentioned steps, in step S406, the determination result is NO also can directly finish.Continue execution in step S408, even can realize storage Multimedia Message body mistake, also can directly from physical disk, read out the Multimedia Message body.
The multimedia news service center that the embodiment of the invention provides is to multimedia message processing method, reduced the IO operation to the storage server physical disk, reduce MMSC to the requirement of MMS storage server IO throughput performance, and then reduce greatly the construction cost of MMSC system.Utilize method of the present invention, can reduce approximately 70% IO operation of MMSC.Be particularly suitable for solving this business model of present mobile phone newspaper, i.e. a large number of services submitted to of every period, message body is identical, the different Multimedia Message of destination address just, practicality is very strong.
Consult shown in Figure 5ly, the first multimedia news service center structure chart that the embodiment of the invention provides comprises:
Buffer unit 51, for the data segment of preserving take characteristic value as key word of the inquiry and comprise the physical store path of message body, and the forwarding control information of Multimedia Message;
Physical disk 52 is used for preserving the Multimedia Message body;
Receiving element 53 is used for message body and the forwarding control information of the Multimedia Message of reception service provider SP submission;
Caching control unit 54 is for the characteristic value of determining this message body according to the content of this message body; When confirming to have preserved in the buffer unit data segment take this characteristic value as key word of the inquiry, from the data segment that finds, obtain the physical store path of message body, and the physical store path that obtains added to also will transmit control information in this forwardings control information and be saved in this buffer unit; Otherwise
This message body is stored in the physical disk, and the definite physical store path of this message body in physical disk, generation is take characteristic value as key word of the inquiry and comprise the data segment in this physical store path and be saved in the buffer unit, and the physical store path of determining is added to also will transmit control information in this forwardings control information and be saved in the buffer unit.
Consult shown in Figure 6ly, the embodiment of the invention provides the second multimedia news service center structure chart, comprising:
Buffer unit 61, for the data segment of preserving take characteristic value as key word of the inquiry and comprise this first physical store path, this first stored position information, and the forwarding control information of Multimedia Message;
Physical disk 62 is used for preserving the Multimedia Message body;
Internal storage location 65 is used for preservation Multimedia Message body and message body in the first physical store path of physical disk;
Receiving element 63 is used for message body and the forwarding control information of the Multimedia Message of reception service provider SP submission;
Caching control unit 64, be used for determining according to the content of this message body the characteristic value of this message body, when confirming to have preserved in the buffer unit data segment take this characteristic value as key word of the inquiry, from the data segment that finds, obtain the first physical store path of message body and message body and be kept at the first stored position information in the internal storage location, and the first physical store path of obtaining and the first stored position information added to also will transmit control information in this forwardings control information and be saved in the buffer unit; Otherwise
This message body is stored in the physical disk, and the definite first physical store path of this message body in physical disk, and the first physical store path of this message body and message body stored in the internal storage location, determine first stored position information of the first physical store path in internal storage location of this message body and message body, generation is take characteristic value as key word of the inquiry and comprise this first physical store path, the data segment of this first stored position information also is saved in the buffer unit, and and the first physical store path of determining and the first stored position information is added to also will transmit control information in this forwardings control information and be saved in the buffer unit.
Further, caching control unit 64 be used for to determine that also this transmits control information at the second stored position information of buffer memory, generates the announcement that issues of the Multimedia Message that comprises this second stored position information; And
Multimedia news service center also comprises: the first transmitting element 66 according to transmitting the receiving terminal identification information that comprises in the control information, issues announcement with this and sends to receiving terminal.
Further, receiving element 63 also is used for the Multimedia Message reception request message that receiving terminal sends, and wherein comprises second stored position information of control information in buffer unit of Multimedia Message;
Caching control unit 64 also is used for obtaining from buffer unit according to this second stored position information the forwarding control information of Multimedia Message; Transmit the first stored position information of acquisition Multimedia Message body the control information and the first physical store path of message body from this; Find Multimedia Message body and corresponding the second physical store path that is kept at the message body in the internal memory that is stored in the internal storage location by the first stored position information; When confirming that the first physical store path is consistent with the second physical store path, from internal storage location, read out the Multimedia Message body, otherwise, from physical disk, read out the Multimedia Message body according to the first physical store path of Multimedia Message body; And
Multimedia news service center also comprises: the second transmitting element 67 sends to terminal with the multimedia message body that reads out.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.