CN102833241A - Streaming media service traffic record merged-processing method and device - Google Patents
Streaming media service traffic record merged-processing method and device Download PDFInfo
- Publication number
- CN102833241A CN102833241A CN2012102959038A CN201210295903A CN102833241A CN 102833241 A CN102833241 A CN 102833241A CN 2012102959038 A CN2012102959038 A CN 2012102959038A CN 201210295903 A CN201210295903 A CN 201210295903A CN 102833241 A CN102833241 A CN 102833241A
- Authority
- CN
- China
- Prior art keywords
- record
- flow
- traffic
- records
- flow record
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 230000005540 biological transmission Effects 0.000 claims abstract description 41
- 238000012545 processing Methods 0.000 claims abstract description 19
- 238000000034 method Methods 0.000 claims description 27
- 238000012546 transfer Methods 0.000 claims description 8
- 238000004458 analytical method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000005641 tunneling Effects 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a streaming media service traffic record merged-processing method and device. The streaming media service traffic record merged-processing method comprises the following steps of: judging media transmission protocol types of first traffic records in an original traffic record file; and carrying out merged processing on the first traffic records with same media transmission protocol type according to a judged judgment result. According to the technical scheme of the invention, the storage space is reduced and storage resources are saved.
Description
Technical Field
The present invention relates to communications technologies, and in particular, to a method and an apparatus for merging and processing stream media service traffic records.
Background
Streaming Media refers to a continuous stream of audio/video data that is transmitted and played in chronological order over a network. Different from the traditional playing mode, when the program is played in the streaming media mode, the client is not required to download the whole program file, the program file is played while being received, and only partial program data is required to be cached, so that the downloading waiting time and the storage space are saved. The types of streaming media services commonly used at present are streaming media services based on hypertext Transfer Protocol (HTTP) and streaming media services based on Peer-to-Peer (P2P) Protocol. The HTTP sends HTTP request to the server through request-response mode, namely the client, the server responds HTTP request sent by the client and sends the resource stored by the server to the client, and data transmission is carried out on the Internet; the P2P protocol sends a resource request to the server through the client, the server responds to the resource request sent by the client to the server and feeds back available node information to the client, and the client acquires the available node information from the server and connects the available node to acquire the requested resource.
In the prior art, the generation process of the stream media service flow record is as follows: the method comprises the steps of obtaining a streaming media service flow message of a client through flow collection equipment, and analyzing the content of an IP packet in the obtained streaming media service flow message of the client to generate a streaming media service flow record of the client. For the current streaming media service, a corresponding streaming media service flow record is generated every time a client initiates a connection to a server. The above process is explained by taking the P2P protocol and HTTP as examples; for HTTP, although an access request initiated by a client is a specific video resource, a cache mechanism is adopted for acquiring the video resource by the streaming media service, and the video resource is divided into a plurality of video segments, so that a video resource request of the client usually corresponds to a plurality of video segments, at least one flow record is generated corresponding to each video segment, and a plurality of flow records are usually generated for a video resource request of the client; for the P2P protocol, if a certain requested video resource of a client corresponds to multiple different addresses, the requested video resource of the client will be downloaded from the multiple different addresses, and each address will generate a traffic record correspondingly, so that multiple traffic records are often generated for one video resource request of the client.
The defects of the prior art are as follows: for a resource request initiated by a client, a plurality of flow records are generated, all the generated flow records are stored for the convenience of query of the client, the storage space is large, and the storage resources are wasted.
Disclosure of Invention
The invention provides a method and a device for merging and processing stream media service flow records, which are used for reducing storage space and saving storage resources.
The first aspect of the present invention provides a method for merging and processing streaming media service traffic records, including:
judging the type of a media transmission protocol of a first flow record in an original flow record file;
and merging the first flow records with the same media transmission protocol type according to the judged result.
Another aspect of the present invention provides a streaming media service traffic record merging processing apparatus, including:
the judging module is used for judging the media transmission protocol type of the first flow record in the original flow record file;
and the merging processing module is used for merging the first traffic records with the same media transmission protocol type according to the judgment result of the judgment module.
The invention provides a method and a device for merging and processing stream media service flow records, which judge the media transmission protocol type of a first flow record in an original flow record file; according to the judged result, merging the first flow records with the same media transmission protocol type; for merging the traffic records in the original traffic record file with the same media transport protocol type.
The invention has the technical effects that: the storage space is reduced, and the storage resources are saved.
Drawings
Fig. 1 is a flowchart of a method for merging streaming media service traffic records according to an embodiment of the present invention;
fig. 2 is a flowchart of a merging processing method for streaming media service traffic records according to another embodiment of the present invention;
fig. 3 is a flowchart of a merging processing method for streaming media service traffic records according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a device for generating an original flow record file in the prior art;
fig. 5 is a schematic structural diagram of a device for recording and merging streaming media service traffic according to an embodiment of the present invention.
Detailed Description
Fig. 1 is a flowchart of a method for merging streaming media service traffic records according to an embodiment of the present invention. As shown in fig. 1, the method of the present embodiment includes:
Specifically, the media transport protocol type of the first traffic record is determined according to a characteristic field included in the first traffic record. By analyzing the characteristic field of the first traffic record in the original traffic record file corresponding to the media transport protocol type, it can be determined that the media transport protocol type of the first traffic record is HTTP or P2P protocol.
And step 102, merging the first traffic records with the same media transmission protocol type according to the judged result.
According to the judgment result, merging the first flow records with the same media transmission protocol type by adopting different merging processing methods to generate a new flow record; in this embodiment, a streaming media service based on HTTP and a streaming media service based on P2P protocol are described, but not limited to the streaming media services of the above two protocols.
In this embodiment, the media transport protocol type of the first traffic record in the original traffic record file is determined; according to the judged result, merging the first flow records with the same media transmission protocol type; the method is used for combining the flow records in the original flow record files with the same media transmission protocol type, reducing the storage space and saving the storage resources.
Fig. 2 is a flowchart of a merging processing method for streaming media service traffic records according to another embodiment of the present invention. As shown in fig. 2, the method of the present embodiment includes:
step 201: and generating an original flow record file.
Specifically, acquiring GTP and IP data messages according to a flow acquisition sequence and a preset flow acquisition period; identifying GTP and IP data packets in the obtained GTP and IP data packets, and completing signaling analysis and protocol analysis so as to obtain a characteristic field related to a transmission media protocol type, a characteristic field related to a content type of HTTP, a characteristic field related to stream access start time and the like contained in a flow record in an original flow record file; generating an original flow record file; different records of different users are stored in corresponding original flow record files according to the flow collection sequence according to the collection period and the size of a single file, wherein the collection period and the size of the single file corresponding to collection are set according to different requirements.
Among them, GTP (GPRS tunneling Protocol) is a set of IP-based communication protocols for supporting General Packet Radio Service (GPRS) in GSM (Global System for Mobile communications) and UMTS (Universal Mobile Telecommunications System) networks. For HTTP, a Uniform Resource Locator (URL) is an indicator for merging, and the URL is used to completely describe the address of web pages and other resources on the Internet.
Table 1 shows the flow records generated by the prior art raw flow record generating device, all of which are stored in a raw flow record file as follows.
TABLE 1
Step 202: and judging the media transmission protocol type of the first flow record in the original flow record file.
Specifically, the media transport protocol type of the first traffic record is determined according to a characteristic field included in the first traffic record.
For example, if the characteristic field corresponding to the media transport protocol type is HTTP, the media transport protocol type of the first traffic record in the original traffic record file is determined to be HTTP.
For another example, if the characteristic field corresponding to the media transport protocol type is the P2P protocol, it is determined that the media transport protocol type of the first traffic record in the original traffic record file is the P2P protocol.
Step 203: and merging the first flow records with the same media transmission protocol type according to the judged result. In the present embodiment, a streaming media service based on the hypertext transfer protocol and a streaming media service based on the P2P protocol are described, but not limited to the streaming media services based on the above two protocols.
Wherein, an optional implementation manner of step 203 comprises:
it should be noted that: the internet account can be a telephone number or a user account of the terminal.
The continuous time period means that firstly, the ending time of the current initial flow record and the starting time of the next flow record are continuous, and then the two flow records are in the same continuous time period; or if the time of the two flow records has an overlapped part, the two flow records are also in the same continuous time period, the earliest time of the two flow records is taken as the starting time of the continuous time period, and the latest time of the two flow records is taken as the ending time of the continuous time period; or thirdly, if the time interval range in which the two flow records are continuous can be set according to probability statistics and actual use conditions, that is, the time periods of the two flow records can be regarded as continuous time periods in the time interval range.
The home domain address in the URL is a uniform resource locator portion that represents the access address of the home domain. The content type of HTTP may specifically include: video/MP2T, application/zip, application/rar, audio/MP3, audio/MP4, audio/midi, video/3gp, video/flv, video/MP4, video/mpeg, and the like.
Specifically, if the media transfer protocol type of the first traffic record in the original traffic record file is judged to be HTTP, the first traffic record is extracted from the original traffic record file and stored in a temporary traffic record file; merging the first traffic records with the same internet-surfing account, continuous time period, same main domain address in the URL and the same content type of the HTTP, accumulating the traffic information to generate a second traffic record, storing the second traffic record into a temporary traffic file, and deleting the first traffic record stored in the temporary traffic file; and continuously inquiring whether the traffic record with the media transmission protocol type of HTTP exists in the original traffic record file until all the traffic records in the original traffic record file are traversed.
According to the method, all the other flow records in the original flow file are combined by one-by-one detection, when all the other flow records in the original flow file are completely detected, all the second flow records in all the temporary storage files are inserted into the original flow record file one by one according to the starting time sequence, and all the second flow records stored in the temporary storage flow file are deleted; the other flow records in the original flow record file, namely the flow records with the media transmission protocol type not being HTTP, are still stored in the original flow record file; therefore, the method is used for combining the flow records in the original flow record files with the same media transmission protocol type, reduces the storage space and saves the storage resources.
It should be noted that: the internet account can be a telephone number or a user account of the terminal.
The continuous time period means that firstly, the ending time of the current initial flow record and the starting time of the next flow record are continuous, and then the two flow records are in the same continuous time period; or if the time of the two flow records has an overlapped part, the two flow records are also in the same continuous time period, the earliest time of the two flow records is taken as the starting time of the continuous time period, and the latest time of the two flow records is taken as the ending time of the continuous time period; or thirdly, if the time interval range in which the two flow records are continuous can be set according to probability statistics and actual use conditions, that is, the time periods of the two flow records can be regarded as continuous time periods in the time interval range.
The content type corresponding to the P2P protocol may specifically include: PPS network television, thunder watching and the like.
Specifically, if the media transport protocol type of the first traffic record in the original traffic record file is determined to be the P2P protocol, the first traffic record is extracted from the original traffic record file and stored in the temporary traffic record file; merging the first flow records with the same internet surfing account and continuous time period, accumulating the flow information to generate a third flow record, storing the third flow record into a temporary storage flow file, and deleting the first flow record stored in the temporary storage flow file; and continuously inquiring whether the original flow record file has a flow record with the media transmission protocol type of P2P protocol until all the flow records in the original flow record file are traversed.
According to the method, all the other flow records in the original flow file are combined by one-by-one detection, when all the other flow records in the original flow file are completely detected, all the third flow records in all the temporary storage files are inserted into the original flow record file one by one according to the starting time sequence, and all the third flow records stored in the temporary storage flow file are deleted; the other flow records in the original flow record file, namely the flow records with the media transmission protocol type not being the P2P protocol, are still stored in the original flow record file; therefore, the method is used for combining the flow records in the original flow record files with the same media transmission protocol type, reduces the storage space and saves the storage resources.
Here, it is explained that: although in this embodiment, the traffic records in the original traffic record file of the HTTP or the media transport protocol of the P2P protocol are merged by different methods, in practice, two protocol types may exist simultaneously, or more media transport protocols may exist simultaneously, and different media transport protocol types may be processed simultaneously, so as to obtain the traffic records merged for different media transport protocol types. For example: and judging and combining 100 flow records in the original flow record file, wherein the flow records of the HTTP and the P2P protocol respectively exist, the finally obtained flow records of the HTTP meeting the conditions are 5, and the flow records of the P2P protocol are 3.
In this embodiment, the media transport protocol type of the first traffic record in the original traffic record file is determined; according to the judged result, merging the first flow records with the same media transmission protocol type; the method is used for combining the flow records in the original flow record files with the same media transmission protocol type, reducing the storage space and saving the storage resources.
In order to more clearly illustrate the technical solution of the present invention, the following embodiments will describe the technical solution of the present invention in detail by taking the HTTP-based streaming media traffic record merging method as an example.
Fig. 3 is a flowchart of a merging processing method for streaming media service traffic records according to another embodiment of the present invention. As shown in fig. 3, the method of the present embodiment includes:
step 301: and generating an original flow record file.
The original flow record file can be generated by the prior art, and is not described in detail herein. All original flow records are saved in an original flow record file.
Table 2 shows the original traffic log file generated in this embodiment.
TABLE 2
From table 2 it can be seen that: the different traffic records for different subscribers (MSISDN1 and MSISDN2), which are stored in the original traffic record file, are processed by the processor to generate traffic records, respectively. Wherein, the type of access can comprise HTTP, mail; the access address is a uniform resource locator of the complete access address, and the content type of the protocol is one of the preset protocol content types: video/MP 2T.
Step 302: and generating a merged first flow record.
If the media transmission protocol type of the first flow record in the original flow records is detected to be HTTP, and the content type of the protocol is one of the HTTP content types, merging the first flow records to generate a merged first flow record.
The content type corresponding to HTTP may specifically include: video/MP2T, application/zip, application/rar, audio/MP3, audio/MP4, audio/midi, video/3gp, video/flv, video/MP4, video/mpeg, and the like.
Meanwhile, modify the complete URL to the main domain address in the URL, i.e., "? And temporarily storing the generated new flow record in a temporary flow record file, and simultaneously deleting the flow record in the original flow record file.
Table 3 is the merged first flow record generated in this embodiment.
TABLE 3
The information of the generated merged first flow record can be known from table 3.
Step 303: and merging the first flow records with the media transmission protocol type of HTTP.
And detecting the rest flow records in the original flow file in the table 2, and merging the first flow record with the media transmission protocol type of HTTP.
Table 4 shows new flow records obtained by merging the first flow records with the media transport protocol type of HTTP in this embodiment, and storing the merged flow records in the temporary flow record file.
TABLE 4
Extracting the first flow record from the original flow record file and storing the first flow record in a temporary flow record file; merging the first traffic records with the same internet-surfing account, continuous time period, same main domain address in the URL and the same content type of the HTTP, accumulating the traffic information to generate a second traffic record, storing the second traffic record into a temporary traffic file, and deleting the first traffic record stored in the temporary traffic file; and continuously inquiring whether the traffic record with the media transmission protocol type of HTTP exists in the original traffic record file until all the traffic records in the original traffic record file are traversed.
Here, it is explained that: the continuous time period means that firstly, the ending time of the current initial flow record and the starting time of the next flow record are continuous, and then the two flow records are in the same continuous time period; or if the time of the two flow records has an overlapped part, the two flow records are also in the same continuous time period, the earliest time of the two flow records is taken as the starting time of the continuous time period, and the latest time of the two flow records is taken as the ending time of the continuous time period; or thirdly, if the time interval range in which the two flow records are continuous can be set according to probability statistics and actual use conditions, that is, the time periods of the two flow records can be regarded as continuous time periods in the time interval range.
Table 5 is a flow record obtained by merging the first flow records of which the media transfer protocol type is HTTP in this embodiment and inserting the merged new flow record into the original flow record file.
TABLE 5
According to the method, all the other flow records in the original flow file are combined by one-by-one detection, when all the other flow records in the original flow file are completely detected, all the combined flow records in all the temporary flow files are inserted into the original flow record file one by one according to the starting time sequence, and all the combined records stored in the temporary flow files are deleted; the other flow records in the original flow record file, namely the flow records with the media transmission protocol type not being HTTP, are still stored in the original flow record file; therefore, a plurality of flow records of the client are combined, the storage space is reduced, and the storage resources are saved.
In this embodiment, the flow records in the original flow record file in table 2 are merged, so that a plurality of flow records in the original flow record file are merged into one flow record, thereby reducing the storage space and saving the storage resources.
FIG. 4 is a schematic structural diagram of a device for generating an original flow record file in the prior art; as shown in fig. 4, the original flow record file generating apparatus in the prior art includes an acquisition module 41, an analysis module 42, and an original flow record file generating module 43;
the collecting module 41 is configured to obtain GTP and IP data packets according to a traffic collecting sequence and a preset traffic collecting period;
the analysis module 42 is configured to identify the obtained GTP and the GTP and IP data packets in the IP data packet, and complete signaling analysis and protocol analysis, so as to obtain a feature field related to a transmission media protocol type, a feature field related to a content type of the HTTP, a feature field related to a streaming network start time, and the like included in the traffic record in the original traffic record file;
an original flow record file generating module 43, configured to generate an original flow record file; different records of different users are stored in corresponding original flow record files according to the flow collection sequence according to the collection period and the size of a single file, wherein the collection period and the size of the single file corresponding to collection are set according to different requirements.
Fig. 5 is a schematic structural diagram of a device for recording and merging streaming media service traffic according to an embodiment of the present invention; as shown in fig. 5, the apparatus of the present embodiment includes a judgment module 51 and a merge processing module 52. Wherein,
a judging module 51, configured to judge a media transport protocol type of a first traffic record in an original traffic record file;
the original flow record file generating module 43 in the original flow record file generating device in the prior art is connected to the determining module 51 of the device in this embodiment through an interface, which may be a separate device; the judging module 51 and the merging processing module 52 of the present embodiment may be installed on the basis of the original flow record file generating device of the prior art. The determining module 51 is specifically configured to:
and judging the type of the media transmission protocol of the first flow record according to the characteristic field contained in the first flow record.
A merging processing module 52, configured to merge the first traffic records with the same media transport protocol type according to the determination result of the determining module 41.
Further, the merging processing module 52 is specifically configured to:
if the judgment result is HTTP, merging the first traffic records which have the same internet surfing account, continuous time period, the same main domain address in the URL and the same content type of HTTP to generate a second traffic record; the second traffic record and the first traffic record have the same internet access account, the same home domain address in the URL, and the same content type of HTTP, the start time of the second traffic record is the earliest start time in the first traffic record, and the end time of the second traffic record is the latest end time in the first traffic record. Merging HTTP flow records in first flow records which have the same internet-surfing account, continuous time period, the same main domain address in the URL and the same content type of the HTTP, generating a new flow record of the HTTP, and temporarily storing the generated new flow record of the HTTP in a temporary flow record file; when all the traffic records with the protocol type of HTTP in the first traffic record file are completely merged one by one, inserting the generated second traffic record of HTTP temporarily stored in the temporarily stored traffic record file into the original traffic record file one by one according to the starting time sequence to obtain the updated traffic record of the original traffic record, and deleting the generated second traffic record of HTTP stored in the temporarily stored traffic record file; the rest of the traffic records in the original traffic record file, i.e., the traffic records whose media transfer protocol type is not HTTP, are still saved in the original traffic record file.
If the judgment result is the protocol P2P, merging the first flow records with the same internet surfing account and continuous time periods to generate a third flow record; the third flow record and the first flow record have the same internet access account, the start time of the third flow record is the earliest start time in the first flow record, and the end time of the third flow record is the latest end time in the first flow record. Merging the traffic records of the P2P protocol in the first traffic records with the same internet-surfing account and continuous time periods to generate a new traffic record of the P2P protocol, and temporarily storing the generated new traffic record of the P2P protocol in a temporary traffic record file; when all the flow records with the protocol type of P2P protocol in the first flow record file are merged one by one, inserting the generated third flow record of P2P protocol temporarily stored in the temporary storage flow record file into the original flow record file one by one according to the starting time sequence, obtaining the updated flow record of the original flow record, and deleting the generated third flow record of P2P protocol stored in the temporary storage flow record file; the rest of the traffic records in the original traffic record file, i.e., the traffic records whose media transfer protocol type is not the P2P protocol, remain in the original traffic record file.
Here, it is explained that: although in this embodiment, different merging processing modules are respectively used to merge traffic records in an original traffic record file of the HTTP or the media transport protocol of the P2P protocol, in practice, two protocol types may exist simultaneously, or more media transport protocols may exist simultaneously, and different media transport protocol types may be processed simultaneously, so as to obtain traffic records after merging processing for different media transport protocol types, respectively. For example: and judging and combining 100 flow records in the original flow record file, wherein the flow records of the HTTP and the P2P protocol respectively exist, the finally obtained flow records of the HTTP meeting the conditions are 5, and the flow records of the P2P protocol are 3.
The apparatus of this embodiment may further include a flow record storage module, configured to store an updated flow record of the original flow record; and respectively replacing the corresponding flow records before merging processing in the first flow record with a second flow record or a third flow record obtained by merging the flow records with the same protocol type in the first flow record in the original flow record file so as to obtain an updated flow record of the original flow record. The device for recording and merging the stream media service traffic of the embodiment judges the media transmission protocol type of the first traffic record in the original traffic record file through the judging module; the merging processing module merges the first traffic records with the same media transmission protocol type according to the judgment result of the judgment module; the judging module in the device of the embodiment can judge the media transmission protocol type of the flow record in the original flow record file and carry out merging processing on the flow records with the same media transmission protocol type, thereby reducing the storage space and saving the storage resource.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention. ......
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (6)
1. A stream media service flow record merging processing method is characterized by comprising the following steps:
judging the type of a media transmission protocol of a first flow record in an original flow record file;
and merging the first flow records with the same media transmission protocol type according to the judged result.
2. The method according to claim 1, wherein said merging the first traffic records of the same media transport protocol type according to the judgment result of the judgment comprises:
if the judgment result is a hypertext transfer protocol (HTTP), merging the first traffic records with the same internet access account, continuous time period, the same main domain address in a Uniform Resource Locator (URL) and the same content type of the HTTP protocol to generate a second traffic record; the second traffic record and the first traffic record have the same internet access account, the same home domain address in the URL, and the same content type of HTTP, the start time of the second traffic record is the earliest start time in the first traffic record, and the end time of the second traffic record is the latest end time in the first traffic record;
if the judgment result is a point-to-point P2P protocol, merging the first flow records with the same internet surfing account and continuous time period to generate a third flow record; the third flow record and the first flow record have the same internet access account, the start time of the third flow record is the earliest start time in the first flow record, and the end time of the third flow record is the latest end time in the first flow record.
3. The method according to claim 1 or 2, wherein the determining the media transport protocol type of the first traffic record in the original traffic record file comprises:
and judging the type of the media transmission protocol of the first flow record according to the characteristic field contained in the first flow record.
4. A device for merging and processing stream media service traffic records, comprising:
the judging module is used for judging the media transmission protocol type of the first flow record in the original flow record file;
and the merging processing module is used for merging the first traffic records with the same media transmission protocol type according to the judgment result of the judgment module.
5. The apparatus of claim 4, wherein the merge processing module is specifically configured to:
if the judgment result is a hypertext transfer protocol (HTTP), merging the first traffic records with the same internet access account, continuous time period, the same main domain address in a Uniform Resource Locator (URL) and the same content type of the HTTP to generate a second traffic record; the second traffic record and the first traffic record have the same internet access account, the same home domain address in the URL, and the same content type of HTTP, the start time of the second traffic record is the earliest start time in the first traffic record, and the end time of the second traffic record is the latest end time in the first traffic record;
if the judgment result is a point-to-point P2P protocol, merging the first flow records with the same internet surfing account and continuous time period to generate a third flow record; the third flow record and the first flow record have the same internet access account, the start time of the third flow record is the earliest start time in the first flow record, and the end time of the third flow record is the latest end time in the first flow record.
6. The apparatus according to claim 4 or 5, wherein the determining module is specifically configured to: and judging the type of the media transmission protocol of the first flow record according to the characteristic field contained in the first flow record.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210295903.8A CN102833241B (en) | 2012-08-20 | 2012-08-20 | Streaming media service traffic record merged-processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210295903.8A CN102833241B (en) | 2012-08-20 | 2012-08-20 | Streaming media service traffic record merged-processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102833241A true CN102833241A (en) | 2012-12-19 |
CN102833241B CN102833241B (en) | 2015-05-20 |
Family
ID=47336212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210295903.8A Active CN102833241B (en) | 2012-08-20 | 2012-08-20 | Streaming media service traffic record merged-processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102833241B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103763320A (en) * | 2014-01-21 | 2014-04-30 | 中国联合网络通信集团有限公司 | Method and system for merging flow records |
CN105718485A (en) * | 2014-12-04 | 2016-06-29 | 中国移动通信集团公司 | Method and device for inputting data into database |
CN107103543A (en) * | 2016-02-23 | 2017-08-29 | 平安科技(深圳)有限公司 | Protocol data processing method and system |
CN107295405A (en) * | 2017-07-14 | 2017-10-24 | 深圳市海云天科技股份有限公司 | The compression method and system of a kind of video tour record |
CN110991880A (en) * | 2019-12-03 | 2020-04-10 | 任杉元 | Household power auditing system and method based on big data |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060116113A1 (en) * | 2004-11-30 | 2006-06-01 | Alcatel | Hybrid call log |
CN1975725A (en) * | 2006-12-12 | 2007-06-06 | 华为技术有限公司 | Method and system for managing journal |
CN101582903A (en) * | 2009-06-24 | 2009-11-18 | 杭州华三通信技术有限公司 | Storing method of streaming media resource and device |
CN101739455A (en) * | 2009-12-24 | 2010-06-16 | 北京世纪互联宽带数据中心有限公司 | Analysis method of streaming media information on demand and method thereof |
CN101902365A (en) * | 2009-05-26 | 2010-12-01 | 北京启明星辰信息技术股份有限公司 | Method for monitoring P2P traffic of wide area network and system thereof |
CN102510568A (en) * | 2011-11-22 | 2012-06-20 | 联通宽带业务应用国家工程实验室有限公司 | Internet access data processing system and method for mobile terminal |
-
2012
- 2012-08-20 CN CN201210295903.8A patent/CN102833241B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060116113A1 (en) * | 2004-11-30 | 2006-06-01 | Alcatel | Hybrid call log |
CN1975725A (en) * | 2006-12-12 | 2007-06-06 | 华为技术有限公司 | Method and system for managing journal |
CN101902365A (en) * | 2009-05-26 | 2010-12-01 | 北京启明星辰信息技术股份有限公司 | Method for monitoring P2P traffic of wide area network and system thereof |
CN101582903A (en) * | 2009-06-24 | 2009-11-18 | 杭州华三通信技术有限公司 | Storing method of streaming media resource and device |
CN101739455A (en) * | 2009-12-24 | 2010-06-16 | 北京世纪互联宽带数据中心有限公司 | Analysis method of streaming media information on demand and method thereof |
CN102510568A (en) * | 2011-11-22 | 2012-06-20 | 联通宽带业务应用国家工程实验室有限公司 | Internet access data processing system and method for mobile terminal |
Non-Patent Citations (1)
Title |
---|
李明等: "基于Hash聚合的网络流量管理研究", 《江西示范大学学报(自然科学版)》, vol. 35, no. 2, 31 March 2011 (2011-03-31), pages 175 - 2 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103763320A (en) * | 2014-01-21 | 2014-04-30 | 中国联合网络通信集团有限公司 | Method and system for merging flow records |
CN103763320B (en) * | 2014-01-21 | 2017-01-25 | 中国联合网络通信集团有限公司 | Method and system for merging flow records |
CN105718485A (en) * | 2014-12-04 | 2016-06-29 | 中国移动通信集团公司 | Method and device for inputting data into database |
CN105718485B (en) * | 2014-12-04 | 2019-08-27 | 中国移动通信集团公司 | A kind of method and device by data inputting database |
CN107103543A (en) * | 2016-02-23 | 2017-08-29 | 平安科技(深圳)有限公司 | Protocol data processing method and system |
CN107103543B (en) * | 2016-02-23 | 2021-03-30 | 平安科技(深圳)有限公司 | Protocol data processing method and system |
CN107295405A (en) * | 2017-07-14 | 2017-10-24 | 深圳市海云天科技股份有限公司 | The compression method and system of a kind of video tour record |
CN110991880A (en) * | 2019-12-03 | 2020-04-10 | 任杉元 | Household power auditing system and method based on big data |
Also Published As
Publication number | Publication date |
---|---|
CN102833241B (en) | 2015-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10321199B2 (en) | Streaming with optional broadcast delivery of data segments | |
US10264093B2 (en) | Systems and methods for partial video caching | |
CN102238419B (en) | Method and apparatus for playing live content | |
US20210368239A1 (en) | Distributing method, system, edge node, and central scheduling system for streaming media resource | |
EP2383941B1 (en) | Client terminal, method and system for downloading streaming media | |
US20150372927A1 (en) | Method, Device, and System for Acquiring Streaming Media Data | |
CN102833241B (en) | Streaming media service traffic record merged-processing method and device | |
US9356985B2 (en) | Streaming video to cellular phones | |
KR20160067126A (en) | Method and apparatus for content delivery | |
CN105228001B (en) | A kind of method and system that FLV format videos play online | |
US9479607B2 (en) | Content caching and delivering system with traffic of repetitively requested content reduced | |
US10182086B2 (en) | Method and apparatus for transmitting streaming media data | |
CN103813185B (en) | A kind of method that segment programs are quickly distributed, server and client | |
WO2023061060A1 (en) | Audio and video code stream scheduling method, system, medium and electronic apparatus | |
CN107920072B (en) | Multimedia sharing method and system based on data characteristics | |
WO2016107197A1 (en) | Network program recording method, device and system, and recorded-program playing method and device | |
US9432731B2 (en) | Method and system for detecting live over the top (OTT) streams in communications networks | |
CN110958186A (en) | Network equipment data processing method and system | |
CN103856785A (en) | Method and device for enhancing video quality | |
JP6009501B2 (en) | Streaming with optional broadcast delivery of data segments | |
CN115866281A (en) | Live stream transmission method and device and storage medium | |
CN112468848A (en) | Method, device and system for realizing policy scheduling |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |