Data transmission method, device and storage medium
By introducing OVERLAY virtual network technology and Layer 2 equipment into telecom operators' networks to reorganize data packets, it solves the problem of users' difficulty in instantly opening personalized network channels, reduces operators' network upgrade costs, and improves network packet transmission. flexibility and stability.
Patent Information
- Application Number
- CN202210389814.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-04-13
AI Technical Summary
Existing technology is difficult to meet the needs of ordinary Internet users for instant activation and on-time and on-demand use of personalized network channel services. Moreover, historical reasons for telecom operators' network equipment have led to high equipment upgrade and transformation costs and poor stability.
Introduce OVERLAY virtual network technology, superimpose a virtual private network on the operator's original network, and use the second-layer equipment located at the IP metropolitan area network uplink interface of the optical line terminal OLT device and the downlink interface of the broadband access server BRAS to process data packets. Reorganize and transmit messages and build a virtual network to avoid frequent adjustments to the original network structure.
It enables users to instantly activate and use personalized network channel services on time and on demand, reducing capital, labor and time costs, and improving the flexibility and stability of network packet transmission.
Smart Images

Figure CN114760545B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication network technology, and in particular to a data transmission method, device and computer-readable storage medium. Background Art
[0002] When ordinary Internet users need special network requirements, such as a faster and more stable gaming network line, they can currently choose some dedicated gaming acceleration lines based on the nearest node selection. Due to the lack of operator support for the current acceleration lines, the acceleration effect is not good and the stability is relatively poor.
[0003] The network of telecom operators is a huge fixed asset with a long history. It involves a wide range of network equipment, which was built in different historical periods under different industrial environments and business needs. The capabilities of its equipment manufacturers vary, and the subsequent maintenance and operation conditions are also different. In order to meet the needs of mass users for instant activation and on-time and on-demand use of personalized network channel services, if large-scale equipment upgrades and renovations are carried out, the original operator's network structure needs to be frequently adjusted, key routes, access policies, etc. are frequently modified, and the capital cost, labor cost, and time cost involved are all high. Summary of the invention
[0004] The embodiments of the present application provide a data transmission method, device, and computer-readable storage medium, aiming to solve at least one technical problem in the prior art.
[0005] In a first aspect of an embodiment of the present application, a data transmission method is provided, which is applied to a first device, wherein the first device is a layer 2 device located between an uplink interface in an IP metropolitan area network direction of an optical line terminal OLT device and a downlink interface of a broadband access server BRAS; the method comprises:
[0006] Reassembling the received first data packet to obtain a second data packet;
[0007] The second data packet is transmitted.
[0008] A second aspect of an embodiment of the present application provides a data transmission method, which is applied to a second device, where the second device is a layer-3 device located on an uplink interface of a BRAS; the method includes:
[0009] Reassembling the received second data packet to obtain a first data packet;
[0010] The first data packet is transmitted.
[0011] In a third aspect of an embodiment of the present application, a first device for performing data transmission is provided, the first device being a layer 2 device located between an uplink interface in an IP metropolitan area network direction of an optical line terminal OLT device and a downlink interface of a broadband access server BRAS; the first device includes:
[0012] A first processing module, used for reassembling the received first data packet to obtain a second data packet;
[0013] The first transmission module is used to transmit the second data packet.
[0014] In a fourth aspect of an embodiment of the present application, a second device for performing data transmission is provided, where the second device is a layer-3 device located on an uplink interface of a BRAS; the second device includes:
[0015] A second processing module, used for reassembling the received second data packet to obtain a first data packet;
[0016] The second transmission module is used to transmit the first data packet.
[0017] According to a fifth aspect of the embodiments of the present application, there is provided an electronic device, including:
[0018] one or more processors;
[0019] Memory;
[0020] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the data transmission method shown in the first aspect or the second aspect above.
[0021] The electronic device in this embodiment may be the first device or the second device in the above embodiment.
[0022] According to a sixth aspect of an embodiment of the present application, a computer-readable storage medium is provided, and when the computer program is executed by a processor, the steps of the data transmission method shown in the first aspect or the second aspect are implemented.
[0023] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0024] Through the second-layer device located between the IP metropolitan area network uplink interface of the optical line terminal OLT equipment and the downlink interface of the broadband access server BRAS, the received data packets are reassembled before transmission, thereby changing the communication logic between OLT and BRAS, so that the transmission of network packets can meet the needs of flexible business networking. At the same time, it avoids frequent adjustments to the network structure of existing operators, frequent modifications to key routes, access policies, etc., and effectively reduces capital costs, labor costs, and time costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0026] Figure 1 It is a schematic diagram of network communication in the corresponding related technology;
[0027] Figure 2 A network communication diagram for implementing a data transmission method provided in an embodiment of the present application;
[0028] Figure 3 An example diagram of network communication for implementing a data transmission method provided in an embodiment of the present application;
[0029] Figure 4 A flowchart of a data transmission method provided in an embodiment of the present application;
[0030] Figure 5 A flowchart of a data transmission method provided in another embodiment of the present application;
[0031] Figure 6 A schematic diagram of an interactive process of a data transmission method provided in an embodiment of the present application;
[0032] Figure 7 A schematic diagram of an interactive process of a data transmission method provided in another embodiment of the present application;
[0033] Figure 8 A schematic diagram of the structure of a first device for performing data transmission provided in an embodiment of the present application;
[0034] Fig. 9 A schematic diagram of the structure of a second device for performing data transmission provided in an embodiment of the present application;
[0035] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0037] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0038] As the Internet industry develops in depth, users need more personalized network channels to support more futuristic games, entertainment, and virtualization applications. However, there is currently no personalized network channel service suitable for mass users to open instantly and use on time and on demand.
[0039] The closest service form to the communication operators is network dedicated lines, which are high-value dedicated channels. Enterprises or individuals purchase network dedicated lines from telecom operators. After placing a work order, the telecom operators will go through a series of network-specific configurations before they can be used. The packages for network dedicated lines are expensive, and the billing cycle is long, so ordinary Internet users generally do not use them.
[0040] When ordinary Internet users currently need to solve special network needs, for example, they need a faster and more stable gaming network line. Currently, they can choose some dedicated gaming acceleration lines based on the nearest node selection. Figure 1 As shown, due to the lack of operator support for the current acceleration lines, the acceleration effect is not good and the stability is relatively poor.
[0041] The network of telecommunications operators is a huge fixed asset with a long history. It involves a wide variety of network equipment, which was built in different historical periods under different industrial environments and business needs. The capabilities of their equipment manufacturers are uneven, and the subsequent maintenance and operation conditions are also different. If a large-scale transformation is carried out, the capital cost, manpower cost, and time cost involved are huge. Unless the industrial environment changes fundamentally, it can be said that it cannot be promoted. In order to avoid large-scale upgrades and transformations of network equipment, and avoid frequent network structure adjustments to the original operator network, and frequent modifications to key routes and access policies, the present invention introduces the concept of OVERLAY virtual network, such as Figure 2 As shown in the figure, an OVERLAY virtual private network is superimposed on the operator's original network, thereby satisfying the needs of general users to purchase and use personalized network dedicated lines at any time and in real time.
[0042] Virtual network OVERLAY technology is a virtualization technology superimposed on the traditional network architecture. It can realize virtual hosting on the original network without large-scale modification of the basic network, and can be separated from other network services. Currently, virtual network OVERLAY network technology is widely used in virtual networking between virtual machines of cloud service providers.
[0043] like Figure 3 As shown, the present application introduces a layer 2 device (specifically, the first device below) at the user side edge of the access network close to the user. Its main function is to direct the upstream traffic into different OVERLAY sharded virtual networks. The layer 2 device is the edge device on the user side of the OVERLAY sharded virtual network.
[0044] Taking broadband fixed-line access network as an example, the networking structure of a data transmission method provided by an embodiment of the present application is described below. The traffic of broadband users surfing the Internet, the network packet goes through the optical access network of the operator to the metropolitan backbone network and then to the backbone network, so the end-to-end link is relatively complex. The present application connects a transparent layer 2 device in series to the uplink interface of the optical line terminal (OLT, Optical Line Terminal) of the optical access network. The OLT device is a key device of the passive optical network (PON, Passive Optical Network). At present, the access technology of PON optical fiber is widely used and is the mainstream broadband access technology. The optical fiber access system constructed using PON is mainly composed of an optical line terminal (OLT, local equipment), an optical network unit (ONU, user-end equipment) and an optical distribution network (ODN, optical fiber system). OLT is the local equipment of the access network, usually installed in the access room of the communication operator, which gathers all the subordinate ONU communication packets and sends them to the upstream IP service network after conversion. In the optical access network carrying Ethernet or IP services, the OLT is located in the layer 2 access network, connected to the service access control layer of the IP metropolitan area network, such as a full-service router (SR) or a broadband access server (BRAS). In the embodiment of the present application, the layer 2 device is connected in series to the uplink interface of the IP metropolitan area network direction of the OLT device, and can be logically regarded as a layer 2 bridge.
[0045] The present application also introduces a layer 3 device (specifically, the second device described below) as an edge device on the egress side of the OVERLAY sharded virtual private network. The layer 2 device and the layer 3 device cooperate to form a transparent network of the OVERLAY sharded virtual private network. Logically, for the uplink traffic, the layer 2 device classifies and aggregates the traffic to a specific layer 3 device, and the layer 3 device continues to import the traffic into its directly connected sharded private network. For the downlink traffic, the layer 3 device routes the traffic from the virtual network back to the layer 2 device at the resident location and returns it to the user.
[0046] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.
[0047] Figure 4 A data transmission method provided in an embodiment of the present application is applied to a first device, which is a layer 2 device located between an uplink interface in an IP metropolitan area network direction of an optical line terminal OLT device and a downlink interface of a broadband access server BRAS; Figure 4 As shown, the method includes:
[0048] S101. Reassemble a received first data packet to obtain a second data packet.
[0049] S102: Transmit the second data packet.
[0050] In this embodiment, the first data packet can be reassembled according to one or more of the user's service information, preset service information, and message header information of the physical link. If the first data packet is an uplink data packet, the reassembled second data packet can be routed to a second device, and the second device and the first device form a virtual network, wherein the second device can be a three-layer device or a four-layer device located on the uplink interface of the BRAS; if the first data packet is a downlink data packet from the second device, the second data packet can be reassembled based on the downlink data packet and routed.
[0051] By adopting the above-mentioned method of the embodiment of the present application, the received data packets are reassembled and then transmitted through the second-layer device located between the IP metropolitan area network direction uplink interface of the optical line terminal OLT device and the downlink interface of the broadband access server BRAS, thereby changing the communication logic between the OLT and the BRAS, so that the transmission of network packets can meet the needs of flexible business networking, for example: for users, it can meet the needs of users to instantly activate and use personalized network channel services on time and on demand; for operators, based on the user's subscription information, personalized network channel service services can be provided to users to meet the needs of users to instantly activate and use personalized network channel services on time and on demand; for content providers, personalized network channel services can be provided for applications.
[0052] Therefore, compared with the prior art, the method of the present application avoids frequent adjustments to the network structure of existing operators and frequent modifications to key routes, access policies, etc., thereby effectively reducing capital costs, labor costs, and time costs.
[0053] The following is a detailed description of the case where the first data packet is an uplink data packet and a downlink data packet.
[0054] In the first case, if the first data packet is a UDP (User Datagram Protocol) uplink data packet or a TCP (Transmission Control Protocol) uplink data packet, S101 may specifically include:
[0055] The target IP address of the first data packet is replaced with the IP address of a second device, and the target IP address is placed in a custom header to obtain the second data packet, wherein the second device and the first device form a virtual network.
[0056] That is, the target IP address of the first data packet is replaced with the IP address of the second device, so that the data packet can be routed to the second device. At the same time, the target IP address of the first data packet is carried in the custom header, and the second device obtains it and transmits the first data packet according to the target IP address. Since the first device and the second device form a virtual private network, the uplink data packet is first transmitted through the virtual private network and then transmitted through the physical routing path.
[0057] In some embodiments, the above custom header may also include at least one of the following information:
[0058] The identity of the user equipment of the access network;
[0059] User's business information;
[0060] Configuration information of the application service provider.
[0061] In other words, the first device can identify the identity of the user device, obtain the user's business information and the configuration information of the application service provider, and carry this information in the custom header of the uplink data packet for transmission. It can classify the uplink traffic so that the uplink traffic can be distributed to the corresponding dedicated virtual network channel, realize the diversion of the uplink traffic, and thus realize high-quality customized virtual dedicated line services!
[0062] The identity identifier of the access network user equipment is an identifier used to identify the identity of the access network user equipment, and may include at least one of the following:
[0063] MAC (Media Access Control) address of the user device;
[0064] VLAN (Virtual Local Area Network) information;
[0065] QINQ double-layer VLAN information;
[0066] PPPOE (Point to Point Protocol over Ethernet) session field;
[0067] The IP address of the user’s device;
[0068] TCP port or UDP port of the user device.
[0069] In some optional embodiments, S102 may specifically include:
[0070] Based on the header information of the second data packet, the second data packet is routed to the second device.
[0071] Specifically, in this embodiment, the second data packet may be distributed to the first network dedicated channel based on the header information of the second data packet; and then the second data packet may be transmitted to the second device through the first network dedicated channel.
[0072] The first network dedicated channel is an end-to-end dedicated link formed based on IP routing and access rules, VLAN policy, QoS policy and VPN configuration.
[0073] That is, the first device can transmit the second data packet to the second device through a network dedicated channel. If the first device receives multiple uplink data packets, the multiple uplink data packets after message reassembly can be distributed to different network dedicated channels for transmission so as to be transmitted to the corresponding second devices respectively.
[0074] For example: Suppose user A uses a mobile phone to access the Baidu APP. The TCP data connection generated during the access process is TCP:192.168.253.122:2334--163.177.151.110:443, where 192.168.253.122 is the source IP of the mobile device, 163.177.151.110 is the target IP of the Baidu APP, 2334 is the source port of the TCP protocol, and 443 is the TCP service port of the Baidu APP.
[0075] During communication, when an uplink data packet (i.e., a network data packet sent by a user's mobile device, for example, the first TCP data packet SYN (Synchronize Sequence Numbers) packet is an uplink data packet) arrives at the first device, the first device, as a layer 2 network device, in addition to obtaining the above-mentioned TCP five-tuple information, also obtains the source MAC address, QINQ outer VLAN number and inner VLAN number, and PPPOE session information from the layer 2 header of the data packet. The first device determines the forwarding logic of the network packet based on the preset user information (for example: the user's subscription information), the preset application service provider's configuration information, the above-mentioned TCP five-tuple information, and the information obtained from the layer 2 header to distribute the data packet to a certain fast channel. The fast channel consists of the first device, the second device, and the second device's directly connected fast exit. The second device has an internal interconnection IP reachable by the bearer network: 10.10.253.1.
[0076] The first device reassembles the data packet, replaces the destination IP address of the data packet with the interconnection IP 10.10.253.1 of the second device, and generates a custom UDP extension header, which is inserted at the end of the IP header of the original data packet and in front of the TCP header. This UDP extension header stores the destination IP 163.177.151.110 of the original data packet in a custom field, and stores the information obtained from the layer 2 header (such as the source MAC address) in other custom fields. From the perspective of the fourth layer of the network, the reassembled uplink data packet becomes UDP:192.168.253.122:20003--10.10.253.1:1536. The TCP message payload of the original data packet is encapsulated in the UDP message payload, so the entire message looks like a UDP message. Among them, 20003 is the source port in the custom UDP header, and 1536 is the destination port in the custom UDP header.
[0077] The second device receives this data packet on the network interface bound to 10.10.253.1IP, determines that it is a special data packet with a custom UDP header from the first device, extracts the target IP 163.177.151.110 and the custom UDP header information in the UDP custom header, and stores them. The second device discards the extra UDP custom header inserted in the data packet, restores the data packet to its original state and routes it out. That is to say, before routing, the data packet is restored from the TCP level to: TCP:192.168.253.122:2334--163.177.151.110:443.
[0078] In order to route the downlink reply packet through the second device, SNAT (Source Network Address Translation) is usually required to be configured at the egress of the second device.
[0079] The second device receives a downlink reply packet from the Baidu APP server 163.177.151.110, for example, it receives the TCPSYN ACK downlink reply packet: TCP:163.177.151.110:443--192.168.253.122:2334. According to the corresponding information of the IP quintuple, it can obtain the custom UDP header information stored during the routing processing of the corresponding TCP uplink data packet. Therefore, it can be determined that the data packet should be handed over to the first device for processing.
[0080] The second device replaces the source IP address of the reply data packet with the interconnection IP 10.10.253.1 of the second device, and generates a custom UDP extension header, which is inserted at the end of the IP header of the original data packet and in front of the TCP header. This UDP extension header stores the source IP 163.177.151.110 of the original data packet in a custom field, and stores the above information obtained from the layer 2 header (such as the source MAC address) in other custom fields. From the perspective of the fourth layer of the network, the reassembled downlink reply data packet is UDP: 10.10.253.1: 1536--192.168.253.122: 20003.
[0081] The first device receives the downlink reply packet, determines that it is a special data packet with a custom UDP header from the second device, and extracts the source IP 163.177.151.110 and the custom UDP header information in the UDP custom header. The first device discards the extra UDP custom header inserted in the data packet, restores the data packet to its original state and performs Layer 2 forwarding. That is to say, before forwarding, the data packet is restored from the TCP level to: TCP:163.177.151.110:443--192.168.253.122:2334.
[0082] Before forwarding, QOS policies can be executed based on the information provided by the custom UDP header.
[0083] It should be noted that, from the perspective of networking structure, the first device may not be a single device, but a group of first devices; the second device may not be a single device, but a group of second devices, each of which has a separate interconnection IP. The fast channel composed of different first devices, second devices, and direct fast exits of the second devices can be targeted at different business types. For example: games, live broadcasts, real-time communications, etc. correspond to the fast channels composed of different first devices, second devices, and direct fast exits of the second devices (i.e., the first network dedicated channel mentioned above).
[0084] It should be noted that regarding the specific implementation process of forming an end-to-end dedicated link based on IP routing and access rules, VLAN policy, QoS policy and VPN configuration, technical personnel in this field can learn from the existing relevant technologies to implement it. For the sake of brevity, it will not be repeated here.
[0085] In the second case, if the first data packet is a downlink data packet from a second device, the second device and the first device form a virtual network, S101 may specifically include:
[0086] S1011. Obtain a source IP address in a custom header of the first data packet;
[0087] S1012, discarding the custom header of the first data packet to obtain the second data packet;
[0088] S1013. Replace the source IP address of the second data packet with the source IP address obtained from the custom header of the first data packet.
[0089] That is, if the first device receives a downlink data packet, the first device can obtain the source IP address from the custom header of the downlink data packet and transmit it based on this. The downlink data packet is a return packet of an uplink data packet, and the first device can transmit the downlink data packet through the source IP address of the downlink data packet.
[0090] In some embodiments, before S1012, the following may also be included:
[0091] S1010. Obtain at least one of the following information in the custom header of the first data packet:
[0092] The identity of the user equipment of the access network;
[0093] User's business information;
[0094] Configuration information of the application service provider.
[0095] The identity of the access network user equipment may include at least one of the following:
[0096] MAC address of the user device;
[0097] VLAN information;
[0098] QINQ double-layer VLAN information;
[0099] PPPOE session field;
[0100] The IP address of the user’s device;
[0101] TCP port or UDP port of the user device.
[0102] In some optional embodiments, S102 may specifically include:
[0103] Based on the acquired information, the second data packet is scheduled to the second network dedicated channel.
[0104] The second network dedicated channel is an end-to-end dedicated link formed based on VLAN policy and QoS policy.
[0105] Specifically, in this embodiment, when the first device receives a downlink data packet, the source IP address and other information obtained from the custom header of the downlink data packet can be obtained to determine the transmission mode of the downlink data packet. The downlink data packet is a reply packet of an uplink data packet, and the first device can transmit the downlink data packet based on the source IP address of the downlink data packet. If user requirements such as traffic speed limit and transmission priority are taken into consideration, a dedicated network channel can be allocated to the downlink data packet based on the obtained information.
[0106] For example: Assume that user A accesses a game APP through a mobile phone and user A has subscribed to a game application optimization service. During the user's game process, the target IP address of the uplink data packet of the mobile game APP is the IP address of the game APP server. The second device transmits the uplink data packet to the network service port of the game server. Subsequently, the second device receives a downlink reply data packet from the game server. The source IP address of the downlink data packet is the IP address of the game server. In order to ensure the priority transmission of user A's downlink game traffic, the first device transmits the downlink data packet from the game server through the second network dedicated channel, and preferentially forwards user A's game traffic to user A's mobile phone APP.
[0107] It should be noted that, regarding the specific implementation process of forming an end-to-end dedicated link based on VLAN policy and QoS policy, those skilled in the art can learn from the existing related technologies to implement it, and for the sake of brevity, it will not be repeated here.
[0108] It should also be noted that the custom headers in the above embodiments may include any of the following:
[0109] Customize UDP extension header;
[0110] Customize TCP extension header;
[0111] Customize IP extension header;
[0112] Customize the GRE (Generic Routing Encapsulation) extension header.
[0113] It should be understood that in the embodiment of the present application, the first device can reassemble the received uplink data packet and transmit it to the second device, and can also reassemble the downlink data packet returned from the second device for the uplink data packet (the downlink data packet has been reassembled by the second device) to restore it to the original downlink data packet. The first device and the second device transmit the uplink data packet and the corresponding downlink data packet through the same first network dedicated channel.
[0114] Figure 5 The present invention provides a flow chart of a data transmission method according to an embodiment of the present invention. The method is applied to a second device, which is a layer 3 device or a layer 4 device located on an uplink interface of a BRAS. Figure 5 As shown, the method includes:
[0115] S201. Reassemble the received second data packet to obtain a first data packet.
[0116] S202: Transmit the first data packet.
[0117] In this embodiment, the second data packet can be reassembled according to one or more of the user's business information, preset business information, and message header information of the physical link. If the second data packet is an uplink data packet from the first device, the reassembled first data packet can be transmitted to the corresponding network port, and the first device and the second device form a virtual network, wherein the first device can be a Layer 2 device located between the uplink interface of the IP metropolitan area network direction of the optical line terminal OLT device and the downlink interface of the broadband access server BRAS; if the second data packet is a downlink data packet, the reassembled first data packet can be routed to the first device.
[0118] By adopting the above-mentioned method of the embodiment of the present application, the received data packets are reassembled and then transmitted through the three-layer device or the four-layer device located on the uplink interface of the BRAS, thereby changing the communication logic between the OLT and the BRAS, so that the transmission of network packets can meet the needs of flexible business networking, for example: for users, it can meet the needs of users to activate personalized network channel services instantly and use them on time and on demand; for operators, it can provide users with personalized network channel services based on the user's subscription information to meet the needs of users to activate personalized network channel services instantly and use them on time and on demand; for content providers, personalized network channel services can be provided for applications.
[0119] Therefore, compared with the prior art, the method of the present application avoids frequent adjustments to the network structure of existing operators and frequent modifications to key routes, access policies, etc., thereby effectively reducing capital costs, labor costs, and time costs.
[0120] The following is a detailed description of the case where the second data packet is an uplink data packet and a downlink data packet.
[0121] In the first case, if the second data packet is a UDP uplink data packet or a TCP uplink data packet from the first device, S201 may specifically include:
[0122] S2011, obtaining the target IP address in the custom header of the second data packet;
[0123] S2012, discarding the custom header of the second data packet to obtain the first data packet;
[0124] S2013. Replace the destination IP address of the first data packet with the destination IP address obtained from the custom header of the second data packet;
[0125] The first device is a layer 2 device located between the IP metropolitan area network uplink interface of the optical line terminal OLT device and the downlink interface of the broadband access server BRAS; the second device and the first device form a virtual network.
[0126] That is to say, if the second device receives an uplink data packet from the first device, the second device can obtain the target IP address from the custom header of the uplink data packet, and replace the target IP address of the uplink data packet with the target IP address obtained from the custom header of the second data packet, and then transmit the uplink data packet based on this.
[0127] In some embodiments, before S2012, the following may also be included:
[0128] S2010. Obtain and store at least one of the following information in the custom header of the second data packet:
[0129] The identity of the user equipment of the access network;
[0130] User's business information;
[0131] Configuration information of the application service provider.
[0132] The identity identifier of the access network user equipment is an identifier used to identify the identity of the access network user equipment, and may include at least one of the following:
[0133] MAC address of the user device;
[0134] VLAN information;
[0135] QINQ double-layer VLAN information;
[0136] PPPOE session field;
[0137] The IP address of the user’s device;
[0138] TCP port or UDP port of the user device.
[0139] That is to say, the second device can also obtain other information from the custom header of the uplink data packet and store the obtained information, so that when a downlink data packet corresponding to the uplink data packet is received, the received downlink data packet can be reassembled using the obtained information so that it can be transmitted through the first device.
[0140] In some other embodiments, the above method may further include:
[0141] S200. Receive a UDP uplink data packet or a TCP uplink data packet from the first device through a first network dedicated channel.
[0142] The first network dedicated channel is an end-to-end dedicated link formed based on IP routing and access rules, VLAN policies, QoS policies and VPN configurations.
[0143] That is, the second device can receive the uplink data packet from the first device through a network dedicated channel.
[0144] In some optional embodiments, S202 may specifically include:
[0145] Based on the target IP address of the first data packet, the first data packet is dispatched to a corresponding network exit.
[0146] For example, if the target IP address of the uplink data packet received by the second device is the IP address of the Baidu server, the uplink data packet will be transmitted to the network port connected to the Baidu server.
[0147] In the second case, if the second data packet is a downlink data packet, S201 may specifically include:
[0148] The source IP address of the second data packet is replaced with the IP address of the second device, and the source IP address is placed in a custom header to obtain the first data packet.
[0149] That is, the source IP address of the second data packet is replaced with the IP address of the second device, and the source IP address of the second data packet is hidden in the custom header so that the first device can obtain the second data packet and transmit it. Since the first device and the second device form a virtual private network, the downlink data packet is first transmitted through the physical routing path and then transmitted through the virtual private network.
[0150] In some embodiments, the custom header further includes at least one of the following information:
[0151] The identity of the user equipment of the access network;
[0152] User's business information;
[0153] Configuration information of the application service provider.
[0154] The identity identifier of the access network user equipment is an identifier used to identify the identity of the access network user equipment, and may include at least one of the following:
[0155] MAC address of the user device;
[0156] VLAN information;
[0157] QINQ double-layer VLAN information;
[0158] PPPOE session field;
[0159] The IP address of the user’s device;
[0160] TCP port or UDP port of the user device.
[0161] It should be noted that the downlink data packet received by the second device is a reply packet of a received uplink data packet. In order to ensure smooth transmission of the downlink data packet, the information obtained from the custom header of the uplink data packet needs to be carried in the custom header of the reply packet.
[0162] In some optional embodiments, S202 may specifically include:
[0163] Routing the first data packet to a first device based on header information of the first data packet;
[0164] The first device is a layer 2 device located between the uplink interface of the IP metropolitan area network of the optical line terminal OLT device and the downlink interface of the broadband access server BRAS; the second device and the first device form a virtual network.
[0165] Specifically, in this embodiment, the first data packet may be transmitted to the first device through a first network dedicated channel based on the header information of the first data packet.
[0166] The first network dedicated channel is an end-to-end dedicated link formed based on IP routing and access rules, VLAN policy, QoS policy and VPN configuration.
[0167] That is, the second device can transmit a downlink data packet to the first device through a network dedicated channel. If the downlink data packet 1 is a data packet corresponding to the uplink data packet 1, the first device and the second device transmit the uplink data packet 1 and the corresponding downlink data packet 1 through the same first network dedicated channel.
[0168] It should be noted that the custom header in each of the above embodiments may include any of the following:
[0169] Customize UDP extension header;
[0170] Customize TCP extension header;
[0171] Customize IP extension header;
[0172] Customize the GRE extension header.
[0173] It should also be noted that when the second data packet is reassembled, if it is a downlink data packet, the source IP address of the second data packet can also be placed in the TOS field or the COS field, and other information can be carried in a custom header; if it is an uplink data packet, the target IP address of the second data packet can be obtained from the TOS field or the COS field, and other information can be obtained from the custom header. It should be understood that the other information here can be one or more of the identity of the access network user equipment, the user's service information, and the configuration information of the application service provider.
[0174] It should be understood that in an embodiment of the present application, the second device can reassemble the received uplink data packet (the uplink data packet has been reassembled by the first device) to restore it to the original uplink data packet and then transmit it to the corresponding network port, and can also reassemble the received downlink data packet returned for the uplink data packet and then transmit it to the first device.
[0175] It should also be understood that if the data transmission method in each of the above embodiments is applied to a seven-layer network protocol, the first device is a data link layer device, and the second device is a network layer device, or may be a transport layer device.
[0176] The above is combined with the attached Figure 4 and Figure 5 The technical solution of a data transmission method provided in an embodiment of the present application is described from the perspectives of a first device and a second device. Figure 6 and Figure 7 A technical solution of a data transmission method provided in an embodiment of the present application is described in detail.
[0177] Figure 6 A schematic diagram of the interactive process of a data transmission method provided in an embodiment of the present application. The method is directed to the transmission process of an uplink data packet, such as Figure 6 As shown, this includes:
[0178] S301. A first device receives an uplink data packet.
[0179] Specifically, in this embodiment, the uplink data packet may be a UDP uplink data packet or a TCP uplink data packet.
[0180] S302: Reassemble the uplink data packet to obtain a second data packet.
[0181] Specifically, in this embodiment, the target IP address of the uplink data packet can be replaced with the IP address of the second device, and the target IP address is placed in a custom header to obtain a second data packet.
[0182] In addition, the custom header may also include: one or more of the following information: the identity of the access network user equipment, the service information of the user, and the configuration information of the application service provider. The access network user equipment may include at least one of the following:
[0183] MAC address of the user device;
[0184] VLAN information;
[0185] QINQ double-layer VLAN information;
[0186] PPPOE session field;
[0187] The IP address of the user’s device;
[0188] TCP port or UDP port of the user device.
[0189] S303: The first device transmits the second data packet to the second device through the first network dedicated channel.
[0190] Specifically, in this embodiment, based on the header information of the second data packet, it can be distributed to the first network dedicated channel, and then transmitted to the second device through the first network dedicated channel.
[0191] The first network dedicated channel is an end-to-end dedicated link formed based on IP routing and access rules, VLAN policies, QoS policies and VPN configurations.
[0192] S304: The second device restores the received second data packet to obtain an uplink data packet.
[0193] Specifically, in this embodiment, the target IP address in the custom header of the second data packet is obtained. In addition, one or more of the identity of the access network user equipment, the user's service information, and the configuration information of the application service provider in the custom header of the second data packet can also be obtained, and the obtained information is stored. The custom header of the second data packet is discarded to obtain the uplink data packet.
[0194] S305: The second device replaces the target IP address of the uplink data packet with the target IP address obtained from the custom header of the second data packet, and transmits the uplink data packet to the network port.
[0195] Specifically, in this embodiment, the second device transmits the uplink data packet to the corresponding network port according to the acquired target IP address.
[0196] For example, if user A wants to access Baidu through the user device, the target IP address of the uplink data packet is the IP address of the Baidu server, and the second device transmits the uplink data packet to the network port connected to the Baidu server.
[0197] Figure 7 The following is a schematic diagram of an interactive process of a data transmission method provided in an embodiment of the present application. The method is directed to the transmission process of a downlink data packet, such as Figure 7 As shown, this includes:
[0198] S401, the second device receives a downlink data packet.
[0199] Specifically, in this embodiment, the downlink data packet may be Figure 6 The embodiment shown is a reply packet of an uplink data packet.
[0200] S402: The second device reassembles the downlink data packet to obtain a first data packet.
[0201] Specifically, in this embodiment, the source IP address of the downlink data packet can be replaced with the IP address of the second device, and the source IP address is placed in the custom header to obtain the first data packet. In addition, the custom header can also include: one or more of the following information: the identity of the access network user equipment, the user's service information, and the configuration information of the application service provider. Among them, the access network user equipment can include at least one of the following:
[0202] MAC address of the user device;
[0203] VLAN information;
[0204] QINQ double-layer VLAN information;
[0205] PPPOE session field;
[0206] The IP address of the user’s device;
[0207] TCP port or UDP port of the user device.
[0208] That is to say, as a reply packet for the received uplink data packet, it is necessary to put the information obtained from the uplink data packet back into the reply packet and transmit it back.
[0209] S403: The second device transmits the first data packet to the first device through the first network dedicated channel.
[0210] Specifically, in this embodiment, the first network dedicated channel is an end-to-end dedicated link formed based on IP routing and access rules, VLAN policies, QoS policies and VPN configurations. If an uplink data packet is transmitted through the first network dedicated channel 1, the corresponding downlink data packet is also transmitted back through the first network dedicated channel 1.
[0211] S404: The first device restores the received first data packet to obtain a downlink data packet.
[0212] Specifically, in this embodiment, the source IP address in the custom header of the first data packet is obtained; in addition, one or more of the identity of the access network user equipment, the user's service information, and the configuration information of the application service provider in the custom header of the first data packet can also be obtained, and the obtained information is stored. The custom header of the first data packet is discarded to obtain a downlink data packet.
[0213] S405: The first device replaces the source IP address of the downlink data packet with the source IP address obtained from the custom header of the first data packet, and schedules the downlink data packet to the dedicated channel of the second network.
[0214] Specifically, in this embodiment, the first device can schedule the downlink data packet to the second network dedicated channel according to the acquired information, wherein the second network dedicated channel is an end-to-end dedicated link formed based on VLAN policy and QoS policy.
[0215] That is to say, assuming that user A accesses Baidu through a user device, the source IP address of the downlink data packet is the IP address of the Baidu server, and the first device transmits the downlink data packet from the Baidu server to the user device of user A through the second network dedicated channel.
[0216] In summary, the present application provides a method for using overlay virtual network technology to implement personalized sharded virtual networking for content providers, application providers, and ordinary Internet users, which can provide users with flexible and available real-time purchase and use services. At the same time, it can avoid frequent adjustments to the network structure of existing operators, frequent modifications to key routes, access policies, etc., thereby effectively reducing capital costs, labor costs, and time costs.
[0217] Figure 8 A first device for performing data transmission is provided for an embodiment of the present application. The first device is a layer 2 device located between an uplink interface in the IP metropolitan area network direction of an optical line terminal OLT device and a downlink interface in a broadband access server BRAS; Figure 8 As shown, the first device 50 may include: a first processing module 501 and a first transmission module 502.
[0218] The first processing module 501 is used to reassemble the received first data packet to obtain a second data packet.
[0219] The first transmission module 502 is configured to transmit the second data packet.
[0220] Further, if the first data packet is a UDP uplink data packet or a TCP uplink data packet, the first processing module 501 is specifically used to:
[0221] The target IP address of the first data packet is replaced with the IP address of a second device, and the target IP address is placed in a custom header to obtain the second data packet, wherein the second device and the first device form a virtual network.
[0222] Furthermore, the custom header also includes at least one of the following information:
[0223] The identity of the user equipment of the access network;
[0224] User's business information;
[0225] Configuration information of the application service provider.
[0226] Furthermore, the first transmission module 502 is specifically configured to: route the second data packet to the second device based on header information of the second data packet.
[0227] Further, when the first transmission module 502 routes the second data packet to the second device based on the header information of the second data packet, it is specifically configured to:
[0228] Distributing the second data packet to the first network dedicated channel based on the header information of the second data packet;
[0229] The second data packet is transmitted to the second device through the first network dedicated channel.
[0230] Specifically, in this embodiment, the first network dedicated channel is an end-to-end dedicated link formed based on IP routing and access rules, VLAN policy, QoS policy and VPN configuration.
[0231] Further, if the first data packet is a downlink data packet from the second device, the first processing module 501 is specifically used to:
[0232] Obtaining a source IP address in a custom header of the first data packet;
[0233] discarding the custom header of the first data packet to obtain the second data packet;
[0234] Replacing the source IP address of the second data packet with the source IP address obtained from the custom header of the first data packet;
[0235] The second device and the first device form a virtual network.
[0236] Furthermore, the first processing module 501 is further configured to obtain at least one of the following information in the custom header of the first data packet:
[0237] The identity of the user equipment of the access network;
[0238] User's business information;
[0239] Configuration information of the application service provider.
[0240] Furthermore, the first transmission module 502 is specifically configured to: schedule the second data packet to a second network dedicated channel based on the acquired information.
[0241] Specifically, in this embodiment, the second network dedicated channel is an end-to-end dedicated link formed based on a VLAN policy and a QoS policy.
[0242] Further, in the above embodiment, the identity of the access network user equipment includes at least one of the following:
[0243] MAC address of the user device;
[0244] VLAN information;
[0245] QINQ double-layer VLAN information;
[0246] PPPOE session field;
[0247] The IP address of the user’s device;
[0248] TCP port or UDP port of the user device.
[0249] Further, in the above embodiment, the custom header includes any one of the following:
[0250] Customize UDP extension header;
[0251] Customize TCP extension header;
[0252] Customize IP extension header;
[0253] Customize the GRE extension header.
[0254] The first device of the embodiment of the present application can execute the method provided by the embodiment of the present application, and its implementation principle and the effects that can be achieved are similar. The actions performed by each module in the first device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0255] Fig. 9 A second device for performing data transmission is provided for an embodiment of the present application. The second device is a layer 3 device located on an uplink interface of a BRAS; Fig. 9 As shown, the second device 60 may include: a second processing module 601 and a second transmission module 602.
[0256] The second processing module 601 is used to reassemble the received second data packet to obtain a first data packet.
[0257] The second transmission module 602 is used to transmit the first data packet.
[0258] Further, if the second data packet is a UDP uplink data packet or a TCP uplink data packet from the first device, the second processing module 601 is specifically used to:
[0259] Obtaining a destination IP address in a custom header of the second data packet;
[0260] discarding the custom header of the second data packet to obtain the first data packet;
[0261] Replacing the destination IP address of the first data packet with the destination IP address obtained from the custom header of the second data packet;
[0262] The first device is a layer 2 device located between the IP metropolitan area network uplink interface of the optical line terminal OLT device and the downlink interface of the broadband access server BRAS; the second device and the first device form a virtual network.
[0263] Furthermore, the second processing module 601 is further configured to obtain and store at least one of the following information in the custom header of the second data packet:
[0264] The identity of the user equipment of the access network;
[0265] User's business information;
[0266] Configuration information of the application service provider.
[0267] Furthermore, the second device 60 further includes: a receiving module,
[0268] The receiving module is used to receive a UDP uplink data packet or a TCP uplink data packet from the first device through a first network dedicated channel.
[0269] Furthermore, the second transmission module 602 is specifically configured to:
[0270] Based on the target IP address of the first data packet, the first data packet is dispatched to a corresponding network exit.
[0271] Further, if the second data packet is a downlink data packet, the second processing module 601 is specifically configured to:
[0272] The source IP address of the second data packet is replaced with the IP address of the second device, and the source IP address is placed in a custom header to obtain the first data packet.
[0273] Furthermore, the custom header also includes at least one of the following information:
[0274] The identity of the user equipment of the access network;
[0275] User's business information;
[0276] Configuration information of the application service provider.
[0277] Furthermore, the second transmission module 602 is specifically configured to:
[0278] Routing the first data packet to a first device based on header information of the first data packet;
[0279] The first device is a layer 2 device located between the IP metropolitan area network uplink interface of the optical line terminal OLT device and the downlink interface of the broadband access server BRAS; the second device and the first device form a virtual network.
[0280] Further, when the second transmission module 602 routes the first data packet to the first device based on the header information of the first data packet, it is specifically configured to:
[0281] Based on the header information of the first data packet, the first data packet is transmitted to the first device through a first network dedicated channel.
[0282] Specifically, in this embodiment, the first network dedicated channel is an end-to-end dedicated link formed based on IP routing and access rules, VLAN policy, QoS policy and VPN configuration.
[0283] Further, in the above embodiment, the identity of the access network user equipment includes at least one of the following:
[0284] MAC address of the user device;
[0285] VLAN information;
[0286] QINQ double-layer VLAN information;
[0287] PPPOE session field;
[0288] The IP address of the user’s device;
[0289] TCP port or UDP port of the user device.
[0290] Further, in the above embodiment, the custom header includes any one of the following:
[0291] Customize UDP extension header;
[0292] Customize TCP extension header;
[0293] Customize IP extension header;
[0294] Customize the GRE extension header.
[0295] The second device of the embodiment of the present application can execute the method provided by the embodiment of the present application, and its implementation principle and the effects that can be achieved are similar. The actions performed by each module in the second device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0296] The embodiment of the present application also provides an electronic device, including a memory, a processor and a computer program stored in the memory, the processor executes the above computer program to implement the steps of the data transmission method provided in the embodiment of the present application, compared with the prior art, it can achieve: through a second-layer device located between the IP metropolitan area network direction uplink interface of the optical line terminal OLT device and the downlink interface of the broadband access server BRAS, the received data packets are reassembled and then transmitted, thereby changing the communication logic between the OLT and the BRAS, so that the transmission of network packets can meet the needs of flexible business networking, for example: for users, it can meet the needs of users to instantly activate and use personalized network channel services on time and on demand; for operators, based on the user's subscription information, personalized network channel service services can be provided to users to meet the needs of users to instantly activate and use personalized network channel services on time and on demand; for content providers, personalized network channel services can be provided to applications.
[0297] At the same time, it can avoid frequent adjustments to the network structure of existing operators, frequent modifications to key routes, access policies, etc., thereby effectively reducing capital costs, labor costs, and time costs.
[0298] Optionally, the electronic device may be implemented as a first device, the first device includes at least one processor, and the at least one processor is configured to execute the method performed by the first device provided in any optional embodiment of the present application. Optionally, the electronic device may be implemented as a second device, the second device includes at least one processor, and the at least one processor is configured to execute the method performed by the second device provided in any optional embodiment of the present application.
[0299] In an alternative embodiment, an electronic device is provided, such as Fig.10 As shown, Fig.10 The electronic device 700 shown includes: a processor 701 and a memory 703. The processor 701 and the memory 703 are connected, for example, via a bus 702.
[0300] Processor 701 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 701 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0301] The bus 702 may include a path to transmit information between the above components. The bus 702 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 702 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0302] The memory 703 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0303] The memory 703 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 701. The processor 701 is used to execute the computer program stored in the memory 703 to implement the steps shown in the above method embodiment.
[0304] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0305] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0306] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially 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 a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0307] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0308] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A data transmission method, It is characterized in that Applied to a first device, the first device is a layer 2 device located between an uplink interface in the IP metropolitan area network direction of an optical line terminal OLT device and a downlink interface of a broadband access server BRAS; the method comprises: Reassembling the received first data packet to obtain a second data packet; transmitting the second data packet; If the first data packet is a TCP uplink data packet or a UDP uplink data packet, the step of reassembling the received first data packet to obtain the second data packet includes: Replacing the target IP address of the first data packet with the IP address of a second device, and putting the target IP address into a custom header to obtain the second data packet, wherein the second device and the first device form a virtual network; If the first data packet is a downlink data packet from the second device, the step of reassembling the received first data packet to obtain a second data packet includes: Obtaining a source IP address in a custom header of the first data packet; discarding the custom header of the first data packet to obtain the second data packet; Replacing the source IP address of the second data packet with the source IP address obtained from the custom header of the first data packet; The second device and the first device form a virtual network.
2. The method according to claim 1, It is characterized in that The custom header also includes at least one of the following information: The identity of the user equipment of the access network; User's business information; Configuration information of the application service provider.
3. The method according to claim 1 or 2, It is characterized in that The transmitting the second data packet comprises: Based on the header information of the second data packet, the second data packet is routed to the second device.
4. The method according to claim 3, It is characterized in that The step of routing the second data packet to the second device based on the header information of the second data packet includes: Distributing the second data packet to the first network dedicated channel based on the header information of the second data packet; The second data packet is transmitted to the second device through the first network dedicated channel.
5. The method according to claim 4, It is characterized in that The first network dedicated channel is an end-to-end dedicated link formed based on IP routing and access rules, VLAN policies, QoS policies and VPN configuration.
6. The method according to claim 1, It is characterized in that Before discarding the custom header of the first data packet, the method further includes: Obtain at least one of the following information in the custom header of the first data packet: The identity of the user equipment of the access network; User's business information; Configuration information of the application service provider.
7. The method according to claim 6, It is characterized in that The transmitting the second data packet comprises: Based on the acquired information, the second data packet is scheduled to the second network dedicated channel.
8. The method according to claim 7, It is characterized in that The second network dedicated channel is an end-to-end dedicated link formed based on VLAN policy and QoS policy.
9. The method according to claim 2 or 6, It is characterized in that The identity of the access network user equipment includes at least one of the following: MAC address of the user device; VLAN information; QINQ double-layer VLAN information; PPPOE session field; The IP address of the user’s device; TCP port or UDP port of the user device.
10. The method according to any one of claims 1, 2, 4-8, It is characterized in that The custom header includes any of the following: Customize UDP extension header; Customize TCP extension header; Customize IP extension header; Customize the GRE extension header.
11. A data transmission method, It is characterized in that Applied to a second device, the second device is a layer 3 device located on an uplink interface of a BRAS; the method comprises: Reassembling the received second data packet to obtain a first data packet; Transmitting the first data packet; if the second data packet is a UDP uplink data packet or a TCP uplink data packet from the first device, reassembling the received second data packet to obtain the first data packet, including: Obtaining a destination IP address in a custom header of the second data packet; discarding the custom header of the second data packet to obtain the first data packet; Replacing the destination IP address of the first data packet with the destination IP address obtained from the custom header of the second data packet; The first device is a layer 2 device located between an uplink interface of an IP metropolitan area network of an optical line terminal OLT device and a downlink interface of a broadband access server BRAS; the second device and the first device form a virtual network; If the second data packet is a downlink data packet, the step of reassembling the received second data packet to obtain the first data packet includes: The source IP address of the second data packet is replaced with the IP address of the second device, and the source IP address is placed in a custom header to obtain the first data packet.
12. The method according to claim 11, It is characterized in that Before discarding the custom header of the second data packet, the method further includes: Obtain and store at least one of the following information in the custom header of the second data packet: The identity of the user equipment of the access network; User business information; Configuration information of the application service provider.
13. The method according to claim 11, It is characterized in that The method further comprises: A UDP uplink data packet or a TCP uplink data packet is received from the first device through the first network dedicated channel.
14. The method according to claim 11, It is characterized in that The transmitting the first data packet comprises: Based on the target IP address of the first data packet, the first data packet is dispatched to a corresponding network exit.
15. The method according to claim 11, It is characterized in that The custom header also includes at least one of the following information: The identity of the user equipment of the access network; User business information; Configuration information of the application service provider.
16. The method according to claim 15, It is characterized in that The transmitting the first data packet comprises: Routing the first data packet to a first device based on header information of the first data packet; The first device is a layer 2 device located between the uplink interface of the IP metropolitan area network of the optical line terminal OLT device and the downlink interface of the broadband access server BRAS; the second device and the first device form a virtual network.
17. The method according to claim 16, It is characterized in that The step of routing the first data packet to the first device based on the header information of the first data packet includes: Based on the header information of the first data packet, the first data packet is transmitted to the first device through a first network dedicated channel.
18. The method according to claim 13 or 17, It is characterized in that The first network dedicated channel is an end-to-end dedicated link formed based on IP routing and access rules, VLAN policy, QoS policy and VPN configuration.
19. The method according to claim 12 or 15, It is characterized in that The identity of the access network user equipment includes at least one of the following: MAC address of the user device; VLAN information; QINQ double-layer VLAN information; PPPOE session field; The IP address of the user’s device; TCP port or UDP port of the user device.
20. The method according to any one of claims 11 to 17, It is characterized in that The custom header includes any of the following: Customize UDP extension header; Customize TCP extension header; Customize IP extension header; Customize the GRE extension header.
21. A first device for performing data transmission, It is characterized in that The first device is a layer 2 device located between an uplink interface in the IP metropolitan area network direction of an optical line terminal OLT device and a downlink interface in a broadband access server BRAS; the first device includes: A first processing module, used for reassembling the received first data packet to obtain a second data packet; A first transmission module, configured to transmit the second data packet; If the first data packet is a TCP uplink data packet or a UDP uplink data packet, the first processing module is specifically used to: replace the target IP address of the first data packet with the IP address of the second device, and put the target IP address into a custom header to obtain the second data packet, wherein the second device and the first device form a virtual network; If the first data packet is a downlink data packet from a second device, the first processing module is specifically used to: obtain the source IP address in the custom header of the first data packet; discard the custom header of the first data packet to obtain the second data packet; replace the source IP address of the second data packet with the source IP address obtained from the custom header of the first data packet; wherein the second device and the first device form a virtual network.
22. A second device for performing data transmission, It is characterized in that The second device is a layer 3 device located on the uplink interface of the broadband access server BRAS; the second device includes: A second processing module, used for reassembling the received second data packet to obtain a first data packet; A second transmission module, configured to transmit the first data packet; If the second data packet is a UDP uplink data packet or a TCP uplink data packet from the first device, the second processing module is specifically used to: obtain the target IP address in the custom header of the second data packet; discard the custom header of the second data packet to obtain the first data packet; replace the target IP address of the first data packet with the target IP address obtained from the custom header of the second data packet; The first device is a layer 2 device located between an uplink interface of an IP metropolitan area network of an optical line terminal OLT device and a downlink interface of a broadband access server BRAS; the second device and the first device form a virtual network; If the second data packet is a downlink data packet, the second processing module is specifically used to: replace the source IP address of the second data packet with the IP address of the second device, and put the source IP address into a custom header to obtain the first data packet.
23. An electronic device, It is characterized in that include: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the method according to any one of claims 1 to 20.
24. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 20 are implemented.
