Summary of the invention
In correlation technique, for the modification of the transmission channel table of base station, employing be first to delete old passage list item, then set up the new tunnel list item, but, deleted at old passage list item, and in the time period that the new tunnel list item not yet is successfully established, for message repeating, the base station will be because can not find passage list item corresponding to message retransmission failure problem and the present invention is proposed, for this reason, the invention provides a kind of transmission channel table amending method and device, to address the above problem at least.
According to an aspect of the present invention, provide a kind of transmission channel table amending method, having comprised: in the transmission channel table, obtained the first passage list item of business; According to the first passage list item, in the transmission channel table, set up the second channel list item of business, wherein first passage list item and second channel list item all comprise distinguishing identifier, and distinguishing identifier is used for first passage list item and second channel list item are distinguished; Deletion first passage list item.
Preferably, distinguishing identifier is a bit in index in first passage list item and second channel list item, distinguishing identifier by value be 0 and value be that 1 pair of first passage list item and second channel list item are distinguished.
Preferably, distinguishing identifier is the highest-order bit in first passage list item and second channel list item.
Preferably, according to the first passage list item, in the transmission channel table, the second channel list item of setting up business comprises: the distinguishing identifier negate in the index in the first passage list item obtains the distinguishing identifier in the index in the second channel list item; Other bit outside division sign in the corresponding index of filling in the first passage list item of other bit outside division sign in index in the second channel list item; Fill in the message repeating destination address in attribute in the second channel list item, form the second channel list item of business.
Preferably, for downlink message, the message repeating destination address is the transport address of switching target small area place baseband board; For uplink message, the message repeating destination address is the transport address of handed over service gateway.
Preferably, according to the first passage list item, in the transmission channel table, after setting up the second channel list item of business, also comprise: obtain the TEID in the message to be forwarded that receives; Other bit outside other bit outside division in TEID sign and the sign of the division in the index in the transmission list item in the transmission channel table is mated; According to matching result, E-Packet.
Preferably, according to matching result, E-Packeting comprises: in the situation that matching result is the second channel list item, E-Packet according to the second channel list item.
Preferably, according to matching result, E-Packeting comprises: in the situation that matching result is first passage list item and second channel list item, E-Packet according to first passage list item and/or second channel list item.
According to a further aspect in the invention, provide a kind of transmission channel table modifier, having comprised: acquisition module, be used at the transmission channel table, obtain the first passage list item of business; Set up module, be used for according to the first passage list item, in the transmission channel table, set up the second channel list item of business, wherein first passage list item and second channel list item all comprise distinguishing identifier, and distinguishing identifier is used for first passage list item and second channel list item are distinguished; Removing module is used for deletion first passage list item.
Preferably, distinguishing identifier is a bit in index in first passage list item and second channel list item, distinguishing identifier by value be 0 and value be that 1 pair of first passage list item and second channel list item are distinguished.
The present invention adopts and first sets up new tunnel list item (being the second channel list item), delete again old passage list item (being the first passage list item), thereby can avoid old passage list item to delete and time vacuum that the new tunnel list item is not built, the success of assurance message repeating, simultaneously, within the time that coexists of old passage list item and new tunnel list item, the message matching way that the present invention proposes has effectively guaranteed the correct forwarding of message.
Embodiment
Need to prove, in the situation that do not conflict, embodiment and the feature in embodiment in the application can make up mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
The invention provides a kind of transmission channel table amending method, Fig. 1 is the flow chart according to the transmission channel table amending method of the embodiment of the present invention, as shown in Figure 1, comprises that following step S102 is to step S106.
Step S102 in the transmission channel table, obtains the first passage list item of business.
Step S104 according to the first passage list item, in the transmission channel table, sets up the second channel list item of business, and wherein first passage list item and second channel list item all comprise distinguishing identifier, and distinguishing identifier is used for first passage list item and second channel list item are distinguished.
Step S106, deletion first passage list item.
In correlation technique, modification for the transmission channel table of base station, what adopt is first to delete old passage list item, set up again the new tunnel list item, but, deleted at old passage list item, and in the time period that the new tunnel list item not yet is successfully established, for message repeating, the base station will be because can not find passage list item corresponding to message retransmission failure.In the embodiment of the present invention, what adopt is first to set up new tunnel list item (being the second channel list item), delete again old passage list item (being the first passage list item), thereby can avoid old passage list item to delete and time vacuum that the new tunnel list item is not built, the success of assurance message repeating, simultaneously, within the time that coexists of old passage list item and new tunnel list item, the message matching way that the present invention proposes has effectively guaranteed the correct forwarding of message.
Wherein, distinguishing identifier is a bit in index in first passage list item and second channel list item, distinguishing identifier by value be 0 and value be that 1 pair of first passage list item and second channel list item are distinguished.In this preferred embodiment, by a bit, first passage list item and second channel list item are distinguished, its implementation is easy, reliable.
Preferably, distinguishing identifier is the highest-order bit in first passage list item and second channel list item.In this preferred embodiment, by the highest-order bit, first passage list item and second channel list item are distinguished, its implementation is easy, reliable.
Preferably, step S104 comprises: the distinguishing identifier negate in the index in the first passage list item obtains the distinguishing identifier in the index in the second channel list item; Other bit outside division sign in the corresponding index of filling in the first passage list item of other bit outside division sign in index in the second channel list item; Fill in the message repeating destination address in attribute in the second channel list item, form the second channel list item of business.In this preferred embodiment, by distinguishing identifier and message repeating destination address are combined, thereby form the second channel list item of business, its implementation is easy, reliable.
Wherein, for downlink message, the message repeating destination address is the transport address of switching target small area place baseband board; For uplink message, the message repeating destination address is the transport address of handed over service gateway.
After step S104, said method also comprises: obtain the TEID in the message to be forwarded that receives; Other bit outside other bit outside division in TEID sign and the sign of the division in the index in the transmission list item in the transmission channel table is mated; According to matching result, E-Packet.This preferred embodiment has been described the process of message repeating, by other bit and transmission channel table outside passage list item division sign are mated, its matching process accurately, efficient, thereby can guarantee that message repeating ground is accurate, efficiently.
Wherein, according to matching result, E-Packeting comprises following two kinds of situations:
(1) in the situation that matching result is the second channel list item, E-Packet according to the second channel list item.Namely the list item according to up-to-date interpolation carries out message repeating.
(2) in the situation that matching result is first passage list item and second channel list item, E-Packet according to first passage list item and/or second channel list item.In this preferred embodiment, in the situation that match first passage list item and second channel list item, can adopt arbitrarily first passage list item or second channel list item or its combination to E-Packet, thereby further guarantee the message repeating success.
Fig. 2 is the flow chart of transmission channel table amending method according to the preferred embodiment of the invention, as shown in Figure 2, when revising the transmission channel list item in the base station, adopts and first sets up new passage list item, then the mode of deleting old passage list item.Concrete steps are as follows:
Step S202 determines to need to revise the passage contents in table.
Step S204 according to old passage list item transmission tunnel unique identification TEID, will form the new tunnel list item after new/old channel table sign negate.
Step S206 sets up the new tunnel list item.
Step S208 deletes old passage list item.
In order to support the modification pattern of base-station transmission passage list item shown in Figure 2, the invention provides mode as shown in Figure 3 and Figure 4, expanded the matching way of transmission channel list item and the occupation mode of TEID, be specifically described as follows.
Fig. 3 is the flow chart of base station message repeating according to the preferred embodiment of the invention, as shown in Figure 3, comprises the steps:
Step S302, the base station receives the message that needs forwarding.
Step S304, channel table coupling is carried out in the base station, with remove in heading TEID sign new/the bit position of old passage list item outside, the TEID index in all the other bit positions and base station passage list item compares, the match is successful execution in step S306; It fails to match execution in step S308.
Step S306 carries out message repeating according to the channel table information of coupling.For example after the base station receives message, the low 31bit of TEID in heading and the low 31bit of base station passage list item TEID index are mated, after the match is successful, carry out message repeating.
Step S308 abandons this message.
Fig. 4 is the schematic diagram of TEID extended mode according to the preferred embodiment of the invention, as shown in Figure 4, with the same transmission of a certain bit bit-identify tunnel of 32bit TEID new/old passage list item.For example use 32bit TEID the same transmission of the highest bit bit representation tunnel new/old passage list item, the highest bit value is to represent that old passage list item, value were to represent new passage list item at 1 o'clock at 0 o'clock.
Need to prove, when the message of needs forwarding matched new, old two list items simultaneously in the channel table of base station, the forwarding of message can forward according to any list item in new/old list item; Also can carry out message repeating according to the list item of up-to-date interpolation.
In the present invention, the deletion of old passage list item is after the new tunnel list item is successfully established, so just guaranteed to exist all the time in the channel table of base station the passage list item with the coupling that need to E-Packet, guaranteed in handoff procedure, can it fails to match causes packet loss due to the passage list item.
Be described in detail below in conjunction with the implementation procedure of example to the embodiment of the present invention.
Preferred embodiment one
This preferred embodiment emphasis is described when switching between baseband board in the base station, and the base station is for the alter mode of passage list item.When occuring in network to switch between baseband board in the base station, the transmission channel list item is revised in the base station, in the following way:
(1) obtain the transport address of switching target small area place baseband board.
(2) TEID in passage list item old according to business, structure new tunnel list item TEID.Concrete make is as follows:
A. the TEID in the old passage list item of the business of obtaining;
B. after TEID in old passage list item being identified the bit negate of new/old passage list item, form the new passage list item of this business.
(3) set up the new passage list item of this business in the base-station transmission channel table, the downlink data forwarding address of new passage list item is filled in the transport address of the switching target small area place baseband board that gets.
(4) delete the old passage list item of this business.
When the downlink message of core net transmission is received in the base station, carry out in the following way coupling and the message repeating of passage list item.
(1) obtain core net and send the TEID that carries in the downlink message head
(2) with carry in the downlink message head in TEID except identification service new/all the other bits and base station channel table the bit of old passage list item mate.If the match is successful, carry out message repeating according to downlink message destination address in this passage list item; If it fails to match, abandon this message.
Preferred embodiment two
This preferred embodiment emphasis is described when between the base station, the X2 mouth switches across SGW, and the base station is for the alter mode of passage list item.When in network, between the generation base station, the X2 mouth switched across SGW, the transmission channel list item was revised in the base station, in the following way:
(1) obtain the transport address of switching target SGW.
(2) TEID in passage list item old according to business, structure new tunnel list item TEID.Concrete make is as follows:
A. the TEID in the old passage list item of the business of obtaining;
B. after TEID in old passage list item being identified the bit negate of new/old passage list item, form the new passage list item of this business.
(3) set up the new passage list item of this business in the base-station transmission channel table, the upstream data forwarding address of new passage list item is filled in the transport address of the switching SGW that gets.
(4) delete the old passage list item of this business.
When the uplink message of terminal transmission is received in the base station, carry out in the following way coupling and the message repeating of passage list item.
(1) obtain terminal and send the TEID that carries in the uplink message head.
(2) with carry in the uplink message head in TEID except identification service new/all the other bits and base station channel table the bit of old passage list item mate.If the match is successful, carry out message repeating according to uplink message destination address in this passage list item; If it fails to match, abandon this message.
Preferred embodiment three
Fig. 5 is the structured flowchart of the system of transmission channel table modification according to the preferred embodiment of the invention, and as shown in Figure 5, system provided by the invention comprises: base station 52, SGW54 and terminal 56.Wherein, base station 52 comprises transmission channel table maintenance module 522 and transmission channel list item matching module 524, and transmission channel list item matching module 524 is used for message repeating.
The main maintenance of being responsible for base station passage list item of transmission channel table maintenance module 522, when needing in handoff procedure to revise the content of base station passage list item, transmission channel table maintenance module adopts first sets up the new tunnel list item, delete again the mode of old passage list item, guarantee that the base station receives the message of core net or terminal transmission at any time, all can successfully match correct passage list item.
Transmission channel list item matching module 524 is mainly used in when message repeating, according to the TEID that carries in heading, carries out the coupling of forwarding channel list item in the channel table of base station.Concrete matching way be with in heading TEID except sign new/the sign bit of old channel table, all the other bits of TEID and the TEID index of base station passage list item are mated.
Need to prove, can carry out in the computer system such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
The embodiment of the present invention provides a kind of transmission channel table modifier, and this transmission channel table modifier can be used for realizing above-mentioned transmission channel table amending method.Fig. 6 is the structured flowchart according to the transmission channel table modifier of the embodiment of the present invention, as shown in Figure 6, comprises the first acquisition module 61, sets up module 62 and removing module 63.The below is elaborated to its structure.
The first acquisition module 61 is used at the transmission channel table, obtains the first passage list item of business; Set up module 62, be connected to the first acquisition module 61, for the first passage list item that obtains according to the first acquisition module 61, in the transmission channel table, set up the second channel list item of business, wherein first passage list item and second channel list item all comprise distinguishing identifier, and distinguishing identifier is used for first passage list item and second channel list item are distinguished; Removing module 63 is connected to and sets up module 62, is used for deletion first passage list item after setting up module 62 to set up the second channel list item.
Preferably, distinguishing identifier is a bit in index in first passage list item and second channel list item, distinguishing identifier by value be 0 and value be that 1 pair of first passage list item and second channel list item are distinguished.
More preferably, distinguishing identifier is the highest-order bit in first passage list item and second channel list item.
Fig. 7 is the structured flowchart one of transmission channel table modifier according to the preferred embodiment of the invention, as shown in Figure 7, sets up module 62 and comprises that first processes submodule 622 and the second processing submodule 624.
Wherein, first processes submodule 622, is connected to the first acquisition module 61, and the distinguishing identifier negate in the index of the first passage list item that the first acquisition module 61 is obtained obtains the distinguishing identifier in the index in the second channel list item; Second processes submodule 624, is connected to the first processing module 622, is used for filling in the message repeating destination address in the attribute of second channel list item, forms the second channel list item of business.
Preferably, for downlink message, the message repeating destination address is the transport address of switching target small area place baseband board; For uplink message, the message repeating destination address is the transport address of handed over service gateway.
Fig. 8 is the structured flowchart two of transmission channel table modifier according to the preferred embodiment of the invention, as shown in Figure 8, above-mentioned transmission channel table modifier also comprises: the second acquisition module 64, and be connected to and set up module 62, be used for obtaining the passage list item of the message to be forwarded that receives; Matching module 65 is connected to the second acquisition module 64, and the attribute and the transmission channel table that are used for passage list item that the second acquisition module 64 is obtained mate; Forwarding module 66 is connected to matching module 65, is used for the matching result according to matching module 65, E-Packets.
Fig. 9 is the structured flowchart three of transmission channel table modifier according to the preferred embodiment of the invention, as shown in Figure 9, forwarding module 66 comprises: first forwards submodule 662, be connected to matching module 65, be used in the situation that the matching result of matching module 65 is second channel list items, E-Packet according to the second channel list item.
Figure 10 is the structured flowchart four of transmission channel table modifier according to the preferred embodiment of the invention, as shown in figure 10, forwarding module 66 comprises: second forwards submodule 664, be connected to matching module 65, be used in the situation that the matching result of matching module 65 is first passage list item and second channel list item, E-Packet according to first passage list item and/or second channel list item.
Need to prove, the transmission channel table modifier of describing in device embodiment is corresponding to above-mentioned embodiment of the method, and its concrete implementation procedure had been carried out detailed description in embodiment of the method, do not repeat them here.
In sum, according to the abovementioned embodiments of the present invention, provide know clearly a kind of transmission channel table amending method and device.The present invention adopts and first sets up new tunnel list item (being the second channel list item), delete again old passage list item (being the first passage list item), thereby can avoid old passage list item to delete and time vacuum that the new tunnel list item is not built, the success of assurance message repeating, simultaneously, within the time that coexists of old passage list item and new tunnel list item, the message matching way that the present invention proposes has effectively guaranteed the correct forwarding of message.
obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step being made into the single integrated circuit module realizes.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is only the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.