CN101197681B - Method for receiving network data by IP set-top box - Google Patents

Method for receiving network data by IP set-top box Download PDF

Info

Publication number
CN101197681B
CN101197681B CN2006101574579A CN200610157457A CN101197681B CN 101197681 B CN101197681 B CN 101197681B CN 2006101574579 A CN2006101574579 A CN 2006101574579A CN 200610157457 A CN200610157457 A CN 200610157457A CN 101197681 B CN101197681 B CN 101197681B
Authority
CN
China
Prior art keywords
network data
top box
data
storage location
internal storage
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.)
Expired - Fee Related
Application number
CN2006101574579A
Other languages
Chinese (zh)
Other versions
CN101197681A (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.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics 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 Shenzhen Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CN2006101574579A priority Critical patent/CN101197681B/en
Publication of CN101197681A publication Critical patent/CN101197681A/en
Priority to HK08107870.2A priority patent/HK1112793A1/en
Application granted granted Critical
Publication of CN101197681B publication Critical patent/CN101197681B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to a method for an IP set-top box to receive the network data. The method comprises the following steps that: the IP set-top box is started to load a network card driver and to start a consumer process; the network card driver receives the network data and filter the network data as well as verifying the integrality of the network data according to the filter condition provided by the user process; the network data after the filter and the verification of the integrality is written into a memory unit by the network card driver; the user process reads the written network data from the memory unit and transmits the network data to a decoder to decode. The method for an IP set-top box to receive the network data of the invention is short in the time of processing the network data so as to ensure that a program can be smoothly played.

Description

The method of IP set-top box receiving network data
Technical field
The present invention relates to a kind of data receive method, relate in particular to the method for a kind of IP (Internet protocol, Internet Protocol) set-top box receiving network data.
Background technology
The IP set-top box is a kind of dedicated computing equipment, and it can serve as the interface between television set and the broadband network.Except TV signal being decoded and presenting its content, the IP set-top box can also provide the function of multimedia services such as comprising video request program, electronic program guides, Digital Right Management.
Traditional IP set-top box adopts sockets interface (Socket) to realize the communication of network data between consumer process and the server, network data is through whole TCP/IP (Transmission ControlProtocol/Internet Protocol, transmission control protocol/Internet Protocol) protocol stack is handled, again by the Socket return data, process is very complicated, specific as follows:
A) NIC driver receives data;
B) Ethernet data analysis;
C) the IP layer is handled;
D) TCP/UDP (User Datagram Protocol, User Datagram Protoco (UDP)) layer is handled;
E) the Socket layer is handled.
Above-mentioned receiving course need carry out the analysis and the filtration of variety of protocol, in these processes, duplicating and move and system call of a lot of chunk datas is arranged, and this has just prolonged time of data transfer greatly.Can cause the not smooth or distortion of broadcast program.When particularly receiving code stream and surpassing the above high definition program of 10M, from receive data, analyze data, elapsed time is long on this handling process of decoding to the end, can cause the not smooth or distortion of broadcast program.
Summary of the invention
For overcoming prior art IP set-top box the network data processing overlong time is caused the defective of the not smooth or distortion of broadcast program, be necessary to provide a kind of method of, IP set-top box receiving network data that broadcast program smooth short the network data processing time.
For solving the problems of the technologies described above, the invention provides a kind of method of IP set-top box receiving network data, its step comprises: start the IP set-top box, load NIC driver and start consumer process; This NIC driver receiving network data, and according to the filtercondition that consumer process provides this network data is filtered and integrity check; This NIC driver will write an internal storage location through the network data of filtration and integrity check; This consumer process reads the network data that this writes from this internal storage location, and passes to decoder and decode.
Compared to prior art, the method of above-mentioned IP set-top box receiving network data is to adopt direct internal storage location in set-top box, for NIC driver and consumer process shared network data, in set-top box, do not need by ICP/IP protocol stack and Socket network data, and directly return to consumer process, thereby reduced the processing time of network data, made playing programs more smooth, reduced the probability of picture distortion.
Description of drawings
Fig. 1 is the flow chart of the network data processing method of the IP set-top box that provides of embodiment of the present invention;
Fig. 2 is a kind of data filter that provides of embodiment of the present invention and the flow chart of completeness check.
Embodiment
Below in conjunction with accompanying drawing embodiment of the present invention is described in further details.
Seeing also Fig. 1, is the flow chart of the network data processing method of the IP set-top box that provides of embodiment of the present invention.After this IP set-top box started, the operating system of this IP set-top box began to load NIC driver and starts consumer process, simultaneously, distributes an internal storage location 3.This NIC driver is used for by network from TV services device receiving network data, this consumer process is used for this network data is decoded and play TV programme, this internal storage location 3 is used for store network data, for this NIC driver, consumer process delivery network data.
The operation of this NIC driver comprises the steps:
Step 11: NIC driver receives Ethernet data;
Step 12: NIC driver receives the filtercondition of consumer process, and filters out needed network data according to this filtercondition;
Step 13: NIC driver is carried out data integrity check to the network data that filters out;
Step 14: NIC driver writes this internal storage location 3 in regular turn to data, and full if this internal storage location 3 is write, then the first address from this internal storage location 3 writes again;
Return step 11, NIC driver continues receiving network data.
This consumer process comprises the steps:
Step 21: the user selects broadcast program;
Step 22: consumer process begins to prepare receiving network data, simultaneously filtercondition is sent to NIC driver;
Step 23: consumer process reads network data from this internal storage location 3;
Step 24: consumer process passes to decoder decode to the network data that reads from this internal storage location 3;
Step 25: consumer process judges to read whether finish, as reads and do not finish then to continue reading of data (returning step 23), as reads end and wait for that then the user selects program (returning step 21).
In the above-described embodiment, this internal storage location 3 does not belong to the operating system administration, and directly is that NIC driver and consumer process are shared.This NIC driver and this consumer process adopt the mode of circulation read-write to this internal storage location 3.This NIC driver order network data is write this internal storage location 3, if write this internal storage location 3 ends, then write from internal storage location 3 first addresss.Consumer process order from this internal storage location 3, read network data.The memory capacity of this internal storage location 3 is the integral multiple of decoder processes one secondary data Len req, so can make this internal storage location cushion a given data and transmission data that can be continuous are given decoder.
See also Fig. 2, in the above-described embodiment, the network data filtration in step 12 and the step 13 and the detailed step of completeness check are as follows:
Step 401: after NIC driver is obtained network data, to ethernet frame carry out cyclic redundancy check (CRC) (Cyclic Redundancy Check, CRC); If verification succeeds then enters step 402, if failure then abandons these data;
Step 402: Ethernet destination address check and correction, purpose ethernet address and the ethernet address that needs to receive are compared, if identical then receive, enter step 403, if difference then abandon this data;
Step 403: the type of Ethernet bearing agreement is judged, if the Ethernet bearing agreement is PPPOE (Point to Point Protocol over Ethernet, the point-to-point protocol on the Ethernet) protocol conversation (Session) stage, is then entered step 404; If the Ethernet bearing agreement is the IP agreement, then enter step 405; If the Ethernet bearing agreement is other agreements, then abandon these data;
Step 404: carry out PPPOE and handle, carry out the Frame verification of PPPOE simultaneously,, then enter step 405, if other agreement then abandons these data if the PPPOE carrying is the IP agreement;
Step 405: prepare IP and handle;
The check and correction of step 406:IP destination address, the address that the destination address and the application program of grouping are bound compares, if the data that oneself needs just enter step 407, otherwise just abandons.
The verification of step 407:IP stem, if verification succeeds then enter step 408, the verification failure then abandons these data;
The check and correction of step 408:UDP/TCP port, the port numbers that destination slogan and the application program of UDP/TCP have been bound compares, and enters step 409 if the port data that needs just passes to, otherwise just abandons these data;
The verification of step 409:UDP/TCP data content, if verification succeeds then enters step 410, if the failure would abandon this network data;
Step 410: network data is write shared physical memory unit 3.
Compared with prior art, the method of IP STB receiving network data provided by the invention adopts direct internal storage location in STB, for NIC driver and consumer process shared network data, in STB, do not pass through ICP/IP protocol stack and Socket network data, and directly return to consumer process, data filtering and completeness check by oneself in STB come network data, thereby reduced the processing time of network data, so that the program broadcast is more smooth, reduced the probability of distortion.

