CN102833241B - Streaming media service traffic record merged-processing method and device - Google Patents

Streaming media service traffic record merged-processing method and device Download PDF

Info

Publication number
CN102833241B
CN102833241B CN201210295903.8A CN201210295903A CN102833241B CN 102833241 B CN102833241 B CN 102833241B CN 201210295903 A CN201210295903 A CN 201210295903A CN 102833241 B CN102833241 B CN 102833241B
Authority
CN
China
Prior art keywords
record
flow
discharge
merging treatment
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.)
Active
Application number
CN201210295903.8A
Other languages
Chinese (zh)
Other versions
CN102833241A (en
Inventor
李娜
廖慧
王蓉
王志军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201210295903.8A priority Critical patent/CN102833241B/en
Publication of CN102833241A publication Critical patent/CN102833241A/en
Application granted granted Critical
Publication of CN102833241B publication Critical patent/CN102833241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Streaming media service discharge record merging treatment method and device
Technical field
The present invention relates to the communication technology, particularly relate to a kind of streaming media service discharge record merging treatment method and device.
Background technology
Streaming Media (Streaming Media) refers to the continuant/video data stream of data in chronological sequence order transmission and broadcasting on network.Different from traditional broadcast mode, not need client downloads whole program file during stream media mode broadcast program, but reception limit, limit is play, and only by partial programme data buffer storage, need which offers a saving and download stand-by period and memory space.Streaming media service type conventional is at present based on the streaming media service of HTML (Hypertext Markup Language) (Hyper Text Transfer Protocol, HTTP) and the streaming media service based on point-to-point (Peer-to-Peer, P2P) agreement.HTTP is by request-answer-mode and user end to server transmission HTTP request, and the HTTP request that server customer in response end sends and the resource of server stores is sent to client, carries out transfer of data on the internet; P2P agreement sends resource request by user end to server, the resource request that server customer in response end sends to server and available nodal information is fed back to client, client gets available nodal information from server and connects available node to obtain institute's request resource.
In prior art, the generative process of streaming media service discharge record is: the streaming media service traffic messages being obtained client by flow collection equipment, and resolves to the content of IP bag in the streaming media service traffic messages of obtained client the streaming media service discharge record generating client.For current streaming media service, the connection that each user end to server is initiated all can generate a corresponding streaming media service discharge record.For P2P agreement and HTTP, said process is made an explanation; For HTTP, although the access request that client is initiated is some concrete video resources, but because the acquisition of streaming media service to video resource takes caching mechanism, some video resources are divided into several video segments, the primary video resource request of such client often correspond to several video segments, at least generate a discharge record corresponding to each video segment, thus many discharge records are often generated for the primary video resource request of client; For P2P agreement, if some the asked video resource of client correspond to multiple different address, the video resource that client is asked can download the video resource of asking from multiple different address, each address can generate a discharge record accordingly, thus often generates many discharge records for the primary video resource request of client.
The defect of prior art is: the resource request initiated for client, can generate many discharge records, conveniently the inquiry of client, and all discharge records generated all can be stored, and memory space is comparatively large, wastes storage resources.
Summary of the invention
The invention provides a kind of streaming media service discharge record merging treatment method and device, for reducing memory space, saving storage resources.
First aspect of the present invention is to provide a kind of streaming media service discharge record merging treatment method, comprising:
Judge the media transmission protocol type of the first flow record in original flow log file;
According to the judged result of described judgement, the described first flow record identical to described media transmission protocol type carries out merging treatment.
Another aspect of the present invention is to provide a kind of streaming media service discharge record merging treatment device, comprising:
Judge module, for judging the media transmission protocol type of the first flow record in original flow log file;
Merging treatment module, for the judged result according to described judge module, the described first flow record identical to described media transmission protocol type carries out merging treatment.
Streaming media service discharge record merging treatment method provided by the invention and device, by judging the media transmission protocol type of the first flow record in original flow log file; According to the judged result of described judgement, the described first flow record identical to described media transmission protocol type carries out merging treatment; In order to merge the discharge record in the identical original flow log file of media transmission protocol type.
Technique effect of the present invention is: reduce memory space, saves storage resources.
Accompanying drawing explanation
The flow chart of the streaming media service discharge record merging treatment method that Fig. 1 provides for one embodiment of the invention;
The flow chart of the streaming media service discharge record merging treatment method that Fig. 2 provides for another embodiment of the present invention;
The flow chart of the streaming media service discharge record merging treatment method that Fig. 3 provides for another embodiment of the present invention;
Fig. 4 is the structural representation of the original flow log file generating apparatus of prior art;
The structural representation of the streaming media service discharge record merging treatment device that Fig. 5 provides for one embodiment of the invention.
Embodiment
The flow chart of the streaming media service discharge record merging treatment method that Fig. 1 provides for one embodiment of the invention.As shown in Figure 1, the method for the present embodiment comprises:
Step 101, judge the media transmission protocol type of the first flow record in original flow log file.
Particularly, according to the feature field that described first flow record comprises, judge the media transmission protocol type of described first flow record.By analyzing the feature field corresponding with media transmission protocol type of the first flow record in original flow log file, can judge that the media transmission protocol type of first flow record is HTTP or as P2P agreement.
Step 102, judged result according to described judgement, the described first flow record identical to described media transmission protocol type carries out merging treatment.
According to judged result, the first flow record identical to media transmission protocol type adopts different merging treatment methods to carry out merging treatment, to generate new discharge record; With the streaming media service based on HTTP be described based on the streaming media service of P2P agreement in the present embodiment, but be not only confined to the streaming media service of above two kinds of agreements.
In the present embodiment, by judging the media transmission protocol type of the first flow record in original flow log file; According to the judged result judged, the first flow record identical to media transmission protocol type carries out merging treatment; In order to merge the discharge record in the identical original flow log file of media transmission protocol type, reduce memory space, save storage resources.
The flow chart of the streaming media service discharge record merging treatment method that Fig. 2 provides for another embodiment of the present invention.As shown in Figure 2, the method for the present embodiment comprises:
Step 201: generate original flow log file.
Particularly, 1. according to flow collection order and flow collection cycle of pre-setting to obtain GTP, IP datagram is civilian; 2. GTP and the IP packet in obtained GTP, IP datagram literary composition is identified, complete signaling resolution and protocol analysis, the feature field relevant to transmission medium protocol type comprised to make the discharge record obtained in original flow log file, the feature field of being correlated with the content type of HTTP, flow the feature field etc. that the time started of surfing the Net is correlated with; 3. original flow log file is generated; The different record of different user is stored in corresponding original flow log file according to flow collection order according to collection period and Single document size, and wherein the size of the Single document that collection period is corresponding with collection carries out arranging according to different demands.
Wherein, GTP (GPRS Tunnelling Protocol, GPRS Tunnel Protocol) be one group IP-based, for at GSM (Global System for Mobile communications, global system for mobile communications) and UMTS (Universal Mobile Telecommunications System, universal mobile telecommunications system) network in support the communications protocol of general packet radio service (GPRS).For HTTP, URL(uniform resource locator) (URL, Uniform Resource Locator) is an index of carrying out merging treatment, and URL is for intactly describing the address of webpage and other resources on Internet.
The discharge record that the original discharge record generating apparatus that table 1 shows prior art generates, as follows, all discharge records are all stored in original flow log file.
Table 1
Step 202: the media transmission protocol type judging the first flow record in original flow log file.
Particularly, according to the feature field that described first flow record comprises, judge the media transmission protocol type of described first flow record.
Such as, if the feature field corresponding with media transmission protocol type is HTTP, then judge that the media transmission protocol type of the first flow record in original flow log file is HTTP.
Again such as, if the feature field corresponding with media transmission protocol type is P2P agreement, then judge that the media transmission protocol type of the first flow record in original flow log file is P2P agreement.
Step 203: according to the judged result of described judgement, the described first flow record identical to described media transmission protocol type carries out merging treatment.With the streaming media service based on HTML (Hypertext Markup Language) be described based on the streaming media service of P2P agreement in the present embodiment, but be not only confined to the streaming media service of above two kinds of agreements.
Wherein, a kind of Alternate embodiments of step 203 comprises:
If the described judged result of step 2031 is HTTP, then account of surfing the Net is identical, and the time period is continuous, and main domain addresses in URL is identical, and the identical described first flow record of the content type of HTTP carries out merging treatment, to generate the second discharge record; Described second discharge record has identical online account with described first flow record, main domain addresses in identical URL, the content type of identical HTTP, time started of described second discharge record is time started the earliest in described first flow record, and end time of described second discharge record is end time the latest in described first flow record;
It should be noted that: online account can be telephone number, or the user account of terminal.
The continuous print time period refers to that 1. the current end time of initial discharge record and the initial time of next discharge record are continuous print, then two discharge records are in the same continuous print time period; If or there is overlapping part the time of 2. two discharge records, then two discharge records are also be in the same continuous print time period, with the initial time that the time the earliest of two discharge records is section continuous time, the end time being section continuous time with the time the latest of two discharge records; If or 3. according to probability statistics and actual situation about using, two discharge record continuous print time interval scopes can be set, namely at this moment between in interval, the time period of two discharge records, the continuous print time period can be regarded as.
Main domain addresses in URL is the URL(uniform resource locator) part of the reference address representing main territory.The content type of HTTP specifically can comprise: video/MP2T, application/zip, application/rar, audio/mp3, audio/mp4, audio/midi, video/3gp, video/flv, video/mp4, viedo/mpeg etc.
Particularly, if judge, the media transmission protocol type of the first flow record in original flow log file is HTTP, then extracted from original flow log file by first flow record, and is saved in temporary flow file; Account of surfing the Net again is identical, and the time period is continuous, and main domain addresses in URL is identical, and the identical first flow record of the content type of HTTP carries out merging treatment, flow information is added up, to generate the second discharge record, the second discharge record is saved in temporary flow file, and the first flow record be kept in temporary flow file is deleted; Whether in original flow log file, continue inquiry has media transmission protocol type to be the discharge record of HTTP, until traveled through the discharge record in all original flow log files.
According to said method, detect one by one and all the other discharge records all in original flow file are merged, after all the other discharge records all in original flow file have all detected, all second discharge records in all temporary files are inserted in original flow log file one by one according to the time sequencing started, and all second discharge records be stored in temporary flow file are deleted; All the other discharge records in original flow log file---media transmission protocol type is not that the discharge record of HTTP is still kept in original flow log file; Like this in order to merge the discharge record in the identical original flow log file of media transmission protocol type, reduce memory space, save storage resources.
If the described judged result of step 2032 is P2P agreement, then account of surfing the Net is identical, and described in time period continuous print, first flow record carries out merging treatment, to generate the 3rd discharge record; Described 3rd discharge record has identical online account with described first flow record, time started of described 3rd discharge record is time started the earliest in described first flow record, and end time of described 3rd discharge record is end time the latest in described first flow record.
It should be noted that: online account can be telephone number, or the user account of terminal.
The continuous print time period refers to that 1. the current end time of initial discharge record and the initial time of next discharge record are continuous print, then two discharge records are in the same continuous print time period; If or there is overlapping part the time of 2. two discharge records, then two discharge records are also be in the same continuous print time period, with the initial time that the time the earliest of two discharge records is section continuous time, the end time being section continuous time with the time the latest of two discharge records; If or 3. according to probability statistics and actual situation about using, two discharge record continuous print time interval scopes can be set, namely at this moment between in interval, the time period of two discharge records, the continuous print time period can be regarded as.
The corresponding content type of P2P agreement specifically can comprise: PPS Web TV and a sudden peal of thunder are looked at.
Particularly, if judge, the media transmission protocol type of the first flow record in original flow log file is P2P agreement, then extracted from original flow log file by first flow record, and is saved in temporary flow file; Account of surfing the Net again is identical, and time period continuous print first flow record carries out merging treatment, adds up to flow information, to generate the 3rd discharge record, 3rd discharge record is saved in temporary flow file, and the first flow record be kept in temporary flow file is deleted; Whether in original flow log file, continue inquiry has media transmission protocol type to be the discharge record of P2P agreement, until traveled through the discharge record in all original flow log files.
According to said method, detect one by one and all the other discharge records all in original flow file are merged, after all the other discharge records all in original flow file have all detected, all 3rd discharge records in all temporary files are inserted in original flow log file one by one according to the time sequencing started, and all 3rd discharge records be stored in temporary flow file are deleted; All the other discharge records in original flow log file---media transmission protocol type is not that the discharge record of P2P agreement is still kept in original flow log file; Like this in order to merge the discharge record in the identical original flow log file of media transmission protocol type, reduce memory space, save storage resources.
Illustrate at this: although adopt diverse ways to merge respectively to the discharge record in the original flow log file of the media transmission protocol of HTTP or P2P agreement respectively in the present embodiment, but in practice, two kinds of protocol types may be there are simultaneously, or more media transmission protocol, different media transmission protocol types can be processed simultaneously, obtain the discharge record after for different media transmission protocol type merging treatment respectively.Such as: judge and merging treatment wherein, have the discharge record of HTTP, P2P agreement respectively to 100 discharge records in original flow log file, the final discharge record obtaining qualified HTTP is 5, and the discharge record of P2P agreement is 3.
In the present embodiment, by judging the media transmission protocol type of the first flow record in original flow log file; According to the judged result judged, the first flow record identical to media transmission protocol type carries out merging treatment; In order to merge the discharge record in the identical original flow log file of media transmission protocol type, reduce memory space, save storage resources.
For the ease of more clearly technical solution of the present invention being described, the flow media flux recording merging method combined based on HTTP is that example elaborates to technical solution of the present invention by following examples.
The flow chart of the streaming media service discharge record merging treatment method that Fig. 3 provides for another embodiment of the present invention.As shown in Figure 3, the method for the present embodiment comprises:
Step 301: generate original flow log file.
Original flow log file can be generated by prior art, here repeat no more.All original discharge records are all kept in original flow log file.
The original flow log file of table 2 for generating in the present embodiment.
Table 2
Can know from table 2: generate discharge record to the different flow record of different user (MSISDN1 and MSISDN2) respectively by the process of processor, above-mentioned discharge record is stored in original flow log file.Wherein, the type of access can comprise HTTP, mail; Reference address is the URL(uniform resource locator) of complete reference address, and the content type of agreement is one of protocol contents type pre-set: video/MP2T.
Step 302: generate the Article 1 discharge record after merging.
If detect, the media transmission protocol type of the Article 1 discharge record in original discharge record is HTTP, and the content type of agreement is HTTP content type a period of time, merges, generate the Article 1 discharge record after merging to Article 1 discharge record.
Wherein, the content type that HTTP is corresponding specifically can comprise: video/MP2T, application/zip, application/rar, audio/mp3, audio/mp4, audio/midi, video/3gp, video/flv, video/mp4, viedo/mpeg etc.
Simultaneously, to be revised as complete URL in main domain addresses in URL and URL address in table 1 "? " front content, and generated new discharge record is temporary in temporary discharge record file, this discharge record in original flow log file is deleted meanwhile.
Table 3 is the Article 1 discharge record after the merging that generates in the present embodiment.
Table 3
The information of the Article 1 discharge record after generated merging can be known from table 3.
Step 303: merging treatment is carried out to the first flow record that media transmission protocol type is HTTP.
Detect all the other discharge records in original flow file in table 2, merging treatment is carried out to the first flow record that media transmission protocol type is HTTP.
Table 4 carries out merging treatment in the present embodiment to the first flow record that media transmission protocol type is HTTP, is stored in discharge record new after merging in temporary discharge record file.
Table 4
First flow record is extracted from original flow log file, and is saved in temporary flow file; Account of surfing the Net again is identical, and the time period is continuous, and main domain addresses in URL is identical, and the identical first flow record of the content type of HTTP carries out merging treatment, flow information is added up, to generate the second discharge record, the second discharge record is saved in temporary flow file, and the first flow record be kept in temporary flow file is deleted; Whether in original flow log file, continue inquiry has media transmission protocol type to be the discharge record of HTTP, until traveled through the discharge record in all original flow log files.
Illustrate at this: the continuous print time period refers to that 1. the current end time of initial discharge record and the initial time of next discharge record are continuous print, then two discharge records are in the same continuous print time period; If or there is overlapping part the time of 2. two discharge records, then two discharge records are also be in the same continuous print time period, with the initial time that the time the earliest of two discharge records is the consecutive hours section of asking, the end time being section continuous time with the time the latest of two discharge records; If or 3. according to probability statistics and actual situation about using, two discharge record continuous print time interval scopes can be set, namely at this moment between in interval, the time period of two discharge records, the continuous print time period can be regarded as.
Table 5 carries out merging treatment in the present embodiment to the first flow record that media transmission protocol type is HTTP, and new discharge record after merging is inserted into the discharge record in original flow log file.
Table 5
According to said method, detect one by one and all the other discharge records all in original flow file are merged, after all the other discharge records all in original flow file have all detected, all discharge records after merging treatment in all temporary flow files are inserted in original flow log file one by one according to the time sequencing started, and the record after all merging treatment be excessively stored in temporary flow file is deleted; All the other discharge records in original flow log file--media transmission protocol type is not that the discharge record of HTTP is still kept in original flow log file; Incorporate many discharge records of client like this, reduce memory space, save storage resources.
In the present embodiment, merged by the discharge record in discharge record file original in table 2, many discharge records in original flow log file are merged into a discharge record, reduce memory space, save storage resources.
Fig. 4 is the structural representation of the original flow log file generating apparatus of prior art; As shown in Figure 4, the original flow log file generating apparatus of prior art comprises acquisition module 41, parsing module 42 and original flow log file generation module 43;
Acquisition module 41, for according to flow collection order and flow collection cycle of pre-setting to obtain GTP, IP datagram is civilian;
Parsing module 42, for identifying GTP and the IP packet in obtained GTP, IP datagram literary composition, complete signaling resolution and protocol analysis, the feature field relevant to transmission medium protocol type comprised to make the discharge record obtained in original flow log file, the feature field of being correlated with the content type of HTTP, flow the feature field etc. that the time started of surfing the Net is correlated with;
Original flow log file generation module 43, for generating original flow log file; The different record of different user is stored in corresponding original flow log file according to flow collection order according to collection period and Single document size, and wherein the size of the Single document that collection period is corresponding with collection carries out arranging according to different demands.
The structural representation of the streaming media service discharge record merging treatment device that Fig. 5 provides for one embodiment of the invention; As shown in Figure 5, the device of the present embodiment comprises judge module 51 and merging treatment module 52.Wherein,
Judge module 51, for judging the media transmission protocol type of the first flow record in original flow log file;
Original flow log file generation module 43 in the original flow log file generating apparatus of prior art is connected by interface with the judge module 51 of the device in the present embodiment, can be device separately; Also can judge module 51 and the merging treatment module 52 installing the present embodiment on the basis of the original flow log file generating apparatus of prior art.Judge module 51 specifically for:
According to the feature field that described first flow record comprises, judge the media transmission protocol type of described first flow record.
Merging treatment module 52, for the judged result according to described judge module 41, the described first flow record identical to described media transmission protocol type carries out merging treatment.
Further, merging treatment module 52 specifically for:
If described judged result is HTTP, then account of surfing the Net is identical, and the time period is continuous, and main domain addresses in URL is identical, and the identical described first flow record of the content type of HTTP carries out merging treatment, to generate the second discharge record; Described second discharge record has identical online account with described first flow record, main domain addresses in identical URL, the content type of identical HTTP, time started of described second discharge record is time started the earliest in described first flow record, and end time of described second discharge record is end time the latest in described first flow record.Account of surfing the Net is identical, and the time period is continuous, and main domain addresses in URL is identical, and the discharge record of HTTP in the identical first flow record of the content type of HTTP carries out merging treatment, generate the new discharge record of HTTP, and the new discharge record of generated HTTP is temporary in temporary discharge record file; The whole merging treatment one by one of all discharge records being HTTP when the protocol type in first flow log file completes, then second discharge record of the HTTP generated be temporary in temporary discharge record file is inserted in original flow log file according to the time sequencing started one by one, obtain the discharge record after the renewal of original discharge record, and second discharge record of the HTTP generated be stored in temporary flow file is deleted; All the other discharge records in original flow log file---media transmission protocol type is not that the discharge record of HTTP is still kept in original flow log file.
If described judged result is P2P agreement, then account of surfing the Net is identical, and described in time period continuous print, first flow record carries out merging treatment, to generate the 3rd discharge record; Described 3rd discharge record has identical online account with described first flow record, time started of described 3rd discharge record is time started the earliest in described first flow record, and end time of described 3rd discharge record is end time the latest in described first flow record.Account of surfing the Net is identical, and the discharge record of P2P agreement in time period continuous print first flow record carries out merging treatment, generate the new discharge record of P2P agreement, and the new discharge record of generated P2P agreement is temporary in temporary discharge record file; The whole merging treatment one by one of all discharge records being P2P agreement when the protocol type in first flow log file completes, then the 3rd discharge record of the P2P agreement generated be temporary in temporary discharge record file is inserted in original flow log file according to the time sequencing started one by one, obtain the discharge record after the renewal of original discharge record, and the 3rd discharge record of the P2P agreement generated be stored in temporary flow file is deleted; All the other discharge records in original flow log file---media transmission protocol type is not that the discharge record of P2P agreement is still kept in original flow log file.
Illustrate at this: although adopt different merging treatment modules to merge respectively to the discharge record in the original flow log file of the media transmission protocol of HTTP or P2P agreement respectively in the present embodiment, but in practice, two kinds of protocol types may be there are simultaneously, or more media transmission protocol, different media transmission protocol types can be processed simultaneously, obtain the discharge record after for different media transmission protocol type merging treatment respectively.Such as: judge and merging treatment wherein, have the discharge record of HTTP, P2P agreement respectively to 100 discharge records in original flow log file, the final discharge record obtaining qualified HTTP is 5, and the discharge record of P2P agreement is 3.
The device of the present embodiment can also comprise discharge record memory module, for store original discharge record renewal after discharge record; The discharge record in the first flow record in original flow log file with identical protocol type is carried out the second discharge record that merging treatment obtains or the 3rd discharge record removes the discharge record before replacing merging treatment corresponding in first flow record respectively, with the discharge record after the renewal obtaining original discharge record.The streaming media service discharge record merging treatment device of the present embodiment, judges the media transmission protocol type of the first flow record in original flow log file by judge module; Merging treatment module is according to the judged result of described judge module, and the described first flow record identical to described media transmission protocol type carries out merging treatment; Because the judge module in the device of the present embodiment can judge the media transmission protocol type of the discharge record in original flow log file, and merging treatment is carried out to the discharge record with identical media transport protocol type, reduce memory space, save storage resources.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.......
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (4)

1. a streaming media service discharge record merging treatment method, is characterized in that, comprising:
Judge the media transmission protocol type of the first flow record in original flow log file;
According to the judged result of described judgement, the described first flow record identical to described media transmission protocol type carries out merging treatment;
Wherein, the described judged result according to described judgement, the described first flow record identical to described media transmission protocol type carries out merging treatment, comprising:
If described judged result is HTML (Hypertext Markup Language) HTTP, account of then surfing the Net is identical, and the time period is continuous, and main domain addresses in uniform resource position mark URL is identical, and the identical described first flow record of the content type of http protocol carries out merging treatment, to generate the second discharge record; Described second discharge record has identical online account with described first flow record, main domain addresses in identical URL, the content type of identical HTTP, time started of described second discharge record is time started the earliest in described first flow record, and end time of described second discharge record is end time the latest in described first flow record;
If described judged result is point-to-point P2P agreement, then account of surfing the Net is identical, and described in time period continuous print, first flow record carries out merging treatment, to generate the 3rd discharge record; Described 3rd discharge record has identical online account with described first flow record, time started of described 3rd discharge record is time started the earliest in described first flow record, and end time of described 3rd discharge record is end time the latest in described first flow record.
2. method according to claim 1, is characterized in that, the media transmission protocol type of the first flow record in the original flow log file of described judgement comprises:
According to the feature field that described first flow record comprises, judge the media transmission protocol type of described first flow record.
3. a streaming media service discharge record merging treatment device, is characterized in that, comprising:
Judge module, for judging the media transmission protocol type of the first flow record in original flow log file;
Merging treatment module, for the judged result according to described judge module, the described first flow record identical to described media transmission protocol type carries out merging treatment;
Wherein, described merging treatment module specifically for:
If described judged result is HTML (Hypertext Markup Language) HTTP, account of then surfing the Net is identical, and the time period is continuous, and main domain addresses in uniform resource position mark URL is identical, and the identical described first flow record of the content type of HTTP carries out merging treatment, to generate the second discharge record; Described second discharge record has identical online account with described first flow record, main domain addresses in identical URL, the content type of identical HTTP, time started of described second discharge record is time started the earliest in described first flow record, and end time of described second discharge record is end time the latest in described first flow record;
If described judged result is point-to-point P2P agreement, then account of surfing the Net is identical, and described in time period continuous print, first flow record carries out merging treatment, to generate the 3rd discharge record; Described 3rd discharge record has identical online account with described first flow record, time started of described 3rd discharge record is time started the earliest in described first flow record, and end time of described 3rd discharge record is end time the latest in described first flow record.
4. device according to claim 3, is characterized in that, described judge module specifically for: the feature field comprised according to described first flow record, judges the media transmission protocol type of described first flow record.
CN201210295903.8A 2012-08-20 2012-08-20 Streaming media service traffic record merged-processing method and device Active CN102833241B (en)

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 CN102833241A (en) 2012-12-19
CN102833241B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763320B (en) * 2014-01-21 2017-01-25 中国联合网络通信集团有限公司 Method and system for merging flow records
CN105718485B (en) * 2014-12-04 2019-08-27 中国移动通信集团公司 A kind of method and device by data inputting database
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
CN112381362A (en) * 2019-12-03 2021-02-19 任杉元 Household power auditing method based on big data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1662764A1 (en) * 2004-11-30 2006-05-31 Alcatel Unified call log

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)

