Data communication method and device
By determining the user's path information in the network device, data load sharing is achieved, which solves the management complexity and efficiency problems caused by improper load sharing methods and improves data communication efficiency.
Patent Information
- Application Number
- CN202310270404.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-09-20
AI Technical Summary
During the data communication process, improper load sharing methods increase the complexity of network device management and reduce data communication efficiency.
The network device determines the path information that matches the client identifier carried in the communication request from the path information of multiple clients, and uses the transmission path indicated by the path information to transmit data, realizing load sharing of client traffic, reducing management complexity and improving efficiency. Data communication efficiency.
It effectively realizes load sharing of user traffic, reduces the management complexity of network equipment, improves data communication efficiency, and avoids the transmission path of data being sent to other users.
Smart Images

Figure CN118677833A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a data communication method and device. Background Art
[0002] Load balancing (LB), also known as load sharing, refers to the process of distributing the load (such as traffic) of tenants (such as enterprises that rent data transmission services) to multiple links and then sending them to the destination address. Usually, network devices use multiple forwarding modules located at different binding segment addresses (BSIDs) to distribute the tenant's load to multiple links to achieve load sharing. Therefore, when the number of tenants accessing the communication network increases, the number of BSIDs will also increase significantly. As a result, during the data communication process, network devices need to consume a lot of resources to manage the BSIDs corresponding to the forwarding modules, and the data communication efficiency is affected. Summary of the invention
[0003] The present application provides a data communication method and device for solving the problem that improper load sharing method affects data communication efficiency.
[0004] In a first aspect, the present application provides a data communication method. The data communication method is executed by a network device, in which path information of multiple user terminals is stored. For a first user terminal among the multiple user terminals, the path information of the first user terminal indicates one or more transmission paths configured by the network device for the first user terminal. The data communication method includes: first, the network device receives a communication request. The communication request carries identification information indicating the first user terminal and data to be transmitted by the first user terminal. Secondly, the network device determines the path information of the first user terminal from the path information of multiple user terminals based on the identification of the first user terminal. Finally, the data of the first user terminal is forwarded through the transmission path indicated by the path information of the first user terminal.
[0005] In the present application, the network device determines the path information that matches the user terminal identifier carried in the communication request from the path information of multiple user terminals. Thus, the network device uses the transmission path of the user terminal indicated by the path information to transmit the data of the user terminal, avoiding the network device sending data to the transmission path of other user terminals. When there are multiple transmission paths, the network device distributes the data to be transmitted by the user terminal to the multiple transmission paths (such as links) to be used by the user terminal, thereby realizing load sharing of the user terminal traffic at the network device, reducing management complexity while improving data communication efficiency.
[0006] In a possible implementation, a plurality of forwarding modules are deployed in the network device. The transmission path indicated by the path information of the first user terminal includes: a transmission path formed by at least one associated forwarding module and the first user terminal. The at least one associated forwarding module is used to indicate a forwarding module that forwards data of the first user terminal.
[0007] In the present application, the network device uses at least one forwarding module associated with the first user terminal and the first user terminal to form at least one transmission path to transmit the data of the first user terminal, and uses multiple links to transmit the data of the first user terminal, thereby realizing load sharing for the first user terminal at the network device.
[0008] In a possible implementation, before the network device receives the communication request, the data communication method further includes: obtaining path information of multiple user terminals. The network device includes a front-end module and multiple forwarding modules. The network device obtains the path information of multiple user terminals including: first, the front-end module receives the first information, the second information, and the association relationship between the first information and the second information sent by the forwarding module. The first information indicates each user terminal in the multiple user terminals. The second information indicates each forwarding module in the multiple forwarding modules. Secondly, the front-end module establishes a transmission path between each user terminal and the forwarding module associated with each user terminal for each user terminal based on the association relationship between the first information and the second information. Finally, the front-end module determines the path information of multiple user terminals based on the transmission path of each user terminal.
[0009] In a possible implementation, a network device determines path information of a first user terminal from path information of multiple user terminals according to a communication request, including: first, the network device determines an identifier of the first user terminal according to the communication request. Second, the network device determines at least one forwarding module associated with the first user terminal in the network device according to the identifier of the first user terminal. Finally, the network device determines at least one transmission path corresponding to the first user terminal according to the first user terminal and the at least one forwarding module.
[0010] In a possible implementation, the network device forwards data through a transmission path indicated by the path information of the first user terminal, including: the network device obtains one or more to-be-transmitted paths for transmitting the data of the first user terminal according to the path information of the first user terminal, and the network device sends the data of the first user terminal to the one or more to-be-transmitted paths respectively.
[0011] In a second aspect, the present application provides a data communication device, which includes modules for executing the data communication method in the first aspect or any possible implementation of the first aspect.
[0012] In a possible design, path information of multiple user terminals is stored in a network device. The data communication device includes: an acquisition unit, a path determination unit, and a sending unit. The acquisition unit is used to receive a communication request. The communication request carries identification information of a first user terminal and data to be transmitted by the first user terminal. The first user terminal is any one of multiple user terminals. The path determination unit is used to determine the path information of the first user terminal from the path information of multiple user terminals according to the identification of the first user terminal. The sending unit is used to forward the data of the first user terminal through the transmission path indicated by the path information of the first user terminal.
[0013] In a third aspect, the present application provides a network device. The network device includes: a memory and a processor. The memory is used to store a set of computer instructions. When the processor executes the set of computer instructions, the operation steps of the data communication method in the first aspect or any possible implementation of the first aspect are executed.
[0014] In a fourth aspect, the present application provides a communication system. The communication system includes at least two network devices provided in the third aspect. The network devices are used to perform the operation steps of the data communication method in any possible implementation of the first aspect or the first aspect.
[0015] In a fifth aspect, the present application provides a chip system. The chip system includes a memory and at least one processor. The memory is used to store a set of computer instructions, and when the processor executes the set of computer instructions, the operation steps of the data communication method in the first aspect or any possible implementation of the first aspect are executed. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0016] In a sixth aspect, the present application provides a computer-readable storage medium. The computer-readable storage medium includes: computer software instructions. When the computer software instructions are executed in a network device, the network device executes the operation steps of the data communication method in the first aspect or any possible implementation of the first aspect.
[0017] In a seventh aspect, the present application provides a computer program product. When the computer program product is run on a network device, the network device is caused to execute the operation steps of the data communication method in the first aspect or any possible implementation of the first aspect.
[0018] Regarding the beneficial effects that can be achieved in the second to seventh aspects above, reference can be made to the description of the first aspect or any possible implementation of the first aspect, and no further description is given here. Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1A schematic diagram of the architecture of a communication system provided for this application;
[0020] Figure 2 A schematic diagram of a network architecture provided for this application;
[0021] Figure 3 A schematic diagram of the structure of a network device provided for this application;
[0022] Figure 4 A flowchart of a data communication method provided by the present application;
[0023] Figure 5 A process for a data communication method Figure 1 ;
[0024] Figure 6 A process for a data communication method Figure 2 ;
[0025] Figure 7 A schematic diagram of the structure of a data communication device provided by the present application;
[0026] Figure 8 A schematic diagram of the structure of a network device provided for this application. DETAILED DESCRIPTION
[0027] The present application provides a data communication method. The data communication method includes: a network device determines the path information that matches the user terminal identifier carried in the communication request from the path information of multiple user terminals. Thus, the network device uses the transmission path of the user terminal indicated by the path information to transmit the data of the user terminal, avoiding the network device sending data to the transmission path of other user terminals. When there are multiple transmission paths, the network device distributes the data to be transmitted by the user terminal to the multiple transmission paths (such as links) to be used by the user terminal, thereby realizing load sharing of the user terminal traffic at the network device, reducing management complexity while improving data communication efficiency.
[0028] In order to make the description of the following embodiments clear and concise, a brief introduction to the related technology is first given.
[0029] Load balancing (LB), also known as load sharing, refers to the process of distributing the load (such as traffic) of a tenant (such as an enterprise that rents data transmission services provided by a network system) to multiple links and then sending it to the destination address.
[0030] The forwarding information base (FIB) is also called a forwarding routing table or forwarding table. The FIB is stored in the data plane of the router (or other network device). The table entries of the FIB are called forwarding table entries. Each forwarding table entry includes information such as a specified destination to be reached, the outbound interface required to reach the destination, and the next hop IP address.
[0031] An Internet service provider (ISP) network refers to an operator that provides Internet access services, information services, and value-added services to a large number of users.
[0032] Figure 1 This is a schematic diagram of the architecture of a communication system provided by this application. Figure 1 As shown, the communication system 100 includes a source device 110 and a destination device 130 , and a network system 120 for providing communication services to the source device 110 and the destination device 130 .
[0033] The source device 110 may refer to a device that sends data. For example, the source device 110 is an application server or storage device that stores data. The source device 110 may use the network system 120 to send data to other devices (such as Figure 1 The source device 110 sends data to the destination device 130 shown in the figure. Taking the network system 120 as an ISP network as an example, the source device 110 may refer to the device of a tenant who rents the ISP network to send data. The data stored in the source device 110 may include but is not limited to: audio, video, text or other types of data. When the data sent by the source device is a video, audio or other multimedia file, the source device 110 can transmit this data in a streaming manner, such as a media stream. The destination device 130 does not download the entire streaming media file of the media stream before playing, so as to reduce the delay of the destination device 130 in playing the streaming media corresponding to the media stream and improve the user-side quality of experience (QoE).
[0034] The network system 120 may refer to the Internet, a cellular network, a data center network, or other networks. For example, the network system 120 is an ISP network. The network system 120 may include multiple networks that communicate with each other, such as Figure 1 Network 1 to network n are shown. Where n is a positive integer greater than or equal to 1. Any two networks that need to communicate among the multiple networks can forward data through network devices. For a description of the network, see Figure 2 The detailed description of the network equipment is not repeated here. Figure 3 The description is not repeated here.
[0035] The destination device 130 may refer to a device that requests data. For example, if the destination device 130 refers to a terminal, the terminal may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a personal communication service (PCS) phone, a desktop computer, a personal digital assistant (PDA), a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. Taking the network system 120 as an ISP network as an example, the destination device 130 may refer to a device that requests data of a tenant who rents the ISP network.
[0036] It is worth noting that the above-mentioned source device 110 and destination device 130 are only examples provided in this embodiment and should not be understood as limiting the present application. The present application does not limit the specific form and quantity of the source device 110 and destination device 130 in the communication system 100.
[0037] During data transmission, if the destination IP addresses of multiple messages sent by the source device 110 are the same, load balancing can be used to forward the multiple messages to improve data transmission efficiency. Exemplarily, in the FIB of the network device, if there are transmission paths corresponding to entries with the same address and mask but different attributes of the next hop route (such as IP address), outbound interface, or tunnel identifier (tunnel ID), the network device can implement load balancing of traffic in the network system based on the multiple transmission paths.
[0038] Combination of the above Figure 1The architecture of the communication system provided by the present application is described in detail, and the network provided by the present application is described in detail below in conjunction with the accompanying drawings. For example, the network may include multiple network devices, and the network device may be a routing transmission device such as a router or a switch. For example, the network device is a wireless access point (AP), such as a wireless router. The network device may be a switch connected to a wireless router. In some possible other situations, the network device included in the network may also be other network devices with data transmission functions. For example, a server or a base station device with data transmission functions, etc.
[0039] like Figure 2 As shown, Figure 2 A schematic diagram of a network architecture provided in the present application. The network 200 is a spine-leaf network composed of switches, and the network 200 includes: a plurality of switches, such as spine switches 211 to 214, and leaf switches 221 to 223, and so on.
[0040] The leaf switch is used to connect the physical servers of tenants that communicate with the network 200, and can realize the function of an access switch. Figure 2 As shown, the leaf switch 221 is connected to the tenant's server 231 to access the tenant's server 231 to the network 200 .
[0041] The spine switch is used to forward data from the leaf switch and can realize the function of a core router (CR). For example, when the servers connected to two leaf switches need to communicate, the data needs to be forwarded via the spine switch. Figure 2 As shown, when the tenant's server 231 and the tenant's server 232 need to communicate, the data needs to be forwarded through the leaf switch 221, the leaf switch 222, and the spine switch (such as the spine switch 212) that communicates with the leaf switch 221 and the leaf switch 222 at the same time.
[0042] It is worth noting that in a leaf-spine network, the number of downlink ports of the spine switch determines the number of leaf switches, and the number of uplink ports of the leaf switch determines the number of spine switches. The scale of the leaf-spine network is determined by the number of downlink ports of the spine switch and the number of uplink ports of the leaf switch. For more information about the leaf-spine network, please refer to the relevant description of the general technology, which will not be repeated here.
[0043] It is understandable that scale, virtualization, and cloud computing have become the development direction of the network to integrate information technology (IT) resources, improve resource utilization efficiency, and reduce maintenance costs. Figure 2The server shown may be deployed with a virtual machine (VM). A VM is a virtual device obtained by virtualizing physical computing resources, storage resources, and network resources through virtualization technology, also known as a logical computer. The physical device running the virtual machine is called a host machine, such as the tenant's server 231 is the host machine of VM1 and VM2, the tenant's server 232 is the host machine of VM3 and VM4, and the tenant's server 233 is the host machine of VM5 and VM6.
[0044] In one possible example, the computing resources required by the VM are derived from the local processor and memory of the server, while the storage resources required by the VM can be derived from the local hard disk of the server. For example, the virtual machine 231A (VM2 mentioned above) includes a virtual processor 231A1, a virtual memory 231A2, and a virtual network card 232A3. The computing resources required by the virtual processor 231A1 are provided by the processor, the storage resources required by the virtual memory 231A2 are provided by the memory (or hard disk), and the network resources required by the virtual network card 232A3 are provided by the network card included in the server. In addition, various applications can be run in the VM, and the user end can trigger data access (including reading data, writing data, and migrating data, etc.), streaming media transmission and playback, and other services through the applications in the VM.
[0045] Combination of the above Figure 2 Describes the network provided by this application, which can be used Figure 2 Described network construction Figure 1 The network system described in this paper is used to realize the transmission of tenant data. When tenant data needs to be transmitted between two networks, it can be used Figure 3 Describes the network device implementation. Figure 3 A schematic diagram of the structure of a network device provided for this application, such as Figure 3 As shown, the network device 300 includes a front-end module 310 and multiple forwarding modules.
[0046] The front-end module 310 receives tenant data that needs to be forwarded by the network device 300 to other networks, and sends the data to the forwarding module of the network device 300. The front-end module may be a data center gateway (DC-GW).
[0047] The forwarding module is used to forward the data of one or more tenants according to the path information of the tenants. The forwarding module receives the tenant data transmitted by the front module 310 and forwards the data to other networks. The forwarding module can refer to a gateway device in a physical form or a virtual gateway (VGW).
[0048] like Figure 3As shown, the network device 300 includes forwarding modules 1 to n, where n is a positive integer greater than 1. Forwarding module 1 is used to forward data of tenant 1, forwarding module 2 is used to forward data of tenant 1 and tenant 2, forwarding module 3 is used to forward data of tenant 3, and forwarding module n is used to forward data of tenant m.
[0049] In a possible example, the forwarding module is a server or other computing device with a data forwarding function.
[0050] In another possible example, the forwarding module is a container (docker) or VM with data forwarding function set on the server. For the relevant description of the VM, please refer to the above and will not be repeated here.
[0051] Figure 3 The forwarding modules shown are only examples provided in this embodiment and should not be understood as the network device 300 can only provide n forwarding modules. The network device 300 can provide more or fewer forwarding modules depending on the number of user terminals, and a user terminal can use the routing provided by one or more forwarding modules.
[0052] The front-end module 310 can obtain the tenant's path information in the following manner, which includes the following steps ① to ③.
[0053] Step ①: The front-end module 310 receives the first information, the second information, and the association relationship between the first information and the second information sent by the forwarding module.
[0054] The first information indicates the identifier of each of the multiple clients. Exemplarily, the client identifier may refer to the IP address or MAC address of the client. For example, the first information may refer to the IP address of client 1, the IP address of client 2, and the IP address of client 3.
[0055] The second information indicates the identifier of each forwarding module in the plurality of forwarding modules. Exemplarily, the forwarding module identifier may refer to the IP address or MAC address of the forwarding module. For example, the second information may refer to the MAC address of forwarding module 1, the MAC address of forwarding module 2, and the MAC address of forwarding module 3.
[0056] The association relationship between the first information and the second information refers to: the corresponding relationship between the user terminal indicated by the first information and the forwarding module indicated by the second information.
[0057] In a possible scenario, the association relationship between the first information and the second information includes: data transmitted to the user terminal via the network device 300 can adopt the route of the forwarding module corresponding to the user terminal, that is, the data forwarding process of the data of the user terminal in the network device 300 is managed by the forwarding module corresponding to the user. For example, the association relationship between the user terminal 1 and the forwarding module 1 means: data transmitted to the user terminal 1 via the network device 300 can adopt the route of the forwarding module 1, that is, the data forwarding process of the data in the network device 300 is managed by the forwarding module 1.
[0058] In another possible scenario, the association between the first information and the second information includes: the network device 300 receives data sent / forwarded by the user terminal 1 to other devices through the routing of the forwarding module 1, that is, the process of the user terminal 1 sending / forwarding data to other devices is managed by the forwarding module 1.
[0059] For example, the association relationship between user terminal 1 and forwarding module 1 means that the data sent / forwarded by user terminal 1 to other devices received by network device 300 must be routed through forwarding module 1, that is, the process of user terminal 1 sending / forwarding data to other devices is managed by forwarding module 1.
[0060] With respect to the process in which the front-end module 310 receives information sent by the forwarding module, two feasible implementation methods are provided below.
[0061] In a first feasible implementation, the front-end module 310 periodically requests the forwarding module to send information, including: first, the front-end module 310 uses a neighbor protocol to establish communication with the forwarding module of the network device 300; the protocol neighbor can be a border gateway protocol (BGP). Secondly, the front-end module 310 periodically requests the forwarding module to send the first information, the second information, and the association relationship between the first information and the second information, and in response: the forwarding module periodically sends the first information, the second information, and the association relationship between the first information and the second information.
[0062] In a second feasible implementation, the front-end module 310 periodically receives information sent by the forwarding module, including: the front-end module 310 uses BGP to establish communication with the forwarding module of the network device 300, and the forwarding module periodically sends a data request, and in response: the forwarding module periodically sends the first information, the second information, and the association relationship between the first information and the second information. The front-end module 310 periodically receives the first information, the second information, and the association relationship between the first information and the second information sent by the forwarding module.
[0063] In a possible implementation, the neighbor protocol can be extended to adjust the information carried in the message so that the network device 300 has the ability to negotiate load sharing information. The ability to negotiate load sharing information means that the front module 310 can be used to allocate a corresponding forwarding module to the user end to forward the data to be transmitted. When there are multiple forwarding modules on the user end, the data of the user end can be transmitted using different transmission paths.
[0064] Exemplarily, the following instructions may be used in an open message to extend the BGP protocol so that the network device 300 has the ability to negotiate load sharing information.
[0065] “Capability Code (1 octet) (granting negotiation capability);
[0066] Capability Length (1 octet) (length);
[0067] Capability Value(variable)(value)".
[0068] Taking BGP as an example, after extending the neighbor protocol, the forwarding module can send the association relationship between the first information and the second information to the front module 310 through routing. Exemplarily, the following instructions can be used to implement the transmission of the association relationship between the first information and the second information.
[0069] "AttrType: tenant collection;
[0070] Length;
[0071] Tenant 1's information;
[0072] Tenant 2's information;
[0073] Information of tenant n".
[0074] Taking BGP as an example, after extending the neighbor protocol, the forwarding module can send the parsing rules of the first information, the second information, and the association relationship between the first information and the second information in the message to the front module 310 through the message. Taking APN as an example, the following instructions can be used to implement it.
[0075] "AttrType: APN;
[0076] Length(length);
[0077] user-id (tenant ID);
[0078] app-id (app identifier).
[0079] Step ②: The front-end module 310 establishes a transmission path for each user terminal according to the association relationship between the first information and the second information. The transmission path indicates the transmission path between each user terminal and the forwarding module associated with each user terminal.
[0080] Exemplarily, the front module 310 establishes path 11 and path 12 for the user terminal 1 according to the correspondence between the user terminal 1 and the forwarding module 1 and the forwarding module 2. Path 11 refers to the use of the forwarding module 1 to send the data of the user terminal 1, and path 12 refers to the use of the forwarding module 2 to send the data of the user terminal 1.
[0081] Step ③: The front-end module 310 determines the path information of multiple user terminals according to the transmission path of each user terminal.
[0082] Exemplarily, the front-end module 310 obtains the path 11 and the path 12 of the user terminal 1. For the corresponding relationship between the user terminal, the forwarding module and the path, refer to Table 1.
[0083] Table 1
[0084]
[0085] In the embodiment of the present application, the communication device that carries the tenant service may also be referred to as a user terminal, such as the communication device corresponding to tenant 1 may be referred to as a first user terminal or user terminal 1, the communication device corresponding to tenant 2 may be referred to as a second user terminal or user terminal 2, and the communication device corresponding to tenant 3 may be referred to as a third user terminal or user terminal 3. In some cases, the forwarding module may also refer to a forwarding node with a forwarding function or other modules with a forwarding function.
[0086] Combination of the above Figures 1 to 3 The communication system provided by the present application is described below. Figure 4 The data communication method provided by the present application is described. Figure 4 A data communication method is provided in the present application. The data communication method can be applied to Figure 1 The communication system shown. The method can be performed by Figure 3 The network device described is executed. The network device stores path information of multiple user terminals. For a first user terminal among the multiple user terminals, the path information of the first user terminal indicates one or more transmission paths configured by the network device for the first user terminal.
[0087] The method includes the following steps S410 to S430.
[0088] Step S410: the front-end module of the network device receives a communication request.
[0089] The communication request carries identification information indicating the first user terminal and data of the first user terminal to be transmitted, and the first user terminal is any one of the multiple user terminals. The identification information of the first user terminal may refer to the IP address or MAC address of the first user terminal.
[0090] For example, the communication request carries the IP address of the first user terminal and the data of the first user terminal to be sent.
[0091] For another example, the communication request carries the IP address of the first client and data sent to the first client.
[0092] For another example, the communication request carries the MAC address of the first user terminal and the data of the first user terminal to be sent.
[0093] For another example, the communication request carries the MAC address of the first client and data sent to the first client.
[0094] Exemplarily, the front-end module of the network device receives a communication request of the user terminal 1 sent by other network devices, and the communication request carries the identification of the user terminal 1 and the data to be transmitted of the user terminal 1.
[0095] Step S420: The front-end module determines the path information of the first user terminal from the path information of multiple user terminals according to the identifier of the first user terminal.
[0096] In a possible scenario, a plurality of forwarding modules are deployed in the network device, and the transmission path indicated by the path information of the first user terminal includes: a transmission path formed by at least one associated forwarding module and the first user terminal. The at least one associated forwarding module is used to indicate a forwarding module that forwards data of the first user terminal.
[0097] Exemplarily, the forwarding modules associated with the user terminal 1 include forwarding module 1 and forwarding module 2. The path of the user terminal 1 includes path 11 and path 12.
[0098] In a possible scenario, the front-end module determines the path information of the first user terminal from the path information of multiple user terminals according to the communication request, including the following steps ① to ③.
[0099] Step ①: The front-end module determines the identification of the first user terminal according to the communication request.
[0100] Exemplarily, the front-end module parses the communication request to obtain the identifier of the user terminal 1. Taking the communication request using a wireless access point name (APN) as an example, the identifier of the user terminal 1 is located in the first 32 bytes of the message transmitted by the communication request. The front-end module uses the 32 bytes to obtain the identifier of the user terminal 1.
[0101] Step ②: The front-end module determines at least one forwarding module associated with the first user terminal in the network device according to the identifier of the first user terminal.
[0102] Exemplarily, the front-end module determines the forwarding module 1 and the forwarding module 2 associated with the user terminal 1 according to the identifier of the user terminal 1 .
[0103] Step ③: The front-end module determines at least one transmission path corresponding to the first user terminal according to the first user terminal and at least one forwarding module.
[0104] Exemplarily, the front-end module determines the path 11 and the path 12 of the user terminal 1 according to the user terminal 1, the forwarding module 1, and the forwarding module 2.
[0105] In this embodiment, the front module determines the forwarding module associated with the user terminal according to the identifier of the user terminal. The front module determines the transmission path of the user terminal according to the forwarding module. When there are multiple transmission paths, the subsequent network device adopts the transmission path to transmit user data, thereby providing protection for the traffic burden of the user terminal.
[0106] Step S430: the front-end module forwards the data through the transmission path indicated by the path information of the first user end.
[0107] In a possible scenario, the front-end module obtains one or more paths to be transmitted for transmitting data according to the path information of the first user terminal, and then the front-end module sends data to the one or more paths to be transmitted respectively.
[0108] like Figure 4 In the example, the front-end module determines that the transmission paths to be used by the first user end are path 11 and path 12 according to the path information of user 1. Also, the front-end module sends the same data through path 11 and path 12; or, the front-end module forwards a part of the data to be transmitted (the data carried by the communication request) through path 11, and forwards another part of the data to be transmitted through path 12.
[0109] Figure 5 A process for a data communication method Figure 1 ,like Figure 5 As shown, different BSIDs are assigned to different tenants. As the number of tenants increases, the number of BSIDs will also increase significantly, resulting in complex management. In the method provided in the embodiment of the present application, the front-end module of the network device determines the path information that matches the user terminal identifier carried in the communication request from the path information of multiple user terminals. The front-end module uses the transmission path corresponding to the path information to transmit the user's data, thereby realizing load sharing of the user terminal traffic. Figure 5According to the method shown, in the process of load sharing of user-side traffic by the front-end module in the embodiment of the present application, there is no need to allocate a BSID to each tenant, and management is simple.
[0110] Figure 6 A process for a data communication method Figure 2 ,like Figure 6 As shown, a load balancing (LB) module is added to the VGW to implement tenant load sharing, and the external LB is responsible for tenant load sharing, which increases the forwarding delay and makes the system more complex. In the method provided in the embodiment of the present application, the front-end module of the network device determines the path information that matches the user terminal identifier carried by the communication request from the path information of multiple user terminals. The front-end module uses the transmission path of the user terminal indicated by the path information to transmit the data of the user terminal, and realizes load sharing of the user terminal traffic at the front-end module. Compared Figure 6 The method shown in the embodiment of the present application avoids the problem of the front-end module needing to send data to other peripherals first, which leads to increased delay, thereby improving data communication efficiency.
[0111] Combination of the above Figures 4 to 6 The data communication method provided by the present application is described below. Figure 7 The data communication device provided by the present application is described in detail. Figure 7 This is a structural diagram of a data communication device provided in the present application. The data communication device 700 can realize the function of the front-end module, and therefore can also achieve the beneficial effects possessed by the above method embodiments.
[0112] like Figure 7 As shown, the data communication device 700 includes an acquiring unit 710 , a path determining unit 720 and a sending unit 730 .
[0113] The acquisition unit 710 is used to receive a communication request. The communication request carries identification information indicating a first user terminal and data of the first user terminal to be sent. The first user terminal is any one of the multiple user terminals.
[0114] In a possible scenario, before the acquisition unit receives the communication request, the acquisition unit 710 is used to receive: first information, second information, and an association relationship between the first information and the second information sent by the network device. The first information indicates an identifier of each of the multiple user terminals. The second information indicates an identifier of each of the multiple forwarding modules. The acquisition unit 710 is also used to establish, for each user terminal, a transmission path between the forwarding modules associated with each user terminal based on the association relationship between the first information and the second information. The acquisition unit 710 is also used to acquire path information of multiple user terminals based on the transmission path of each user terminal.
[0115] The path determination unit 720 is used to determine the path information of the first user terminal from the path information of multiple user terminals according to the communication request.
[0116] In a possible scenario, a plurality of forwarding modules are deployed in the network device. The transmission path indicated by the path information of the first user terminal includes: a transmission path formed by at least one associated forwarding module and the first user terminal. The at least one associated forwarding module is used to indicate a forwarding module that forwards data of the first user terminal.
[0117] In a possible scenario, the path determination unit 720 is specifically configured to determine an identifier of the first user terminal according to the communication request. The path determination unit 720 is specifically configured to determine at least one forwarding module associated with the first user terminal in the network device according to the identifier of the first user terminal. The path determination unit 720 is specifically configured to determine at least one transmission path corresponding to the first user terminal according to the first user terminal and the at least one forwarding module.
[0118] The sending unit 730 is configured to forward the data of the first user terminal through the transmission path indicated by the path information of the first user terminal.
[0119] In a possible scenario, the sending unit 730 is specifically configured to obtain one or more to-be-transmitted paths for transmitting data according to the path information of the first user terminal. The sending unit 730 is specifically configured to send data to the one or more to-be-transmitted paths respectively.
[0120] When the data communication device implements the data communication method shown in any of the above-mentioned figures by software, the data communication device and its various modules may also be software units. The above-mentioned data communication method is implemented by calling the software module by a processor. The processor may be a central processing unit (CPU), a neural processing unit (NPU) or a graphic processing unit (GPU), an application-specific integrated circuit (ASIC), or a programmable logic device (PLD). The above-mentioned PLD may be a complex programmable logical device (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL), or other general-purpose processors, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0121] For a more detailed description of the above-mentioned data communication device, please refer to the relevant description in the embodiment shown in the above-mentioned drawings, which will not be repeated here. It can be understood that the data communication shown in the above-mentioned drawings is only an example provided by this embodiment. According to different scenarios in which the data communication device can be applied, the data communication device may include more or fewer units, and this application is not limited to this.
[0122] When the data communication device is implemented by hardware, the hardware can be implemented by a processor or a chip. The chip includes an interface circuit and a control circuit. The interface circuit is used to receive data from other devices outside the processor and transmit it to the control circuit, or send data from the control circuit to other devices outside the processor. The control circuit and the interface circuit are used to implement any possible implementation method in the above embodiments through a logic circuit or execution code instructions. The beneficial effects can be found in the description of any aspect of the above embodiments, which will not be repeated here.
[0123] in addition, Figure 7 The data communication device 700 shown can also be implemented by a network device, such as Figure 8 As shown, Figure 8This is a schematic diagram of the structure of a network device provided by the present application, the network device 800 includes: a memory 810 and at least one processor 820. The processor 820 can implement the data communication method provided by the above embodiment. The memory 810 is used to store software instructions corresponding to the above data communication method.
[0124] As an optional implementation, in hardware implementation, the network device 800 may refer to a chip or a chip system encapsulating one or more processors 820 .
[0125] For example, when the network device 800 is used to implement the method steps in the above embodiment, the processor 820 included in the network device 800 executes the steps of the above method and possible sub-steps thereof.
[0126] In an optional scenario, the network device 800 may further include a communication interface 830, which may be used to send and receive data.
[0127] For example, the communication interface 830 is used to receive data communication signals, or send data communication signals, etc.; the communication interface 830 can be implemented by an interface circuit included in the network device 800.
[0128] In the embodiment of the present application, the communication interface 830, the processor 820 and the memory 810 can be connected via a bus 840, and the bus 840 can be divided into an address bus, a data bus, a control bus, etc. The bus 840 can be a peripheral component interconnect express (PCIe) bus, or an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), a cache coherent interconnect for accelerators (CCIX), etc.
[0129] It is worth noting that the network device 800 can also perform Figure 7 The functions of the data communication device 700 shown are not described in detail here.
[0130] The method steps in the embodiments of the present application can also be implemented by the processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a network device or a terminal device. Of course, the processor and the storage medium can also be present in a network device or a terminal device as discrete components.
[0131] The present application also provides a chip system, which includes a processor for implementing the functions of the front module in the above method. In a possible design, the chip system also includes a memory for storing program instructions and / or data. The chip system can be composed of a chip or a chip and other discrete devices.
[0132] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When a computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user terminal device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, or a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD).
[0133] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A data communication method, characterized in that: The method is performed by a network device, wherein the network device stores path information of multiple user terminals, and for a first user terminal among the multiple user terminals, the path information of the first user terminal is used to indicate one or more transmission paths configured by the network device for the first user terminal; the method comprises: receiving a communication request, wherein the communication request carries identification information of the first user terminal and data to be transmitted of the first user terminal; Determining the path information of the first user terminal from the path information of the multiple user terminals according to the identifier of the first user terminal; The data to be transmitted is forwarded through a transmission path indicated by the path information of the first user terminal.
2. The method according to claim 1, characterized in that A plurality of forwarding modules are deployed in the network device, and the transmission path indicated by the path information of the first user terminal includes: a transmission path formed by at least one associated forwarding module and the first user terminal, and the at least one associated forwarding module is used to indicate a forwarding module that forwards data of the first user terminal.
3. The method according to claim 1 or 2, characterized in that: The network device includes a front-end module and a plurality of forwarding modules; Before receiving the communication request, the method further includes: The front-end module receives: first information, second information, and an association relationship between the first information and the second information, sent by the forwarding module; the first information is used to indicate each of the multiple user terminals, and the second information is used to indicate each of the multiple forwarding modules; The front-end module establishes, for each user terminal, a transmission path between each user terminal and a forwarding module associated with each user terminal according to the association relationship between the first information and the second information; The front-end module determines the path information of the multiple user terminals according to the transmission path of each user terminal.
4. The method according to claim 2 or 3, characterized in that: The determining, according to the identifier of the first user terminal, the path information of the first user terminal from the path information of the multiple user terminals includes: determining an identifier of the first user terminal according to the communication request; Determine, according to the identifier of the first user terminal, at least one forwarding module associated with the first user terminal in the network device; At least one transmission path corresponding to the first user terminal is determined according to the first user terminal and the at least one forwarding module.
5. The method according to claim 1, characterized in that The forwarding of the data through the transmission path indicated by the path information of the first user terminal includes: Acquire one or more to-be-transmitted paths for transmitting the data according to the path information of the first user terminal; The data is sent to the one or more paths to be transmitted respectively.
6. A data communication device, characterized in that: The device is applied to a network device, wherein the network device stores path information of multiple user terminals, and for a first user terminal among the multiple user terminals, the path information of the first user terminal is used to indicate one or more transmission paths configured by the network device for the first user terminal, and the device includes: An acquisition unit, the acquisition unit is used to receive a communication request, the communication request carries the identification information of the first user terminal and the data to be transmitted of the first user terminal; a path determination unit, configured to determine the path information of the first user terminal from the path information of the plurality of user terminals according to the identifier of the first user terminal; A sending unit, wherein the sending unit is used to forward the data through a transmission path indicated by the path information of the first user terminal.
7. The device according to claim 6, characterized in that: A plurality of forwarding modules are deployed in the network device, and the transmission path indicated by the path information of the first user terminal includes: a transmission path formed by at least one associated forwarding module and the first user terminal, and the at least one associated forwarding module is used to indicate a forwarding module that forwards data of the first user terminal.
8. The device according to claim 6 or 7, characterized in that: The acquisition unit is further used to receive: first information, second information, and an association relationship between the first information and the second information sent by a forwarding module in the network device; the first information is used to indicate each of the multiple user terminals, and the second information is used to indicate each of the multiple forwarding modules; The acquisition unit is further configured to establish, for each user terminal, a transmission path between each user terminal and a forwarding module associated with each user terminal according to an association relationship between the first information and the second information; The acquisition unit is further used to determine the path information of the multiple user terminals according to the transmission path of each user terminal.
9. The device according to claim 7 or 8, characterized in that: The path determination unit is specifically configured to determine the identifier of the first user terminal according to the communication request; The path determination unit is specifically configured to determine at least one forwarding module associated with the first user terminal in the network device according to the identifier of the first user terminal; The path determination unit is specifically configured to determine at least one transmission path corresponding to the first user terminal according to the first user terminal and the at least one forwarding module.
10. The device according to claim 6, characterized in that: The sending unit is specifically configured to acquire one or more to-be-transmitted paths for transmitting the data according to the path information of the first user terminal; The sending unit is specifically configured to send the data to the one or more paths to be transmitted respectively.
11. A network device, characterized in that: include: A memory and a processor, wherein the memory is used to store a set of computer instructions; when the processor executes the set of computer instructions, the method according to any one of claims 1 to 5 is executed.
12. A communication system, characterized in that: The communication system comprises: at least two network devices according to claim 11.
13. A computer-readable storage medium, characterized in that: include: Computer software instructions; when the computer software instructions are executed in a network device, the network device executes the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for sharing multi-interface data stream load in WiMAX system
CN101668010A
Method and device for determining message forwarding paths in multi-protocol label switching network
CN104283782A
Message forwarding method, device and system
CN105634956A
Method and device for sending route information
CN109412951A
Multipath forwarding in an overlay network
US20180139123A1
