Summary of the invention
Technical problem to be solved by this invention is, overcomes the deficiencies in the prior art, proposes a kind of mobile multi-media broadcasting data method of sending and receiving based on existing C MMB broadcast channel frame format and correlation technique transmission of IP data bag.
In order to address the above problem, the invention provides a kind of mobile multi-media broadcasting data sending method, be applied to the CMMB system, it is characterized in that this method comprises following steps:
A: generate IP data service description list;
B: the data segment that generates the IP packet that comprises the IP data service;
C: send IP data service description list at the control logic channel, and in the service logical channels multiplexed sub frame corresponding, send described data segment with described IP data service;
The service attribute that comprises described IP data service in the described IP data service description list; Described service attribute comprises the source IP address and the purpose IP address of the IP packet that comprises in the described data segment.
In addition, described data segment comprises a plurality of data cells, comprises a plurality of IP packets in the data cell; Described service attribute comprises the attribute of each data cell of described data segment; Described data cell attribute comprises the source IP address and the purpose IP address of the IP packet in this data cell.
In addition, comprise first table updating sequence number in the described IP data service description list;
When sending described data segment, also carry out following operation: in the multiplex frame head of service logical channels, send more new logo of IP data service description list;
Comprise second table updating sequence number in the described more new logo; Second table updating sequence number is the identical version number of described IP data service description list with first table updating sequence number, or second table updating sequence number is the upgraded edition this shop of described IP data service description list.
In addition, also comprise frame number x in advance in the described more new logo, be used to be illustrated in the described more new logo of transmission x frame afterwards and send the described second table updating sequence number corresponding IP data SDT Service Description Table.
In addition, described service attribute also comprises the professional sequence number of this business corresponding IP data; In the ESG of described CMMB system, send above-mentioned IP data service sequence number; In the period service duplexing configuration list of CMMB system, send the positional information of the multiplexed sub frame at the pairing IP data service of IP data service sequence number place.
In addition, described data cell attribute also comprises: IP version number, a compression type, encryption type, redundancy check type, FEC type;
When described compression type is not sky, carry out the IP head compression of described IP packet according to such offset;
When described encryption type is not sky, according to of the data encryption of such offset to comprising in the described IP packet;
When described redundancy check type when not being empty, according to such offset described IP packet is carried out redundancy check, and check value is included in after the corresponding IP data bag;
When described FEC type is not sky, the data that comprise in the described IP packet are carried out the FEC coding according to such offset.
The present invention also provides a kind of mobile multi-media broadcasting data method of reseptance, is applied to the CMMB system, it is characterized in that, this method comprises following steps:
A: the IP packet that in the data segment of the service logical channels multiplexed sub frame corresponding, receives this IP data service with the IP data service;
B:, resolve the IP packet that comprises in the described data segment according to the source IP address and the purpose IP address of the described IP packet that comprises the IP data service description list that receives from the control logic channel;
The service attribute that comprises described IP data service in the described IP data service description list; Described service attribute comprises described source IP address and purpose IP address.
In addition, described data segment comprises a plurality of data cells, comprises a plurality of IP packets in the data cell; Described service attribute comprises the attribute of each data cell of described data segment; Described data cell attribute comprises the source IP address and the purpose IP address of the IP packet that comprises in this data cell;
In described step b, according to the IP packet that comprises in the source IP address of data cell and this data cell of purpose IP address resolution.
In addition, before described step a, also comprise following steps:
A1: in the multiplex frame head of the multiplexed frame of IP data service correspondence, receive more new logo of IP data service description list;
A2: if first table updating sequence number that comprises in second table updating sequence number that comprises and the described IP data service description list in the above-mentioned more new logo is different, then in the reception of control logic channel and preserve the second table updating sequence number corresponding IP data SDT Service Description Table.
In addition, also comprise frame number x in advance in the described more new logo; In described step a2, the x frame after receiving described more new logo receives the described second table updating sequence number corresponding IP data SDT Service Description Table.
In addition, described service attribute also comprises the professional sequence number of this business corresponding IP data;
In the ESG of CMMB system, obtain after the above-mentioned IP data service sequence number, in the period service duplexing configuration list of CMMB system, obtain the positional information of the multiplexed sub frame at the pairing IP data service of this IP data service sequence number place.
In addition, described data cell attribute also comprises: IP version number, a compression type, encryption type, redundancy check type, FEC type;
Number judge the length of described source IP address and purpose IP address according to IP version, and carry out the parsing of IP packet;
When compression type was not empty right overhead, the IP head that carries out described IP packet according to such offset decompressed;
When encryption type is not sky, according to the data decryption of such offset to comprising in the described IP packet;
When the redundancy check type is not sky, according to such offset, and use the check value that comprises after the described IP packet, described IP packet is carried out redundancy check;
When described FEC type is not sky, the data that comprise in the described IP packet are carried out fec decoder according to such offset.
In sum, mobile multi-media broadcasting data method of sending and receiving implementation of the present invention is simple, has taken into full account the compatibility with existing C MMB broadcast channel frame format; And by using IP Address Recognition IP packet, the IP packet is carried out redundancy check, saved and carried out added overhead for link layer packaging, simplified Mobile Multimedia Broadcasting front end and terminal processes.In addition, by transmit the lastest imformation of IP data service description list in real time at the multiplex frame head of service logical channels, reduced the power consumption of receiving terminal.
Embodiment
Basic ideas of the present invention are to use the IP operation packet of the multiplexed sub frame data segment transmission IP data service of CMMB broadcasting service logic channel; An IP data service (definite's by IP data service sequence number) IP operation packet is promptly only transmitted in the corresponding IP data service of each multiplexed sub frame in the data segment of each multiplexed sub frame; Simultaneously, transmission of IP data SDT Service Description Table in control logic multiplexing of channel subframe; The service attribute that comprises each IP data service in the IP data service description list; Receiving terminal receives the IP operation packet according to the service attribute of IP data service.
Describe the present invention below in conjunction with drawings and Examples.
Fig. 2 is an embodiment of the invention mobile multi-media broadcasting data sending method flow chart.As shown in Figure 2, this method comprises following steps:
101: transmitting terminal (CMMB system front end) generates IP data service description list;
Fig. 3 is the concrete structure and the position view in control logic channel multiplexing frame thereof of embodiment of the invention IP data service description list.
As shown in Figure 3, IP data service description list comprises: table sign sequence number, table updating sequence number, section sequence number, segment length, hop count amount, IP data service quantity, and the service attribute of each IP data service.
Table sign sequence number is used to identify IP data service description list; As a special control information table, system distributes different table sign sequence numbers for it, and receiving terminal can know that the control information corresponding table is an IP data service description list according to this sequence number.
Table updating sequence number is used to identify the version information of IP data service description list;
The section sequence number, segment length, hop count amount be as the segment information of IP data service description list, is used at IP data service description list longlyer, and during by segment transmissions, receiving terminal is combined into complete IP data service description list with each section.
IP data service quantity is used for being identified at the quantity of the IP data service that service logical channels transmits, the quantity of promptly different IP data service sequence numbers.
The service attribute of IP data service comprises: IP data service sequence number, data cell quantity, and each data cell attribute.
IP data service sequence number is an IP data service identification information, is used for IP data service of unique identification.
Data cell quantity is the quantity of the professional employed data cell of corresponding IP data, the number (we are called data cell with the segment unit of data segment) of the segment unit that the shared multiplexed sub frame data segment of this IP data service is just comprised.
The data cell attribute comprises: IP version number, source IP address, purpose IP address, a compression type, encryption type, redundancy check (CRC) type, FEC (Forward Error Correction, forward error correction) type.The attribute that the data cell attribute has jointly for packaged IP packet in this data cell.
IP version number is divided into: IPv4 (IP version 4), two kinds of IPv6 (IP version 6).
Source IP address is the source IP address of each IP packet of being comprised in this data cell.
Purpose IP address is the purpose IP address of each IP packet of being comprised in this data cell.
The source IP address of IP packet and purpose IP address can be referred to as the IP address; When IP version number is IPv4, then the IP address size is 32, if IP version number is IPv6, then the IP address size is 128.
Compression type is the self-defined compression type of each IP packet of being comprised in this data cell.For example, can self-defined compression type I be: from the IP packet, remove destination slogan and life span (TTL) field etc.Certainly, also can the IP head not compressed, that is to say that a compression type can be: " not compression ", a compression type is empty in other words.
Encryption type is the encryption type of IP operation data in each the IP packet that is comprised in this data cell.Receiving terminal is decrypted packet according to encryption type.Certainly, also can the IP operation data not encrypted, that is to say that encryption type can be: " unencryption ", encryption type is empty in other words.
Redundancy check (CRC) type is the redundancy check algorithm types of each IP packet of being comprised in this data cell.Certainly, also can the IP packet not carried out redundancy check, that is to say that the redundancy check type can be: " not carrying out redundancy check ", redundancy check type in other words are empty.
The FEC type is the FEC type of coding of IP operation data in each the IP packet that is comprised in this data cell.Certainly, also can the IP operation data not carried out forward error correction coding, that is to say that the FEC type can be: " not carrying out FEC ", the FEC type is empty in other words.
102: the data segment structure that generates each multiplexed sub frame in each multiplexed frame of service logical channels;
As mentioned above, the present invention adopts the data segment transmission IP operation data in the multiplexed sub frame, the IP operation data of 1 IP data service of transmission (being determined by IP data service sequence number) in 1 multiplexed sub frame.
Fig. 4 is the data segment encapsulating structure schematic diagram in the embodiment of the invention multiplexed sub frame.As shown in Figure 4, data segment comprises: data segment header and a plurality of data cell.
Comprise in the data segment header: data cell quantity, the length of each data cell and type.
The corresponding data element number that is comprised in data cell quantity and the IP data service description list is identical.That is to say that data cell quantity sends at control logic channel and service logical channels respectively as redundant information, improved reliability of data transmission, and simplified the realization of terminal that maintenance is consistent with existing standard.
Data unit length is represented the length of each data cell.
The data cell type is represented the self-defining data type of each data cell, and the self-defining data type is one or more combinations in audio frequency, video, text, the file; Also can be multiple audio types (self-defined audio types), various video type (self-defined video type), multiple text type (self-defined text type), multiple file type (custom file type).For example, self-defined audio types can be the mixed audio type of Chinese sound accompaniment and English sound accompaniment.
Wherein, purpose IP address is by the unified configuration of CMMB system front end.
Data cell is made up of a plurality of IP packets and corresponding C RC field.
The IP packet that comprises in data unit has identical source IP address and purpose IP address, in addition, and the IP packet of the same source port number of encapsulation in data cell also usually.
Fig. 5 is the structural representation of IPv4 packet and crc field.As shown in Figure 5, the source IP address of IP packet and purpose IP address are arranged on after the 12nd byte of IP head in regular turn.The expense of 12 bytes comprises before the IP address: IP version number (Version), IP packet header length (Header Length), IP bag length overall fields such as (Total Length).
Because the IP address is positioned at the fixed position of IP bag, when receiving terminal from ESG (Electronic ServiceGuide, after the IP data service sequence number of the IP data service that to need receive electron service instruction), can be according to IP data service sequence number inquiry IP data service description list so that obtain pairing IP version of this each data cell of IP data service number and IP address; Receiving terminal can obtain the position of the pairing multiplexed sub frame of this IP data service by the multiplexing allocation list of inquiry business, and in each data cell of corresponding multiplexed sub frame data segment, go out the original position (being the position of preceding 12 bytes in IP address) of each IP packet by the IP Address Recognition, saved and carried out added overhead for link layer packaging, simplified the processing of Mobile Multimedia Broadcasting front end and terminal.
If need carry out the compression of IP head, then the IP head be compressed according to a compression type of setting; It should be noted that generally, use any self-defining compression type to carry out IP head compression and should not compress or changes, in order to avoid increase the difficulty that receiving terminal is discerned to IP address field.
If need encrypt, then the data division in the IP packet is carried out encryption according to the encryption type of setting to the IP operation data.
If need carry out CRC check, then the IP packet is carried out redundancy check, and the CRC check value that generates is placed on after the corresponding IP packet according to the redundancy check type of setting.
If need carry out the FEC coding, then the data division in the IP packet is carried out corresponding FEC coding according to the FEC type of setting.
103: generate more new logo of IP data service description list;
IP data service description list more new logo comprises: table updating sequence number, frame number in advance.
Table updating sequence number is the same with same file-name field in the IP data service description list, is used to identify the version information of IP data service description list; Different is that this field in the IP data service description list is used to identify the version information of the IP data service description list that is using; And this field that more comprises in the new logo is used for the version information that prior notice is about to the IP data service description list that uses.
In advance the x frame that is illustrated in after the present frame of frame number x begins, and can use new IP data service description list in the control logic channel.Every mistake one frame, the x value subtracts 1, and minimum value is 0, and the expression present frame has used the IP data service description list of this renewal.
Above-mentioned IP data service description list more new logo is included in the multiplex frame head of service logical channels and sends to receiving terminal.
Fig. 6 is that embodiment of the invention IP data service description list upgrades the position view that is identified in the service logical channels multiplex frame head.
Receiving terminal is when receiving the service logical channels data, the table updating sequence number that comprises in the multiplex frame head is compared with the table updating sequence number of the IP data service description list of this locality preservation, if both are inequality, illustrate that IP data service description list is about to (or) and upgrades, receiving terminal receives the IP data service description list that upgrades in the control logic channel according to shifting to an earlier date frame number x value in respective frame.
Certainly, IP data service description list more new logo also can not comprise frame number field in advance, promptly only notifies the table updating sequence number of the up-to-date IP data service description list of receiving terminal; Receiving terminal is by knowing that relatively whether local what preserve is the IP data service description list of latest edition, if not latest edition then begins to receive IP data service description list at the control logic channel, until the latest edition that receives this table.
It should be noted that table updating sequence number can recycle; For example, when table updating sequence number field length was 4 bits, this was worth from 0~15 circulation change.Therefore, in some cases, table updating sequence number is 0 to be that 15 IP data service description list version is new than table updating sequence number.
Because the prior notice mechanism that has adopted above-mentioned IP data service description list to upgrade, receiving terminal need not each frame and all receives IP data service description list in the control logic channel, reduced the power consumption of receiving terminal.
104: send above-mentioned IP data service description list at control logic channel (time slot 0);
105: in the multiplex frame head of service logical channels (time slot 1~39), send more new logo of above-mentioned IP data service description list; Multiplexed sub frame data segment (encapsulating with above-mentioned data segment structure) at service logical channels sends the IP operation data.
Fig. 7 is an embodiment of the invention mobile multi-media broadcasting data method of reseptance flow chart.As shown in Figure 7, this method comprises following steps:
201: receiving terminal (CMMB terminal) is after the IP data service starts, by inquiring about each control information table of previous reception, as ESG, period service duplexing configuration list, the channel time slot (multiplexed frame) of the IP data service correspondence that acquisition need receive and the multiplexed sub frame position at place.
202: according to the IP data service description list of previous reception new logo more, and the table updating sequence number of the previous IP data service description list of preserving had judged whether and need receive the IP data service description list that upgrades from the control logic channel; If need to receive, then carry out next step; Otherwise jump to step 204;
203: receive and preserve the IP data service description list that upgrades from control logic channel (time slot 0);
If IP data service description list segment transmissions also needs according to the section sequence number, segment length, hop count amount equal segments information is combined into complete IP data service description list with each section.
204: from the multiplex frame head of the channel time slot (multiplexed frame) of IP data service correspondence, obtain and preserve more new logo of IP data service description list.
205: from the multiplexed sub frame of the channel time slot (multiplexed frame) of IP data service correspondence, obtain the data segment that comprises the IP operation data.
206: the IP data service sequence number according to the IP data service is obtained the corresponding business attribute in IP data service description list;
Comprise in the above-mentioned service attribute: data cell quantity, and each data cell attribute.
The data cell attribute comprises: IP version number, source IP address, purpose IP address, a compression type, encryption type, redundancy check type, FEC type.The attribute that the data cell attribute has jointly for packaged IP packet in this data cell.
207: locate the position of each data cell in data segment according to the length of the data cell quantity that comprises in the data segment header, each data cell;
The length of each data cell also can be obtained from IP data service description list.
208: according to the source IP address that comprises in the data cell attribute, purpose IP Address Recognition also parses the IP packet that comprises the IP data service in each data cell.
209: according to a compression type that comprises in the data cell attribute, encryption type, redundancy check type, the FEC type, the IP packet that comprises in the data unit is carried out a corresponding IP decompress(ion), IP data decryption, redundancy check, the operation of IP data packet recoveries such as fec decoder;
Certainly, if a compression type is " not compression ", then need not to carry out the IP head and separate press operation; Equally, also may need not to carry out the IP data decryption, redundancy check, fec decoder operation.
210:, the IP packet is sent to corresponding IP data service application layer process program according to the type of each data cell that comprises in each data segment header;
Above-mentioned application layer process program can be: WEB browser, multimedia player etc.
According to basic principle of the present invention, the foregoing description can also have multiple mapping mode, for example:
If each data cell of the pairing IP data service of certain IP data service sequence number all has identical IP version number, source IP address, purpose IP address, compression type, encryption type, the redundancy check type, the FEC type then can only comprise a data cell attribute in the above-mentioned IP data service description list; In other words, with the attribute of identical data cell attribute as the IP data service.