Summary of the invention
In order to solve a plurality of CM V in the prior art very easily produce data collision simultaneously when GW2 sends uplink information problem, the invention provides the method that time slicing and conflict are kept out of the way in a kind of cable TV transmission network network, specifically may further comprise the steps:
Steps A: GW2 carries out burst to the time, and regularly issue the broadcast frame that comprises the time slicing parameter and give all CM_V that link to each other, described time slicing parameter comprises time slot width, the total number of time slot and timeslot number synchronization character, the total number of described time slot refers to allow CM_V to seize uploads the number of time slots of Frame, is to be provided with according to the CM_V quantity that GW2 reality is connected; After receiving the Frame that certain CM_V sends, send acknowledgement frame to this CM_V, comprise the hardware address of this CM_V and the data frame sequence number that receives in the described acknowledgement frame, also comprise a sign that is used for representing whether to receive the correct data frame;
Step B: described CM_V regularly detects the acknowledgement frame that receives, and judge according to the sign in the acknowledgement frame that receives and to send whether success last time, if do not have, then from the Frame that needs resend with verification and two bytes of CSC verification in randomly draw one or more bits and make up, generate a new time slot sequence number, and seize time slot according to described new time slot sequence number and send described Frame.
Described GW2 will be divided into up timeslice and downgoing time sheet the time, described GW2 sends broadcast frame to all CM_V that link to each other in described downgoing time sheet, and to described CM_V transmission reply data frame, described CM_V sends Frame to described GW2 in described up timeslice.
The Frame that GW2 receives described in the described steps A is to seize a time slot in the timeslot number synchronization character of described CM_V from the broadcast frame of receiving to send.
Described new time slot sequence number for from described Frame with verification and CSC verification randomly draw bit and make up generation.
Beneficial effect of the present invention mainly shows:
1, by resending Frame to generating new time slot sequence number after time slicing and the data collision, the probability that data are collided has once more dropped to minimum, has guaranteed the high efficiency of data double-way transmission.
2, adopt from verification, CSC verification randomly draw the new time slot sequence number that bit makes up generation, identical probability is very little.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
GW2 and CM_V adopt time slicing and seize slotted mode and carry out communication among the present invention.GW2 regularly sends broadcast data down to CM_V, and responds the reply data frame after receiving the Frame that CM_V sends.The total number that has comprised time slot width and time slot in the downlink broadcast frame, CM_V uploads data and gives GW2 in the time slot that allows to upload, data collision takes place after, employing is seized the mode that time slot sends Frame again by newly-generated time slot sequence number, substantially the possibility of having avoided data to collide once more, realized conflicting and kept out of the way, can reach very high accuracy, improved the efficient of data double-way transmission.
Referring to Fig. 2, the invention provides time slicing and the method for conflicting and keeping out of the way in a kind of cable TV transmission network network, the step below at first carrying out:
Step 101:GW2 at first carries out burst to the time, be divided into uplink information timeslice and downlink information timeslice in the time slicing, the uplink information timeslice is used for CM_V and sends Frame to GW2, and the downgoing time sheet is used for GW2 and sends broadcast frame and reply data frame to CM_V.
The included timeslot number of uplink information timeslice and downlink information timeslice can be provided with as required.For example, the uplink information timeslice is set comprises 4 time slots, the downlink information timeslice comprises 1 time slot, and then a timeslice includes 5 time slots altogether in the cycle; And be defined in each timeslice in the cycle, and initial is the downlink information timeslice, and then interior the 1st time slot of timeslice cycle is the downlink information timeslice, and 4 time slots in back are the uplink information timeslice, as shown in Figure 3.
Step 102:GW2 timed sending broadcast frame is given descending all CM_V that link to each other with it, has set each parameter of timeslice in the broadcast frame, and is as shown in table 1, wherein comprised parameters such as time slot width and the total number of time slot.
Time slot width |
The total number of time slot |
The timeslot number synchronization character |
Maximum is uploaded frame length |
The other system configuration information |
CM V hardware address |
The transmitting power word |
Growth data |
2Byte |
2Byte |
2Byte |
1Byte |
4Byte |
3Byte |
2Byte |
4Byte |
Table 1
Time slot width is meant each time slots width, for example, is made as 4ms, and referring to Fig. 3, then CM_V sends a Frame to GW2, and perhaps GW2 sends a broadcast frame/reply data frame to CM_V, all finishes within 4ms.The total number of time slot is meant and allows CM_V to seize the number of time slots of uploading Frame that the CM_V quantity that is connected according to GW2 reality is provided with usually.For example, suppose to connect 10 CM_V below the GW2, it is 10 that the total number of time slot then is set, and all CM_V select one of them time slot to send Frame to GW2 with preempt-mode.The timeslot number synchronization character is meant employed all time slot sequence numbers when GW2 allows CM_V upwards to send Frame, is generally a plurality of.
Carry out following steps then:
Step 103: referring to Fig. 4, domestic consumer's terminal STB1 (not drawing among the figure) sends up video request program information and other business information to CM_V1, and these business information are transferred to CM_V1 by existing communication protocol.
After step 104:CM_V1 receives the business information that STB1 sends, choose a time slot one time slot 2 in the timeslot number synchronization character of from the broadcast frame of receiving, stipulating according to fixing rule, seize and send the business information Frame to GW2.
After step 105:GW2 receives the Frame that CM_V1 sends, in the downgoing time sheet, send corresponding acknowledgement frame to CM_V1 through verification, analysis back, in the acknowledgement frame except that hardware address that comprises CM_V1 and the information such as data frame sequence number that receive, also comprise a sign, be used for expression whether to receive the correct data frame.For example, the correct data frame is received in 1 expression, and error data frame is received in 0 expression.
Step 106:CM_V1 regularly detects the acknowledgement frame of reception, and according to the sign in the acknowledgement frame, judges whether transmission last time is successful, if repeating transmission is then seized in success.Suppose that CM_V2 has also seized time slot 2 and upwards sent Frame, and data collision then takes place when CM_V1 sends Frame, so the algorithm that CM_V1 and CM_V2 need adopt conflict to keep out of the way comes the retransmission data frame, detailed process is as follows:
CM_V1 from the Frame that needs resend with verification and two bytes of CSC verification in, take out one or more bits at random, form a new time slot sequence number, seize this time slot then and resend Frame and give GW2.For example, choose a bit " 1 ", obtaining the time slot sequence number is 1, and then CM_V1 seizes time slot 1 and resends Frame.If CM_V2 chooses two bits " 1 ", the new time slot sequence number of composition is 3, and then CM_V2 seizes time slot 3 and resends Frame.Because CM_V1 is different with the new time slot sequence number that CM_V2 generates, therefore data collision can not take place once more.
Because the data of uplink information Frame have nothing in common with each other, and with verification and CSC verification very big difference is arranged also, and randomly draw bit, the probability that the new time slot sequence number of Zu Chenging is identical is minimum like this, thereby has avoided data collision once more.
Further, a threshold value can also be set, the number of times that restriction is retransmitted.For example, it is 5 that threshold value is set, and then a Frame sends 5 times does not continuously all have success, and CM_V can abandon this Frame.
Above-described embodiment, the present invention embodiment a kind of more preferably just, the common variation that those skilled in the art carries out in the technical solution of the present invention scope and replacing all should be included in protection scope of the present invention.