CN106304397A - A kind of method setting up tunnel and relevant device - Google Patents
A kind of method setting up tunnel and relevant device Download PDFInfo
- Publication number
- CN106304397A CN106304397A CN201510250248.8A CN201510250248A CN106304397A CN 106304397 A CN106304397 A CN 106304397A CN 201510250248 A CN201510250248 A CN 201510250248A CN 106304397 A CN106304397 A CN 106304397A
- Authority
- CN
- China
- Prior art keywords
- tunnel
- request
- flag bit
- user terminal
- haap
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 101000611240 Homo sapiens Low molecular weight phosphotyrosine protein phosphatase Proteins 0.000 claims abstract description 164
- 102100040323 Low molecular weight phosphotyrosine protein phosphatase Human genes 0.000 claims abstract description 164
- 230000004044 response Effects 0.000 claims abstract description 154
- 230000005540 biological transmission Effects 0.000 claims description 42
- 230000002776 aggregation Effects 0.000 claims description 9
- 238000004220 aggregation Methods 0.000 claims description 9
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005538 encapsulation Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域 technical field
本发明涉及通信技术领域,尤其是涉及一种建立隧道的方法及相关设备。 The present invention relates to the technical field of communication, in particular to a method for establishing a tunnel and related equipment.
背景技术 Background technique
在用户终端和混合链路聚合节点(英文:Hybrid access aggregation point,简称:HAAP)之间通常会创建两条隧道,其中一条是固网隧道,另一条是无线网隧道,当业务数据的带宽小于所述固网隧道的带宽时,所述业务数据全部通过所述固网隧道传输,而当业务数据的带宽大于所述固网隧道的带宽时,所述业务数据通过所述固网隧道和所述无线网隧道共同传输,其中所述无线网隧道用于传输所述业务数据中,超出所述固网隧道的带宽的数据。 Two tunnels are usually created between the user terminal and the hybrid link aggregation point (English: Hybrid access aggregation point, HAAP for short), one of which is a fixed network tunnel and the other is a wireless network tunnel. When the bandwidth of business data is less than When the bandwidth of the fixed network tunnel is lower than the bandwidth of the fixed network tunnel, the service data is all transmitted through the fixed network tunnel, and when the bandwidth of the service data is greater than the bandwidth of the fixed network tunnel, the service data is transmitted through the fixed network tunnel and the fixed network tunnel. The wireless network tunnel is used for common transmission, wherein the wireless network tunnel is used to transmit data exceeding the bandwidth of the fixed network tunnel among the service data.
然而,目前并没有对这两条隧道的保护措施,导致数据传输的可靠性较低。例如当两条隧道都发生故障时,将会导致业务数据全部无法传输,又例如当业务数据的带宽大于所述固网隧道的带宽并且所述无线网隧道发生故障时,将会导致应在无线网隧道上传输的数据无法传输。 However, there are currently no protection measures for these two tunnels, resulting in low reliability of data transmission. For example, when both tunnels fail, all service data cannot be transmitted. Data transmitted over the network tunnel cannot be transmitted.
发明内容 Contents of the invention
本发明解决的技术问题在于提供一种建立隧道的方法及相关设备,以实现对固网隧道或者无线网隧道进行保护,从而提高数据传输的可靠性。 The technical problem solved by the present invention is to provide a method for establishing a tunnel and related equipment, so as to realize the protection of the fixed network tunnel or the wireless network tunnel, thereby improving the reliability of data transmission.
为此,本发明解决技术问题的技术方案是: For this reason, the technical scheme that the present invention solves technical problem is:
第一方面,本发明实施例提供了一种建立隧道的方法,包括: In a first aspect, an embodiment of the present invention provides a method for establishing a tunnel, including:
用户终端向混合链路聚合节点HAAP发送第一隧道建立请求,所述第一隧道建立请求的保留字段中携带第一标志位,所述第一标志位表示建立主隧道; The user terminal sends a first tunnel establishment request to the hybrid link aggregation node HAAP, and the reserved field of the first tunnel establishment request carries a first flag bit, and the first flag bit indicates establishment of a main tunnel;
所述用户终端接收所述HAAP发送的第一隧道建立应答,所述第一隧道建立应答的保留字段中携带所述第一标志位,以建立第一隧道; The user terminal receives the first tunnel establishment response sent by the HAAP, and the reserved field of the first tunnel establishment response carries the first flag bit to establish a first tunnel;
所述用户终端向所述HAAP发送第二隧道建立请求,所述第二隧道建立请求的保留字段中携带第二标志位,所述第二标志位表示建立备隧道; The user terminal sends a second tunnel establishment request to the HAAP, and the reserved field of the second tunnel establishment request carries a second flag bit, and the second flag bit indicates that a standby tunnel is established;
所述用户终端接收所述HAAP发送的第二隧道建立应答,所述第二隧道建立应答的保留字段中携带所述第二标志位,以建立第二隧道; The user terminal receives the second tunnel establishment response sent by the HAAP, and the reserved field of the second tunnel establishment response carries the second flag bit to establish a second tunnel;
其中,所述第一隧道建立请求和所述第二隧道建立请求均用于请求建立第一类型的隧道,所述第一类型的隧道为固网隧道或者无线网隧道。 Wherein, both the first tunnel establishment request and the second tunnel establishment request are used to request establishment of a first type of tunnel, and the first type of tunnel is a fixed network tunnel or a wireless network tunnel.
在第一方面的第一种可能的实现方式中,还包括: In the first possible implementation manner of the first aspect, it also includes:
所述用户终端向所述HAAP发送第三隧道建立请求,所述第三隧道建立请求的保留字段中携带所述第一标志位; The user terminal sends a third tunnel establishment request to the HAAP, and the reserved field of the third tunnel establishment request carries the first flag bit;
所述用户终端接收所述HAAP发送的第三隧道建立应答,所述第三隧道建立应答的保留字段中携带所述第一标志位,以建立第三隧道; The user terminal receives the third tunnel establishment response sent by the HAAP, and the reserved field of the third tunnel establishment response carries the first flag bit to establish a third tunnel;
所述用户终端向所述HAAP发送第四隧道建立请求,所述第四隧道建立请求的保留字段中携带所述第二标志位; The user terminal sends a fourth tunnel establishment request to the HAAP, and the reserved field of the fourth tunnel establishment request carries the second flag bit;
所述用户终端接收所述HAAP发送的第四隧道建立应答,所述第四隧道建立应答的保留字段中携带所述第二标志位,以建立第四隧道; The user terminal receives the fourth tunnel establishment response sent by the HAAP, and the reserved field of the fourth tunnel establishment response carries the second flag bit to establish a fourth tunnel;
其中,所述第三隧道建立请求和所述第四隧道建立请求均用于请求建立第二类型的隧道,所述第二类型的隧道为固网隧道或者无线网隧道,所述第一类型的隧道与所述第二类型的隧道为两种不同类型的隧道。 Wherein, both the third tunnel establishment request and the fourth tunnel establishment request are used to request establishment of a second type of tunnel, the second type of tunnel is a fixed network tunnel or a wireless network tunnel, and the first type of The tunnel and the second type of tunnel are two different types of tunnels.
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,还包括: In combination with the first possible implementation of the first aspect, the second possible implementation of the first aspect further includes:
当所述第三隧道故障时,所述用户终端将在所述第三隧道上传输的业务数据通过所述第四隧道传输。 When the third tunnel fails, the user terminal transmits the service data transmitted on the third tunnel through the fourth tunnel.
结合第一方面、第一方面的第一种至第二种任一种可能的实现方式,在第一方面的第三种可能的实现方式中,还包括: In combination with the first aspect and any one of the first to second possible implementations of the first aspect, the third possible implementation of the first aspect further includes:
当所述第一隧道故障时,所述用户终端将在所述第一隧道上传输的业务数据通过所述第二隧道传输。 When the first tunnel fails, the user terminal transmits the service data transmitted on the first tunnel through the second tunnel.
结合第一方面、第一方面的第一种至第二种任一种可能的实现方式,在第一方面的第四种可能的实现方式中,所述用户终端接收所述HAAP发送的第一隧道建立应答和接收所述HAAP发送的第二隧道建立应答之后,还包括: With reference to the first aspect and any of the first to second possible implementations of the first aspect, in a fourth possible implementation of the first aspect, the user terminal receives the first After the tunnel establishment response and receiving the second tunnel establishment response sent by the HAAP, it also includes:
所述用户终端在所述用户终端上保存的第一用户表上记录第一表项和第二表项,所述第一表项中记录所述第一隧道为主隧道的信息,所述第二表项中记录所述第二隧道为备隧道的信息。 The user terminal records a first entry and a second entry in a first user table saved on the user terminal, the first entry records information about the first tunnel as the main tunnel, and the first entry records information about the primary tunnel. The information that the second tunnel is the standby tunnel is recorded in the second entry.
第二方面,本发明实施例提供了一种建立隧道的方法,包括: In a second aspect, an embodiment of the present invention provides a method for establishing a tunnel, including:
混合链路聚合节点HAAP接收用户终端发送的第一隧道建立请求,所述第一隧道建立请求的保留字段中携带第一标志位,所述第一标志位用于表示建立主隧道; The hybrid link aggregation node HAAP receives the first tunnel establishment request sent by the user terminal, and the reserved field of the first tunnel establishment request carries a first flag bit, and the first flag bit is used to indicate that a main tunnel is established;
所述HAAP向所述用户终端发送第一隧道建立应答以建立第一隧道,所述第一隧道建立应答的保留字段中携带所述第一标志位; The HAAP sends a first tunnel establishment response to the user terminal to establish a first tunnel, and the reserved field of the first tunnel establishment response carries the first flag bit;
所述HAAP接收所述用户终端发送的第二隧道建立请求,所述第二隧道建立请求的保留字段中携带第二标志位,所述第二标志位用于表示建立备隧道; The HAAP receives the second tunnel establishment request sent by the user terminal, and the reserved field of the second tunnel establishment request carries a second flag bit, and the second flag bit is used to indicate that a standby tunnel is established;
所述HAAP向所述用户终端发送第二隧道建立应答以建立第二隧道,所述第二隧道建立应答的保留字段中携带所述第二标志位; The HAAP sends a second tunnel establishment response to the user terminal to establish a second tunnel, and the reserved field of the second tunnel establishment response carries the second flag bit;
其中,所述第一隧道建立请求和所述第二隧道建立请求均用于请求建立第一类型的隧道,所述第一类型的隧道为固网隧道或者无线网隧道。 Wherein, both the first tunnel establishment request and the second tunnel establishment request are used to request establishment of a first type of tunnel, and the first type of tunnel is a fixed network tunnel or a wireless network tunnel.
在第二方面的第一种可能的实现方式中,还包括: In the first possible implementation manner of the second aspect, it also includes:
所述HAAP接收所述用户终端发送的第三隧道建立请求,所述第三隧道建立请求的保留字段中携带所述第一标志位; The HAAP receives a third tunnel establishment request sent by the user terminal, and the reserved field of the third tunnel establishment request carries the first flag bit;
所述HAAP向所述用户终端发送第三隧道建立应答以建立第三隧道,所述第三隧道建立应答的保留字段中携带所述第一标志位; The HAAP sends a third tunnel establishment response to the user terminal to establish a third tunnel, and the reserved field of the third tunnel establishment response carries the first flag bit;
所述HAAP接收所述用户终端发送的第四隧道建立请求,所述第四隧道建立请求的保留字段中携带所述第二标志位; The HAAP receives the fourth tunnel establishment request sent by the user terminal, and the reserved field of the fourth tunnel establishment request carries the second flag bit;
所述HAAP向所述用户终端发送第四隧道建立应答以建立第四隧道,所述第四隧道建立应答的保留字段中携带所述第二标志位; The HAAP sends a fourth tunnel establishment response to the user terminal to establish a fourth tunnel, and the reserved field of the fourth tunnel establishment response carries the second flag bit;
其中,所述第三隧道建立请求和所述第四隧道建立请求均用于请求建立第二类型的隧道,所述第二类型的隧道为固网隧道或者无线网隧道,所述第一类型的隧道与所述第二类型的隧道为两种不同类型的隧道。 Wherein, both the third tunnel establishment request and the fourth tunnel establishment request are used to request establishment of a second type of tunnel, the second type of tunnel is a fixed network tunnel or a wireless network tunnel, and the first type of The tunnel and the second type of tunnel are two different types of tunnels.
结合第二方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,还包括: In combination with the first possible implementation of the second aspect, the second possible implementation of the first aspect further includes:
当所述第三隧道故障时,所述HAAP将在所述第三隧道上传输的业务数据通过所述第四隧道传输。 When the third tunnel fails, the HAAP transmits the service data transmitted on the third tunnel through the fourth tunnel.
结合第二方面、第二方面的第一种至第二种任一种可能的实现方式,在第二方面的第三种可能的实现方式中,还包括: In combination with the second aspect and any one of the first to second possible implementations of the second aspect, the third possible implementation of the second aspect further includes:
当所述第一隧道故障时,所述HAAP将在所述第一隧道上传输的业务数据通过所述第二隧道传输。 When the first tunnel fails, the HAAP transmits the service data transmitted on the first tunnel through the second tunnel.
结合第二方面、第二方面的第一种至第二种任一种可能的实现方式,在第二方面的第四种可能的实现方式中,所述HAAP接收所述用户终端发送的第一隧道建立请求和接收所述用户终端发送的第二隧道建立请求之后,还包括: With reference to the second aspect and any one of the first to second possible implementation manners of the second aspect, in a fourth possible implementation manner of the second aspect, the HAAP receives the first After the tunnel establishment request and receiving the second tunnel establishment request sent by the user terminal, further include:
所述HAAP在所述HAAP上保存的第二用户表上记录第三表项和第四表项,所述第三表项中记录所述第一隧道为主隧道的信息,所述第四表项中记录所述第二隧道为备隧道的信息。 The HAAP records a third entry and a fourth entry in the second user table stored on the HAAP, the third entry records the information of the first tunnel as the main tunnel, and the fourth table The item records information that the second tunnel is a standby tunnel.
第三方面,本发明实施例提供了一种用户终端,包括: In a third aspect, an embodiment of the present invention provides a user terminal, including:
第一发送单元,用于向混合链路聚合节点HAAP发送第一隧道建立请求,所述第一隧道建立请求的保留字段中携带第一标志位,所述第一标志位表示建立主隧道; The first sending unit is configured to send a first tunnel establishment request to the hybrid link aggregation node HAAP, wherein the reserved field of the first tunnel establishment request carries a first flag bit, and the first flag bit indicates establishment of a main tunnel;
第一接收单元,用于接收所述HAAP发送的第一隧道建立应答,所述第一隧道建立应答的保留字段中携带所述第一标志位,以建立第一隧道; A first receiving unit, configured to receive a first tunnel establishment response sent by the HAAP, where the reserved field of the first tunnel establishment response carries the first flag bit, so as to establish a first tunnel;
第二发送单元,用于向所述HAAP发送第二隧道建立请求,所述第二隧道建立请求的保留字段中携带第二标志位,所述第二标志位表示建立备隧道; The second sending unit is configured to send a second tunnel establishment request to the HAAP, where the reserved field of the second tunnel establishment request carries a second flag bit, and the second flag bit indicates establishment of a standby tunnel;
第二接收单元,用于接收所述HAAP发送的第二隧道建立应答,所述第二隧道建立应答的保留字段中携带所述第二标志位,以建立第二隧道; The second receiving unit is configured to receive a second tunnel establishment response sent by the HAAP, wherein the reserved field of the second tunnel establishment response carries the second flag bit, so as to establish a second tunnel;
其中,所述第一隧道建立请求和所述第二隧道建立请求均用于请求建立第一类型的隧道,所述第一类型的隧道为固网隧道或者无线网隧道。 Wherein, both the first tunnel establishment request and the second tunnel establishment request are used to request establishment of a first type of tunnel, and the first type of tunnel is a fixed network tunnel or a wireless network tunnel.
在第三方面的第一种可能的实现方式中,还包括: In the first possible implementation manner of the third aspect, it also includes:
第三发送单元,用于向所述HAAP发送第三隧道建立请求,所述第三隧道建立请求的保留字段中携带所述第一标志位; a third sending unit, configured to send a third tunnel establishment request to the HAAP, where the reserved field of the third tunnel establishment request carries the first flag bit;
第三接收单元,用于接收所述HAAP发送的第三隧道建立应答,所述第三隧道建立应答的保留字段中携带所述第一标志位,以建立第三隧道; A third receiving unit, configured to receive a third tunnel establishment response sent by the HAAP, wherein the reserved field of the third tunnel establishment response carries the first flag bit, so as to establish a third tunnel;
第四发送单元,用于向所述HAAP发送第四隧道建立请求,所述第四隧道建立请求的保留字段中携带所述第二标志位; A fourth sending unit, configured to send a fourth tunnel establishment request to the HAAP, where the reserved field of the fourth tunnel establishment request carries the second flag bit;
第三接收单元,用于接收所述HAAP发送的第四隧道建立应答,所述第四隧道建立应答的保留字段中携带所述第二标志位,以建立第四隧道; A third receiving unit, configured to receive a fourth tunnel establishment response sent by the HAAP, wherein the reserved field of the fourth tunnel establishment response carries the second flag bit, so as to establish a fourth tunnel;
其中,所述第三隧道建立请求和所述第四隧道建立请求均用于请求建立第二类型的隧道,所述第二类型的隧道为固网隧道或者无线网隧道,所述第一类型的隧道与所述第二类型的隧道为两种不同类型的隧道。 Wherein, both the third tunnel establishment request and the fourth tunnel establishment request are used to request establishment of a second type of tunnel, the second type of tunnel is a fixed network tunnel or a wireless network tunnel, and the first type of The tunnel and the second type of tunnel are two different types of tunnels.
结合第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,还包括: In combination with the first possible implementation of the third aspect, the second possible implementation of the third aspect further includes:
第一传输单元,用于当所述第三隧道故障时,将在所述第三隧道上传输的业务数据通过所述第四隧道传输。 The first transmission unit is configured to transmit the service data transmitted on the third tunnel through the fourth tunnel when the third tunnel fails.
结合第三方面、第三方面的第一种至第二种任一种可能的实现方式,在第三方面的第三种可能的实现方式中,还包括: In combination with the third aspect and any one of the first to second possible implementations of the third aspect, the third possible implementation of the third aspect further includes:
第二传输单元,用于当所述第一隧道故障时,所述用户终端将在所述第一隧道上传输的业务数据通过所述第二隧道传输。 The second transmission unit is configured to transmit, by the user terminal, the service data transmitted on the first tunnel through the second tunnel when the first tunnel fails.
结合第三方面、第三方面的第一种至第二种任一种可能的实现方式,在第三方面的第四种可能的实现方式中,还包括: In combination with the third aspect and any of the first to second possible implementations of the third aspect, the fourth possible implementation of the third aspect further includes:
记录单元,用于在所述第一接收单元接收所述HAAP发送的第一隧道建立应答和所述第二接收单元接收所述HAAP发送的第二隧道建立应答之后,在所述用户终端上保存的第一用户表上记录第一表项和第二表项,所述第一表项中记录所述第一隧道为主隧道的信息,所述第二表项中记录所述第二隧道为备隧道的信息。 a recording unit, configured to save on the user terminal after the first receiving unit receives the first tunnel establishment response sent by the HAAP and the second receiving unit receives the second tunnel establishment response sent by the HAAP The first entry and the second entry are recorded in the first user table of the first entry, the information of the first tunnel as the main tunnel is recorded in the first entry, and the information of the second tunnel is recorded in the second entry as Information about the backup tunnel.
第四方面,本发明实施例提供了一种HAAP,包括: In a fourth aspect, an embodiment of the present invention provides a HAAP, including:
第一接收单元,用于接收用户终端发送的第一隧道建立请求,所述第一隧道建立请求的保留字段中携带第一标志位,所述第一标志位用于表示建立主隧道; The first receiving unit is configured to receive a first tunnel establishment request sent by a user terminal, wherein a reserved field of the first tunnel establishment request carries a first flag bit, and the first flag bit is used to indicate establishment of a main tunnel;
第一发送单元,用于向所述用户终端发送第一隧道建立应答以建立第一隧道,所述第一隧道建立应答的保留字段中携带所述第一标志位; A first sending unit, configured to send a first tunnel establishment response to the user terminal to establish a first tunnel, where a reserved field of the first tunnel establishment response carries the first flag bit;
第二接收单元,用于接收所述用户终端发送的第二隧道建立请求,所述第二隧道建立请求的保留字段中携带第二标志位,所述第二标志位用于表示建立备隧道; The second receiving unit is configured to receive a second tunnel establishment request sent by the user terminal, where a reserved field of the second tunnel establishment request carries a second flag bit, and the second flag bit is used to indicate that a standby tunnel is established;
第二发送单元,用于向所述用户终端发送第二隧道建立应答以建立第二隧道,所述第二隧道建立应答的保留字段中携带所述第二标志位; a second sending unit, configured to send a second tunnel establishment response to the user terminal to establish a second tunnel, where a reserved field of the second tunnel establishment response carries the second flag bit;
其中,所述第一隧道建立请求和所述第二隧道建立请求均用于请求建立第一类型的隧道,所述第一类型的隧道为固网隧道或者无线网隧道。 Wherein, both the first tunnel establishment request and the second tunnel establishment request are used to request establishment of a first type of tunnel, and the first type of tunnel is a fixed network tunnel or a wireless network tunnel.
在第四方面的第一种可能的实现方式中,还包括: In the first possible implementation manner of the fourth aspect, it also includes:
第三接收单元,用于接收所述用户终端发送的第三隧道建立请求,所述第三隧道建立请求的保留字段中携带所述第一标志位; A third receiving unit, configured to receive a third tunnel establishment request sent by the user terminal, where a reserved field of the third tunnel establishment request carries the first flag bit;
第三发送单元,用于向所述用户终端发送第三隧道建立应答以建立第三隧道,所述第三隧道建立应答的保留字段中携带所述第一标志位; A third sending unit, configured to send a third tunnel establishment response to the user terminal to establish a third tunnel, where a reserved field of the third tunnel establishment response carries the first flag bit;
第四接收单元,用于接收所述用户终端发送的第四隧道建立请求,所述第四隧道建立请求的保留字段中携带所述第二标志位; A fourth receiving unit, configured to receive a fourth tunnel establishment request sent by the user terminal, where a reserved field of the fourth tunnel establishment request carries the second flag bit;
第四发送单元,用于向所述用户终端发送第四隧道建立应答以建立第四隧道,所述第四隧道建立应答的保留字段中携带所述第二标志位; A fourth sending unit, configured to send a fourth tunnel establishment response to the user terminal to establish a fourth tunnel, where a reserved field of the fourth tunnel establishment response carries the second flag bit;
其中,所述第三隧道建立请求和所述第四隧道建立请求均用于请求建立第二类型的隧道,所述第二类型的隧道为固网隧道或者无线网隧道,所述第一类型的隧道与所述第二类型的隧道为两种不同类型的隧道。 Wherein, both the third tunnel establishment request and the fourth tunnel establishment request are used to request establishment of a second type of tunnel, the second type of tunnel is a fixed network tunnel or a wireless network tunnel, and the first type of The tunnel and the second type of tunnel are two different types of tunnels.
结合第四方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,还包括: In combination with the first possible implementation of the fourth aspect, the second possible implementation of the third aspect further includes:
第一传输单元,用于当所述第三隧道故障时,将在所述第三隧道上传输的业务数据通过所述第四隧道传输。 The first transmission unit is configured to transmit the service data transmitted on the third tunnel through the fourth tunnel when the third tunnel fails.
结合第四方面、第四方面的第一种至第二种任一种可能的实现方式,在第四方面的第三种可能的实现方式中,还包括: In combination with the fourth aspect and any one of the first to second possible implementations of the fourth aspect, the third possible implementation of the fourth aspect further includes:
第二传输单元,用于当所述第一隧道故障时,将在所述第一隧道上传输的业务数据通过所述第二隧道传输。 The second transmission unit is configured to transmit the service data transmitted on the first tunnel through the second tunnel when the first tunnel fails.
结合第四方面、第四方面的第一种至第二种任一种可能的实现方式,在第四方面的第四种可能的实现方式中,还包括: In combination with the fourth aspect and any one of the first to second possible implementations of the fourth aspect, the fourth possible implementation of the fourth aspect further includes:
记录单元,用于在所述第一接收单元接收所述用户终端发送的第一隧道建立请求和所述第二接收单元接收所述用户终端发送的第二隧道建立请求之后,在所述HAAP上保存的第二用户表上记录第三表项和第四表项,所述第三表项中记录所述第一隧道为主隧道的信息,所述第四表项中记录所述第二隧道为备隧道的信息。 a recording unit, configured to record on the HAAP after the first receiving unit receives the first tunnel establishment request sent by the user terminal and the second receiving unit receives the second tunnel establishment request sent by the user terminal A third entry and a fourth entry are recorded in the saved second user table, the information of the first tunnel as the main tunnel is recorded in the third entry, and the information of the second tunnel is recorded in the fourth entry Information about the standby tunnel.
通过上述技术方案可知,用户终端向HAAP发送第一隧道建立请求和第二隧道建立请求,并且接收到所述HAAP发送的第一隧道建立应答和第二隧道建立应答,其中本发明实施例通过协议扩展的方式在所述第一隧道建立请求和所述第一隧道建立应答的保留字段中携带了第一标志位,而所述第一标志位表示建立主隧道,从而在所述用户终端和所述HAAP之间建立了作为主隧道的第一隧道;并且本发明实施例通过协议扩展的方式在所述第二隧道建立请求和所述第二隧道建立应答的保留字段中携带了第二标志位,而所述第二标志位表示建立备隧道,从而在所述用户终端和所述HAAP之间建立了作为备隧道的第二隧道。由于所述第一隧道建立请求和所述第二隧道建立请求均用于请求建立固网隧道或者无线网隧道,可见本发明实施例实现了在所述用户终端和所述HAAP之间建立两条分别为主和备的固网隧道,或者两条分别为主和备的无线网隧道,实现了对固网隧道或者无线网隧道的保护,从而提高数据传输的可靠性。 It can be seen from the above technical solution that the user terminal sends the first tunnel establishment request and the second tunnel establishment request to the HAAP, and receives the first tunnel establishment response and the second tunnel establishment response sent by the HAAP, wherein the embodiment of the present invention uses the protocol In an extended manner, a first flag is carried in the reserved fields of the first tunnel establishment request and the first tunnel establishment response, and the first flag indicates that a main tunnel is established, so that the user terminal and the The first tunnel as the main tunnel is established between the HAAPs; and the embodiment of the present invention carries a second flag bit in the reserved field of the second tunnel establishment request and the second tunnel establishment response through protocol extension , and the second flag indicates that a backup tunnel is established, so that a second tunnel serving as a backup tunnel is established between the user terminal and the HAAP. Since the first tunnel establishment request and the second tunnel establishment request are both used to request the establishment of a fixed network tunnel or a wireless network tunnel, it can be seen that the embodiment of the present invention implements the establishment of two tunnels between the user terminal and the HAAP. The main and backup fixed network tunnels, or two main and backup wireless network tunnels respectively, realize the protection of the fixed network tunnel or wireless network tunnel, thereby improving the reliability of data transmission.
附图说明 Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本 发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。 In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1为本发明实施例提供的一种建立隧道的方法实施例的流程示意图; FIG. 1 is a schematic flowchart of an embodiment of a method for establishing a tunnel provided by an embodiment of the present invention;
图2为本发明实施例提供的一种扩展的GRE头的格式; Fig. 2 is the format of a kind of extended GRE head that the embodiment of the present invention provides;
图3为本发明实施例提供的另一种建立隧道的方法实施例的流程示意图; FIG. 3 is a schematic flowchart of another method embodiment for establishing a tunnel provided by an embodiment of the present invention;
图4为本发明实施例提供的另一种建立隧道的方法实施例的流程示意图 Fig. 4 is a schematic flowchart of another method embodiment for establishing a tunnel provided by the embodiment of the present invention
图5为本发明实施例提供的一种用户终端的装置实施例的结构示意图; FIG. 5 is a schematic structural diagram of an apparatus embodiment of a user terminal provided by an embodiment of the present invention;
图6为本发明实施例提供的一种HAAP的装置实施例的结构示意图; FIG. 6 is a schematic structural diagram of an HAAP device embodiment provided by an embodiment of the present invention;
图7为本发明实施例提供的另一种用户终端的装置实施例的结构示意图; FIG. 7 is a schematic structural diagram of another user terminal device embodiment provided by an embodiment of the present invention;
图8为本发明实施例提供的另一种HAAP的装置实施例的结构示意图。 Fig. 8 is a schematic structural diagram of another HAAP device embodiment provided by an embodiment of the present invention.
具体实施方式 detailed description
在用户终端和HAAP之间通常会创建两条隧道,其中一条是固网隧道,例如数字用户线(英文:Digital Subscriber Line,简称:DSL)隧道,另一条是无线网隧道,例如长期演进(英文:Long Term Evolution,简称:LTE)隧道。当业务数据的带宽小于所述固网隧道的带宽时,所述业务数据全部通过所述固网隧道传输。而当业务数据的带宽大于所述固网隧道的带宽时,所述业务数据通过所述固网隧道和所述无线网隧道共同传输,其中所述无线网隧道用于传输所述业务数据中,超出所述固网隧道的带宽的数据。例如当业务数据的带宽为100兆(M),DSL隧道的带宽为80M,LTE隧道的带宽为40M,可见所述业务数据的带宽大于DSL隧道的带宽,因此所述业务数据中80M带宽的数据通过DSL隧道传输,而超过DSL隧道的带宽的数据,即剩余20M带宽的数据则通过LTE隧道传输,从而在利用现有网络设备资源的情况下,最大限度利用无线带宽提升了用户带宽体验,全面提升运营商竞争力。 Two tunnels are usually established between the user terminal and the HAAP, one of which is a fixed network tunnel, such as a digital subscriber line (English: Digital Subscriber Line, DSL for short) tunnel, and the other is a wireless network tunnel, such as the Long Term Evolution (English : Long Term Evolution, referred to as: LTE) tunnel. When the bandwidth of the service data is smaller than the bandwidth of the fixed network tunnel, all the service data is transmitted through the fixed network tunnel. And when the bandwidth of the service data is greater than the bandwidth of the fixed network tunnel, the service data is jointly transmitted through the fixed network tunnel and the wireless network tunnel, wherein the wireless network tunnel is used to transmit the service data, Data exceeding the bandwidth of the fixed network tunnel. For example, when the bandwidth of the service data is 100 megabytes (M), the bandwidth of the DSL tunnel is 80M, and the bandwidth of the LTE tunnel is 40M, it can be seen that the bandwidth of the service data is greater than the bandwidth of the DSL tunnel, so the data of the 80M bandwidth in the service data The data that exceeds the bandwidth of the DSL tunnel, that is, the data with the remaining 20M bandwidth, is transmitted through the LTE tunnel, so that the existing network equipment resources are utilized, and the wireless bandwidth is maximized to improve the user bandwidth experience. Improve the competitiveness of operators.
然而,目前对数据传输的保护措施仅仅是当固网隧道故障时,利用无线网隧道进行传输,当无线网隧道故障时,利用固网隧道进行传输,并没有对这两条隧道的保护措施,导致数据传输的可靠性较低。例如,当两条隧道都发生故障时,将会导致业务数据全部无法传输,又例如当业务数据的带宽大 于所述固网隧道的带宽并且所述无线网隧道发生故障时,将会导致应在无线网隧道上传输的数据无法传输。 However, the current protection measures for data transmission are only to use the wireless network tunnel for transmission when the fixed network tunnel fails, and use the fixed network tunnel for transmission when the wireless network tunnel fails. There are no protection measures for these two tunnels. This leads to lower reliability of data transmission. For example, when both tunnels fail, all service data cannot be transmitted; Data transmitted over the wireless network tunnel cannot be transmitted.
而在本发明实施例中,建立隧道的方法及相关设备,以实现对固网隧道或者无线网隧道进行保护,从而提高数据传输的可靠性。 However, in the embodiment of the present invention, the tunnel establishment method and related equipment are used to protect the fixed network tunnel or the wireless network tunnel, thereby improving the reliability of data transmission.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”或“第四”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。 The terms "first", "second", "third" or "fourth" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, not to describe a specific order or sequentially. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
请参阅图1,本发明实施例提供了建立隧道的一种方法实施例,本实施例包括: Referring to Fig. 1, an embodiment of the present invention provides an embodiment of a method for establishing a tunnel, and this embodiment includes:
101:用户终端向HAAP发送第一隧道建立请求,所述第一隧道建立请求的保留字段中携带第一标志位,所述第一标志位表示建立主隧道。其中,所述第一隧道建立请求用于请求建立第一类型的隧道,所述第一类型的隧道为固网隧道或者无线网隧道。 101: The user terminal sends a first tunnel establishment request to the HAAP, where a reserved field of the first tunnel establishment request carries a first flag bit, and the first flag bit indicates establishment of a primary tunnel. Wherein, the first tunnel establishment request is used to request establishment of a first type of tunnel, and the first type of tunnel is a fixed network tunnel or a wireless network tunnel.
本发明实施例中的任一隧道建立请求,以及任一隧道建立应答可以为扩展的通用路由封装协议(英文:Generic Routing Encapsulation,简称:GRE)报文。其中,可以具体对GRE报文的GRE头进行扩展,在GRE头中的保留字段中携带第一标志位或者第二标志位。其中关于GRE可以参见标准RFC1701,这里不再赘述。 Any tunnel establishment request and any tunnel establishment response in the embodiment of the present invention may be an extended Generic Routing Encapsulation (English: Generic Routing Encapsulation, GRE for short) message. Wherein, the GRE header of the GRE message may be specifically extended, and the first flag bit or the second flag bit is carried in a reserved field in the GRE header. Regarding the GRE, reference may be made to the standard RFC1701, which will not be repeated here.
下面本发明实施例提供一种扩展后的GRE头的具体格式。如图2所示,扩展后的GRE头包括多个字段,其中前三行所包括的字段的定义可见标准 RFC1701,下面对后两行所包括的字段进行具体说明。 The following embodiments of the present invention provide a specific format of the extended GRE header. As shown in FIG. 2 , the extended GRE header includes multiple fields, the definitions of the fields included in the first three lines can be found in the standard RFC1701, and the fields included in the last two lines will be specifically described below.
消息类型(MsgType)字段表示GRE报文的类型,例如该字段为1表示为隧道建立请求,该字段为2表示为隧道建立应答。T字段表示隧道类型,例如该字段为1表示为DSL隧道,该字段为0为LTE隧道。保留(M RES)字段中可以携带第一标志位或者第二标志位,例如该字段的一位低比特位M为1表示为主隧道,该字段的一位低比特位M为0表示为备隧道。属性类型(Attribute Type)字段表示数据值(Data Value)字段携带的数据的类型。数据长度(Data Length)字段表示Data Value字段携带的数据的长度。Data Value字段用于携带数据值。因此,所述第一隧道建立请求具体可以为第一GRE报文,所述第一GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段为1或者0,M RES字段的一位低比特位M为1。 The message type (MsgType) field indicates the type of the GRE message. For example, if this field is 1, it means a tunnel establishment request, and if this field is 2, it means a tunnel establishment response. The T field indicates the tunnel type. For example, if this field is 1, it means a DSL tunnel, and if this field is 0, it means an LTE tunnel. The reserved (M RES) field can carry the first flag bit or the second flag bit. For example, if a low bit M of this field is 1, it means the main tunnel, and if a low bit M of this field is 0, it means the backup tunnel. tunnel. The attribute type (Attribute Type) field indicates the type of data carried by the Data Value (Data Value) field. The data length (Data Length) field indicates the length of data carried in the Data Value field. The Data Value field is used to carry data values. Therefore, the first tunnel establishment request may specifically be the first GRE message, and the GRE header of the first GRE message may adopt a specific structure as shown in Figure 2, wherein the T field is 1 or 0, and the M RES field One of the lower bits M is 1.
需要说明的是,在所述第一隧道建立请求中,可以携带请求建立的第一隧道的源互联网协议(英文:Internet Protocol,简称:IP)地址,所述HAAP接收到所述第一隧道建立请求后,可以根据对该源IP地址进行认证,如果认证通过则向所述用户终端返回第一隧道建立应答,并分配相应隧道标签。并且,所述HAAP在接收所述第一隧道建立请求之后,还可以在所述HAAP上保存的第二用户表上记录第三表项,所述第三表项上中记录有所述第一隧道为主隧道的信息。 It should be noted that, in the first tunnel establishment request, the source Internet Protocol (English: Internet Protocol, IP for short) address of the first tunnel requested to be established may be carried, and the HAAP receives the first tunnel establishment request. After the request, the source IP address may be authenticated, and if the authentication is passed, a first tunnel establishment response is returned to the user terminal, and a corresponding tunnel label is assigned. Moreover, after the HAAP receives the first tunnel establishment request, it may also record a third entry in the second user table saved on the HAAP, and the third entry records the first tunnel establishment request. Tunnel information about the primary tunnel.
102:所述用户终端接收所述HAAP发送的第一隧道建立应答,所述第一隧道建立应答的保留字段中携带所述第一标志位,以建立所述第一隧道。 102: The user terminal receives a first tunnel establishment response sent by the HAAP, where a reserved field of the first tunnel establishment response carries the first flag bit, so as to establish the first tunnel.
其中,所述第一隧道建立应答具体可以为第二GRE报文,所述第二GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第一GRE报文的T字段携带的信息相同,M RES字段的一位低比特位M为1。 Wherein, the first tunnel establishment response may specifically be a second GRE message, and the GRE header of the second GRE message may adopt a specific structure as shown in Figure 2, wherein the T field is identical to the first GRE message The information carried in the T field of the M RES field is the same, and the lower bit M of the M RES field is 1.
需要说明的是,在所述用户终端接收到所述第一隧道建立应答后,可以分配相应隧道标签。所述用户终端接收所述HAAP发送的第一隧道建立应答之后,所述用户终端还可以在所述用户终端上保存的第一用户表上记录第一表项,所述第一表项中记录有所述第一隧道为主隧道的信息。 It should be noted that after the user terminal receives the first tunnel establishment response, it may allocate a corresponding tunnel label. After the user terminal receives the first tunnel establishment response sent by the HAAP, the user terminal may also record a first entry in a first user table saved on the user terminal, and record in the first entry There is information about the primary tunnel of the first tunnel.
103:所述用户终端向所述HAAP发送第二隧道建立请求,所述第二隧道建立请求的保留字段中携带第二标志位,所述第二标志位表示建立备隧道。 其中,所述第一隧道建立请求用于请求建立第一类型的隧道,即所述第一隧道建立请求和所述第二隧道建立请求用于请求建立同一类型的隧道。 103: The user terminal sends a second tunnel establishment request to the HAAP, where a reserved field of the second tunnel establishment request carries a second flag bit, and the second flag bit indicates that a standby tunnel is established. Wherein, the first tunnel establishment request is used to request to establish a first type of tunnel, that is, the first tunnel establishment request and the second tunnel establishment request are used to request to establish a same type of tunnel.
其中,所述第一隧道建立请求具体可以为第三GRE报文,所述第三GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第一GRE报文的T字段携带的信息相同,M RES字段的一位低比特位M为0。 Wherein, the first tunnel establishment request may specifically be a third GRE message, and the GRE header of the third GRE message may adopt a specific structure as shown in Figure 2, wherein the T field is the same as that of the first GRE message The information carried in the T field of the M RES field is the same, and the lower bit M of the M RES field is 0.
需要说明的是,在所述第二隧道建立请求中,可以携带请求建立的第二隧道的源IP地址,所述HAAP接收到所述第二隧道建立请求后,可以对该源IP地址进行认证,如果认证通过则向所述用户终端返回第二隧道建立应答,并分配相应隧道标签。并且,所述HAAP在接收所述第二隧道建立请求之后,还可以在所述HAAP上保存的第二用户表上记录第四表项,所述第四表项上中记录有所述第二隧道为备隧道的信息。 It should be noted that, in the second tunnel establishment request, the source IP address of the second tunnel requested to be established may be carried, and the HAAP may authenticate the source IP address after receiving the second tunnel establishment request , if the authentication passes, return a second tunnel establishment response to the user terminal, and assign a corresponding tunnel label. Moreover, after the HAAP receives the second tunnel establishment request, it may also record a fourth entry in the second user table saved on the HAAP, and the fourth entry records the second Tunnel is the information of the standby tunnel.
104:所述用户终端接收所述HAAP发送的第二隧道建立应答,所述第二隧道建立应答的保留字段中携带所述第二标志位,以建立所述第二隧道。 104: The user terminal receives a second tunnel establishment response sent by the HAAP, where a reserved field of the second tunnel establishment response carries the second flag bit, so as to establish the second tunnel.
其中,所述第二隧道建立应答具体可以为第四GRE报文,所述第四GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第一GRE报文的T字段携带的信息相同,M RES字段的一位低比特位M为0。 Wherein, the second tunnel establishment response may specifically be a fourth GRE message, and the GRE header of the fourth GRE message may adopt a specific structure as shown in Figure 2, wherein the T field is the same as that of the first GRE message The information carried in the T field of the M RES field is the same, and the lower bit M of the M RES field is 0.
需要说明的是,所述用户终端接收到所述第二隧道建立应答后,可以分配相应隧道标签。所述用户终端接收所述HAAP发送的第二隧道建立应答之后,所述用户终端还可以在所述用户终端上保存的第一用户表上记录第二表项,所述第二表项中记录有所述第二隧道为备隧道的信息。 It should be noted that, after receiving the second tunnel establishment response, the user terminal may allocate a corresponding tunnel label. After the user terminal receives the second tunnel establishment response sent by the HAAP, the user terminal may also record a second entry in the first user table saved on the user terminal, and record in the second entry There is information that the second tunnel is a standby tunnel.
在本发明实施例中,101和103的执行顺序不受限定,既可以以一定顺序先后执行,也可以同时执行。一种比较优选的方式是,先建立主隧道,再建立备隧道。 In this embodiment of the present invention, the execution order of 101 and 103 is not limited, and may be executed sequentially in a certain order, or may be executed simultaneously. A more preferable manner is to establish the primary tunnel first, and then establish the standby tunnel.
通过上述技术方案可知,用户终端向HAAP发送第一隧道建立请求和第二隧道建立请求,并且接收到所述HAAP发送的第一隧道建立应答和第二隧道建立应答,其中本发明实施例通过协议扩展的方式在所述第一隧道建立请求和所述第一隧道建立应答的保留字段中携带了第一标志位,而所述第一标志位表示建立主隧道,从而在所述用户终端和所述HAAP之间建立了作为主隧道的第一隧道;并且本发明实施例通过协议扩展的方式在所述第二隧道建 立请求和所述第二隧道建立应答的保留字段中携带了第二标志位,而所述第二标志位表示建立备隧道,从而在所述用户终端和所述HAAP之间建立了作为备隧道的第二隧道。由于所述第一隧道建立请求和所述第二隧道建立请求均用于请求建立固网隧道或者无线网隧道,可见本发明实施例实现了在所述用户终端和所述HAAP之间建立两条分别为主和备的固网隧道,或者两条分别为主和备的无线网隧道,实现了对固网隧道或者无线网隧道的保护,从而提高数据传输的可靠性。从而满足在利用现有网络设备资源的情况下,提升了混合接入(英文:Hybrid Access)技术的整体可靠性,并在不增加成本的情况下提升运营商竞争力,并且IPV4(IP第4版),IPV6(IP第6版)都支持。 It can be seen from the above technical solution that the user terminal sends the first tunnel establishment request and the second tunnel establishment request to the HAAP, and receives the first tunnel establishment response and the second tunnel establishment response sent by the HAAP, wherein the embodiment of the present invention uses the protocol In an extended manner, a first flag is carried in the reserved fields of the first tunnel establishment request and the first tunnel establishment response, and the first flag indicates that a main tunnel is established, so that the user terminal and the The first tunnel as the main tunnel is established between the HAAPs; and the embodiment of the present invention carries a second flag bit in the reserved field of the second tunnel establishment request and the second tunnel establishment response through protocol extension , and the second flag indicates that a backup tunnel is established, so that a second tunnel serving as a backup tunnel is established between the user terminal and the HAAP. Since the first tunnel establishment request and the second tunnel establishment request are both used to request the establishment of a fixed network tunnel or a wireless network tunnel, it can be seen that the embodiment of the present invention implements the establishment of two tunnels between the user terminal and the HAAP. The main and backup fixed network tunnels, or two main and backup wireless network tunnels respectively, realize the protection of the fixed network tunnel or wireless network tunnel, thereby improving the reliability of data transmission. In order to meet the requirements of using existing network equipment resources, the overall reliability of hybrid access (English: Hybrid Access) technology is improved, and the competitiveness of operators is improved without increasing costs, and IPV4 (IP 4th Version), IPV6 (IP version 6) are supported.
下面通过一个具体例子说明本发明实施例中如何实现对固网隧道和无线网隧道这两条隧道的保护措施。假设固网隧道为DSL隧道,无线网隧道为LTE隧道。当主DSL隧道和主LTE隧道都故障时,业务数据可以利用备DSL隧道或者备LTE隧道进行传输。当业务数据的带宽大于DSL隧道的带宽,并且LTE隧道发生故障时,超出DSL隧道的带宽的数据也可以利用备DSL隧道或者备LTE隧道进行传输。 How to realize the protection measures for the two tunnels of the fixed network tunnel and the wireless network tunnel in the embodiment of the present invention will be described below through a specific example. Assume that the fixed network tunnel is a DSL tunnel, and the wireless network tunnel is an LTE tunnel. When both the primary DSL tunnel and the primary LTE tunnel fail, service data can be transmitted through the standby DSL tunnel or the standby LTE tunnel. When the bandwidth of service data is greater than the bandwidth of the DSL tunnel and the LTE tunnel fails, the data exceeding the bandwidth of the DSL tunnel can also be transmitted through the standby DSL tunnel or the standby LTE tunnel.
需要说明的是,本发明实施例中的所述第一隧道和所述第二隧道一般为双向隧道,既可以从所述用户终端,例如家庭网关(英文:Home Gateway,简称:HG)向所述HAAP传输业务数据,也可以从所述HAAP向所述用户终端传输业务数据。 It should be noted that the first tunnel and the second tunnel in the embodiment of the present invention are generally two-way tunnels, which can be transmitted from the user terminal, such as a home gateway (English: Home Gateway, HG for short) to all The HAAP transmits service data, or transmits service data from the HAAP to the user terminal.
实际上,本发明实施例为了实现对固网隧道和无线网隧道更好的保护,可以建立两条固网隧道和两条无线网隧道,其中具有包括一条主固网隧道,一条备固网隧道,一条主无线网隧道和一条备无线网隧道。下面通过一个实施例加以具体说明。 In fact, in order to achieve better protection for the fixed network tunnel and the wireless network tunnel in the embodiment of the present invention, two fixed network tunnels and two wireless network tunnels can be established, including a main fixed network tunnel and a backup fixed network tunnel. , a primary wireless network tunnel and a backup wireless network tunnel. The following will be specifically described through an embodiment.
请参阅图3,本发明实施例提供了建立隧道的另一种方法实施例,本实施例中,除了图1所示的实施例中的101至104,还包括301至304。其中101至104的相关内容请参阅图1所示的实施例,这里不再赘述,下面具体说明301至304。 Referring to FIG. 3 , an embodiment of the present invention provides another embodiment of a method for establishing a tunnel. In this embodiment, in addition to 101 to 104 in the embodiment shown in FIG. 1 , 301 to 304 are also included. For the relevant content of 101 to 104, please refer to the embodiment shown in FIG. 1 , which will not be repeated here, and 301 to 304 will be described in detail below.
301:所述用户终端向所述HAAP发送第三隧道建立请求,所述第三隧道建立请求的保留字段中携带所述第一标志位。 301: The user terminal sends a third tunnel establishment request to the HAAP, where a reserved field of the third tunnel establishment request carries the first flag bit.
其中,所述第三隧道建立请求用于请求建立第二类型的隧道,所述第二类型的隧道为固网隧道或者无线网隧道,所述第一类型的隧道与所述第二类型的隧道为两种不同类型的隧道。例如所述第一隧道建立请求用于请求建立DSL隧道,所述第三隧道建立请求可以用于请求建立LTE隧道。 Wherein, the third tunnel establishment request is used to request establishment of a second type of tunnel, the second type of tunnel is a fixed network tunnel or a wireless network tunnel, and the first type of tunnel and the second type of tunnel There are two different types of tunnels. For example, the first tunnel establishment request is used to request establishment of a DSL tunnel, and the third tunnel establishment request may be used to request establishment of an LTE tunnel.
所述第一隧道建立请求具体可以为第五GRE报文,所述第五GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第一GRE报文的T字段携带的信息不同,例如所述第一GRE报文中,T字段为1,则所述第五GRE报文中,T字段为0。M RES字段的一位低比特位M为1。 The first tunnel establishment request may specifically be the fifth GRE message, and the GRE header of the fifth GRE message may adopt a specific structure as shown in Figure 2, wherein the T field is the same as the T field of the first GRE message. The information carried by the fields is different. For example, in the first GRE message, the T field is 1, and in the fifth GRE message, the T field is 0. The lower bit M of the M RES field is 1.
需要说明的是,在所述第三隧道建立请求中,可以携带请求建立的第三隧道的源IP地址,所述HAAP接收到所述第三隧道建立请求后,可以对该源IP地址进行认证,如果认证通过则向所述用户终端返回第三隧道建立应答,并分配相应隧道标签。并且,所述HAAP在接收所述第三隧道建立请求之后,还可以在所述HAAP上保存的第二用户表上记录第五表项,所述第五表项上中记录有所述第三隧道为主隧道的信息。 It should be noted that, in the third tunnel establishment request, the source IP address of the third tunnel requested to be established may be carried, and the HAAP may authenticate the source IP address after receiving the third tunnel establishment request , if the authentication passes, return a third tunnel establishment response to the user terminal, and allocate a corresponding tunnel label. Moreover, after the HAAP receives the third tunnel establishment request, it may also record a fifth entry in the second user table saved on the HAAP, and the fifth entry records the third tunnel entry. Tunnel information about the primary tunnel.
302:所述用户终端接收所述HAAP发送的第三隧道建立应答,所述第三隧道建立应答的保留字段中携带所述第一标志位,以建立第三隧道。 302: The user terminal receives a third tunnel establishment response sent by the HAAP, where a reserved field of the third tunnel establishment response carries the first flag bit, so as to establish a third tunnel.
其中,所述第三隧道建立应答具体可以为第六GRE报文,所述第六GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第五GRE报文的T字段携带的信息相同,M RES字段的一位低比特位M为1。 Wherein, the third tunnel establishment response may specifically be a sixth GRE message, and the GRE header of the sixth GRE message may adopt a specific structure as shown in Figure 2, wherein the T field is the same as that of the fifth GRE message The information carried in the T field of the M RES field is the same, and the lower bit M of the M RES field is 1.
需要说明的是,所述用户终端接收到所述第三隧道建立应答后,可以分配相应隧道标签。所述用户终端接收所述HAAP发送的第三隧道建立应答之后,所述用户终端还可以在所述用户终端上保存的第一用户表上记录第六表项,所述第六表项中记录有所述第三隧道为主隧道的信息。 It should be noted that, after receiving the third tunnel establishment response, the user terminal may allocate a corresponding tunnel label. After the user terminal receives the third tunnel establishment response sent by the HAAP, the user terminal may also record a sixth entry in the first user table saved on the user terminal, and record in the sixth entry There is information about the main tunnel of the third tunnel.
303:所述用户终端向所述HAAP发送第四隧道建立请求,所述第四隧道建立请求的保留字段中携带所述第二标志位。其中,所述第四隧道建立请求用于请求建立第二类型的隧道,即所述第三隧道建立请求和所述第四隧道建立请求用于请求建立同一类型的隧道。 303: The user terminal sends a fourth tunnel establishment request to the HAAP, where a reserved field of the fourth tunnel establishment request carries the second flag bit. Wherein, the fourth tunnel establishment request is used to request to establish a second type of tunnel, that is, the third tunnel establishment request and the fourth tunnel establishment request are used to request to establish the same type of tunnel.
其中,所述第四隧道建立请求具体可以为第七GRE报文,所述第七GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第五GRE报文的T字段携带的信息相同,M RES字段的一位低比特位M为0。 Wherein, the fourth tunnel establishment request may specifically be the seventh GRE message, and the GRE header of the seventh GRE message may adopt the specific structure shown in Figure 2, wherein the T field is the same as that of the fifth GRE message The information carried in the T field of the M RES field is the same, and the lower bit M of the M RES field is 0.
需要说明的是,在所述第四隧道建立请求中,可以携带请求建立的第四隧道的源IP地址,所述HAAP接收到所述第四隧道建立请求后,可以对该源IP地址进行认证,如果认证通过则向所述用户终端返回第四隧道建立应答,并分配相应隧道标签。并且,所述HAAP在接收所述第四隧道建立请求之后,还可以在所述HAAP上保存的第二用户表上记录第七表项,所述第七表项上中记录有所述第四隧道为备隧道的信息。 It should be noted that, in the fourth tunnel establishment request, the source IP address of the fourth tunnel requested to be established may be carried, and the HAAP may authenticate the source IP address after receiving the fourth tunnel establishment request , if the authentication passes, return a fourth tunnel establishment response to the user terminal, and assign a corresponding tunnel label. Moreover, after the HAAP receives the fourth tunnel establishment request, it may also record a seventh entry in the second user table saved on the HAAP, and the seventh entry records the fourth Tunnel is information about the standby tunnel.
304:所述用户终端接收所述HAAP发送的第四隧道建立应答,所述第四隧道建立应答的保留字段中携带所述第二标志位,以建立第四隧道。 304: The user terminal receives a fourth tunnel establishment response sent by the HAAP, where a reserved field of the fourth tunnel establishment response carries the second flag bit, so as to establish a fourth tunnel.
其中,所述第三隧道建立请求和所述第四隧道建立请求均用于请求建立第二类型的隧道,所述第二类型的隧道为固网隧道或者无线网隧道,所述第一类型的隧道与所述第二类型的隧道为两种不同类型的隧道。 Wherein, both the third tunnel establishment request and the fourth tunnel establishment request are used to request establishment of a second type of tunnel, the second type of tunnel is a fixed network tunnel or a wireless network tunnel, and the first type of The tunnel and the second type of tunnel are two different types of tunnels.
其中,所述第四隧道建立应答具体可以为第八GRE报文,所述第八GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第五GRE报文的T字段携带的信息相同,M RES字段的一位低比特位M为0。 Wherein, the fourth tunnel establishment response can specifically be the eighth GRE message, and the GRE header of the eighth GRE message can adopt the specific structure shown in Figure 2, wherein the T field is the same as that of the fifth GRE message The information carried in the T field of the M RES field is the same, and the lower bit M of the M RES field is 0.
需要说明的是,所述用户终端接收到所述第四隧道建立应答后,可以分配相应隧道标签。所述用户终端接收所述HAAP发送的第四隧道建立应答之后,所述用户终端还可以在所述用户终端上保存的第一用户表上记录第八表项,所述第八表项中记录有所述第四隧道为备隧道的信息。 It should be noted that, after receiving the fourth tunnel establishment response, the user terminal may allocate a corresponding tunnel label. After the user terminal receives the fourth tunnel establishment response sent by the HAAP, the user terminal may also record an eighth entry in the first user table saved on the user terminal, and record in the eighth entry There is information that the fourth tunnel is a standby tunnel.
在本发明实施例中,101、103、301和303的执行顺序不受限定,既可以以一定顺序先后执行,也可以同时执行。一种优选的方式是,依次建立主固网隧道、备固网隧道、主无线网隧道和备无线网隧道。 In the embodiment of the present invention, the execution order of 101, 103, 301 and 303 is not limited, and may be executed sequentially in a certain order, or may be executed simultaneously. A preferred manner is to sequentially establish a main fixed network tunnel, a backup fixed network tunnel, a main wireless network tunnel and a backup wireless network tunnel.
通过上述技术方案可知,本发明实施例中用户终端和HAAP之间除了建立了第一类型的主隧道和备隧道,即第一隧道和第二隧道之外,还建立了第二类型的主隧道和备隧道,即第三隧道和第四隧道,其中第一类型和第二类型的隧道分别为固网隧道和无线网隧道,因此本发明实施例实现了建立两条固网隧道和两条无线网隧道,其中具有包括一条主固网隧道,一条备固网隧 道,一条主无线网隧道和一条备无线网隧道,提出了GRE隧道保护组的概念,对隧道故障和流量带宽切换提供了可靠的技术方案支持。 It can be known from the above technical solutions that in the embodiment of the present invention, in addition to the first type of primary tunnel and backup tunnel, that is, the first tunnel and the second tunnel, a second type of primary tunnel is also established between the user terminal and the HAAP. and backup tunnels, that is, the third tunnel and the fourth tunnel, wherein the tunnels of the first type and the second type are fixed network tunnels and wireless network tunnels respectively, so the embodiment of the present invention realizes the establishment of two fixed network tunnels and two wireless network tunnels network tunnel, which includes a main fixed network tunnel, a backup fixed network tunnel, a main wireless network tunnel and a backup wireless network tunnel. The concept of GRE tunnel protection group is proposed, which provides reliable protection against tunnel failure and traffic bandwidth switching. Technical solution support.
在上面的两个实施例中,介绍了对主隧道和备隧道的建立方式,下面具体说明如何使用主隧道和备隧道。首先从用户终端的角度进行说明。 In the above two embodiments, the method of establishing the primary tunnel and the backup tunnel is introduced, and how to use the primary tunnel and the backup tunnel will be described in detail below. Firstly, the description is made from the perspective of the user terminal.
在图1所示的实施例中,建立了所述第一隧道和所述第二隧道,其中所述第一隧道和所述第二隧道为同一类型的隧道,例如均为DSL隧道或者均为LTE隧道。由于所述第一隧道为主隧道,所述第二隧道为备隧道,因此当所述第一隧道正常时,通过所述第一隧道传输业务数据,而当所述第一隧道故障时,所述用户终端可以将在所述第一隧道上传输的业务数据通过所述第二隧道传输。 In the embodiment shown in FIG. 1, the first tunnel and the second tunnel are established, wherein the first tunnel and the second tunnel are tunnels of the same type, for example, both are DSL tunnels or both are LTE tunnel. Since the first tunnel is the primary tunnel and the second tunnel is the backup tunnel, when the first tunnel is normal, service data is transmitted through the first tunnel, and when the first tunnel fails, the The user terminal may transmit the service data transmitted on the first tunnel through the second tunnel.
在图3所示的实施例中,建立了所述第一隧道、所述第二隧道、所述第三隧道和所述第四隧道,其中所述第一隧道和所述第二隧道为同一类型的隧道,所述第三隧道和所述第四隧道为同一类型的隧道,所述第一隧道和所述第三隧道为不同类型的隧道。例如所述第一隧道和所述第二隧道均为DSL隧道,所述第三隧道和所述第四隧道均为LTE隧道。 In the embodiment shown in Fig. 3, the first tunnel, the second tunnel, the third tunnel and the fourth tunnel are established, wherein the first tunnel and the second tunnel are the same type of tunnel, the third tunnel and the fourth tunnel are of the same type of tunnel, and the first tunnel and the third tunnel are of different types of tunnels. For example, both the first tunnel and the second tunnel are DSL tunnels, and both the third tunnel and the fourth tunnel are LTE tunnels.
因此当所述第一隧道和所述第三隧道正常时,所述用户终端通过所述第一隧道和所述第三隧道传输数据。例如假设所述第一隧道为主DSL隧道,所述第三隧道为主LTE隧道,若所述业务数据的带宽小于或等于所述主DSL隧道的带宽,所述用户终端在所述主DSL隧道上传输业务数据,若所述业务数据的带宽大于所述主DSL隧道的带宽,所述用户终端在所述主DSL隧道和所述主LTE隧道上传输业务数据。 Therefore, when the first tunnel and the third tunnel are normal, the user terminal transmits data through the first tunnel and the third tunnel. For example, assuming that the first tunnel is the main DSL tunnel, and the third tunnel is the main LTE tunnel, if the bandwidth of the service data is less than or equal to the bandwidth of the main DSL tunnel, the user terminal in the main DSL tunnel If the bandwidth of the service data is greater than the bandwidth of the main DSL tunnel, the user terminal transmits service data on the main DSL tunnel and the main LTE tunnel.
当所述第一隧道故障时,所述用户终端可以将在所述第一隧道上传输的业务数据通过所述第二隧道传输。当所述第三隧道故障时,所述用户终端可以将在所述第三隧道上传输的业务数据通过所述第四隧道传输。例如假设所述第一隧道为主DSL隧道,所述第二隧道为备DSL隧道,所述第三隧道为主LTE隧道,所述第四隧道为备LTE隧道,当所述主DSL隧道故障时,将在所述主DSL隧道上传输的业务数据通过备DSL隧道传输,从而不影响LTE业务;当所述主LTE隧道故障时,将在所述主LTE隧道上传输的业务数据通过备LTE隧道传输,从而不影响DSL业务。 When the first tunnel fails, the user terminal may transmit the service data transmitted on the first tunnel through the second tunnel. When the third tunnel fails, the user terminal may transmit the service data transmitted on the third tunnel through the fourth tunnel. For example, assuming that the first tunnel is the primary DSL tunnel, the second tunnel is the backup DSL tunnel, the third tunnel is the primary LTE tunnel, and the fourth tunnel is the backup LTE tunnel, when the primary DSL tunnel fails , the service data transmitted on the main DSL tunnel is transmitted through the standby DSL tunnel, so as not to affect the LTE service; when the main LTE tunnel fails, the service data transmitted on the main LTE tunnel is transmitted through the standby LTE tunnel Transmission, so as not to affect the DSL business.
并且,当所述第一隧道从故障恢复时,所述用户终端可以使得在所述第二隧道上传输的业务数据保持在所述第二隧道上传输,从而合理减少丢包影响和切换次数。类似的,当所述第三隧道从故障恢复时,所述用户终端可以使得在所述第四隧道上传输的业务数据保持在所述第四隧道上传输。而当所述第一隧道从故障恢复时,所述用户终端也可以使得在所述第二隧道上传输的业务数据通过所述第一隧道传输,从而便于管理和维护。类似的,当所述第三隧道从故障恢复时,所述用户终端也可以使得在所述第四隧道上传输的业务数据通过所述第三隧道传输。 Moreover, when the first tunnel recovers from a failure, the user terminal can keep the service data transmitted on the second tunnel to be transmitted on the second tunnel, thereby reasonably reducing the impact of packet loss and the number of switching times. Similarly, when the third tunnel recovers from a fault, the user terminal may keep the service data transmitted on the fourth tunnel to be transmitted on the fourth tunnel. When the first tunnel recovers from a fault, the user terminal may also enable the service data transmitted on the second tunnel to be transmitted through the first tunnel, thereby facilitating management and maintenance. Similarly, when the third tunnel recovers from the failure, the user terminal may also enable the service data transmitted on the fourth tunnel to be transmitted through the third tunnel.
上面说明了用户终端如何使用主隧道和备隧道,而实际上HAAP对主隧道和备隧道的使用方式与之类似,这里不再赘述。 The above describes how the user terminal uses the primary tunnel and the backup tunnel, but in fact, HAAP uses the primary tunnel and the backup tunnel in a similar way, so it will not be repeated here.
上面的实施例从用户终端的角度介绍了本发明的建立隧道的方法,下面本发明实施例将具体从HAAP的角度对本发明实施例进行说明。 The above embodiments introduce the tunnel establishment method of the present invention from the perspective of the user terminal, and the following embodiments of the present invention will specifically describe the embodiments of the present invention from the perspective of HAAP.
请参阅图4,本发明实施例提供了建立隧道的另一种方法实施例,本实施例包括: Referring to Fig. 4, the embodiment of the present invention provides another embodiment of a method for establishing a tunnel. This embodiment includes:
401:HAAP接收用户终端发送的第一隧道建立请求,所述第一隧道建立请求的保留字段中携带第一标志位,所述第一标志位用于表示建立主隧道。 401: The HAAP receives a first tunnel establishment request sent by a user terminal, where a reserved field of the first tunnel establishment request carries a first flag bit, and the first flag bit is used to indicate establishment of a main tunnel.
402:所述HAAP向所述用户终端发送第一隧道建立应答以建立第一隧道,所述第一隧道建立应答的保留字段中携带所述第一标志位。 402: The HAAP sends a first tunnel establishment response to the user terminal to establish a first tunnel, and a reserved field of the first tunnel establishment response carries the first flag bit.
403:所述HAAP接收所述用户终端发送的第二隧道建立请求,所述第二隧道建立请求的保留字段中携带第二标志位,所述第二标志位用于表示建立备隧道。 403: The HAAP receives a second tunnel establishment request sent by the user terminal, where a reserved field of the second tunnel establishment request carries a second flag bit, and the second flag bit is used to indicate that a standby tunnel is established.
404:所述HAAP向所述用户终端发送第二隧道建立应答以建立第二隧道,所述第二隧道建立应答的保留字段中携带所述第二标志位。 404: The HAAP sends a second tunnel establishment response to the user terminal to establish a second tunnel, and a reserved field of the second tunnel establishment response carries the second flag bit.
其中,所述第一隧道建立请求和所述第二隧道建立请求均用于请求建立第一类型的隧道,所述第一类型的隧道为固网隧道或者无线网隧道。 Wherein, both the first tunnel establishment request and the second tunnel establishment request are used to request establishment of a first type of tunnel, and the first type of tunnel is a fixed network tunnel or a wireless network tunnel.
可选的,本实施例还包括: Optionally, this embodiment also includes:
所述HAAP接收所述用户终端发送的第三隧道建立请求,所述第三隧道建立请求的保留字段中携带所述第一标志位; The HAAP receives a third tunnel establishment request sent by the user terminal, and the reserved field of the third tunnel establishment request carries the first flag bit;
所述HAAP向所述用户终端发送第三隧道建立应答以建立第三隧道,所述第三隧道建立应答的保留字段中携带所述第一标志位; The HAAP sends a third tunnel establishment response to the user terminal to establish a third tunnel, and the reserved field of the third tunnel establishment response carries the first flag bit;
所述HAAP接收所述用户终端发送的第四隧道建立请求,所述第四隧道建立请求的保留字段中携带所述第二标志位; The HAAP receives the fourth tunnel establishment request sent by the user terminal, and the reserved field of the fourth tunnel establishment request carries the second flag bit;
所述HAAP向所述用户终端发送第四隧道建立应答以建立第四隧道,所述第四隧道建立应答的保留字段中携带所述第二标志位; The HAAP sends a fourth tunnel establishment response to the user terminal to establish a fourth tunnel, and the reserved field of the fourth tunnel establishment response carries the second flag bit;
其中,所述第三隧道建立请求和所述第四隧道建立请求均用于请求建立第二类型的隧道,所述第二类型的隧道为固网隧道或者无线网隧道,所述第一类型的隧道与所述第二类型的隧道为两种不同类型的隧道。 Wherein, both the third tunnel establishment request and the fourth tunnel establishment request are used to request establishment of a second type of tunnel, the second type of tunnel is a fixed network tunnel or a wireless network tunnel, and the first type of The tunnel and the second type of tunnel are two different types of tunnels.
可选的,本实施例中所述HAAP接收所述用户终端发送的第一隧道建立请求和接收所述用户终端发送的第二隧道建立请求之后,还包括: Optionally, after the HAAP in this embodiment receives the first tunnel establishment request sent by the user terminal and receives the second tunnel establishment request sent by the user terminal, it further includes:
所述HAAP在所述HAAP上保存的第二用户表上记录第三表项和第四表项,所述第三表项中记录所述第一隧道为主隧道的信息,所述第四表项中记录所述第二隧道为备隧道的信息。 The HAAP records a third entry and a fourth entry in the second user table stored on the HAAP, the third entry records the information of the first tunnel as the main tunnel, and the fourth table The item records information that the second tunnel is a standby tunnel.
可选的,本实施例还包括:当所述第三隧道故障时,所述HAAP将在所述第三隧道上传输的业务数据通过所述第四隧道传输。 Optionally, this embodiment further includes: when the third tunnel fails, the HAAP transmits the service data transmitted on the third tunnel through the fourth tunnel.
可选的,本实施例还包括:当所述第一隧道故障时,所述HAAP将在所述第一隧道上传输的业务数据通过所述第二隧道传输。 Optionally, this embodiment further includes: when the first tunnel fails, the HAAP transmits the service data transmitted on the first tunnel through the second tunnel.
本实施例与图1和图3所示的实施例分别从两个设备的角度对本发明实施例进行了介绍,本实施例的相关内容请参阅图1和图3所示的实施例,这里不再赘述。 This embodiment and the embodiment shown in FIG. 1 and FIG. 3 respectively introduce the embodiment of the present invention from the perspective of two devices. For the relevant content of this embodiment, please refer to the embodiment shown in FIG. 1 and FIG. 3 . Let me repeat.
上面对本发明实施例中的建立隧道的方法实施例进行了描述,下面将从模块化功能实体的角度对本发明实施例中的用户终端和HAAP进行描述。 The method for establishing a tunnel in the embodiment of the present invention has been described above, and the user terminal and the HAAP in the embodiment of the present invention will be described below from the perspective of modular functional entities.
请参阅图5,本发明实施例提供了用户终端500的一种装置实施例,本实施例包括:第一发送单元501、第一接收单元502、第二发送单元503和第二接收单元504。 Referring to FIG. 5 , an embodiment of the present invention provides a device embodiment of a user terminal 500 . This embodiment includes: a first sending unit 501 , a first receiving unit 502 , a second sending unit 503 and a second receiving unit 504 .
第一发送单元501,用于向HAAP发送第一隧道建立请求,所述第一隧道建立请求的保留字段中携带第一标志位,所述第一标志位表示建立主隧道。其中,所述第一隧道建立请求用于请求建立第一类型的隧道,所述第一类型 的隧道为固网隧道或者无线网隧道。 The first sending unit 501 is configured to send a first tunnel establishment request to the HAAP, where a reserved field of the first tunnel establishment request carries a first flag bit, and the first flag bit indicates establishment of a main tunnel. Wherein, the first tunnel establishment request is used to request establishment of a first type of tunnel, and the first type of tunnel is a fixed network tunnel or a wireless network tunnel.
所述第一隧道建立请求具体可以为第一GRE报文,所述第一GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段为1或者0,M RES字段的一位低比特位M为1。 The first tunnel establishment request may specifically be a first GRE message, and the GRE header of the first GRE message may take a specific structure as shown in Figure 2, wherein the T field is 1 or 0, and one of the M RES fields The lower bit M is 1.
需要说明的是,在所述第一隧道建立请求中,可以携带请求建立的第一隧道的IP地址,所述HAAP接收到所述第一隧道建立请求后,可以根据对该源IP地址进行认证,如果认证通过则向所述用户终端返回第一隧道建立应答,并分配相应隧道标签。并且,所述HAAP在接收所述第一隧道建立请求之后,还可以在所述HAAP上保存的第二用户表上记录第三表项,所述第三表项上中记录有所述第一隧道为主隧道的信息。 It should be noted that, in the first tunnel establishment request, the IP address of the first tunnel requested to be established may be carried, and after receiving the first tunnel establishment request, the HAAP may authenticate the source IP address according to , if the authentication is passed, return a first tunnel establishment response to the user terminal, and assign a corresponding tunnel label. Moreover, after the HAAP receives the first tunnel establishment request, it may also record a third entry in the second user table saved on the HAAP, and the third entry records the first tunnel establishment request. Tunnel information about the primary tunnel.
第一接收单元502,用于接收所述HAAP发送的第一隧道建立应答,所述第一隧道建立应答的保留字段中携带所述第一标志位,以建立所述第一隧道。 The first receiving unit 502 is configured to receive a first tunnel establishment response sent by the HAAP, wherein a reserved field of the first tunnel establishment response carries the first flag bit, so as to establish the first tunnel.
其中,所述第一隧道建立应答具体可以为第二GRE报文,所述第二GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第一GRE报文的T字段携带的信息相同,M RES字段的一位低比特位M为1。 Wherein, the first tunnel establishment response may specifically be a second GRE message, and the GRE header of the second GRE message may adopt a specific structure as shown in Figure 2, wherein the T field is identical to the first GRE message The information carried in the T field of the M RES field is the same, and the lower bit M of the M RES field is 1.
需要说明的是,在所述用户终端接收到所述第一隧道建立应答后,可以分配相应隧道标签。具体地,本实施例还可以包括记录单元,所述记录单元用于在第一接收单元501接收所述HAAP发送的第一隧道建立应答之后,在所述用户终端上保存的第一用户表上记录第一表项,所述第一表项中记录所述第一隧道为主隧道的信息。 It should be noted that after the user terminal receives the first tunnel establishment response, it may allocate a corresponding tunnel label. Specifically, this embodiment may further include a recording unit, the recording unit is configured to, after the first receiving unit 501 receives the first tunnel establishment response sent by the HAAP, record A first entry is recorded, where information about the first tunnel as the primary tunnel is recorded in the first entry.
第二发送单元503,用于向所述HAAP发送第二隧道建立请求,所述第二隧道建立请求的保留字段中携带第二标志位,所述第二标志位表示建立备隧道。其中,所述第一隧道建立请求用于请求建立第一类型的隧道,即所述第一隧道建立请求和所述第二隧道建立请求用于请求建立同一类型的隧道。 The second sending unit 503 is configured to send a second tunnel establishment request to the HAAP, where a reserved field of the second tunnel establishment request carries a second flag bit, and the second flag bit indicates establishment of a standby tunnel. Wherein, the first tunnel establishment request is used to request to establish a first type of tunnel, that is, the first tunnel establishment request and the second tunnel establishment request are used to request to establish a same type of tunnel.
其中,所述第一隧道建立请求具体可以为第三GRE报文,所述第三GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第一GRE报文的T字段携带的信息相同,M RES字段的一位低比特位M为0。 Wherein, the first tunnel establishment request may specifically be a third GRE message, and the GRE header of the third GRE message may adopt a specific structure as shown in Figure 2, wherein the T field is the same as that of the first GRE message The information carried in the T field of the M RES field is the same, and the lower bit M of the M RES field is 0.
需要说明的是,在所述第二隧道建立请求中,可以携带请求建立的第二隧道的源IP地址,所述HAAP接收到所述第二隧道建立请求后,可以对该源IP地址进行认证,如果认证通过则向所述用户终端返回第二隧道建立应答,并分配相应隧道标签。并且,所述HAAP在接收所述第二隧道建立请求之后,还可以在所述HAAP上保存的第二用户表上记录第四表项,所述第四表项上中记录有所述第二隧道为备隧道的信息。 It should be noted that, in the second tunnel establishment request, the source IP address of the second tunnel requested to be established may be carried, and the HAAP may authenticate the source IP address after receiving the second tunnel establishment request , if the authentication passes, return a second tunnel establishment response to the user terminal, and assign a corresponding tunnel label. Moreover, after the HAAP receives the second tunnel establishment request, it may also record a fourth entry in the second user table saved on the HAAP, and the fourth entry records the second Tunnel is information about the standby tunnel.
第二接收单元504,用于接收所述HAAP发送的第二隧道建立应答,所述第二隧道建立应答的保留字段中携带所述第二标志位,以建立所述第二隧道。 The second receiving unit 504 is configured to receive a second tunnel establishment response sent by the HAAP, wherein a reserved field of the second tunnel establishment response carries the second flag bit, so as to establish the second tunnel.
其中,所述第二隧道建立应答具体可以为第四GRE报文,所述第四GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第一GRE报文的T字段携带的信息相同,M RES字段的一位低比特位M为0。 Wherein, the second tunnel establishment response may specifically be a fourth GRE message, and the GRE header of the fourth GRE message may adopt a specific structure as shown in Figure 2, wherein the T field is the same as that of the first GRE message The information carried in the T field of the M RES field is the same, and the lower bit M of the M RES field is 0.
需要说明的是,所述用户终端接收到所述第二隧道建立应答后,可以分配相应隧道标签。具体地,本实施例还可以包括记录单元,所述记录单元用于在第二接收单元504接收所述HAAP发送的第二隧道建立应答之后,在所述用户终端上保存的第一用户表上记录第二表项,所述第二表项中记录有所述第二隧道为备隧道的信息。 It should be noted that, after receiving the second tunnel establishment response, the user terminal may allocate a corresponding tunnel label. Specifically, this embodiment may further include a recording unit, the recording unit is configured to, after the second receiving unit 504 receives the second tunnel establishment response sent by the HAAP, record Recording a second entry, where information that the second tunnel is a standby tunnel is recorded in the second entry.
需要说明的是,本发明实施例中的所述第一隧道和所述第二隧道一般为双向隧道,既可以从所述用户终端,例如HG向所述HAAP传输业务数据,也可以从所述HAAP向所述用户终端传输业务数据。 It should be noted that the first tunnel and the second tunnel in the embodiment of the present invention are generally two-way tunnels, which can transmit service data from the user terminal, such as the HG, to the HAAP, or from the The HAAP transmits service data to the user terminal.
实际上,本发明实施例为了实现对固网隧道和无线网隧道更好的保护,可以建立两条固网隧道和两条无线网隧道,其中具有包括一条主固网隧道,一条备固网隧道,一条主无线网隧道和一条备无线网隧道。具体地,本实施例还包括:第三发送单元、第三接收单元、第四发送单元和第四接收单元。 In fact, in order to achieve better protection for the fixed network tunnel and the wireless network tunnel in the embodiment of the present invention, two fixed network tunnels and two wireless network tunnels can be established, including a main fixed network tunnel and a backup fixed network tunnel. , a primary wireless network tunnel and a backup wireless network tunnel. Specifically, this embodiment further includes: a third sending unit, a third receiving unit, a fourth sending unit, and a fourth receiving unit.
所述第三发送单元,用于向所述HAAP发送第三隧道建立请求,所述第三隧道建立请求的保留字段中携带所述第一标志位。 The third sending unit is configured to send a third tunnel establishment request to the HAAP, where a reserved field of the third tunnel establishment request carries the first flag bit.
其中,所述第三隧道建立请求用于请求建立第二类型的隧道,所述第二类型的隧道为固网隧道或者无线网隧道,所述第一类型的隧道与所述第二类 型的隧道为两种不同类型的隧道。例如所述第一隧道建立请求用于请求建立DSL隧道,所述第三隧道建立请求可以用于请求建立LTE隧道。 Wherein, the third tunnel establishment request is used to request establishment of a second type of tunnel, the second type of tunnel is a fixed network tunnel or a wireless network tunnel, and the first type of tunnel and the second type of tunnel There are two different types of tunnels. For example, the first tunnel establishment request is used to request establishment of a DSL tunnel, and the third tunnel establishment request may be used to request establishment of an LTE tunnel.
所述第一隧道建立请求具体可以为第五GRE报文,所述第五GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第一GRE报文的T字段携带的信息不同,例如所述第一GRE报文中,T字段为1,则所述第五GRE报文中,T字段为0。M RES字段的一位低比特位M为1。 The first tunnel establishment request may specifically be the fifth GRE message, and the GRE header of the fifth GRE message may adopt a specific structure as shown in Figure 2, wherein the T field is the same as the T field of the first GRE message. The information carried by the fields is different. For example, in the first GRE message, the T field is 1, and in the fifth GRE message, the T field is 0. The lower bit M of the M RES field is 1.
需要说明的是,在所述第三隧道建立请求中,可以携带请求建立的第三隧道的源IP地址,所述HAAP接收到所述第三隧道建立请求后,可以对该源IP地址进行认证,如果认证通过则向所述用户终端返回第三隧道建立应答,并分配相应隧道标签。并且,所述HAAP在接收所述第三隧道建立请求之后,还可以在所述HAAP上保存的第二用户表上记录第五表项,所述第五表项上中记录有所述第三隧道为主隧道的信息。 It should be noted that, in the third tunnel establishment request, the source IP address of the third tunnel requested to be established may be carried, and the HAAP may authenticate the source IP address after receiving the third tunnel establishment request , if the authentication passes, return a third tunnel establishment response to the user terminal, and allocate a corresponding tunnel label. Moreover, after the HAAP receives the third tunnel establishment request, it may also record a fifth entry in the second user table saved on the HAAP, and the fifth entry records the third tunnel entry. Tunnel information about the primary tunnel.
所述第三接收单元,用于接收所述HAAP发送的第三隧道建立应答,所述第三隧道建立应答的保留字段中携带所述第一标志位,以建立第三隧道。 The third receiving unit is configured to receive a third tunnel establishment response sent by the HAAP, wherein a reserved field of the third tunnel establishment response carries the first flag bit, so as to establish a third tunnel.
其中,所述第三隧道建立应答具体可以为第六GRE报文,所述第六GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第五GRE报文的T字段携带的信息相同,M RES字段的一位低比特位M为1。 Wherein, the third tunnel establishment response may specifically be a sixth GRE message, and the GRE header of the sixth GRE message may adopt a specific structure as shown in Figure 2, wherein the T field is the same as that of the fifth GRE message The information carried in the T field of the M RES field is the same, and the lower bit M of the M RES field is 1.
需要说明的是,所述用户终端接收到所述第三隧道建立应答后,可以分配相应隧道标签。所述用户终端接收所述HAAP发送的第三隧道建立应答之后,所述用户终端还可以在所述用户终端上保存的第一用户表上记录第六表项,所述第六表项中记录有所述第三隧道为主隧道的信息。 It should be noted that, after receiving the third tunnel establishment response, the user terminal may allocate a corresponding tunnel label. After the user terminal receives the third tunnel establishment response sent by the HAAP, the user terminal may also record a sixth entry in the first user table saved on the user terminal, and record in the sixth entry There is information about the main tunnel of the third tunnel.
所述第四发送单元,用于向所述HAAP发送第四隧道建立请求,所述第四隧道建立请求的保留字段中携带所述第二标志位。其中,所述第四隧道建立请求用于请求建立第二类型的隧道,即所述第三隧道建立请求和所述第四隧道建立请求用于请求建立同一类型的隧道。 The fourth sending unit is configured to send a fourth tunnel establishment request to the HAAP, where a reserved field of the fourth tunnel establishment request carries the second flag bit. Wherein, the fourth tunnel establishment request is used to request to establish a second type of tunnel, that is, the third tunnel establishment request and the fourth tunnel establishment request are used to request to establish the same type of tunnel.
其中,所述第四隧道建立请求具体可以为第七GRE报文,所述第七GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第五GRE报文的T字段携带的信息相同,M RES字段的一位低比特位M为0。 Wherein, the fourth tunnel establishment request may specifically be the seventh GRE message, and the GRE header of the seventh GRE message may adopt the specific structure shown in Figure 2, wherein the T field is the same as that of the fifth GRE message The information carried in the T field of the M RES field is the same, and the lower bit M of the M RES field is 0.
需要说明的是,在所述第四隧道建立请求中,可以携带请求建立的第四隧道的源IP地址,所述HAAP接收到所述第四隧道建立请求后,可以对该源IP地址进行认证,如果认证通过则向所述用户终端返回第四隧道建立应答,并分配相应隧道标签。并且,所述HAAP在接收所述第四隧道建立请求之后,还可以在所述HAAP上保存的第二用户表上记录第七表项,所述第七表项上中记录有所述第四隧道为备隧道的信息。 It should be noted that, in the fourth tunnel establishment request, the source IP address of the fourth tunnel requested to be established may be carried, and the HAAP may authenticate the source IP address after receiving the fourth tunnel establishment request , if the authentication passes, return a fourth tunnel establishment response to the user terminal, and assign a corresponding tunnel label. Moreover, after the HAAP receives the fourth tunnel establishment request, it may also record a seventh entry in the second user table saved on the HAAP, and the seventh entry records the fourth Tunnel is information about the standby tunnel.
所述第四接收单元,用于接收所述HAAP发送的第四隧道建立应答,所述第四隧道建立应答的保留字段中携带所述第二标志位,以建立第四隧道。 The fourth receiving unit is configured to receive a fourth tunnel establishment response sent by the HAAP, wherein a reserved field of the fourth tunnel establishment response carries the second flag bit, so as to establish a fourth tunnel.
其中,所述第三隧道建立请求和所述第四隧道建立请求均用于请求建立第二类型的隧道,所述第二类型的隧道为固网隧道或者无线网隧道,所述第一类型的隧道与所述第二类型的隧道为两种不同类型的隧道。 Wherein, both the third tunnel establishment request and the fourth tunnel establishment request are used to request establishment of a second type of tunnel, the second type of tunnel is a fixed network tunnel or a wireless network tunnel, and the first type of The tunnel and the second type of tunnel are two different types of tunnels.
其中,所述第四隧道建立应答具体可以为第八GRE报文,所述第八GRE报文的GRE头可以采取如图2所示的具体结构,其中T字段与所述第五GRE报文的T字段携带的信息相同,M RES字段的一位低比特位M为0。 Wherein, the fourth tunnel establishment response can specifically be the eighth GRE message, and the GRE header of the eighth GRE message can adopt the specific structure shown in Figure 2, wherein the T field is the same as that of the fifth GRE message The information carried in the T field of the M RES field is the same, and the lower bit M of the M RES field is 0.
需要说明的是,所述用户终端接收到所述第四隧道建立应答后,可以分配相应隧道标签。所述用户终端接收所述HAAP发送的第四隧道建立应答之后,所述用户终端还可以在所述用户终端上保存的第一用户表上记录第八表项,所述第八表项中记录有所述第四隧道为备隧道的信息。 It should be noted that, after receiving the fourth tunnel establishment response, the user terminal may allocate a corresponding tunnel label. After the user terminal receives the fourth tunnel establishment response sent by the HAAP, the user terminal may also record an eighth entry in the first user table saved on the user terminal, and record in the eighth entry There is information that the fourth tunnel is a backup tunnel.
在上述的装置实施例中,介绍了对主隧道和备隧道的建立方式,下面具体说明如何使用主隧道和备隧道。首先从用户终端的角度进行说明。 In the above device embodiment, the method of establishing the primary tunnel and the backup tunnel is introduced, and how to use the primary tunnel and the backup tunnel will be described in detail below. Firstly, the description is made from the perspective of the user terminal.
在上述装置实施例中,建立了所述第一隧道和所述第二隧道,其中所述第一隧道和所述第二隧道为同一类型的隧道,例如均为DSL隧道或者均为LTE隧道。由于所述第一隧道为主隧道,所述第二隧道为备隧道,因此当所述第一隧道正常时,通过所述第一隧道传输业务数据,而当所述第一隧道故障时,所述用户终端可以将在所述第一隧道上传输的业务数据通过所述第二隧道传输。具体地,本实施例还可以包括:第二传输单元,所述第二传输单元用于当所述第一隧道故障时,将在所述第一隧道上传输的业务数据通过所述第二隧道传输。 In the above device embodiment, the first tunnel and the second tunnel are established, wherein the first tunnel and the second tunnel are tunnels of the same type, for example, both are DSL tunnels or both are LTE tunnels. Since the first tunnel is the primary tunnel and the second tunnel is the backup tunnel, when the first tunnel is normal, service data is transmitted through the first tunnel, and when the first tunnel fails, the The user terminal may transmit the service data transmitted on the first tunnel through the second tunnel. Specifically, this embodiment may further include: a second transmission unit, configured to pass the service data transmitted on the first tunnel through the second tunnel when the first tunnel fails. transmission.
在上述装置实施例中,建立了所述第一隧道、所述第二隧道、所述第三隧道和所述第四隧道,其中所述第一隧道和所述第二隧道为同一类型的隧道,所述第三隧道和所述第四隧道为同一类型的隧道,所述第一隧道和所述第三隧道为不同类型的隧道。例如所述第一隧道和所述第二隧道均为DSL隧道,所述第三隧道和所述第四隧道均为LTE隧道。 In the above device embodiment, the first tunnel, the second tunnel, the third tunnel and the fourth tunnel are established, wherein the first tunnel and the second tunnel are the same type of tunnel , the third tunnel and the fourth tunnel are tunnels of the same type, and the first tunnel and the third tunnel are tunnels of different types. For example, both the first tunnel and the second tunnel are DSL tunnels, and both the third tunnel and the fourth tunnel are LTE tunnels.
因此当所述第一隧道和所述第三隧道正常时,所述用户终端通过所述第一隧道和所述第三隧道传输数据。例如假设所述第一隧道为主DSL隧道,所述第三隧道为主LTE隧道,若所述业务数据的带宽小于或等于所述主DSL隧道的带宽,所述用户终端在所述主DSL隧道上传输业务数据,若所述业务数据的带宽大于所述主DSL隧道的带宽,所述用户终端在所述主DSL隧道和所述主LTE隧道上传输业务数据。具体地,本实施例还可以包括第一传输单元,所述第一传输单元用于当所述第三隧道故障时,将在所述第三隧道上传输的业务数据通过所述第四隧道传输。本实施例还可以包括:第二传输单元,所述第二传输单元用于当所述第一隧道故障时,将在所述第一隧道上传输的业务数据通过所述第二隧道传输。 Therefore, when the first tunnel and the third tunnel are normal, the user terminal transmits data through the first tunnel and the third tunnel. For example, assuming that the first tunnel is the main DSL tunnel, and the third tunnel is the main LTE tunnel, if the bandwidth of the service data is less than or equal to the bandwidth of the main DSL tunnel, the user terminal in the main DSL tunnel If the bandwidth of the service data is greater than the bandwidth of the main DSL tunnel, the user terminal transmits service data on the main DSL tunnel and the main LTE tunnel. Specifically, this embodiment may further include a first transmission unit configured to transmit the service data transmitted on the third tunnel through the fourth tunnel when the third tunnel fails. . This embodiment may further include: a second transmission unit, configured to transmit the service data transmitted on the first tunnel through the second tunnel when the first tunnel fails.
上面说明了用户终端如何使用主隧道和备隧道,而实际上HAAP对主隧道和备隧道的使用方式与之类似,这里不再赘述。 The above describes how the user terminal uses the primary tunnel and the backup tunnel, but in fact, HAAP uses the primary tunnel and the backup tunnel in a similar way, so it will not be repeated here.
上面的实施例从用户终端的角度介绍了本发明实施例,下面本发明实施例将具体从HAAP的角度对本发明实施例进行说明。 The above embodiments introduce the embodiments of the present invention from the perspective of the user terminal, and the following embodiments of the present invention will specifically describe the embodiments of the present invention from the perspective of the HAAP.
请参阅图6,本发明实施例提供了HAAP 600的一种装置实施例,本实施例包括:第一接收单元601、第一发送单元602、第二接收单元603和第二发送单元604。 Referring to FIG. 6 , an embodiment of the present invention provides a device embodiment of a HAAP 600 . This embodiment includes: a first receiving unit 601 , a first sending unit 602 , a second receiving unit 603 and a second sending unit 604 .
第一接收单元601,用于接收用户终端发送的第一隧道建立请求,所述第一隧道建立请求的保留字段中携带第一标志位,所述第一标志位用于表示建立主隧道; The first receiving unit 601 is configured to receive a first tunnel establishment request sent by a user terminal, where a reserved field of the first tunnel establishment request carries a first flag bit, and the first flag bit is used to indicate that a main tunnel is established;
第一发送单元602,用于向所述用户终端发送第一隧道建立应答以建立第一隧道,所述第一隧道建立应答的保留字段中携带所述第一标志位; The first sending unit 602 is configured to send a first tunnel establishment response to the user terminal to establish a first tunnel, where a reserved field of the first tunnel establishment response carries the first flag bit;
第二接收单元603,用于接收所述用户终端发送的第二隧道建立请求,所述第二隧道建立请求的保留字段中携带第二标志位,所述第二标志位用于表示建立备隧道; The second receiving unit 603 is configured to receive a second tunnel establishment request sent by the user terminal, where a reserved field of the second tunnel establishment request carries a second flag bit, and the second flag bit is used to indicate that a standby tunnel is established ;
第二发送单元604,用于向所述用户终端发送第二隧道建立应答以建立第二隧道,所述第二隧道建立应答的保留字段中携带所述第二标志位; The second sending unit 604 is configured to send a second tunnel establishment response to the user terminal to establish a second tunnel, where a reserved field of the second tunnel establishment response carries the second flag bit;
其中,所述第一隧道建立请求和所述第二隧道建立请求均用于请求建立第一类型的隧道,所述第一类型的隧道为固网隧道或者无线网隧道。 Wherein, both the first tunnel establishment request and the second tunnel establishment request are used to request establishment of a first type of tunnel, and the first type of tunnel is a fixed network tunnel or a wireless network tunnel.
可选的,本实施例还可以包括: Optionally, this embodiment may also include:
第三接收单元,用于接收所述用户终端发送的第三隧道建立请求,所述第三隧道建立请求的保留字段中携带所述第一标志位; A third receiving unit, configured to receive a third tunnel establishment request sent by the user terminal, where a reserved field of the third tunnel establishment request carries the first flag bit;
第三发送单元,用于向所述用户终端发送第三隧道建立应答以建立第三隧道,所述第三隧道建立应答的保留字段中携带所述第一标志位; A third sending unit, configured to send a third tunnel establishment response to the user terminal to establish a third tunnel, where a reserved field of the third tunnel establishment response carries the first flag bit;
第四接收单元,用于接收所述用户终端发送的第四隧道建立请求,所述第四隧道建立请求的保留字段中携带所述第二标志位; A fourth receiving unit, configured to receive a fourth tunnel establishment request sent by the user terminal, where a reserved field of the fourth tunnel establishment request carries the second flag bit;
第四发送单元,用于向所述用户终端发送第四隧道建立应答以建立第四隧道,所述第四隧道建立应答的保留字段中携带所述第二标志位; A fourth sending unit, configured to send a fourth tunnel establishment response to the user terminal to establish a fourth tunnel, where a reserved field of the fourth tunnel establishment response carries the second flag bit;
其中,所述第三隧道建立请求和所述第四隧道建立请求均用于请求建立第二类型的隧道,所述第二类型的隧道为固网隧道或者无线网隧道,所述第一类型的隧道与所述第二类型的隧道为两种不同类型的隧道。 Wherein, both the third tunnel establishment request and the fourth tunnel establishment request are used to request establishment of a second type of tunnel, the second type of tunnel is a fixed network tunnel or a wireless network tunnel, and the first type of The tunnel and the second type of tunnel are two different types of tunnels.
可选的,本实施例还可以包括:第一传输单元,用于当所述第三隧道故障时,将在所述第三隧道上传输的业务数据通过所述第四隧道传输。 Optionally, this embodiment may further include: a first transmission unit, configured to transmit the service data transmitted on the third tunnel through the fourth tunnel when the third tunnel fails.
可选的,本实施例还可以包括:第二传输单元,用于当所述第一隧道故障时,将在所述第一隧道上传输的业务数据通过所述第二隧道传输。 Optionally, this embodiment may further include: a second transmission unit, configured to transmit the service data transmitted on the first tunnel through the second tunnel when the first tunnel fails.
可选的,本实施例还可以包括:记录单元,用于在第一接收单元601接收所述用户终端发送的第一隧道建立请求和第二接收单元603接收所述用户终端发送的第二隧道建立请求之后,在所述HAAP上保存的第二用户表上记录第三表项和第四表项,所述第三表项中记录所述第一隧道为主隧道的信息,所述第四表项中记录所述第二隧道为备隧道的信息。 Optionally, this embodiment may further include: a recording unit, configured to receive the first tunnel establishment request sent by the user terminal at the first receiving unit 601 and receive the second tunnel establishment request sent by the user terminal at the second receiving unit 603. After the request is established, a third entry and a fourth entry are recorded in the second user table saved on the HAAP, the information of the first tunnel as the main tunnel is recorded in the third entry, and the fourth entry Information that the second tunnel is a backup tunnel is recorded in the entry.
本实施例与图5所示的实施例分别从两个设备的角度对本发明实施例进行了介绍,本实施例的相关内容请参阅图5所示的实施例,这里不再赘述。 This embodiment and the embodiment shown in FIG. 5 respectively introduce the embodiments of the present invention from the perspectives of two devices. Please refer to the embodiment shown in FIG. 5 for relevant content of this embodiment, and details are not repeated here.
上面从模块化功能实体的角度对本发明实施例中的用户终端和HAAP的装置实施例进行描述。下面将从硬件处理的角度对本发明实施例中的用户终端和HAAP的装置实施例进行描述。 The device embodiments of the user terminal and the HAAP in the embodiments of the present invention are described above from the perspective of modular functional entities. The device embodiments of the user terminal and the HAAP in the embodiments of the present invention will be described below from the perspective of hardware processing.
请参阅图7,本发明实施例提供了用户终端700的另一种装置实施例。本实施例的用户终端700具体包括:处理器(processor)701、通信接口(Communications Interface)702、存储器(memory)703和通信总线704。 Referring to FIG. 7 , the embodiment of the present invention provides another device embodiment of a user terminal 700 . The user terminal 700 in this embodiment specifically includes: a processor (processor) 701 , a communication interface (Communications Interface) 702 , a memory (memory) 703 and a communication bus 704 .
处理器701,通信接口702,存储器703通过总线704完成相互间的通信。 The processor 701 , the communication interface 702 , and the memory 703 communicate with each other through the bus 704 .
处理器701,用于执行程序705。 The processor 701 is configured to execute the program 705 .
具体地,程序705可以包括程序代码,所述程序代码包括计算机操作指令。 Specifically, the program 705 may include program codes, and the program codes include computer operation instructions.
处理器701可能是一个中央处理器CPU,或者是专用集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本申请实施例的一个或多个集成电路。 The processor 701 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
存储器703,用于存放程序705。存储器703可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。程序705用于执行以下步骤: The memory 703 is used to store the program 705 . The memory 703 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Program 705 is used to perform the following steps:
所述用户终端700向HAAP发送第一隧道建立请求,所述第一隧道建立请求的保留字段中携带第一标志位,所述第一标志位表示建立主隧道; The user terminal 700 sends a first tunnel establishment request to the HAAP, the reserved field of the first tunnel establishment request carries a first flag bit, and the first flag bit indicates that a main tunnel is established;
所述用户终端700接收所述HAAP发送的第一隧道建立应答,所述第一隧道建立应答的保留字段中携带所述第一标志位,以建立第一隧道; The user terminal 700 receives the first tunnel establishment response sent by the HAAP, and the reserved field of the first tunnel establishment response carries the first flag bit to establish the first tunnel;
所述用户终端700向所述HAAP发送第二隧道建立请求,所述第二隧道建立请求的保留字段中携带第二标志位,所述第二标志位表示建立备隧道; The user terminal 700 sends a second tunnel establishment request to the HAAP, the reserved field of the second tunnel establishment request carries a second flag bit, and the second flag bit indicates that a standby tunnel is established;
所述用户终端700接收所述HAAP发送的第二隧道建立应答,所述第二隧道建立应答的保留字段中携带所述第二标志位,以建立第二隧道; The user terminal 700 receives the second tunnel establishment response sent by the HAAP, and the reserved field of the second tunnel establishment response carries the second flag bit to establish a second tunnel;
其中,所述第一隧道建立请求和所述第二隧道建立请求均用于请求建立第一类型的隧道,所述第一类型的隧道为固网隧道或者无线网隧道。 Wherein, both the first tunnel establishment request and the second tunnel establishment request are used to request establishment of a first type of tunnel, and the first type of tunnel is a fixed network tunnel or a wireless network tunnel.
程序705中各步骤的具体实现参见图1或图3所示实施例中的相应步骤的实现方式,在此不赘述。 For the specific implementation of each step in the program 705, refer to the implementation manner of the corresponding steps in the embodiment shown in FIG. 1 or FIG. 3 , which will not be repeated here.
本实施例提供的用户终端700700的各功能单元,可以是基于图1或者3所示的方法实施例和图5所示的装置实施例所具备的功能的具体实现,术语的定义和说明与图1或者图3所示的方法实施例和图5所示的装置实施例保持一致,此处不再赘述。 Each functional unit of the user terminal 700700 provided in this embodiment may be based on the specific implementation of the functions of the method embodiment shown in Figure 1 or 3 and the device embodiment shown in Figure 5, and the definitions and descriptions of terms are as in Figure 5. 1 or the method embodiment shown in FIG. 3 is consistent with the device embodiment shown in FIG. 5 , and will not be repeated here.
请参阅图8,本发明实施例提供了HAAP 800的另一种装置实施例。本实施例的HAAP800具体包括:处理器(processor)801、通信接口(Communications Interface)802、存储器(memory)803和通信总线804。 Referring to FIG. 8 , the embodiment of the present invention provides another device embodiment of the HAAP 800 . The HAAP 800 in this embodiment specifically includes: a processor (processor) 801 , a communication interface (Communications Interface) 802 , a memory (memory) 803 and a communication bus 804 .
处理器801,通信接口802,存储器803通过总线804完成相互间的通信。 The processor 801 , the communication interface 802 , and the memory 803 communicate with each other through the bus 804 .
处理器801,用于执行程序805。 The processor 801 is configured to execute the program 805 .
具体地,程序805可以包括程序代码,所述程序代码包括计算机操作指令。 Specifically, the program 805 may include program codes, and the program codes include computer operation instructions.
处理器801可能是一个中央处理器CPU,或者是专用集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本申请实施例的一个或多个集成电路。 The processor 801 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
存储器803,用于存放程序805。存储器803可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。程序805用于执行以下步骤: The memory 803 is used to store the program 805 . The memory 803 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Program 805 is used to perform the following steps:
HAAP800接收用户终端发送的第一隧道建立请求,所述第一隧道建立请求的保留字段中携带第一标志位,所述第一标志位用于表示建立主隧道; HAAP800 receives the first tunnel establishment request sent by the user terminal, the reserved field of the first tunnel establishment request carries a first flag bit, and the first flag bit is used to indicate that a main tunnel is established;
所述HAAP800向所述用户终端发送第一隧道建立应答以建立第一隧道,所述第一隧道建立应答的保留字段中携带所述第一标志位; The HAAP 800 sends a first tunnel establishment response to the user terminal to establish a first tunnel, and the reserved field of the first tunnel establishment response carries the first flag bit;
所述HAAP800接收所述用户终端发送的第二隧道建立请求,所述第二隧道建立请求的保留字段中携带第二标志位,所述第二标志位用于表示建立备隧道; The HAAP800 receives the second tunnel establishment request sent by the user terminal, and the reserved field of the second tunnel establishment request carries a second flag bit, and the second flag bit is used to indicate that a standby tunnel is established;
所述HAAP800向所述用户终端发送第二隧道建立应答以建立第二隧道,所述第二隧道建立应答的保留字段中携带所述第二标志位; The HAAP 800 sends a second tunnel establishment response to the user terminal to establish a second tunnel, and the reserved field of the second tunnel establishment response carries the second flag bit;
其中,所述第一隧道建立请求和所述第二隧道建立请求均用于请求建立第一类型的隧道,所述第一类型的隧道为固网隧道或者无线网隧道。 Wherein, both the first tunnel establishment request and the second tunnel establishment request are used to request establishment of a first type of tunnel, and the first type of tunnel is a fixed network tunnel or a wireless network tunnel.
程序805中各步骤的具体实现参见图4所示实施例中的相应步骤的实现方式,在此不赘述。 For the specific implementation of each step in the program 805, refer to the implementation manner of the corresponding steps in the embodiment shown in FIG. 4 , which will not be repeated here.
本实施例提供的HAAP800的各功能单元,可以是基于图4所示的方法实施例和图6所示的装置实施例所具备的功能的具体实现,术语的定义和说明与图4所示的方法实施例和图6所示的装置实施例保持一致,此处不再赘述。 Each functional unit of the HAAP800 provided in this embodiment may be based on the specific realization of the functions of the method embodiment shown in FIG. 4 and the device embodiment shown in FIG. The method embodiment is consistent with the device embodiment shown in FIG. 6 , and will not be repeated here.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。 In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的 全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the various embodiments of the present invention.
Claims (16)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510250248.8A CN106304397A (en) | 2015-05-15 | 2015-05-15 | A kind of method setting up tunnel and relevant device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510250248.8A CN106304397A (en) | 2015-05-15 | 2015-05-15 | A kind of method setting up tunnel and relevant device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106304397A true CN106304397A (en) | 2017-01-04 |
Family
ID=57632000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510250248.8A Pending CN106304397A (en) | 2015-05-15 | 2015-05-15 | A kind of method setting up tunnel and relevant device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106304397A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019000419A1 (en) * | 2017-06-30 | 2019-01-03 | 华为技术有限公司 | Message transmission method, apparatus and system |
CN112118411A (en) * | 2020-08-14 | 2020-12-22 | 视联动力信息技术股份有限公司 | A data transmission method, device, terminal device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040013118A1 (en) * | 2002-07-22 | 2004-01-22 | 3Com Corporation | System and method for GRE heartbeats |
CN101459567A (en) * | 2007-12-13 | 2009-06-17 | 华为技术有限公司 | Method, apparatus for establishing backup tunnel, rerouting method and system |
US20120155472A1 (en) * | 2010-12-16 | 2012-06-21 | Electronics Telecommunications Research Institute | Apparatus and method for classifying packets |
CN104158761A (en) * | 2014-08-05 | 2014-11-19 | 华为技术有限公司 | Flow distribution method and device |
CN104521220A (en) * | 2013-07-12 | 2015-04-15 | 华为技术有限公司 | Message processing method and device |
-
2015
- 2015-05-15 CN CN201510250248.8A patent/CN106304397A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040013118A1 (en) * | 2002-07-22 | 2004-01-22 | 3Com Corporation | System and method for GRE heartbeats |
CN101459567A (en) * | 2007-12-13 | 2009-06-17 | 华为技术有限公司 | Method, apparatus for establishing backup tunnel, rerouting method and system |
US20120155472A1 (en) * | 2010-12-16 | 2012-06-21 | Electronics Telecommunications Research Institute | Apparatus and method for classifying packets |
CN104521220A (en) * | 2013-07-12 | 2015-04-15 | 华为技术有限公司 | Message processing method and device |
CN104158761A (en) * | 2014-08-05 | 2014-11-19 | 华为技术有限公司 | Flow distribution method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019000419A1 (en) * | 2017-06-30 | 2019-01-03 | 华为技术有限公司 | Message transmission method, apparatus and system |
CN112118411A (en) * | 2020-08-14 | 2020-12-22 | 视联动力信息技术股份有限公司 | A data transmission method, device, terminal device and storage medium |
CN112118411B (en) * | 2020-08-14 | 2024-11-08 | 视联动力信息技术股份有限公司 | Data transmission method, device, terminal equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10904932B2 (en) | Tunnel binding based communication method and network device | |
US11032105B2 (en) | Method for implementing GRE tunnel, home gateway and aggregation gateway | |
US9173244B2 (en) | Methods for establishing and using public path, M2M communication method, and systems thereof | |
US11153207B2 (en) | Data link layer-based communication method, device, and system | |
CN109156046B (en) | A kind of home gateway and method for forwarding service thereof | |
EP3823255B1 (en) | Access apparatus and access apparatus-performed method for connecting user device to network | |
CN104040987A (en) | User plane data transmission method, mobility management network element, evolved node b and system | |
CN115243396A (en) | Information processing method, session management function network element and user plane function network element | |
CN104993993A (en) | Message processing method, device, and system | |
CN111431787B (en) | Tunnel establishment method and device and computer readable storage medium | |
EP3413533B1 (en) | Data transmission method and system | |
CN105812221B (en) | The device and method of data transmission in virtual expansible Local Area Network | |
US20180302240A1 (en) | Method, device, and system for determining generic routing encapsulation gre tunnel identifier | |
CN103298148A (en) | Method for connecting mobile terminal to multiple PDNs (public data networks) through fixed network and related device | |
CN106304397A (en) | A kind of method setting up tunnel and relevant device | |
US10136362B2 (en) | Capability negotiation method, system and apparatus | |
US20170099221A1 (en) | Service packet distribution method and apparatus | |
CN113542395B (en) | Message processing method and message processing system | |
CN102137343B (en) | Business type information transferring method, system and associated equipment | |
US11108734B2 (en) | Error indication processing and system, and device | |
CN104683211A (en) | Method and system for accelerating virtual network tunnel | |
JP5550023B2 (en) | Communication amount management method and communication amount management system | |
JP2014230011A (en) | Gateway device and packet communication method | |
CN114745351A (en) | Message transmission method, system, network equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170104 |
|
WD01 | Invention patent application deemed withdrawn after publication |