Claims (4)

1. the method for an IP set-top box receiving network data, its step comprises:
Start the IP set-top box, load NIC driver and start consumer process;
This NIC driver receiving network data, and this network data is filtered and integrity check according to the filtercondition that consumer process provides, comprise the steps: ethernet frame is carried out cyclic redundancy check (CRC) the type of check and correction Ethernet destination address and judgement Ethernet bearing agreement; When judging the Ethernet bearing protocol type, if the Ethernet bearing agreement is the PPPOE protocol conversation stage, then network data is carried out PPPOE and handle, carry out the Frame verification of PPPOE simultaneously, if the PPPOE carrying is the IP agreement, then network data is carried out IP and handle; If the Ethernet bearing agreement is the IP agreement, then network data is carried out IP and handle; Described IP handles and comprises check and correction IP destination address, verification IP stem, check and correction UDP/TCP port and verification UDP/TCP data content;
This NIC driver will write an internal storage location through the network data of filtration and integrity check;
This consumer process reads the network data that this writes from this internal storage location, and passes to decoder and decode.
2. the method for IP set-top box receiving network data as claimed in claim 1 is characterized in that, this internal storage location is opened when the IP set-top box starts and shared.
3. the method for IP set-top box receiving network data as claimed in claim 1 is characterized in that, the memory capacity of this internal storage location is the integral multiple of this decoder processes one secondary data Len req.
4. the method for IP set-top box receiving network data as claimed in claim 1 is characterized in that, this NIC driver and this consumer process adopt the mode of circulation read-write to this internal storage location.
CN2006101574579A 2006-12-08 2006-12-08 Method for receiving network data by IP set-top box Expired - Fee Related CN101197681B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2006101574579A CN101197681B (en) 2006-12-08 2006-12-08 Method for receiving network data by IP set-top box
HK08107870.2A HK1112793A1 (en) 2006-12-08 2008-07-16 A method of ip set top box receiving the network data ip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101574579A CN101197681B (en) 2006-12-08 2006-12-08 Method for receiving network data by IP set-top box