* Cited by examiner, † Cited by third party
Title
李明等.基于Hash聚合的网络流量管理研究.《江西示范大学学报(自然科学版)》.2011,第35卷(第2期),正文第175页、表2. *

Also Published As

Publication number Publication date
CN102833241A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
CN102843351B (en) A kind of processing method of streaming media service, streaming media server and system
US9069720B2 (en) Partial object caching
US20080294647A1 (en) Methods and apparatus to monitor content distributed by the internet
CN102833241B (en) Streaming media service traffic record merged-processing method and device
US20150237113A1 (en) Method and system for file transmission
CN103531218B (en) A kind of online multimedia file editing method and system
CN105451087A (en) Pushing method, terminals, historical data server and system for barrage information
CN104967862A (en) Video storage method and device, and video searching method and device
US9356985B2 (en) Streaming video to cellular phones
CN105915945A (en) Content distribution method used for CDN platform and scheduling proxy server thereof
CN102055718B (en) Method, device and system for layering request content in http streaming system
CN103929427A (en) Dynamic multi-thread downloading device and method
CN104396270A (en) Streaming media processing method, apparatus and system
CN112468839B (en) Playback method, system, device and readable storage medium of live content
CN104506493A (en) HLS content source returning and caching realization method
CN101599156A (en) A kind of showing advertisement methods, devices and systems
CN110557689B (en) Video playing method and device
CN105354132A (en) Mobile application release processing method and release channel tracking method and system
CN103702176A (en) HLS (http live streaming) protocol-based video downloading method and device
CN114629929B (en) Log recording method, device and system
WO2013013557A1 (en) Method and system for demonstrating and processing network medium information
CN101958901B (en) Long term evolution-based multimedia on demand method, system and mobile terminal
WO2014203745A1 (en) Content provision device, content provision method, program, terminal device, and content provision system
CN101203853A (en) Techniques and systems for supporting podcasting
US20070294723A1 (en) Method and system for dynamically inserting media into a podcast

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