Publications (2)

Publication Number Publication Date
CN101197681A CN101197681A (en) 2008-06-11
CN101197681B true CN101197681B (en) 2010-08-18

Family

ID=39547849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101574579A Expired - Fee Related CN101197681B (en) 2006-12-08 2006-12-08 Method for receiving network data by IP set-top box

Country Status (2)

Country Link
CN (1) CN101197681B (en)
HK (1) HK1112793A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333232A (en) * 2011-08-19 2012-01-25 四川金网通电子科技有限公司 Method and system for remote monitoring of working state of set-top box
CN102523205A (en) * 2011-12-05 2012-06-27 中兴通讯股份有限公司 Determination method and device for content checksum
CN104486676A (en) * 2014-12-26 2015-04-01 珠海迈越信息技术有限公司 Data sharing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1237295A (en) * 1996-10-31 1999-12-01 艾瑞迪公司 Multiple network protocol encoder/decoder and data processor
CN1866968A (en) * 2005-05-20 2006-11-22 中国科学院声学研究所 High-speed stream media data transferring system and its transferring method
EP1528807B1 (en) * 2003-10-30 2009-12-09 Nokia Corporation Information service provision

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1237295A (en) * 1996-10-31 1999-12-01 艾瑞迪公司 Multiple network protocol encoder/decoder and data processor
EP1528807B1 (en) * 2003-10-30 2009-12-09 Nokia Corporation Information service provision
CN1866968A (en) * 2005-05-20 2006-11-22 中国科学院声学研究所 High-speed stream media data transferring system and its transferring method

Also Published As

Publication number Publication date
CN101197681A (en) 2008-06-11
HK1112793A1 (en) 2008-09-12

Similar Documents

Publication Publication Date Title
CN111246284B (en) Video stream playing method, system, terminal and storage medium
CN101198045A (en) Stream media digital watermarking system
US10469914B2 (en) Apparatus and method for delivering and receiving multimedia data in hybrid network
US8559788B2 (en) Process for placing a multimedia object in memory, data structure and associated terminal
US8745256B2 (en) Method and system for multimedia audio video transfer
CN102664967A (en) Method and system for interacting cross-platform personal information and background server
CN106254867A (en) Based on picture group, video file is carried out the method and system of transcoding
CN106034252B (en) A kind of Streaming Media processing method and processing device
CN101197681B (en) Method for receiving network data by IP set-top box
CN104202656B (en) Network audio MP3 flows out of order segmentation decoding method
CN113973214A (en) Video stream format conversion method, device and storage medium
KR101022078B1 (en) Method and apparatus for facilitating streaming of video information, computer readable medium and method and apparatus for processing a file containing video information
CN1819643A (en) Picture and accompanying sound cutting method and use for digital TV-set
WO2024098836A1 (en) Video alignment method and apparatus
CN103634694B (en) IP-based streaming media playing method and system
US20120281137A1 (en) Method and apparatus for transcribing multimedia broadcasting program
CN104243412B (en) Network data processing terminal and method in wherein network data
CN104202659A (en) Segmented decoding method for scrambled network video streams
CN1599321A (en) Multi-service changing system based on one-way digital transmission system and charging mode thereof
JP2008523693A (en) Method of bypassing DSMCC middleware by section filter mechanism
CN108124183B (en) Method for synchronously acquiring video and audio to perform one-to-many video and audio streaming
CN1276662C (en) Broadcast type VOD system based on multicast and request method thereof
CN106534137B (en) Media stream transmission method and device
EP2854413B1 (en) Internet protocol television and operating method thereof
RU2366103C2 (en) Storage of advanced video coding (avc) set of parametres in avc file format

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1112793

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1112793

Country of ref document: HK

EE01 Entry into force of recordation of patent licensing contract

Assignee: SHENZHEN COSHIP SOFTWARE ELECTRONICS Co.,Ltd.

Assignor: SHENZHEN COSHIP ELECTRONICS Co.,Ltd.

Contract record no.: 2011440020238

Denomination of invention: Method for receiving network data by IP set-top box

Granted publication date: 20100818

License type: Exclusive License

Open date: 20080611

Record date: 20110622

DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: SHENZHEN COSHIP ELECTRONICS Co.,Ltd.

Document name: Notification to Pay the Fees

DD01 Delivery of document by public notice

Addressee: Xie Huibing

Document name: Notice of approval of right to request

DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Xie Huibing

Document name: payment instructions

DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Xie Huibing

Document name: Patent termination notice

DD01 Delivery of document by public notice
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100818

CF01 Termination of patent right due to non-payment of annual fee